vibe-splain 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +27 -2
- package/dist/mcp/server.js +28 -2
- package/dist/ui/index.html +3566 -2
- package/package.json +1 -1
- package/dist/ui/assets/abap-DsBKuouk.js +0 -1
- package/dist/ui/assets/actionscript-3-D_z4Izcz.js +0 -1
- package/dist/ui/assets/ada-727ZlQH0.js +0 -1
- package/dist/ui/assets/andromeeda-C3khCPGq.js +0 -1
- package/dist/ui/assets/angular-html-LfdN0zeE.js +0 -1
- package/dist/ui/assets/angular-ts-CKsD7JZE.js +0 -1
- package/dist/ui/assets/apache-Dn00JSTd.js +0 -1
- package/dist/ui/assets/apex-COJ4H7py.js +0 -1
- package/dist/ui/assets/apl-BBq3IX1j.js +0 -1
- package/dist/ui/assets/applescript-Bu5BbsvL.js +0 -1
- package/dist/ui/assets/ara-7O62HKoU.js +0 -1
- package/dist/ui/assets/arc-Bq1jVAKi.js +0 -1
- package/dist/ui/assets/architectureDiagram-3BPJPVTR-R4fhdlee.js +0 -36
- package/dist/ui/assets/asciidoc-BPT9niGB.js +0 -1
- package/dist/ui/assets/asm-Dhn9LcZ4.js +0 -1
- package/dist/ui/assets/astro-CqkE3fuf.js +0 -1
- package/dist/ui/assets/aurora-x-D-2ljcwZ.js +0 -1
- package/dist/ui/assets/awk-eg146-Ew.js +0 -1
- package/dist/ui/assets/ayu-dark-Cv9koXgw.js +0 -1
- package/dist/ui/assets/ballerina-Du268qiB.js +0 -1
- package/dist/ui/assets/bat-fje9CFhw.js +0 -1
- package/dist/ui/assets/beancount-BwXTMy5W.js +0 -1
- package/dist/ui/assets/berry-3xVqZejG.js +0 -1
- package/dist/ui/assets/bibtex-xW4inM5L.js +0 -1
- package/dist/ui/assets/bicep-DHo0CJ0O.js +0 -1
- package/dist/ui/assets/blade-a8OxSdnT.js +0 -1
- package/dist/ui/assets/blockDiagram-GPEHLZMM-5XkEXQwI.js +0 -132
- package/dist/ui/assets/bsl-Dgyn0ogV.js +0 -1
- package/dist/ui/assets/c-C3t2pwGQ.js +0 -1
- package/dist/ui/assets/c4Diagram-AAUBKEIU-CVMRi7xO.js +0 -10
- package/dist/ui/assets/cadence-DNquZEk8.js +0 -1
- package/dist/ui/assets/cairo--RitsXJZ.js +0 -1
- package/dist/ui/assets/catppuccin-frappe-CD_QflpE.js +0 -1
- package/dist/ui/assets/catppuccin-latte-DRW-0cLl.js +0 -1
- package/dist/ui/assets/catppuccin-macchiato-C-_shW-Y.js +0 -1
- package/dist/ui/assets/catppuccin-mocha-LGGdnPYs.js +0 -1
- package/dist/ui/assets/channel-DskATRfv.js +0 -1
- package/dist/ui/assets/chunk-2J33WTMH-CjoczKe2.js +0 -1
- package/dist/ui/assets/chunk-4BX2VUAB-zlxS7kMe.js +0 -1
- package/dist/ui/assets/chunk-55IACEB6-u-aLoWTA.js +0 -1
- package/dist/ui/assets/chunk-727SXJPM-CPXGcGn3.js +0 -206
- package/dist/ui/assets/chunk-AQP2D5EJ-DSRK_fjR.js +0 -231
- package/dist/ui/assets/chunk-FMBD7UC4-BhHjdiID.js +0 -15
- package/dist/ui/assets/chunk-ND2GUHAM-Dt_b_VFL.js +0 -1
- package/dist/ui/assets/chunk-QZHKN3VN-ljd83veX.js +0 -1
- package/dist/ui/assets/clarity-BHOwM8T6.js +0 -1
- package/dist/ui/assets/classDiagram-4FO5ZUOK-C45wsrAC.js +0 -1
- package/dist/ui/assets/classDiagram-v2-Q7XG4LA2-C45wsrAC.js +0 -1
- package/dist/ui/assets/clojure-DxSadP1t.js +0 -1
- package/dist/ui/assets/cmake-DbXoA79R.js +0 -1
- package/dist/ui/assets/cobol-PTqiYgYu.js +0 -1
- package/dist/ui/assets/codeowners-Bp6g37R7.js +0 -1
- package/dist/ui/assets/codeql-sacFqUAJ.js +0 -1
- package/dist/ui/assets/coffee-dyiR41kL.js +0 -1
- package/dist/ui/assets/common-lisp-C7gG9l05.js +0 -1
- package/dist/ui/assets/coq-Dsg_Bt_b.js +0 -1
- package/dist/ui/assets/cose-bilkent-S5V4N54A-B47jq-Qy.js +0 -1
- package/dist/ui/assets/cpp-BksuvNSY.js +0 -1
- package/dist/ui/assets/crystal-DtDmRg-F.js +0 -1
- package/dist/ui/assets/csharp-D9R-vmeu.js +0 -1
- package/dist/ui/assets/css-BPhBrDlE.js +0 -1
- package/dist/ui/assets/csv-B0qRVHPH.js +0 -1
- package/dist/ui/assets/cue-DtFQj3wx.js +0 -1
- package/dist/ui/assets/cypher-m2LEI-9-.js +0 -1
- package/dist/ui/assets/cytoscape.esm-CUqq0XTU.js +0 -331
- package/dist/ui/assets/d-BoXegm-a.js +0 -1
- package/dist/ui/assets/dagre-BM42HDAG-B8S6fvC9.js +0 -4
- package/dist/ui/assets/dark-plus-C3mMm8J8.js +0 -1
- package/dist/ui/assets/dart-B9wLZaAG.js +0 -1
- package/dist/ui/assets/dax-ClGRhx96.js +0 -1
- package/dist/ui/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/dist/ui/assets/desktop-DEIpsLCJ.js +0 -1
- package/dist/ui/assets/diagram-2AECGRRQ-DdSf8QGx.js +0 -43
- package/dist/ui/assets/diagram-5GNKFQAL-DjNbvgIh.js +0 -10
- package/dist/ui/assets/diagram-KO2AKTUF-C_EbhXEU.js +0 -3
- package/dist/ui/assets/diagram-LMA3HP47-fkQGkC6F.js +0 -24
- package/dist/ui/assets/diagram-OG6HWLK6-ild2cowO.js +0 -24
- package/dist/ui/assets/diff-BgYniUM_.js +0 -1
- package/dist/ui/assets/docker-COcR7UxN.js +0 -1
- package/dist/ui/assets/dotenv-BjQB5zDj.js +0 -1
- package/dist/ui/assets/dracula-BzJJZx-M.js +0 -1
- package/dist/ui/assets/dracula-soft-BXkSAIEj.js +0 -1
- package/dist/ui/assets/dream-maker-C-nORZOA.js +0 -1
- package/dist/ui/assets/edge-D5gP-w-T.js +0 -1
- package/dist/ui/assets/elixir-CLiX3zqd.js +0 -1
- package/dist/ui/assets/elm-CmHSxxaM.js +0 -1
- package/dist/ui/assets/emacs-lisp-BX77sIaO.js +0 -1
- package/dist/ui/assets/erDiagram-TEJ5UH35-Cx3ooJxy.js +0 -85
- package/dist/ui/assets/erb-BYTLMnw6.js +0 -1
- package/dist/ui/assets/erlang-B-DoSBHF.js +0 -1
- package/dist/ui/assets/everforest-dark-BgDCqdQA.js +0 -1
- package/dist/ui/assets/everforest-light-C8M2exoo.js +0 -1
- package/dist/ui/assets/fennel-bCA53EVm.js +0 -1
- package/dist/ui/assets/fish-w-ucz2PV.js +0 -1
- package/dist/ui/assets/flowDiagram-I6XJVG4X-BijjyFdb.js +0 -162
- package/dist/ui/assets/fluent-Dayu4EKP.js +0 -1
- package/dist/ui/assets/fortran-fixed-form-TqA4NnZg.js +0 -1
- package/dist/ui/assets/fortran-free-form-DKXYxT9g.js +0 -1
- package/dist/ui/assets/fsharp-XplgxFYe.js +0 -1
- package/dist/ui/assets/ganttDiagram-6RSMTGT7-BYSSlI1j.js +0 -292
- package/dist/ui/assets/gdresource-BHYsBjWJ.js +0 -1
- package/dist/ui/assets/gdscript-DfxzS6Rs.js +0 -1
- package/dist/ui/assets/gdshader-SKMF96pI.js +0 -1
- package/dist/ui/assets/genie-ajMbGru0.js +0 -1
- package/dist/ui/assets/gherkin--30QC5Em.js +0 -1
- package/dist/ui/assets/git-commit-i4q6IMui.js +0 -1
- package/dist/ui/assets/git-rebase-B-v9cOL2.js +0 -1
- package/dist/ui/assets/gitGraphDiagram-PVQCEYII-BeQbA8KU.js +0 -106
- package/dist/ui/assets/github-dark-DHJKELXO.js +0 -1
- package/dist/ui/assets/github-dark-default-Cuk6v7N8.js +0 -1
- package/dist/ui/assets/github-dark-dimmed-DH5Ifo-i.js +0 -1
- package/dist/ui/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -1
- package/dist/ui/assets/github-light-DAi9KRSo.js +0 -1
- package/dist/ui/assets/github-light-default-D7oLnXFd.js +0 -1
- package/dist/ui/assets/github-light-high-contrast-BfjtVDDH.js +0 -1
- package/dist/ui/assets/gleam-B430Bg39.js +0 -1
- package/dist/ui/assets/glimmer-js-D-cwc0-E.js +0 -1
- package/dist/ui/assets/glimmer-ts-pgjy16dm.js +0 -1
- package/dist/ui/assets/glsl-DBO2IWDn.js +0 -1
- package/dist/ui/assets/gnuplot-CM8KxXT1.js +0 -1
- package/dist/ui/assets/go-B1SYOhNW.js +0 -1
- package/dist/ui/assets/graph-BlwPajkw.js +0 -1
- package/dist/ui/assets/graphql-cDcHW_If.js +0 -1
- package/dist/ui/assets/groovy-DkBy-JyN.js +0 -1
- package/dist/ui/assets/hack-D1yCygmZ.js +0 -1
- package/dist/ui/assets/haml-B2EZWmdv.js +0 -1
- package/dist/ui/assets/handlebars-BQGss363.js +0 -1
- package/dist/ui/assets/haskell-BILxekzW.js +0 -1
- package/dist/ui/assets/haxe-C5wWYbrZ.js +0 -1
- package/dist/ui/assets/hcl-HzYwdGDm.js +0 -1
- package/dist/ui/assets/hjson-T-Tgc4AT.js +0 -1
- package/dist/ui/assets/hlsl-ifBTmRxC.js +0 -1
- package/dist/ui/assets/houston-DnULxvSX.js +0 -1
- package/dist/ui/assets/html-C2L_23MC.js +0 -1
- package/dist/ui/assets/html-derivative-CSfWNPLT.js +0 -1
- package/dist/ui/assets/http-FRrOvY1W.js +0 -1
- package/dist/ui/assets/hxml-TIA70rKU.js +0 -1
- package/dist/ui/assets/hy-BMj5Y0dO.js +0 -1
- package/dist/ui/assets/imba-bv_oIlVt.js +0 -1
- package/dist/ui/assets/index-DCM2k-QB.js +0 -149
- package/dist/ui/assets/index-DeSCjOUR.js +0 -350
- package/dist/ui/assets/index-Xf-qrRKj.css +0 -1
- package/dist/ui/assets/infoDiagram-5YYISTIA-C_uVe1ld.js +0 -2
- package/dist/ui/assets/ini-BjABl1g7.js +0 -1
- package/dist/ui/assets/init-Gi6I4Gst.js +0 -1
- package/dist/ui/assets/ishikawaDiagram-YF4QCWOH-hzDmyxpo.js +0 -70
- package/dist/ui/assets/java-xI-RfyKK.js +0 -1
- package/dist/ui/assets/javascript-ySlJ1b_l.js +0 -1
- package/dist/ui/assets/jinja-DGy0s7-h.js +0 -1
- package/dist/ui/assets/jison-BqZprYcd.js +0 -1
- package/dist/ui/assets/journeyDiagram-JHISSGLW-B7NJ1JZJ.js +0 -139
- package/dist/ui/assets/json-BQoSv7ci.js +0 -1
- package/dist/ui/assets/json5-w8dY5SsB.js +0 -1
- package/dist/ui/assets/jsonc-TU54ms6u.js +0 -1
- package/dist/ui/assets/jsonl-DREVFZK8.js +0 -1
- package/dist/ui/assets/jsonnet-BfivnA6A.js +0 -1
- package/dist/ui/assets/jssm-P4WzXJd0.js +0 -1
- package/dist/ui/assets/jsx-BAng5TT0.js +0 -1
- package/dist/ui/assets/julia-BBuGR-5E.js +0 -1
- package/dist/ui/assets/kanagawa-dragon-CkXjmgJE.js +0 -1
- package/dist/ui/assets/kanagawa-lotus-CfQXZHmo.js +0 -1
- package/dist/ui/assets/kanagawa-wave-DWedfzmr.js +0 -1
- package/dist/ui/assets/kanban-definition-UN3LZRKU-B6pVc1c6.js +0 -89
- package/dist/ui/assets/katex-C5jXJg4s.js +0 -257
- package/dist/ui/assets/kotlin-B5lbUyaz.js +0 -1
- package/dist/ui/assets/kusto-mebxcVVE.js +0 -1
- package/dist/ui/assets/laserwave-DUszq2jm.js +0 -1
- package/dist/ui/assets/latex-C-cWTeAZ.js +0 -1
- package/dist/ui/assets/layout-Boy8vhSP.js +0 -1
- package/dist/ui/assets/lean-XBlWyCtg.js +0 -1
- package/dist/ui/assets/less-BfCpw3nA.js +0 -1
- package/dist/ui/assets/light-plus-B7mTdjB0.js +0 -1
- package/dist/ui/assets/linear-B_KCGlU8.js +0 -1
- package/dist/ui/assets/liquid-D3W5UaiH.js +0 -1
- package/dist/ui/assets/log-Cc5clBb7.js +0 -1
- package/dist/ui/assets/logo-IuBKFhSY.js +0 -1
- package/dist/ui/assets/lua-CvWAzNxB.js +0 -1
- package/dist/ui/assets/luau-Du5NY7AG.js +0 -1
- package/dist/ui/assets/make-Bvotw-X0.js +0 -1
- package/dist/ui/assets/markdown-UIAJJxZW.js +0 -1
- package/dist/ui/assets/marko-z0MBrx5-.js +0 -1
- package/dist/ui/assets/material-theme-D5KoaKCx.js +0 -1
- package/dist/ui/assets/material-theme-darker-BfHTSMKl.js +0 -1
- package/dist/ui/assets/material-theme-lighter-B0m2ddpp.js +0 -1
- package/dist/ui/assets/material-theme-ocean-CyktbL80.js +0 -1
- package/dist/ui/assets/material-theme-palenight-Csfq5Kiy.js +0 -1
- package/dist/ui/assets/matlab-D9-PGadD.js +0 -1
- package/dist/ui/assets/mdc-DB_EDNY_.js +0 -1
- package/dist/ui/assets/mdx-sdHcTMYB.js +0 -1
- package/dist/ui/assets/mermaid-Ci6OQyBP.js +0 -1
- package/dist/ui/assets/min-dark-CafNBF8u.js +0 -1
- package/dist/ui/assets/min-light-CTRr51gU.js +0 -1
- package/dist/ui/assets/mindmap-definition-RKZ34NQL-Dmpnosj8.js +0 -96
- package/dist/ui/assets/mipsasm-BC5c_5Pe.js +0 -1
- package/dist/ui/assets/mojo-Tz6hzZYG.js +0 -1
- package/dist/ui/assets/monokai-D4h5O-jR.js +0 -1
- package/dist/ui/assets/move-DB_GagMm.js +0 -1
- package/dist/ui/assets/narrat-DLbgOhZU.js +0 -1
- package/dist/ui/assets/nextflow-B0XVJmRM.js +0 -1
- package/dist/ui/assets/nginx-D_VnBJ67.js +0 -1
- package/dist/ui/assets/night-owl-C39BiMTA.js +0 -1
- package/dist/ui/assets/nim-ZlGxZxc3.js +0 -1
- package/dist/ui/assets/nix-shcSOmrb.js +0 -1
- package/dist/ui/assets/nord-Ddv68eIx.js +0 -1
- package/dist/ui/assets/nushell-D4Tzg5kh.js +0 -1
- package/dist/ui/assets/objective-c-Deuh7S70.js +0 -1
- package/dist/ui/assets/objective-cpp-BUEGK8hf.js +0 -1
- package/dist/ui/assets/ocaml-BNioltXt.js +0 -1
- package/dist/ui/assets/one-dark-pro-GBQ2dnAY.js +0 -1
- package/dist/ui/assets/one-light-PoHY5YXO.js +0 -1
- package/dist/ui/assets/ordinal-Cboi1Yqb.js +0 -1
- package/dist/ui/assets/pascal-JqZropPD.js +0 -1
- package/dist/ui/assets/perl-CHQXSrWU.js +0 -1
- package/dist/ui/assets/php-B5ebYQev.js +0 -1
- package/dist/ui/assets/pieDiagram-4H26LBE5-DWfhPrxk.js +0 -30
- package/dist/ui/assets/plastic-3e1v2bzS.js +0 -1
- package/dist/ui/assets/plsql-LKU2TuZ1.js +0 -1
- package/dist/ui/assets/po-BFLt1xDp.js +0 -1
- package/dist/ui/assets/poimandres-CS3Unz2-.js +0 -1
- package/dist/ui/assets/polar-DKykz6zU.js +0 -1
- package/dist/ui/assets/postcss-B3ZDOciz.js +0 -1
- package/dist/ui/assets/powerquery-CSHBycmS.js +0 -1
- package/dist/ui/assets/powershell-BIEUsx6d.js +0 -1
- package/dist/ui/assets/prisma-B48N-Iqd.js +0 -1
- package/dist/ui/assets/prolog-BY-TUvya.js +0 -1
- package/dist/ui/assets/proto-zocC4JxJ.js +0 -1
- package/dist/ui/assets/pug-CM9l7STV.js +0 -1
- package/dist/ui/assets/puppet-Cza_XSSt.js +0 -1
- package/dist/ui/assets/purescript-Bg-kzb6g.js +0 -1
- package/dist/ui/assets/python-DhUJRlN_.js +0 -1
- package/dist/ui/assets/qml-D8XfuvdV.js +0 -1
- package/dist/ui/assets/qmldir-C8lEn-DE.js +0 -1
- package/dist/ui/assets/qss-DhMKtDLN.js +0 -1
- package/dist/ui/assets/quadrantDiagram-W4KKPZXB-C9C_4UTm.js +0 -7
- package/dist/ui/assets/r-CwjWoCRV.js +0 -1
- package/dist/ui/assets/racket-CzouJOBO.js +0 -1
- package/dist/ui/assets/raku-B1bQXN8T.js +0 -1
- package/dist/ui/assets/razor-CNLDkMZG.js +0 -1
- package/dist/ui/assets/red-bN70gL4F.js +0 -1
- package/dist/ui/assets/reg-5LuOXUq_.js +0 -1
- package/dist/ui/assets/regexp-DWJ3fJO_.js +0 -1
- package/dist/ui/assets/rel-DJlmqQ1C.js +0 -1
- package/dist/ui/assets/requirementDiagram-4Y6WPE33-Rti8bvFJ.js +0 -84
- package/dist/ui/assets/riscv-QhoSD0DR.js +0 -1
- package/dist/ui/assets/rose-pine-CmCqftbK.js +0 -1
- package/dist/ui/assets/rose-pine-dawn-Ds-gbosJ.js +0 -1
- package/dist/ui/assets/rose-pine-moon-CjDtw9vr.js +0 -1
- package/dist/ui/assets/rst-4NLicBqY.js +0 -1
- package/dist/ui/assets/ruby-DeZ3UC14.js +0 -1
- package/dist/ui/assets/rust-Be6lgOlo.js +0 -1
- package/dist/ui/assets/sankeyDiagram-5OEKKPKP-DKJ1CJ1F.js +0 -40
- package/dist/ui/assets/sas-BmTFh92c.js +0 -1
- package/dist/ui/assets/sass-BJ4Li9vH.js +0 -1
- package/dist/ui/assets/scala-DQVVAn-B.js +0 -1
- package/dist/ui/assets/scheme-BJGe-b2p.js +0 -1
- package/dist/ui/assets/scss-C31hgJw-.js +0 -1
- package/dist/ui/assets/sdbl-BLhTXw86.js +0 -1
- package/dist/ui/assets/sequenceDiagram-3UESZ5HK-BCJdo3Yk.js +0 -162
- package/dist/ui/assets/shaderlab-B7qAK45m.js +0 -1
- package/dist/ui/assets/shellscript-atvbtKCR.js +0 -1
- package/dist/ui/assets/shellsession-C_rIy8kc.js +0 -1
- package/dist/ui/assets/slack-dark-BthQWCQV.js +0 -1
- package/dist/ui/assets/slack-ochin-DqwNpetd.js +0 -1
- package/dist/ui/assets/smalltalk-DkLiglaE.js +0 -1
- package/dist/ui/assets/snazzy-light-Bw305WKR.js +0 -1
- package/dist/ui/assets/solarized-dark-DXbdFlpD.js +0 -1
- package/dist/ui/assets/solarized-light-L9t79GZl.js +0 -1
- package/dist/ui/assets/solidity-C1w2a3ep.js +0 -1
- package/dist/ui/assets/soy-C-lX7w71.js +0 -1
- package/dist/ui/assets/sparql-bYkjHRlG.js +0 -1
- package/dist/ui/assets/splunk-Cf8iN4DR.js +0 -1
- package/dist/ui/assets/sql-COK4E0Yg.js +0 -1
- package/dist/ui/assets/ssh-config-BknIz3MU.js +0 -1
- package/dist/ui/assets/stata-DorPZHa4.js +0 -1
- package/dist/ui/assets/stateDiagram-AJRCARHV-BxlCyIOF.js +0 -1
- package/dist/ui/assets/stateDiagram-v2-BHNVJYJU-cIykpKBe.js +0 -1
- package/dist/ui/assets/stylus-BeQkCIfX.js +0 -1
- package/dist/ui/assets/svelte-MSaWC3Je.js +0 -1
- package/dist/ui/assets/swift-BSxZ-RaX.js +0 -1
- package/dist/ui/assets/synthwave-84-CbfX1IO0.js +0 -1
- package/dist/ui/assets/system-verilog-C7L56vO4.js +0 -1
- package/dist/ui/assets/systemd-CUnW07Te.js +0 -1
- package/dist/ui/assets/talonscript-C1XDQQGZ.js +0 -1
- package/dist/ui/assets/tasl-CQjiPCtT.js +0 -1
- package/dist/ui/assets/tcl-DQ1-QYvQ.js +0 -1
- package/dist/ui/assets/templ-dwX3ZSMB.js +0 -1
- package/dist/ui/assets/terraform-BbSNqyBO.js +0 -1
- package/dist/ui/assets/tex-rYs2v40G.js +0 -1
- package/dist/ui/assets/timeline-definition-PNZ67QCA-BBlZb3oG.js +0 -120
- package/dist/ui/assets/tokyo-night-DBQeEorK.js +0 -1
- package/dist/ui/assets/toml-CB2ApiWb.js +0 -1
- package/dist/ui/assets/ts-tags-CipyTH0X.js +0 -1
- package/dist/ui/assets/tsv-B_m7g4N7.js +0 -1
- package/dist/ui/assets/tsx-B6W0miNI.js +0 -1
- package/dist/ui/assets/turtle-BMR_PYu6.js +0 -1
- package/dist/ui/assets/twig-NC5TFiHP.js +0 -1
- package/dist/ui/assets/typescript-Dj6nwHGl.js +0 -1
- package/dist/ui/assets/typespec-BpWG_bgh.js +0 -1
- package/dist/ui/assets/typst-BVUVsWT6.js +0 -1
- package/dist/ui/assets/v-CAQ2eGtk.js +0 -1
- package/dist/ui/assets/vala-BFOHcciG.js +0 -1
- package/dist/ui/assets/vb-CdO5JTpU.js +0 -1
- package/dist/ui/assets/vennDiagram-CIIHVFJN-C-Nr9zGX.js +0 -34
- package/dist/ui/assets/verilog-CJaU5se_.js +0 -1
- package/dist/ui/assets/vesper-BEBZ7ncR.js +0 -1
- package/dist/ui/assets/vhdl-DYoNaHQp.js +0 -1
- package/dist/ui/assets/viml-m4uW47V2.js +0 -1
- package/dist/ui/assets/vitesse-black-Bkuqu6BP.js +0 -1
- package/dist/ui/assets/vitesse-dark-D0r3Knsf.js +0 -1
- package/dist/ui/assets/vitesse-light-CVO1_9PV.js +0 -1
- package/dist/ui/assets/vue-BuYVFjOK.js +0 -1
- package/dist/ui/assets/vue-html-xdeiXROB.js +0 -1
- package/dist/ui/assets/vyper-nyqBNV6O.js +0 -1
- package/dist/ui/assets/wardley-L42UT6IY-Bu2DsPJv.js +0 -173
- package/dist/ui/assets/wardleyDiagram-YWT4CUSO-Xlk_Tv4m.js +0 -78
- package/dist/ui/assets/wasm-C6j12Q_x.js +0 -1
- package/dist/ui/assets/wasm-CG6Dc4jp.js +0 -1
- package/dist/ui/assets/wenyan-7A4Fjokl.js +0 -1
- package/dist/ui/assets/wgsl-CB0Krxn9.js +0 -1
- package/dist/ui/assets/wikitext-DCE3LsBG.js +0 -1
- package/dist/ui/assets/wolfram-C3FkfJm5.js +0 -1
- package/dist/ui/assets/xml-e3z08dGr.js +0 -1
- package/dist/ui/assets/xsl-Dd0NUgwM.js +0 -1
- package/dist/ui/assets/xychartDiagram-2RQKCTM6-DF_rfRUs.js +0 -7
- package/dist/ui/assets/yaml-CVw76BM1.js +0 -1
- package/dist/ui/assets/zenscript-HnGAYVZD.js +0 -1
- package/dist/ui/assets/zig-BVz_zdnA.js +0 -1
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-LfdN0zeE.js","./html-C2L_23MC.js","./javascript-ySlJ1b_l.js","./css-BPhBrDlE.js","./angular-ts-CKsD7JZE.js","./scss-C31hgJw-.js","./apl-BBq3IX1j.js","./xml-e3z08dGr.js","./java-xI-RfyKK.js","./json-BQoSv7ci.js","./astro-CqkE3fuf.js","./typescript-Dj6nwHGl.js","./postcss-B3ZDOciz.js","./blade-a8OxSdnT.js","./sql-COK4E0Yg.js","./bsl-Dgyn0ogV.js","./sdbl-BLhTXw86.js","./cairo--RitsXJZ.js","./python-DhUJRlN_.js","./cobol-PTqiYgYu.js","./coffee-dyiR41kL.js","./cpp-BksuvNSY.js","./regexp-DWJ3fJO_.js","./glsl-DBO2IWDn.js","./c-C3t2pwGQ.js","./crystal-DtDmRg-F.js","./shellscript-atvbtKCR.js","./edge-D5gP-w-T.js","./html-derivative-CSfWNPLT.js","./elixir-CLiX3zqd.js","./elm-CmHSxxaM.js","./erb-BYTLMnw6.js","./ruby-DeZ3UC14.js","./haml-B2EZWmdv.js","./graphql-cDcHW_If.js","./jsx-BAng5TT0.js","./tsx-B6W0miNI.js","./lua-CvWAzNxB.js","./yaml-CVw76BM1.js","./fortran-fixed-form-TqA4NnZg.js","./fortran-free-form-DKXYxT9g.js","./fsharp-XplgxFYe.js","./markdown-UIAJJxZW.js","./gdresource-BHYsBjWJ.js","./gdshader-SKMF96pI.js","./gdscript-DfxzS6Rs.js","./git-commit-i4q6IMui.js","./diff-BgYniUM_.js","./git-rebase-B-v9cOL2.js","./glimmer-js-D-cwc0-E.js","./glimmer-ts-pgjy16dm.js","./hack-D1yCygmZ.js","./handlebars-BQGss363.js","./http-FRrOvY1W.js","./hxml-TIA70rKU.js","./haxe-C5wWYbrZ.js","./imba-bv_oIlVt.js","./jinja-DGy0s7-h.js","./jison-BqZprYcd.js","./julia-BBuGR-5E.js","./r-CwjWoCRV.js","./latex-C-cWTeAZ.js","./tex-rYs2v40G.js","./liquid-D3W5UaiH.js","./marko-z0MBrx5-.js","./less-BfCpw3nA.js","./mdc-DB_EDNY_.js","./nginx-D_VnBJ67.js","./nim-ZlGxZxc3.js","./perl-CHQXSrWU.js","./php-B5ebYQev.js","./pug-CM9l7STV.js","./qml-D8XfuvdV.js","./razor-CNLDkMZG.js","./csharp-D9R-vmeu.js","./rst-4NLicBqY.js","./cmake-DbXoA79R.js","./sas-BmTFh92c.js","./shaderlab-B7qAK45m.js","./hlsl-ifBTmRxC.js","./shellsession-C_rIy8kc.js","./soy-C-lX7w71.js","./sparql-bYkjHRlG.js","./turtle-BMR_PYu6.js","./stata-DorPZHa4.js","./svelte-MSaWC3Je.js","./templ-dwX3ZSMB.js","./go-B1SYOhNW.js","./ts-tags-CipyTH0X.js","./twig-NC5TFiHP.js","./vue-BuYVFjOK.js","./vue-html-xdeiXROB.js","./xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Ai=Object.defineProperty;var yr=t=>{throw TypeError(t)};var Si=(t,e,r)=>e in t?Ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var g=(t,e,r)=>Si(t,typeof e!="symbol"?e+"":e,r),Er=(t,e,r)=>e.has(t)||yr("Cannot "+r);var kt=(t,e,r)=>(Er(t,e,"read from private field"),r?r.call(t):e.get(t)),Cr=(t,e,r)=>e.has(t)?yr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),He=(t,e,r,n)=>(Er(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{bo as c}from"./index-DeSCjOUR.js";const on=[{id:"abap",name:"ABAP",import:()=>c(()=>import("./abap-DsBKuouk.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>c(()=>import("./actionscript-3-D_z4Izcz.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>c(()=>import("./ada-727ZlQH0.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>c(()=>import("./angular-html-LfdN0zeE.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>c(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>c(()=>import("./apache-Dn00JSTd.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>c(()=>import("./apex-COJ4H7py.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>c(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>c(()=>import("./applescript-Bu5BbsvL.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>c(()=>import("./ara-7O62HKoU.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c(()=>import("./asciidoc-BPT9niGB.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>c(()=>import("./asm-Dhn9LcZ4.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>c(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]),import.meta.url)},{id:"awk",name:"AWK",import:()=>c(()=>import("./awk-eg146-Ew.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>c(()=>import("./ballerina-Du268qiB.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>c(()=>import("./bat-fje9CFhw.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>c(()=>import("./beancount-BwXTMy5W.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>c(()=>import("./berry-3xVqZejG.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>c(()=>import("./bibtex-xW4inM5L.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>c(()=>import("./bicep-DHo0CJ0O.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>c(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]),import.meta.url)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]),import.meta.url)},{id:"c",name:"C",import:()=>c(()=>import("./c-C3t2pwGQ.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c(()=>import("./cadence-DNquZEk8.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>c(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>c(()=>import("./clarity-BHOwM8T6.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c(()=>import("./clojure-DxSadP1t.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>c(()=>import("./cmake-DbXoA79R.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>c(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>c(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c(()=>import("./codeql-sacFqUAJ.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>c(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c(()=>import("./common-lisp-C7gG9l05.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>c(()=>import("./coq-Dsg_Bt_b.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>c(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>c(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c(()=>import("./csharp-D9R-vmeu.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>c(()=>import("./css-BPhBrDlE.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>c(()=>import("./csv-B0qRVHPH.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>c(()=>import("./cue-DtFQj3wx.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c(()=>import("./cypher-m2LEI-9-.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>c(()=>import("./d-BoXegm-a.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>c(()=>import("./dart-B9wLZaAG.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>c(()=>import("./dax-ClGRhx96.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>c(()=>import("./desktop-DEIpsLCJ.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>c(()=>import("./diff-BgYniUM_.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c(()=>import("./docker-COcR7UxN.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>c(()=>import("./dotenv-BjQB5zDj.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>c(()=>import("./dream-maker-C-nORZOA.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>c(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>c(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]),import.meta.url)},{id:"elm",name:"Elm",import:()=>c(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c(()=>import("./emacs-lisp-BX77sIaO.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>c(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]),import.meta.url)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>c(()=>import("./erlang-B-DoSBHF.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>c(()=>import("./fennel-bCA53EVm.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>c(()=>import("./fish-w-ucz2PV.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c(()=>import("./fluent-Dayu4EKP.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>c(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]),import.meta.url)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c(()=>import("./fortran-free-form-DKXYxT9g.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>c(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>c(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>c(()=>import("./gdscript-DfxzS6Rs.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>c(()=>import("./gdshader-SKMF96pI.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>c(()=>import("./genie-ajMbGru0.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>c(()=>import("./gherkin--30QC5Em.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>c(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>c(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>c(()=>import("./gleam-B430Bg39.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>c(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>c(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>c(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>c(()=>import("./gnuplot-CM8KxXT1.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>c(()=>import("./go-B1SYOhNW.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>c(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>c(()=>import("./groovy-DkBy-JyN.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>c(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>c(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>c(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c(()=>import("./haskell-BILxekzW.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>c(()=>import("./haxe-C5wWYbrZ.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>c(()=>import("./hcl-HzYwdGDm.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>c(()=>import("./hjson-T-Tgc4AT.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>c(()=>import("./hlsl-ifBTmRxC.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>c(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>c(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]),import.meta.url)},{id:"http",name:"HTTP",import:()=>c(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>c(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]),import.meta.url)},{id:"hy",name:"Hy",import:()=>c(()=>import("./hy-BMj5Y0dO.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>c(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]),import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>c(()=>import("./ini-BjABl1g7.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>c(()=>import("./java-xI-RfyKK.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>c(()=>import("./javascript-ySlJ1b_l.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>c(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]),import.meta.url)},{id:"jison",name:"Jison",import:()=>c(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]),import.meta.url)},{id:"json",name:"JSON",import:()=>c(()=>import("./json-BQoSv7ci.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>c(()=>import("./json5-w8dY5SsB.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>c(()=>import("./jsonc-TU54ms6u.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>c(()=>import("./jsonl-DREVFZK8.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>c(()=>import("./jsonnet-BfivnA6A.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c(()=>import("./jssm-P4WzXJd0.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>c(()=>import("./jsx-BAng5TT0.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>c(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]),import.meta.url)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c(()=>import("./kotlin-B5lbUyaz.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c(()=>import("./kusto-mebxcVVE.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>c(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c(()=>import("./lean-XBlWyCtg.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>c(()=>import("./less-BfCpw3nA.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>c(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]),import.meta.url)},{id:"log",name:"Log file",import:()=>c(()=>import("./log-Cc5clBb7.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>c(()=>import("./logo-IuBKFhSY.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>c(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]),import.meta.url)},{id:"luau",name:"Luau",import:()=>c(()=>import("./luau-Du5NY7AG.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c(()=>import("./make-Bvotw-X0.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c(()=>import("./markdown-UIAJJxZW.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>c(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>c(()=>import("./matlab-D9-PGadD.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>c(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>c(()=>import("./mdx-sdHcTMYB.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c(()=>import("./mermaid-Ci6OQyBP.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c(()=>import("./mipsasm-BC5c_5Pe.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>c(()=>import("./mojo-Tz6hzZYG.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>c(()=>import("./move-DB_GagMm.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c(()=>import("./narrat-DLbgOhZU.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c(()=>import("./nextflow-B0XVJmRM.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>c(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]),import.meta.url)},{id:"nim",name:"Nim",import:()=>c(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]),import.meta.url)},{id:"nix",name:"Nix",import:()=>c(()=>import("./nix-shcSOmrb.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c(()=>import("./nushell-D4Tzg5kh.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c(()=>import("./objective-c-Deuh7S70.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>c(()=>import("./objective-cpp-BUEGK8hf.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>c(()=>import("./ocaml-BNioltXt.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>c(()=>import("./pascal-JqZropPD.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>c(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]),import.meta.url)},{id:"php",name:"PHP",import:()=>c(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>c(()=>import("./plsql-LKU2TuZ1.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c(()=>import("./po-BFLt1xDp.js"),[],import.meta.url)},{id:"polar",name:"Polar",import:()=>c(()=>import("./polar-DKykz6zU.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>c(()=>import("./postcss-B3ZDOciz.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>c(()=>import("./powerquery-CSHBycmS.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>c(()=>import("./powershell-BIEUsx6d.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>c(()=>import("./prisma-B48N-Iqd.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>c(()=>import("./prolog-BY-TUvya.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c(()=>import("./proto-zocC4JxJ.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>c(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>c(()=>import("./puppet-Cza_XSSt.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>c(()=>import("./purescript-Bg-kzb6g.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>c(()=>import("./python-DhUJRlN_.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>c(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>c(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>c(()=>import("./qss-DhMKtDLN.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>c(()=>import("./r-CwjWoCRV.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>c(()=>import("./racket-CzouJOBO.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c(()=>import("./raku-B1bQXN8T.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>c(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>c(()=>import("./reg-5LuOXUq_.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c(()=>import("./regexp-DWJ3fJO_.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>c(()=>import("./rel-DJlmqQ1C.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>c(()=>import("./riscv-QhoSD0DR.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>c(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]),import.meta.url)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>c(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]),import.meta.url)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c(()=>import("./rust-Be6lgOlo.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>c(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]),import.meta.url)},{id:"sass",name:"Sass",import:()=>c(()=>import("./sass-BJ4Li9vH.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>c(()=>import("./scala-DQVVAn-B.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>c(()=>import("./scheme-BJGe-b2p.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>c(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c(()=>import("./sdbl-BLhTXw86.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c(()=>import("./shellscript-atvbtKCR.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>c(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>c(()=>import("./smalltalk-DkLiglaE.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>c(()=>import("./solidity-C1w2a3ep.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>c(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>c(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c(()=>import("./splunk-Cf8iN4DR.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>c(()=>import("./sql-COK4E0Yg.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>c(()=>import("./ssh-config-BknIz3MU.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>c(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c(()=>import("./stylus-BeQkCIfX.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>c(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]),import.meta.url)},{id:"swift",name:"Swift",import:()=>c(()=>import("./swift-BSxZ-RaX.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>c(()=>import("./system-verilog-C7L56vO4.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>c(()=>import("./systemd-CUnW07Te.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c(()=>import("./talonscript-C1XDQQGZ.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>c(()=>import("./tasl-CQjiPCtT.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>c(()=>import("./tcl-DQ1-QYvQ.js"),[],import.meta.url)},{id:"templ",name:"Templ",import:()=>c(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c(()=>import("./terraform-BbSNqyBO.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>c(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]),import.meta.url)},{id:"toml",name:"TOML",import:()=>c(()=>import("./toml-CB2ApiWb.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>c(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>c(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>c(()=>import("./tsx-B6W0miNI.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>c(()=>import("./turtle-BMR_PYu6.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>c(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]),import.meta.url)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>c(()=>import("./typescript-Dj6nwHGl.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c(()=>import("./typespec-BpWG_bgh.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c(()=>import("./typst-BVUVsWT6.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>c(()=>import("./v-CAQ2eGtk.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>c(()=>import("./vala-BFOHcciG.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>c(()=>import("./vb-CdO5JTpU.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>c(()=>import("./verilog-CJaU5se_.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>c(()=>import("./vhdl-DYoNaHQp.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c(()=>import("./viml-m4uW47V2.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>c(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>c(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c(()=>import("./vyper-nyqBNV6O.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>c(()=>import("./wasm-C6j12Q_x.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c(()=>import("./wenyan-7A4Fjokl.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>c(()=>import("./wgsl-CB0Krxn9.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c(()=>import("./wikitext-DCE3LsBG.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c(()=>import("./wolfram-C3FkfJm5.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>c(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>c(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c(()=>import("./yaml-CVw76BM1.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>c(()=>import("./zenscript-HnGAYVZD.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>c(()=>import("./zig-BVz_zdnA.js"),[],import.meta.url)}],wi=Object.fromEntries(on.map(t=>[t.id,t.import])),Ri=Object.fromEntries(on.flatMap(t=>{var e;return((e=t.aliases)==null?void 0:e.map(r=>[r,t.import]))||[]})),Ii={...wi,...Ri},Ti=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CD_QflpE.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DRW-0cLl.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-GBQ2dnAY.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-CmCqftbK.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-CjDtw9vr.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-DBQeEorK.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-BEBZ7ncR.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)}],Pi=Object.fromEntries(Ti.map(t=>[t.id,t.import]));let se=class extends Error{constructor(e){super(e),this.name="ShikiError"}},tr=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Li(){return 2147483648}function Oi(){return typeof performance<"u"?performance.now():Date.now()}const Di=(t,e)=>t+(e-t%e)%e;async function xi(t){let e,r;const n={};function i(d){r=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(d,f,v){n.HEAPU8.copyWithin(d,f,f+v)}function a(d){try{return e.grow(d-r.byteLength+65535>>>16),i(e.buffer),1}catch{}}function s(d){const f=n.HEAPU8.length;d=d>>>0;const v=Li();if(d>v)return!1;for(let E=1;E<=4;E*=2){let C=f*(1+.2/E);C=Math.min(C,d+100663296);const b=Math.min(v,Di(Math.max(d,C),65536));if(a(b))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,f,v=1024){const E=f+v;let C=f;for(;d[C]&&!(C>=E);)++C;if(C-f>16&&d.buffer&&l)return l.decode(d.subarray(f,C));let b="";for(;f<C;){let S=d[f++];if(!(S&128)){b+=String.fromCharCode(S);continue}const T=d[f++]&63;if((S&224)===192){b+=String.fromCharCode((S&31)<<6|T);continue}const L=d[f++]&63;if((S&240)===224?S=(S&15)<<12|T<<6|L:S=(S&7)<<18|T<<12|L<<6|d[f++]&63,S<65536)b+=String.fromCharCode(S);else{const B=S-65536;b+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return b}function p(d,f){return d?u(n.HEAPU8,d,f):""}const m={emscripten_get_now:Oi,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await t({env:m,wasi_snapshot_preview1:m});e=f.memory,i(e.buffer),Object.assign(n,f),n.UTF8ToString=p}return await h(),n}var Ni=Object.defineProperty,Vi=(t,e,r)=>e in t?Ni(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,N=(t,e,r)=>(Vi(t,typeof e!="symbol"?e+"":e,r),r);let $=null;function Mi(t){throw new tr(t.UTF8ToString(t.getLastOnigError()))}class mt{constructor(e){N(this,"utf16Length"),N(this,"utf8Length"),N(this,"utf16Value"),N(this,"utf8Value"),N(this,"utf16OffsetToUtf8"),N(this,"utf8OffsetToUtf16");const r=e.length,n=mt._utf8ByteLength(e),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const s=new Uint8Array(n);let l=0;for(let u=0;u<r;u++){const p=e.charCodeAt(u);let m=p,h=!1;if(p>=55296&&p<=56319&&u+1<r){const d=e.charCodeAt(u+1);d>=56320&&d<=57343&&(m=(p-55296<<10)+65536|d-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),m<=127?a[l+0]=u:m<=2047?(a[l+0]=u,a[l+1]=u):m<=65535?(a[l+0]=u,a[l+1]=u,a[l+2]=u):(a[l+0]=u,a[l+1]=u,a[l+2]=u,a[l+3]=u)),m<=127?s[l++]=m:m<=2047?(s[l++]=192|(m&1984)>>>6,s[l++]=128|(m&63)>>>0):m<=65535?(s[l++]=224|(m&61440)>>>12,s[l++]=128|(m&4032)>>>6,s[l++]=128|(m&63)>>>0):(s[l++]=240|(m&1835008)>>>18,s[l++]=128|(m&258048)>>>12,s[l++]=128|(m&4032)>>>6,s[l++]=128|(m&63)>>>0),h&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let r=0;for(let n=0,i=e.length;n<i;n++){const o=e.charCodeAt(n);let a=o,s=!1;if(o>=55296&&o<=56319&&n+1<i){const l=e.charCodeAt(n+1);l>=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?r+=1:a<=2047?r+=2:a<=65535?r+=3:r+=4,s&&n++}return r}createString(e){const r=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,r),r}}const J=class{constructor(t){if(N(this,"id",++J.LAST_ID),N(this,"_onigBinding"),N(this,"content"),N(this,"utf16Length"),N(this,"utf8Length"),N(this,"utf16OffsetToUtf8"),N(this,"utf8OffsetToUtf16"),N(this,"ptr"),!$)throw new tr("Must invoke loadWasm first.");this._onigBinding=$,this.content=t;const e=new mt(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!J._sharedPtrInUse?(J._sharedPtr||(J._sharedPtr=$.omalloc(1e4)),J._sharedPtrInUse=!0,$.HEAPU8.set(e.utf8Value,J._sharedPtr),this.ptr=J._sharedPtr):this.ptr=e.createString($)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===J._sharedPtr?J._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Ge=J;N(Ge,"LAST_ID",0);N(Ge,"_sharedPtr",0);N(Ge,"_sharedPtrInUse",!1);class $i{constructor(e){if(N(this,"_onigBinding"),N(this,"_ptr"),!$)throw new tr("Must invoke loadWasm first.");const r=[],n=[];for(let s=0,l=e.length;s<l;s++){const u=new mt(e[s]);r[s]=u.createString($),n[s]=u.utf8Length}const i=$.omalloc(4*e.length);$.HEAPU32.set(r,i/4);const o=$.omalloc(4*e.length);$.HEAPU32.set(n,o/4);const a=$.createOnigScanner(i,o,e.length);for(let s=0,l=e.length;s<l;s++)$.ofree(r[s]);$.ofree(o),$.ofree(i),a===0&&Mi($),this._onigBinding=$,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new Ge(e);const o=this._findNextMatchSync(e,r,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,r,!1,i)}_findNextMatchSync(e,r,n,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(r),i);if(a===0)return null;const s=o.HEAPU32;let l=a/4;const u=s[l++],p=s[l++],m=[];for(let h=0;h<p;h++){const d=e.convertUtf8OffsetToUtf16(s[l++]),f=e.convertUtf8OffsetToUtf16(s[l++]);m[h]={start:d,end:f,length:f-d}}return{index:u,captureIndices:m}}}function Gi(t){return typeof t.instantiator=="function"}function Bi(t){return typeof t.default=="function"}function Fi(t){return typeof t.data<"u"}function Ui(t){return typeof Response<"u"&&t instanceof Response}function ji(t){var e;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let We;function Hi(t){if(We)return We;async function e(){$=await xi(async r=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),Gi(n)?n=await n.instantiator(r):Bi(n)?n=await n.default(r):(Fi(n)&&(n=n.data),Ui(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Wi(n)(r):n=await zi(n)(r):ji(n)?n=await At(n)(r):n instanceof WebAssembly.Module?n=await At(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await At(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return We=e(),We}function At(t){return e=>WebAssembly.instantiate(t,e)}function Wi(t){return e=>WebAssembly.instantiateStreaming(t,e)}function zi(t){return async e=>{const r=await t.arrayBuffer();return WebAssembly.instantiate(r,e)}}let qi;function Ki(){return qi}async function dt(t){return t&&await Hi(t),{createScanner(e){return new $i(e.map(r=>typeof r=="string"?r:r.source))},createString(e){return new Ge(e)}}}let Je=!1,an=!1;function Cu(t=!0,e=!1){Je=t,an=e}function ee(t,e=3){if(Je&&!(typeof Je=="number"&&e>Je)){if(an)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}function Xi(t){return rr(t)}function rr(t){return Array.isArray(t)?Qi(t):t instanceof RegExp?t:typeof t=="object"?Ji(t):t}function Qi(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=rr(t[r]);return e}function Ji(t){let e={};for(let r in t)e[r]=rr(t[r]);return e}function sn(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function ln(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?ln(t.substring(0,t.length-1)):t.substr(~e+1)}var St=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ze=class{static hasCaptures(t){return t===null?!1:(St.lastIndex=0,St.test(t))}static replaceCaptures(t,e,r){return t.replace(St,(n,i,o,a)=>{let s=r[parseInt(i||o,10)];if(s){let l=e.substring(s.start,s.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 n})}};function un(t,e){return t<e?-1:t>e?1:0}function cn(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let o=un(t[i],e[i]);if(o!==0)return o}return 0}return r-n}function vr(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 pn(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var mn=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},tt=class{constructor(t,e,r){g(this,"_cachedMatchRoot",new mn(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(eo(t),e)}static createFromParsedTheme(t,e){return ro(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>Zi(t.parent,i.parentScopes));return n?new dn(n.fontStyle,n.foreground,n.background):null}},wt=class Ze{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ze(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ze(r,e[n]);return r}push(e){return new Ze(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function Zi(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!Yi(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Yi(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var dn=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function eo(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),s=m.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let m=a.settings.fontStyle.split(" ");for(let h=0,d=m.length;h<d;h++)switch(m[h]){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 u=null;typeof a.settings.foreground=="string"&&vr(a.settings.foreground)&&(u=a.settings.foreground);let p=null;typeof a.settings.background=="string"&&vr(a.settings.background)&&(p=a.settings.background);for(let m=0,h=s.length;m<h;m++){let f=s[m].trim().split(" "),v=f[f.length-1],E=null;f.length>1&&(E=f.slice(0,f.length-1),E.reverse()),r[n++]=new to(v,E,i,l,u,p)}}return r}var to=class{constructor(t,e,r,n,i,o){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},ae=(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))(ae||{});function ro(t,e){t.sort((l,u)=>{let p=un(l.scope,u.scope);return p!==0||(p=cn(l.parentScopes,u.parentScopes),p!==0)?p:l.index-u.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new no(e),a=new dn(r,o.getId(n),o.getId(i)),s=new oo(new Gt(0,null,-1,0,0),[]);for(let l=0,u=t.length;l<u;l++){let p=t[l];s.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new tt(o,a,s)}var no=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;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)}},io=Object.freeze([]),Gt=class hn{constructor(e,r,n,i,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=r||io,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new hn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},oo=class Bt{constructor(e,r=[],n={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Bt._cmpBySpecificity),r}insert(e,r,n,i,o,a){if(r===""){this._doInsertHere(e,n,i,o,a);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let p;this._children.hasOwnProperty(l)?p=this._children[l]:(p=new Bt(this._mainRule.clone(),Gt.cloneArr(this._rulesWithParentScopes)),this._children[l]=p),p.insert(e+1,u,n,i,o,a)}_doInsertHere(e,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(cn(l.parentScopes,r)===0){l.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Gt(e,r,n,i,o))}},Ae=class q{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=q.getLanguageId(e),n=q.getTokenType(e),i=q.getFontStyle(e),o=q.getForeground(e),a=q.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,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,r,n,i,o,a,s){let l=q.getLanguageId(e),u=q.getTokenType(e),p=q.containsBalancedBrackets(e)?1:0,m=q.getFontStyle(e),h=q.getForeground(e),d=q.getBackground(e);return r!==0&&(l=r),n!==8&&(u=n),i!==null&&(p=i?1:0),o!==-1&&(m=o),a!==0&&(h=a),s!==0&&(d=s),(l<<0|u<<8|p<<10|m<<11|h<<15|d<<24)>>>0}};function rt(t,e){const r=[],n=ao(t);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(r.push({matcher:u,priority:l}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(br(i)){const l=[];do l.push(i),i=n.next();while(br(i));return u=>e(l,u)}return null}function a(){const l=[];let u=o();for(;u;)l.push(u),u=o();return p=>l.every(m=>m(p))}function s(){const l=[];let u=a();for(;u&&(l.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return p=>l.some(m=>m(p))}}function br(t){return!!t&&!!t.match(/[\w\.:]+/)}function ao(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function fn(t){typeof t.dispose=="function"&&t.dispose()}var Oe=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},so=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},lo=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},uo=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oe(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new lo;for(const r of t)co(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Oe){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function co(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=r.lookup(e);t instanceof Oe?Ye({baseGrammar:o,selfGrammar:i},n):Ft(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=r.injections(t.scopeName);if(a)for(const s of a)n.add(new Oe(s))}function Ft(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];nt([n],e,r)}}function Ye(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&nt(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&nt(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function nt(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?sn({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&nt(n.patterns,{...e,repository:i},r);const o=n.include;if(!o)continue;const a=gn(o);switch(a.kind){case 0:Ye({...e,selfGrammar:e.baseGrammar},r);break;case 1:Ye(e,r);break;case 2:Ft(a.ruleName,{...e,repository:i},r);break;case 3:case 4:const s=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(s){const l={baseGrammar:e.baseGrammar,selfGrammar:s,repository:i};a.kind===4?Ft(a.ruleName,l,r):Ye(l,r)}else a.kind===4?r.add(new so(a.scopeName,a.ruleName)):r.add(new Oe(a.scopeName));break}}}var po=class{constructor(){g(this,"kind",0)}},mo=class{constructor(){g(this,"kind",1)}},ho=class{constructor(t){g(this,"kind",2);this.ruleName=t}},fo=class{constructor(t){g(this,"kind",3);this.scopeName=t}},go=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function gn(t){if(t==="$base")return new po;if(t==="$self")return new mo;const e=t.indexOf("#");if(e===-1)return new fo(t);if(e===0)return new ho(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new go(r,n)}}var _o=/\\(\d+)/,kr=/\\(\d+)/g,yo=-1,_n=-2;var Be=class{constructor(t,e,r,n){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=ze.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=ze.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${ln(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:ze.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ze.replaceCaptures(this._contentName,t,e)}},Eo=class extends Be{constructor(e,r,n,i,o){super(e,r,n,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,r){throw new Error("Not supported!")}compile(e,r){throw new Error("Not supported!")}compileAG(e,r,n,i){throw new Error("Not supported!")}},Co=class extends Be{constructor(e,r,n,i,o){super(e,r,n,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new De(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,r){r.push(this._match)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new xe,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ar=class extends Be{constructor(e,r,n,i,o){super(e,r,n,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,r){for(const n of this.patterns)e.getRule(n).collectPatterns(e,r)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new xe,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ut=class extends Be{constructor(e,r,n,i,o,a,s,l,u,p){super(e,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new De(o,this.id),this.beginCaptures=a,this._end=new De(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.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(e,r){return this._end.resolveBackReferences(e,r)}collectPatterns(e,r){r.push(this._begin)}compile(e,r){return this._getCachedCompiledPatterns(e,r).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e,r).compileAG(e,n,i)}_getCachedCompiledPatterns(e,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new xe;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},it=class extends Be{constructor(e,r,n,i,o,a,s,l,u){super(e,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new De(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new De(s,_n),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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(e,r){return this._while.resolveBackReferences(e,r)}collectPatterns(e,r){r.push(this._begin)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new xe;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,r){return this._getCachedCompiledWhilePatterns(e,r).compile(e)}compileWhileAG(e,r,n,i){return this._getCachedCompiledWhilePatterns(e,r).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new xe,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},yn=class F{static createCaptureRule(e,r,n,i,o){return e.registerRule(a=>new Eo(r,a,n,i,o))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Co(e.$vscodeTextmateLocation,e.id,e.name,e.match,F._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=sn({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Ar(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,F._compilePatterns(o,r,n))}return e.while?new it(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,F._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,F._compileCaptures(e.whileCaptures||e.captures,r,n),F._compilePatterns(e.patterns,r,n)):new Ut(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,F._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,F._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,F._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;e[a].patterns&&(l=F.getCompiledRuleId(e[a],r,n)),i[s]=F.createCaptureRule(r,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,l)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let o=0,a=e.length;o<a;o++){const s=e[o];let l=-1;if(s.include){const u=gn(s.include);switch(u.kind){case 0:case 1:l=F.getCompiledRuleId(n[s.include],r,n);break;case 2:let p=n[u.ruleName];p&&(l=F.getCompiledRuleId(p,r,n));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,d=r.getExternalGrammar(m,n);if(d)if(h){let f=d.repository[h];f&&(l=F.getCompiledRuleId(f,r,d.repository))}else l=F.getCompiledRuleId(d.repository.$self,r,d.repository);break}}else l=F.getCompiledRuleId(s,r,n);if(l!==-1){const u=r.getRule(l);let p=!1;if((u instanceof Ar||u instanceof Ut||u instanceof it)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},De=class En{constructor(e,r){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],a=!1;for(let s=0;s<n;s++)if(e.charAt(s)==="\\"&&s+1<n){const u=e.charAt(s+1);u==="z"?(o.push(e.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(u==="A"||u==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=_o.test(this.source):this.hasBackReferences=!1}clone(){return new En(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return kr.lastIndex=0,this.source.replace(kr,(i,o)=>pn(n[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=[],r=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),e[o]=s,r[o]=s,n[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):l==="G"?(e[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(e[o+1]=l,r[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},xe=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");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(r=>r.source);this._cached=new Sr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new Sr(t,n,this._items.map(i=>i.ruleId))}},Sr=class{constructor(t,e,r){g(this,"scanner");this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
|
-
`)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Rt=class{constructor(t,e){this.languageId=t,this.tokenType=e}},oe,vo=(oe=class{constructor(e,r){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new mn(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Rt(r,n)}));this._defaultAttributes=new Rt(e,8),this._embeddedLanguagesMatcher=new bo(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?oe._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(oe.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[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!")}},g(oe,"_NULL_SCOPE_METADATA",new Rt(0,0)),g(oe,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),oe),bo=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>pn(r));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])}},wr=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Cn(t,e,r,n,i,o,a,s){const l=e.content.length;let u=!1,p=-1;if(a){const d=ko(t,e,r,n,i,o);i=d.stack,n=d.linePos,r=d.isFirstLine,p=d.anchorPosition}const m=Date.now();for(;!u;){if(s!==0&&Date.now()-m>s)return new wr(i,!0);h()}return new wr(i,!1);function h(){const d=Ao(t,e,r,n,i,p);if(!d){o.produce(i,l),u=!0;return}const f=d.captureIndices,v=d.matchedRuleId,E=f&&f.length>0?f[0].end>n:!1;if(v===yo){const C=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),Te(t,e,r,i,o,C.endCaptures,f),o.produce(i,f[0].end);const b=i;if(i=i.parent,p=b.getAnchorPos(),!E&&b.getEnterPos()===n){i=b,o.produce(i,l),u=!0;return}}else{const C=t.getRule(v);o.produce(i,f[0].start);const b=i,S=C.getName(e.content,f),T=i.contentNameScopesList.pushAttributed(S,t);if(i=i.push(v,n,p,f[0].end===l,null,T,T),C instanceof Ut){const L=C;Te(t,e,r,i,o,L.beginCaptures,f),o.produce(i,f[0].end),p=f[0].end;const B=L.getContentName(e.content,f),O=T.pushAttributed(B,t);if(i=i.withContentNameScopesList(O),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(e.content,f))),!E&&b.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(C instanceof it){const L=C;Te(t,e,r,i,o,L.beginCaptures,f),o.produce(i,f[0].end),p=f[0].end;const B=L.getContentName(e.content,f),O=T.pushAttributed(B,t);if(i=i.withContentNameScopesList(O),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(e.content,f))),!E&&b.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(Te(t,e,r,i,o,C.captures,f),o.produce(i,f[0].end),i=i.pop(),!E){i=i.safePop(),o.produce(i,l),u=!0;return}}f[0].end>n&&(n=f[0].end,r=!1)}}function ko(t,e,r,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const u=l.getRule(t);u instanceof it&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:u,findOptions:p}=Ro(l.rule,t,l.stack.endRule,r,n===a),m=u.findNextMatchSync(e,n,p);if(m){if(m.ruleId!==_n){i=l.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(l.stack,m.captureIndices[0].start),Te(t,e,r,l.stack,o,l.rule.whileCaptures,m.captureIndices),o.produce(l.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:r}}function Ao(t,e,r,n,i,o){const a=So(t,e,r,n,i,o),s=t.getInjections();if(s.length===0)return a;const l=wo(s,t,e,r,n,i,o);if(!l)return a;if(!a)return l;const u=a.captureIndices[0].start,p=l.captureIndices[0].start;return p<u||l.priorityMatch&&p===u?l:a}function So(t,e,r,n,i,o){const a=i.getRule(t),{ruleScanner:s,findOptions:l}=vn(a,t,i.endRule,r,n===o),u=s.findNextMatchSync(e,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function wo(t,e,r,n,i,o,a){let s=Number.MAX_VALUE,l=null,u,p=0;const m=o.contentNameScopesList.getScopeNames();for(let h=0,d=t.length;h<d;h++){const f=t[h];if(!f.matcher(m))continue;const v=e.getRule(f.ruleId),{ruleScanner:E,findOptions:C}=vn(v,e,null,n,i===a),b=E.findNextMatchSync(r,i,C);if(!b)continue;const S=b.captureIndices[0].start;if(!(S>=s)&&(s=S,l=b.captureIndices,u=b.ruleId,p=f.priority,s===i))break}return l?{priorityMatch:p===-1,captureIndices:l,matchedRuleId:u}:null}function vn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function Ro(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function Te(t,e,r,n,i,o,a){if(o.length===0)return;const s=e.content,l=Math.min(o.length,a.length),u=[],p=a[0].end;for(let m=0;m<l;m++){const h=o[m];if(h===null)continue;const d=a[m];if(d.length===0)continue;if(d.start>p)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,d.start):i.produce(n,d.start),h.retokenizeCapturedWithRuleId){const v=h.getName(s,a),E=n.contentNameScopesList.pushAttributed(v,t),C=h.getContentName(s,a),b=E.pushAttributed(C,t),S=n.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,E,b),T=t.createOnigString(s.substring(0,d.end));Cn(t,T,r&&d.start===0,d.start,S,i,!1,0),fn(T);continue}const f=h.getName(s,a);if(f!==null){const E=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,t);u.push(new Io(E,d.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Io=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function To(t,e,r,n,i,o,a,s){return new Lo(t,e,r,n,i,o,a,s)}function Rr(t,e,r,n,i){const o=rt(e,ot),a=yn.getCompiledRuleId(r,n,i.repository);for(const s of o)t.push({debugSelector:e,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function ot(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(Po(e[i],n))return r=i+1,!0;return!1})}function Po(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var Lo=class{constructor(t,e,r,n,i,o,a,s){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new vo(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Ir(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=rt(l,ot);for(const p of u)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[l]})}}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:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let a in i)Rr(e,a,i[a],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&Rr(e,l,s,this,s)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=Ir(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=yn.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===jt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=Ae.set(0,u.languageId,u.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=Pe.createRootAndLookUpScopeName(h,m,this):d=Pe.createRoot("unknown",m),e=new jt(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,e.reset();t=t+`
|
|
4
|
-
`;const o=this.createOnigString(t),a=o.content.length,s=new Do(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Cn(this,o,i,0,e,s,!0,n);return fn(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Ir(t,e){return t=Xi(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 Pe=class Z{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=(e==null?void 0:e.scopePath)??null;for(const o of r)i=wt.push(i,o.scopeNames),n=new Z(n,i,o.encodedTokenAttributes);return n}static createRoot(e,r){return new Z(null,new wt(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),o=new wt(null,e),a=n.themeProvider.themeMatch(o),s=Z.mergeAttributes(r,i,a);return new Z(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return Z.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),Ae.set(e,r.languageId,r.tokenType,null,i,o,a)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return Z._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const o of n)i=Z._pushAttributed(i,o,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),o=e.scopePath.push(r),a=n.themeProvider.themeMatch(o),s=Z.mergeAttributes(e.tokenAttributes,i,a);return new Z(e,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===e?r.reverse():void 0}},K,jt=(K=class{constructor(e,r,n,i,o,a,s,l){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(e){return e===null?!1:K._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?Pe.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){K._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,o,a,s){return new K(this,e,r,n,i,o,a,s)}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,r){var n,i;return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,r}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 K(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var e,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,r){const n=Pe.fromExtension((e==null?void 0:e.nameScopesList)??null,r.nameScopesList);return new K(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Pe.fromExtension(n,r.contentNameScopesList))}},g(K,"NULL",new K(null,0,0,0,!1,null,null,null)),K),Oo=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):rt(r,ot).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>rt(r,ot).map(n=>n.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}},Do=class{constructor(t,e,r,n){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){var n;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(t==null?void 0:t.tokenAttributes)??0,o=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(t==null?void 0:t.getScopeNames())??[];for(const s of this._tokenTypeOverrides)s.matcher(a)&&(i=Ae.set(i,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(i=Ae.set(i,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const r=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),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 r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},xo=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}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,r,n,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,To(t,o,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},No=class{constructor(e){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new xo(tt.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(tt.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new Oo(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,o){const a=new uo(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(e,r,n,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,o)}},Ht=jt.NULL;const Vo=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Fe{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}Fe.prototype.normal={};Fe.prototype.property={};Fe.prototype.space=void 0;function bn(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new Fe(r,n,e)}function Wt(t){return t.toLowerCase()}class H{constructor(e,r){this.attribute=r,this.property=e}}H.prototype.attribute="";H.prototype.booleanish=!1;H.prototype.boolean=!1;H.prototype.commaOrSpaceSeparated=!1;H.prototype.commaSeparated=!1;H.prototype.defined=!1;H.prototype.mustUseProperty=!1;H.prototype.number=!1;H.prototype.overloadedBoolean=!1;H.prototype.property="";H.prototype.spaceSeparated=!1;H.prototype.space=void 0;let Mo=0;const w=_e(),x=_e(),zt=_e(),y=_e(),P=_e(),fe=_e(),W=_e();function _e(){return 2**++Mo}const qt=Object.freeze(Object.defineProperty({__proto__:null,boolean:w,booleanish:x,commaOrSpaceSeparated:W,commaSeparated:fe,number:y,overloadedBoolean:zt,spaceSeparated:P},Symbol.toStringTag,{value:"Module"})),It=Object.keys(qt);class nr extends H{constructor(e,r,n,i){let o=-1;if(super(e,r),Tr(this,"space",i),typeof n=="number")for(;++o<It.length;){const a=It[o];Tr(this,It[o],(n&qt[a])===qt[a])}}}nr.prototype.defined=!0;function Tr(t,e,r){r&&(t[e]=r)}function Se(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const o=new nr(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,r[Wt(n)]=n,r[Wt(o.attribute)]=n}return new Fe(e,r,t.space)}const kn=Se({properties:{ariaActiveDescendant:null,ariaAtomic:x,ariaAutoComplete:null,ariaBusy:x,ariaChecked:x,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:P,ariaCurrent:null,ariaDescribedBy:P,ariaDetails:null,ariaDisabled:x,ariaDropEffect:P,ariaErrorMessage:null,ariaExpanded:x,ariaFlowTo:P,ariaGrabbed:x,ariaHasPopup:null,ariaHidden:x,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P,ariaLevel:y,ariaLive:null,ariaModal:x,ariaMultiLine:x,ariaMultiSelectable:x,ariaOrientation:null,ariaOwns:P,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:x,ariaReadOnly:x,ariaRelevant:null,ariaRequired:x,ariaRoleDescription:P,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:x,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function An(t,e){return e in t?t[e]:e}function Sn(t,e){return An(t,e.toLowerCase())}const $o=Se({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fe,acceptCharset:P,accessKey:P,action:null,allow:null,allowFullScreen:w,allowPaymentRequest:w,allowUserMedia:w,alpha:w,alt:null,as:null,async:w,autoCapitalize:null,autoComplete:P,autoFocus:w,autoPlay:w,blocking:P,capture:null,charSet:null,checked:w,cite:null,className:P,closedBy:null,colorSpace:null,cols:y,colSpan:y,command:null,commandFor:null,content:null,contentEditable:x,controls:w,controlsList:P,coords:y|fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:w,defer:w,dir:null,dirName:null,disabled:w,download:zt,draggable:x,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:w,formTarget:null,headers:P,height:y,hidden:zt,high:y,href:null,hrefLang:null,htmlFor:P,httpEquiv:P,id:null,imageSizes:null,imageSrcSet:null,inert:w,inputMode:null,integrity:null,is:null,isMap:w,itemId:null,itemProp:P,itemRef:P,itemScope:w,itemType:P,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:w,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:w,muted:w,name:null,nonce:null,noModule:w,noValidate:w,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:w,optimum:y,pattern:null,ping:P,placeholder:null,playsInline:w,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:w,referrerPolicy:null,rel:P,required:w,reversed:w,rows:y,rowSpan:y,sandbox:P,scope:null,scoped:w,seamless:w,selected:w,shadowRootClonable:w,shadowRootCustomElementRegistry:w,shadowRootDelegatesFocus:w,shadowRootMode:null,shadowRootSerializable:w,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:x,src:null,srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:w,useMap:null,value:x,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:w,declare:w,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:w,noHref:w,noShade:w,noWrap:w,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:x,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:w,disablePictureInPicture:w,disableRemotePlayback:w,exportParts:fe,part:P,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:Sn}),Go=Se({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",maskType:"mask-type",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:W,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:P,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:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:w,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,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:fe,g2:fe,glyphName:fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:W,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:y,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:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:W,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:W,rev:W,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:W,requiredFeatures:W,requiredFonts:W,requiredFormats:W,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:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:W,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:W,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:W,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:An}),wn=Se({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()}}),Rn=Se({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sn}),In=Se({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),Bo=/[A-Z]/g,Pr=/-[a-z]/g,Fo=/^data[-\w.:]+$/i;function Uo(t,e){const r=Wt(e);let n=e,i=H;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Fo.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(Pr,Ho);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!Pr.test(o)){let a=o.replace(Bo,jo);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=nr}return new i(n,e)}function jo(t){return"-"+t.toLowerCase()}function Ho(t){return t.charAt(1).toUpperCase()}const Wo=bn([kn,$o,wn,Rn,In],"html"),Tn=bn([kn,Go,wn,Rn,In],"svg"),Lr={}.hasOwnProperty;function zo(t,e){const r=e||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&Lr.call(i,t)){const l=String(i[t]);a=Lr.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const qo=/["&'<>`]/g,Ko=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qo=/[|\\{}()[\]^$+*?.]/g,Or=new WeakMap;function Jo(t,e){if(t=t.replace(e.subset?Zo(e.subset):qo,n),e.subset||e.escapeOnly)return t;return t.replace(Ko,r).replace(Xo,n);function r(i,o,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function n(i,o,a){return e.format(i.charCodeAt(0),a.charCodeAt(o+1),e)}}function Zo(t){let e=Or.get(t);return e||(e=Yo(t),Or.set(t,e)),e}function Yo(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(Qo,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ea=/[\dA-Fa-f]/;function ta(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!ea.test(String.fromCharCode(e))?n:n+";"}const ra=/\d/;function na(t,e,r){const n="&#"+String(t);return r&&e&&!ra.test(String.fromCharCode(e))?n:n+";"}const ia=["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"],Tt={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:"€"},oa=["cent","copy","divide","gt","lt","not","para","times"],Pn={}.hasOwnProperty,Kt={};let qe;for(qe in Tt)Pn.call(Tt,qe)&&(Kt[Tt[qe]]=qe);const aa=/[^\dA-Za-z]/;function sa(t,e,r,n){const i=String.fromCharCode(t);if(Pn.call(Kt,i)){const o=Kt[i],a="&"+o;return r&&ia.includes(o)&&!oa.includes(o)&&(!n||e&&e!==61&&aa.test(String.fromCharCode(e)))?a:a+";"}return""}function la(t,e,r){let n=ta(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=sa(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=na(t,e,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ve(t,e){return Jo(t,Object.assign({format:la},e))}const ua=/^>|^->|<!--|-->|--!>|<!-$/g,ca=[">"],pa=["<",">"];function ma(t,e,r,n){return n.settings.bogusComments?"<?"+ve(t.value,Object.assign({},n.settings.characterReferences,{subset:ca}))+">":"<!--"+t.value.replace(ua,i)+"-->";function i(o){return ve(o,Object.assign({},n.settings.characterReferences,{subset:pa}))}}function da(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Dr(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}function ha(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function fa(t){return t.join(" ").trim()}const ga=/[ \t\n\f\r]/g;function ir(t){return typeof t=="object"?t.type==="text"?xr(t.value):!1:xr(t)}function xr(t){return t.replace(ga,"")===""}const M=On(1),Ln=On(-1),_a=[];function On(t){return e;function e(r,n,i){const o=r?r.children:_a;let a=(n||0)+t,s=o[a];if(!i)for(;s&&ir(s);)a+=t,s=o[a];return s}}const ya={}.hasOwnProperty;function Dn(t){return e;function e(r,n,i){return ya.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const or=Dn({body:Ca,caption:Pt,colgroup:Pt,dd:Aa,dt:ka,head:Pt,html:Ea,li:ba,optgroup:Sa,option:wa,p:va,rp:Nr,rt:Nr,tbody:Ia,td:Vr,tfoot:Ta,th:Vr,thead:Ra,tr:Pa});function Pt(t,e,r){const n=M(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ir(n.value.charAt(0)))}function Ea(t,e,r){const n=M(r,e);return!n||n.type!=="comment"}function Ca(t,e,r){const n=M(r,e);return!n||n.type!=="comment"}function va(t,e,r){const n=M(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function ba(t,e,r){const n=M(r,e);return!n||n.type==="element"&&n.tagName==="li"}function ka(t,e,r){const n=M(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Aa(t,e,r){const n=M(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Nr(t,e,r){const n=M(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Sa(t,e,r){const n=M(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function wa(t,e,r){const n=M(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function Ra(t,e,r){const n=M(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Ia(t,e,r){const n=M(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Ta(t,e,r){return!M(r,e)}function Pa(t,e,r){const n=M(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function Vr(t,e,r){const n=M(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const La=Dn({body:xa,colgroup:Na,head:Da,html:Oa,tbody:Va});function Oa(t){const e=M(t,-1);return!e||e.type!=="comment"}function Da(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function xa(t){const e=M(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&ir(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Na(t,e,r){const n=Ln(r,e),i=M(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&or(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Va(t,e,r){const n=Ln(r,e),i=M(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&or(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ke={name:[[`
|
|
5
|
-
\f\r &/=>`.split(""),`
|
|
6
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
-
\f\r &>`.split(""),`\0
|
|
10
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ma(t,e,r,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const s=[];let l;i.space==="html"&&t.tagName==="svg"&&(n.schema=Tn);const u=$a(n,t.properties),p=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,p&&(a=!1),(u||!o||!La(t,e,r))&&(s.push("<",t.tagName,u?" "+u:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(p),!a&&(!o||!or(t,e,r))&&s.push("</"+t.tagName+">"),s.join("")}function $a(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=Ga(t,i,e[i]);o&&r.push(o)}}for(;++n<r.length;){const o=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function Ga(t,e,r){const n=Uo(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let a=t.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=ve(n.attribute,Object.assign({},t.settings.characterReferences,{subset:Ke.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?ha:fa)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?l:(t.settings.preferUnquoted&&(s=ve(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ke.unquoted[i][o]}))),s!==r&&(t.settings.quoteSmart&&Dr(r,a)>Dr(r,t.alternative)&&(a=t.alternative),s=a+ve(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?Ke.single:Ke.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const Ba=["<","&"];function xn(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:ve(t.value,Object.assign({},n.settings.characterReferences,{subset:Ba}))}function Fa(t,e,r,n){return n.settings.allowDangerousHtml?t.value:xn(t,e,r,n)}function Ua(t,e,r,n){return n.all(t)}const ja=zo("type",{invalid:Ha,unknown:Wa,handlers:{comment:ma,doctype:da,element:Ma,raw:Fa,root:Ua,text:xn}});function Ha(t){throw new Error("Expected node, not `"+t+"`")}function Wa(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const za={},qa={},Ka=[];function Xa(t,e){const r=e||za,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Qa,all:Ja,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||Vo,characterReferences:r.characterReferences||qa,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Tn:Wo,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Qa(t,e,r){return ja(t,e,r,this)}function Ja(t){const e=[],r=t&&t.children||Ka;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}const ar=String.raw,Mr=ar`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,$r=ar`\u{E0061}-\u{E007A}`,Za=()=>new RegExp(ar`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${$r}]{2}[\u{E0030}-\u{E0039}${$r}]{1,3}\u{E007F}|${Mr}(?:\u200D${Mr})*`,"gu"),X=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ht(t,e,r,n){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,s="";for(const l of t.matchAll(i)){const{0:u,groups:{$skip:p}}=l;if(!p&&(!n||n===X.DEFAULT==!a)){r instanceof Function?s+=r(l,{context:a?X.CHAR_CLASS:X.DEFAULT,negated:o[o.length-1]}):s+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),s+=u}return s}function Ya(t,e,r,n){ht(t,e,r,n)}function es(t,e,r=0,n){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let o=0,a;for(;a=i.exec(t);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!n||n===X.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function Xe(t,e,r){return!!es(t,e,0,r)}function ts(t,e){const r=/\\?./gsu;r.lastIndex=e;let n=t.length,i=0,o=1,a;for(;a=r.exec(t);){const[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=a.index;break}}return t.slice(e,n)}const ge="$E$";class sr extends RegExp{constructor(r,n,i){if(r instanceof RegExp&&i)throw new Error("Cannot provide options when copying a regexp");const o=!!(i!=null&&i.useEmulationGroups),a=o?rs(r):null;super((a==null?void 0:a.expression)||r,n);g(this,"_captureMap");g(this,"_namesByIndex");const s=o?a:r instanceof sr?r:null;s&&(this._captureMap=s._captureMap,this._namesByIndex=s._namesByIndex)}exec(r){const n=RegExp.prototype.exec.call(this,r);if(!n||!this._captureMap)return n;const i=[...n];n.length=1;let o;this.hasIndices&&(o=[...n.indices],n.indices.length=1);for(let a=1;a<i.length;a++)if(this._captureMap[a].exclude){const s=this._captureMap[a].transfer;if(s&&n.length>s){n[s]=i[a];const l=this._namesByIndex[s];l&&(n.groups[l]=i[a],this.hasIndices&&(n.indices.groups[l]=o[a])),this.hasIndices&&(n.indices[s]=o[a])}}else n.push(i[a]),this.hasIndices&&n.indices.push(o[a]);return n}}function rs(t){const e=ge.replace(/\$/g,"\\$"),r=[{exclude:!1}],n={0:""};let i=0;return t=ht(t,String.raw`\((?:(?!\?)|\?<(?![=!])(?<name>[^>]+)>)(?<mark>(?:\$(?<transfer>[1-9]\d*))?${e})?`,({0:o,groups:{name:a,mark:s,transfer:l}})=>s?(r.push({exclude:!0,transfer:l&&+l}),o.slice(0,-s.length)):(i++,a&&(n[i]=a),r.push({exclude:!1}),o),X.DEFAULT),{_captureMap:r,_namesByIndex:n,expression:t}}const ns=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function is(t,e,r,n){return t.slice(0,e)+n+t.slice(e+r.length)}const Gr=new RegExp(String.raw`(?<noncapturingStart>${ns})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function os(t,e){if(!/\(\?>/.test(t))return t;const r="(?>",n=`(?:(?=(${e!=null&&e.useEmulationGroups?ge:""}`,i=[0];let o=0,a=0,s=NaN,l;do{l=!1;let u=0,p=0,m=!1,h;for(Gr.lastIndex=Number.isNaN(s)?0:s+n.length;h=Gr.exec(t);){const{0:d,index:f,groups:{capturingStart:v,noncapturingStart:E}}=h;if(d==="[")u++;else if(u)d==="]"&&u--;else if(d===r&&!m)s=f,m=!0;else if(m&&E)p++;else if(v)m?p++:(o++,i.push(o+a));else if(d===")"&&m){if(!p){a++,t=`${t.slice(0,s)}${n}${t.slice(s+r.length,f)}))<$$${a+o}>)${t.slice(f+1)}`,l=!0;break}p--}}}while(l);return t=ht(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:u,groups:{backrefNum:p,wrappedBackrefNum:m}})=>{if(p){const h=+p;if(h>i.length-1)throw new Error(`Backref "${u}" greater than number of captures`);return`\\${i[h]}`}return`\\${m}`},X.DEFAULT),t}const Nn=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Lt=new RegExp(String.raw`
|
|
13
|
-
\\(?: \d+
|
|
14
|
-
| c[A-Za-z]
|
|
15
|
-
| [gk]<[^>]+>
|
|
16
|
-
| [pPu]\{[^\}]+\}
|
|
17
|
-
| u[A-Fa-f\d]{4}
|
|
18
|
-
| x[A-Fa-f\d]{2}
|
|
19
|
-
)
|
|
20
|
-
| \((?: \? (?: [:=!>]
|
|
21
|
-
| <(?:[=!]|[^>]+>)
|
|
22
|
-
| [A-Za-z\-]+:
|
|
23
|
-
| \(DEFINE\)
|
|
24
|
-
))?
|
|
25
|
-
| (?<qBase>${Nn})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
26
|
-
| \\?.
|
|
27
|
-
`.replace(/\s+/g,""),"gsu");function as(t){if(!new RegExp(`${Nn}\\+`).test(t))return t;const e=[];let r=null,n=null,i="",o=0,a;for(Lt.lastIndex=0;a=Lt.exec(t);){const{0:s,index:l,groups:{qBase:u,qMod:p,invalidQ:m}}=a;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(p==="+"&&i&&!i.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(u))t=is(t,l+u.length,p,"");else{if(i===")"||i==="]"){const d=i===")"?r:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,d)}(?>${t.slice(d,l)}${u})${t.slice(l+s.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${u})${t.slice(l+s.length)}`;h+=4}Lt.lastIndex+=h}else s[0]==="("?e.push(l):s===")"&&(r=e.length?e.pop():null);i=s}return t}const z=String.raw,ss=z`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Xt=z`\(\?R=(?<rDepth>[^\)]+)\)|${ss}`,ft=z`\(\?<(?![=!])(?<captureName>[^>]+)>`,ue=new RegExp(z`${ft}|${Xt}|\(\?|\\?.`,"gsu"),Ot="Cannot use multiple overlapping recursions",Qt=new RegExp(z`(?:\$[1-9]\d*)?${ge.replace(/\$/g,z`\$`)}`,"y");function ls(t,e){if(!new RegExp(Xt,"su").test(t))return t;if(Xe(t,z`\(\?\(DEFINE\)`,X.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const r=!!(e!=null&&e.useEmulationGroups),n=Xe(t,z`\\[1-9]`,X.DEFAULT),i=new Map,o=[];let a=!1,s=0,l=0,u;for(ue.lastIndex=0;u=ue.exec(t);){const{0:p,groups:{captureName:m,rDepth:h,gRNameOrNum:d,gRDepth:f}}=u;if(p==="[")s++;else if(s)p==="]"&&s--;else if(h){if(Br(h),a)throw new Error(Ot);if(n)throw new Error("Numbered backrefs cannot be used with global recursion");const v=t.slice(0,u.index),E=t.slice(ue.lastIndex);if(Xe(E,Xt,X.DEFAULT))throw new Error(Ot);return Fr(v,E,+h,!1,r)}else if(d){Br(f);let v=!1;for(const O of o)if(O.name===d||O.num===+d){if(v=!0,O.hasRecursedWithin)throw new Error(Ot);break}if(!v)throw new Error(z`Recursive \g cannot be used outside the referenced group "\g<${d}&R=${f}>"`);const E=i.get(d),C=ts(t,E);if(n&&Xe(C,z`${ft}|\((?!\?)`,X.DEFAULT))throw new Error("Numbered backrefs cannot be used with recursion of capturing groups");const b=t.slice(E,u.index),S=C.slice(b.length+p.length),T=Fr(b,S,+f,!0,r),L=t.slice(0,E),B=t.slice(E+C.length);t=`${L}${T}${B}`,ue.lastIndex+=T.length-p.length-b.length-S.length,o.forEach(O=>O.hasRecursedWithin=!0),a=!0}else if(m)l++,i.set(String(l),ue.lastIndex),i.set(m,ue.lastIndex),o.push({num:l,name:m});else if(p.startsWith("(")){const v=p==="(";v&&(l++,i.set(String(l),ue.lastIndex+(r?us(t,ue.lastIndex):0))),o.push(v?{num:l}:{})}else p===")"&&o.pop()}return t}function Br(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function Fr(t,e,r,n,i){const o=new Set;n&&Ya(t+e,ft,({groups:{captureName:s}})=>{o.add(s)},X.DEFAULT);const a=r-1;return`${t}${Ur(`(?:${t}`,a,n?o:null,"forward",i)}(?:)${Ur(`${e})`,a,n?o:null,"backward",i)}${e}`}function Ur(t,e,r,n,i){const a=l=>n==="backward"?e-l+2-1:l+2;let s="";for(let l=0;l<e;l++){const u=a(l);s+=ht(t,z`${ft}|\\k<(?<backref>[^>]+)>${i?z`|(?<unnamed>\()(?!\?)(?:${Qt.source})?`:""}`,({0:p,index:m,groups:{captureName:h,backref:d,unnamed:f}})=>{if(d&&r&&!r.has(d))return p;if(f)return`(${ge}`;const v=`_$${u}`;return h?`(?<${h}${v}>${i?ge:""}`:z`\k<${d}${v}>`},X.DEFAULT)}return s}function us(t,e){Qt.lastIndex=e;const r=Qt.exec(t);return r?r[0].length:0}var V=String.fromCodePoint,A=String.raw,cs=(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),ps=(()=>{try{new RegExp("","v")}catch{return!1}return!0})();function at(t,{enable:e,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(e!=null&&e.dotAll||t.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(e!=null&&e.ignoreCase||t.ignoreCase)}}function st(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}function Jt(t,e){return jr[t]>=jr[e]}function le(t,e){if(!t)throw new Error(e??"Value expected");return t}var jr={ES2025:2025,ES2024:2024,ES2018:2018},ms={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Vn(t){if((t==null?void 0:t.target)!==void 0&&!ms[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t==null?void 0:t.rules}};return e.target==="auto"&&(e.target=cs?"ES2025":ps?"ES2024":"ES2018"),e}var ds=new Set([V(304),V(305)]);function Mn(t){if(ds.has(t))return[t];const e=new Set,r=t.toLowerCase(),n=r.toUpperCase(),i=_s.get(r),o=fs.get(r),a=gs.get(r);return[...n].length===1&&e.add(n),a&&e.add(a),i&&e.add(i),e.add(r),o&&e.add(o),[...e]}var $n=new Set(`C Other
|
|
28
|
-
Cc Control cntrl
|
|
29
|
-
Cf Format
|
|
30
|
-
Cn Unassigned
|
|
31
|
-
Co Private_Use
|
|
32
|
-
Cs Surrogate
|
|
33
|
-
L Letter
|
|
34
|
-
LC Cased_Letter
|
|
35
|
-
Ll Lowercase_Letter
|
|
36
|
-
Lm Modifier_Letter
|
|
37
|
-
Lo Other_Letter
|
|
38
|
-
Lt Titlecase_Letter
|
|
39
|
-
Lu Uppercase_Letter
|
|
40
|
-
M Mark Combining_Mark
|
|
41
|
-
Mc Spacing_Mark
|
|
42
|
-
Me Enclosing_Mark
|
|
43
|
-
Mn Nonspacing_Mark
|
|
44
|
-
N Number
|
|
45
|
-
Nd Decimal_Number digit
|
|
46
|
-
Nl Letter_Number
|
|
47
|
-
No Other_Number
|
|
48
|
-
P Punctuation punct
|
|
49
|
-
Pc Connector_Punctuation
|
|
50
|
-
Pd Dash_Punctuation
|
|
51
|
-
Pe Close_Punctuation
|
|
52
|
-
Pf Final_Punctuation
|
|
53
|
-
Pi Initial_Punctuation
|
|
54
|
-
Po Other_Punctuation
|
|
55
|
-
Ps Open_Punctuation
|
|
56
|
-
S Symbol
|
|
57
|
-
Sc Currency_Symbol
|
|
58
|
-
Sk Modifier_Symbol
|
|
59
|
-
Sm Math_Symbol
|
|
60
|
-
So Other_Symbol
|
|
61
|
-
Z Separator
|
|
62
|
-
Zl Line_Separator
|
|
63
|
-
Zp Paragraph_Separator
|
|
64
|
-
Zs Space_Separator
|
|
65
|
-
ASCII
|
|
66
|
-
ASCII_Hex_Digit AHex
|
|
67
|
-
Alphabetic Alpha
|
|
68
|
-
Any
|
|
69
|
-
Assigned
|
|
70
|
-
Bidi_Control Bidi_C
|
|
71
|
-
Bidi_Mirrored Bidi_M
|
|
72
|
-
Case_Ignorable CI
|
|
73
|
-
Cased
|
|
74
|
-
Changes_When_Casefolded CWCF
|
|
75
|
-
Changes_When_Casemapped CWCM
|
|
76
|
-
Changes_When_Lowercased CWL
|
|
77
|
-
Changes_When_NFKC_Casefolded CWKCF
|
|
78
|
-
Changes_When_Titlecased CWT
|
|
79
|
-
Changes_When_Uppercased CWU
|
|
80
|
-
Dash
|
|
81
|
-
Default_Ignorable_Code_Point DI
|
|
82
|
-
Deprecated Dep
|
|
83
|
-
Diacritic Dia
|
|
84
|
-
Emoji
|
|
85
|
-
Emoji_Component EComp
|
|
86
|
-
Emoji_Modifier EMod
|
|
87
|
-
Emoji_Modifier_Base EBase
|
|
88
|
-
Emoji_Presentation EPres
|
|
89
|
-
Extended_Pictographic ExtPict
|
|
90
|
-
Extender Ext
|
|
91
|
-
Grapheme_Base Gr_Base
|
|
92
|
-
Grapheme_Extend Gr_Ext
|
|
93
|
-
Hex_Digit Hex
|
|
94
|
-
IDS_Binary_Operator IDSB
|
|
95
|
-
IDS_Trinary_Operator IDST
|
|
96
|
-
ID_Continue IDC
|
|
97
|
-
ID_Start IDS
|
|
98
|
-
Ideographic Ideo
|
|
99
|
-
Join_Control Join_C
|
|
100
|
-
Logical_Order_Exception LOE
|
|
101
|
-
Lowercase Lower
|
|
102
|
-
Math
|
|
103
|
-
Noncharacter_Code_Point NChar
|
|
104
|
-
Pattern_Syntax Pat_Syn
|
|
105
|
-
Pattern_White_Space Pat_WS
|
|
106
|
-
Quotation_Mark QMark
|
|
107
|
-
Radical
|
|
108
|
-
Regional_Indicator RI
|
|
109
|
-
Sentence_Terminal STerm
|
|
110
|
-
Soft_Dotted SD
|
|
111
|
-
Terminal_Punctuation Term
|
|
112
|
-
Unified_Ideograph UIdeo
|
|
113
|
-
Uppercase Upper
|
|
114
|
-
Variation_Selector VS
|
|
115
|
-
White_Space space
|
|
116
|
-
XID_Continue XIDC
|
|
117
|
-
XID_Start XIDS`.split(/\s/)),Gn=new Map;for(const t of $n)Gn.set(gt(t),t);var hs=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji","RGI_Emoji_Flag_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence"]),Bn=new Map;for(const t of hs)Bn.set(gt(t),t);var fs=new Map([["s",V(383)],[V(383),"s"]]),gs=new Map([[V(223),V(7838)],[V(107),V(8490)],[V(229),V(8491)],[V(969),V(8486)]]),_s=new Map([ce(453),ce(456),ce(459),ce(498),...Dt(8072,8079),...Dt(8088,8095),...Dt(8104,8111),ce(8124),ce(8140),ce(8188)]),Fn=new Map([["alnum",A`[\p{Alpha}\p{Nd}]`],["alpha",A`\p{Alpha}`],["ascii",A`\p{ASCII}`],["blank",A`[\p{Zs}\t]`],["cntrl",A`\p{cntrl}`],["digit",A`\p{Nd}`],["graph",A`[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]`],["lower",A`\p{Lower}`],["print",A`[[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",A`[\p{P}\p{S}]`],["space",A`\p{space}`],["upper",A`\p{Upper}`],["word",A`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",A`\p{AHex}`]]),ys=new Set(["alnum","blank","graph","print","word","xdigit"]);function Es(t,e){const r=[];for(let n=t;n<=e;n++)r.push(n);return r}function gt(t){return t.replace(/[- _]+/g,"").toLowerCase()}function ce(t){const e=V(t);return[e.toLowerCase(),e]}function Dt(t,e){return Es(t,e).map(r=>ce(r))}var Un=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),k={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",VariableLengthCharacterSet:"VariableLengthCharacterSet",EscapedNumber:"EscapedNumber"},G={any:"any",digit:"digit",dot:"dot",hex:"hex",non_newline:"non_newline",posix:"posix",property:"property",space:"space",word:"word"},_t={flags:"flags",keep:"keep"},U={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Hr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),jn=A`\[\^?`,Hn=`c.? | C(?:-.?)?|${A`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${A`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${A`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${A`o\{[^\}]*\}?`}|${A`\d{1,3}`}`,Wn=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Qe=new RegExp(A`
|
|
118
|
-
\\ (?:
|
|
119
|
-
${Hn}
|
|
120
|
-
| [gk]<[^>]*>?
|
|
121
|
-
| [gk]'[^']*'?
|
|
122
|
-
| .
|
|
123
|
-
)
|
|
124
|
-
| \( (?: \? (?:
|
|
125
|
-
[:=!>(]
|
|
126
|
-
| <[=!]
|
|
127
|
-
| <[^>]*>
|
|
128
|
-
| '[^']*'
|
|
129
|
-
| ~\|?
|
|
130
|
-
| # (?:[^)\\] | \\.?)*
|
|
131
|
-
| [imx\-]+[:)]
|
|
132
|
-
)?)?
|
|
133
|
-
| ${Wn.source}
|
|
134
|
-
| ${jn}
|
|
135
|
-
| .
|
|
136
|
-
`.replace(/\s+/g,""),"gsu"),xt=new RegExp(A`
|
|
137
|
-
\\ (?:
|
|
138
|
-
${Hn}
|
|
139
|
-
| .
|
|
140
|
-
)
|
|
141
|
-
| \[:[^:]*:\]
|
|
142
|
-
| ${jn}
|
|
143
|
-
| &&
|
|
144
|
-
| .
|
|
145
|
-
`.replace(/\s+/g,""),"gsu");function zn(t,e="",r){if(r={captureGroup:!1,singleline:!1,...r},typeof t!="string")throw new Error("String expected as pattern");if(!/^[imxDSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const n=e.includes("x"),i=[n],o={captureGroup:r.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(m){i.push(m)},replaceCurrentModX(m){i[i.length-1]=m},singleline:r.singleline};let a=[],s;for(Qe.lastIndex=0;s=Qe.exec(t);){const m=Cs(o,t,s[0],Qe.lastIndex);m.tokens?a.push(...m.tokens):m.token&&a.push(m.token),m.lastIndex!==void 0&&(Qe.lastIndex=m.lastIndex)}const l=[];let u=0;a.forEach(m=>{m.type===k.GroupOpen&&(m.kind===U.capturing?m.number=++u:m.raw==="("&&l.push(m))}),u||l.forEach((m,h)=>{m.kind=U.capturing,m.number=h+1});const p=u||l.length;return a=a.map(m=>m.type===k.EscapedNumber?Ts(m,p):m).flat(),{tokens:a,flags:{ignoreCase:e.includes("i"),dotAll:e.includes("m"),extended:n,digitIsAscii:e.includes("D"),spaceIsAscii:e.includes("S"),wordIsAscii:e.includes("W")},rules:r}}function Cs(t,e,r,n){const[i,o,a]=r;if(i==="["){const s=vs(e,r,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGzZ".includes(o))return{token:R(k.Assertion,r,{kind:r})};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:R(k.Subroutine,r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:R(k.Backreference,r)}}if(o==="K")return{token:R(k.Directive,r,{kind:_t.keep})};if(o==="N")return{token:R(k.CharacterSet,r,{kind:G.non_newline})};if(o==="O")return{token:R(k.CharacterSet,r,{kind:G.any})};if("RX".includes(o))return{token:R(k.VariableLengthCharacterSet,r,{kind:r})};if("yY".includes(o))throw new Error(`Unsupported grapheme boundary "${r}"`);const s=qn(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(a==="#"){if(e[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if("-imx".includes(a))return{token:As(r,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,r==="("&&!t.captureGroup||r==="(?:")return{token:R(k.GroupOpen,r,{kind:U.group})};if(r==="(?>")return{token:R(k.GroupOpen,r,{kind:U.atomic})};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:R(k.GroupOpen,r,{kind:a==="<"?U.lookbehind:U.lookahead,negate:r.endsWith("!")})};if(a==="<"||a==="'"||r==="("&&t.captureGroup){const s=R(k.GroupOpen,r,{kind:U.capturing});return r!=="("&&(s.name=r.slice(3,-1)),{token:s}}if(a==="~"){if(r==="(?~|")throw new Error(`Unsupported absent function kind "${r}"`);return{token:R(k.GroupOpen,r,{kind:U.absent_repeater})}}throw a==="("?new Error(`Unsupported conditional "${r}"`):r==="(?"?new Error("Invalid group"):new Error(`Unexpected group "${r}"`)}if(r===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:R(k.GroupClose,r)}}if(r==="#"&&t.getCurrentModX()){const s=e.indexOf(`
|
|
146
|
-
`,n);return{lastIndex:s===-1?e.length:s}}if(/^\s$/.test(r)&&t.getCurrentModX()){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(e)?s.lastIndex:n}}if(r===".")return{token:R(k.CharacterSet,r,{kind:G.dot})};if(r==="^"||r==="$"){const s=t.singleline?{"^":A`\A`,$:A`\Z`}[r]:r;return{token:R(k.Assertion,r,{kind:s})}}return r==="|"?{token:R(k.Alternator,r)}:Wn.test(r)?{token:Ss(r)}:(Kn(r),{token:R(k.Character,r,{value:r.codePointAt(0)})})}function vs(t,e,r){const n=[R(k.CharacterClassOpen,e,{negate:e[1]==="^"})];let i=1,o;for(xt.lastIndex=r;o=xt.exec(t);){const a=o[0];if(a[0]==="["&&a[1]!==":")i++,n.push(R(k.CharacterClassOpen,a,{negate:a[1]==="^"}));else if(a==="]"){if(n.at(-1).type===k.CharacterClassOpen)n.push(R(k.Character,a,{value:93}));else if(i--,n.push(R(k.CharacterClassClose,a)),!i)break}else{const s=bs(a);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:xt.lastIndex||t.length}}function bs(t){if(t[0]==="\\")return qn(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!Fn.get(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return R(k.CharacterSet,t,{kind:G.posix,negate:!!e.groups.negate,value:e.groups.name})}return t==="-"?R(k.CharacterClassHyphen,t):t==="&&"?R(k.CharacterClassIntersector,t):(Kn(t),R(k.Character,t,{value:t.codePointAt(0)}))}function qn(t,{inCharClass:e}){const r=t[1];if(r==="c"||r==="C")return ks(t);if("dDhHsSwW".includes(r))return ws(t);if(t.startsWith(A`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return Rs(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const n=t.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...i].map(s=>{const l=[...o.encode(s)].map(u=>`\\x${u.toString(16)}`).join("");return R(k.Character,l,{value:s.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return R(k.Character,t,{value:Is(t)});if(Hr.has(r))return R(k.Character,t,{value:Hr.get(r)});if(/\d/.test(r))return R(k.EscapedNumber,t,{inCharClass:e});if(t==="\\")throw new Error(A`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return R(k.Character,t,{value:t.codePointAt(1)});throw new Error(`Unexpected escape "${t}"`)}function R(t,e,r){return{type:t,raw:e,...r}}function ks(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return R(k.Character,t,{value:e.toUpperCase().codePointAt(0)-64})}function As(t,e){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[imx\-]*))?/.exec(t).groups;n??(n="");const i=(e.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=Wr(r),a=Wr(n),s={};if(o&&(s.enable=o),a&&(s.disable=a),t.endsWith(")"))return e.replaceCurrentModX(i),R(k.Directive,t,{kind:_t.flags,flags:s});if(t.endsWith(":")){e.pushModX(i),e.numOpenGroups++;const l=R(k.GroupOpen,t,{kind:U.group});return(o||a)&&(l.flags=s),l}throw new Error(`Unexpected flag modifier "${t}"`)}function Ss(t){const e={};if(t[0]==="{"){const{min:r,max:n}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(t).groups,i=1e5;if(+r>i||+n>i)throw new Error("Quantifier value unsupported in Oniguruma");e.min=+r,e.max=n===void 0?+r:n===""?1/0:+n,e.greedy=!t.endsWith("?"),e.possessive=!1}else e.min=t[0]==="+"?1:0,e.max=t[0]==="?"?1:1/0,e.greedy=t[1]!=="?",e.possessive=t[1]==="+";return R(k.Quantifier,t,e)}function ws(t){const e=t[1].toLowerCase();return R(k.CharacterSet,t,{kind:{d:G.digit,h:G.hex,s:G.space,w:G.word}[e],negate:t[1]!==e})}function Rs(t){const{p:e,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups,i=e==="P"&&!r||e==="p"&&!!r;return R(k.CharacterSet,t,{kind:G.property,negate:i,value:n})}function Wr(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function Is(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Ts(t,e){const{raw:r,inCharClass:n}=t,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[R(k.Backreference,r)];const o=[],a=i.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){const l=a[s];let u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(A`Octal encoded byte above 177 unsupported "${r}"`)}else u=l.codePointAt(0);o.push(R(k.Character,(s===0?"\\":"")+l,{value:u}))}return o}function Kn(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`)}function lr({alternatives:t},e){return t.length===1&&t[0].elements.length===1&&(!e||e(t[0].elements[0]))}function Ps({type:t}){return t===_.Assertion||t===_.Directive}function Ls(t){const e=[_.Character,_.CharacterClass,_.CharacterSet];return e.includes(t.type)||t.type===_.Quantifier&&t.min&&e.includes(t.element.type)}function Xn({type:t}){return t===_.CapturingGroup||t===_.Group}function Ue({type:t,kind:e}){return t===_.Assertion&&(e===I.lookahead||e===I.lookbehind)}function be(t,e,r){let n=t.node;for(;n.parent;)n=n.parent;function i(a,s){for(let l=0;l<a.length;l++){const u=o(a[l],s,l,a);l=Math.max(-1,l+u)}}function o(a,s=null,l=null,u=null){let p=0,m=!1;const h={node:a,parent:s,key:l,container:u,ast:n,remove(){le(u,"Container expected").splice(Math.max(0,l+p),1),p-=1},removeAllNextSiblings(){return le(u,"Container expected").splice(l+1)},removeAllPrevSiblings(){const C=l+p;return p-=C,le(u,"Container expected").splice(0,Math.max(0,C))},replaceWith(C){Ds(C,s),u?u[Math.max(0,l+p)]=C:s[l]=C},skip(){m=!0}},d=Os(a).find(C=>!!r[C]),f=d&&r[d],v=typeof f=="function"?f:f==null?void 0:f.enter,E=f==null?void 0:f.exit;if(v==null||v(h,e),!m)switch(a.type){case _.Regex:o(a.pattern,a,"pattern"),o(a.flags,a,"flags");break;case _.Alternative:case _.CharacterClass:i(a.elements,a);break;case _.Assertion:Ue(a)&&i(a.alternatives,a);break;case _.Backreference:case _.Character:case _.CharacterSet:case _.Directive:case _.Flags:case _.Recursion:case _.Subroutine:case _.VariableLengthCharacterSet:break;case _.AbsentFunction:case _.CapturingGroup:case _.Group:case _.Pattern:i(a.alternatives,a);break;case _.CharacterClassIntersection:i(a.classes,a);break;case _.CharacterClassRange:o(a.min,a,"min"),o(a.max,a,"max");break;case _.Quantifier:o(a.element,a,"element");break;default:throw new Error(`Unexpected node type "${a.type}"`)}return E==null||E(h,e),p}o(t.node,t.parent,t.key,t.container)}var zr={AnyGroup:"AnyGroup",AnyNode:"AnyNode"};function Os(t){const e=[zr.AnyNode];return(Xn(t)||Ue(t))&&e.push(zr.AnyGroup),e.push(t.type),e}function Ds(t,e){"parent"in e&&(t.parent=e)}var _={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassIntersection:"CharacterClassIntersection",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",VariableLengthCharacterSet:"VariableLengthCharacterSet",Recursion:"Recursion"},xs={repeater:"repeater"},I={line_end:"line_end",line_start:"line_start",lookahead:"lookahead",lookbehind:"lookbehind",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},D=G,et=_t,lt={grapheme:"grapheme",newline:"newline"};function Qn({tokens:t,flags:e,rules:r},n){const i={skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,verbose:!1,...n},o={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,parent:null,skipBackrefValidation:i.skipBackrefValidation,skipLookbehindValidation:i.skipLookbehindValidation,skipPropertyNameValidation:i.skipPropertyNameValidation,subroutines:[],token:null,tokens:t,verbose:i.verbose,walk:a};function a(d,f){const v=t[o.current];switch(o.parent=d,o.token=v,o.current++,v.type){case k.Alternator:return me();case k.Assertion:return js(v);case k.Backreference:return Ns(o);case k.Character:return Yn(v.value,{useLastValid:!!f.isCheckingRangeEnd});case k.CharacterClassHyphen:return Vs(o,f);case k.CharacterClassOpen:return Ms(o,f);case k.CharacterSet:return $s(o);case k.Directive:return qs(v);case k.GroupOpen:return Gs(o,f);case k.Quantifier:return Bs(o);case k.Subroutine:return Fs(o);case k.VariableLengthCharacterSet:return Zs(v.kind);default:throw new Error(`Unexpected token type "${v.type}"`)}}const s=Qs(Xs(),Ks(e));let l=s.pattern.alternatives[0];for(;o.current<t.length;){const d=a(l,{});d.type===_.Alternative?(s.pattern.alternatives.push(d),l=d):l.elements.push(d)}const{capturingGroups:u,hasNumberedRef:p,namedGroupsByName:m,subroutines:h}=o;if(p&&m.size&&!r.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of h)if(typeof d=="number"){if(d>u.length)throw new Error("Subroutine uses a group number that's not defined")}else if(m.has(d)){if(m.get(d).length>1)throw new Error(A`Subroutine uses a duplicate group name "\g<${d}>"`)}else throw new Error(A`Subroutine uses a group name that's not defined "\g<${d}>"`);return be({node:s},null,{AnyNode({node:d,parent:f}){d.parent=f}}),s}function Ns(t){const{raw:e}=t.token,r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(o,a=!1)=>{const s=t.capturingGroups.length;let l=!1;if(o>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Zt(a?s+1-o:o,{orphan:l})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Zt(n)}return i(+n)}function Vs(t,e){const{parent:r,tokens:n,walk:i}=t,o=r.elements.at(-1),a=n[t.current];if(!e.isCheckingRangeEnd&&o&&o.type!==_.CharacterClass&&o.type!==_.CharacterClassRange&&a&&a.type!==k.CharacterClassOpen&&a.type!==k.CharacterClassClose&&a.type!==k.CharacterClassIntersector){const s=i(r,{...e,isCheckingRangeEnd:!0});if(o.type===_.Character&&s.type===_.Character)return r.elements.pop(),zs(o,s);throw new Error("Invalid character class range")}return Yn(45)}function Ms(t,e){const{token:r,tokens:n,verbose:i,walk:o}=t,a=n[t.current];let s=Yt({negate:r.negate});const l=s.elements[0];let u=qr(a);for(;u.type!==k.CharacterClassClose;){if(u.type===k.CharacterClassIntersector)l.classes.push(Yt({negate:!1,baseOnly:!0})),t.current++;else{const p=l.classes.at(-1);p.elements.push(o(p,e))}u=qr(n[t.current],a)}if(i||rl(l),l.classes.length===1){const p=l.classes[0];p.negate=s.negate!==p.negate,s=p}return t.current++,s}function $s({token:t,skipPropertyNameValidation:e}){let{kind:r,negate:n,value:i}=t;if(r===G.property){const o=gt(i);if(ys.has(o))r=G.posix,i=o;else return Ee(i,{negate:n,skipPropertyNameValidation:e})}return r===G.posix?{type:_.CharacterSet,kind:D.posix,negate:n,value:i}:er(r,{negate:n})}function Gs(t,e){const{token:r,tokens:n,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,verbose:s,walk:l}=t;let u=Hs(r);const p=u.type===_.AbsentFunction,m=u.kind===I.lookbehind,h=m&&u.negate;if(u.type===_.CapturingGroup&&(i.push(u),u.name&&st(o,u.name,[]).push(u)),p&&e.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let d=Kr(n[t.current]);for(;d.type!==k.GroupClose;){if(d.type===k.Alternator)u.alternatives.push(me()),t.current++;else{const f=u.alternatives.at(-1),v=l(f,{...e,isInAbsentFunction:e.isInAbsentFunction||p,isInLookbehind:e.isInLookbehind||m,isInNegLookbehind:e.isInNegLookbehind||h});if(f.elements.push(v),(m||e.isInLookbehind)&&!a){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(h||e.isInNegLookbehind){if(v.kind===I.lookahead||v.type===_.CapturingGroup)throw new Error(E)}else if(v.kind===I.lookahead||v.kind===I.lookbehind&&v.negate)throw new Error(E)}}d=Kr(n[t.current])}return s||(u=el(u)),t.current++,u}function Bs({token:t,parent:e}){const{min:r,max:n,greedy:i,possessive:o}=t,a=e.elements.at(-1);if(!a||a.type===_.Assertion||a.type===_.Directive)throw new Error("Quantifier requires a repeatable token");const s=ei(a,r,n,i,o);return e.elements.pop(),s}function Fs(t){const{token:e,capturingGroups:r,subroutines:n}=t;let i=e.raw.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){const s=+o.groups.num,l=r.length;if(t.hasNumberedRef=!0,i={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=Js(i);return n.push(a),a}function Us(t){return{type:_.AbsentFunction,kind:t,alternatives:[me()]}}function me(){return{type:_.Alternative,elements:[]}}function Jn(t,e){const r=!!(e!=null&&e.negate);return{type:_.Assertion,kind:t,...t===I.word_boundary&&{negate:r}}}function js({kind:t}){return Jn(le({"^":I.line_start,$:I.line_end,"\\A":I.string_start,"\\b":I.word_boundary,"\\B":I.word_boundary,"\\G":I.search_start,"\\z":I.string_end,"\\Z":I.string_end_newline}[t],`Unexpected assertion kind "${t}"`),{negate:t===A`\B`})}function Zt(t,e){const r=!!(e!=null&&e.orphan);return{type:_.Backreference,...r&&{orphan:r},ref:t}}function Hs({flags:t,kind:e,name:r,negate:n,number:i}){switch(e){case U.absent_repeater:return Us(xs.repeater);case U.atomic:return Y({atomic:!0});case U.capturing:return Zn(i,r);case U.group:return Y({flags:t});case U.lookahead:case U.lookbehind:return Le({behind:e===U.lookbehind,negate:n});default:throw new Error(`Unexpected group kind "${e}"`)}}function Zn(t,e){const r=e!==void 0;if(r&&!tl(e))throw new Error(`Group name "${e}" invalid in Oniguruma`);return{type:_.CapturingGroup,number:t,...r&&{name:e},alternatives:[me()]}}function Yn(t,e){const r={useLastValid:!1,...e};if(t>1114111){const n=t.toString(16);if(r.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:_.Character,value:t}}function Yt(t){const e={baseOnly:!1,negate:!1,...t};return{type:_.CharacterClass,negate:e.negate,elements:e.baseOnly?[]:[Ws()]}}function Ws(){return{type:_.CharacterClassIntersection,classes:[Yt({negate:!1,baseOnly:!0})]}}function zs(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:_.CharacterClassRange,min:t,max:e}}function er(t,{negate:e}){const r={type:_.CharacterSet,kind:le(D[t],`Unexpected character set kind "${t}"`)};return(t===G.digit||t===G.hex||t===G.space||t===G.word)&&(r.negate=e),r}function qs({kind:t,flags:e}){const r={type:_.Directive,kind:le(et[t],`Unexpected directive kind "${t}"`)};return t===_t.flags&&(r.flags=e),r}function Ks({ignoreCase:t,dotAll:e,extended:r,digitIsAscii:n,spaceIsAscii:i,wordIsAscii:o}){return{type:_.Flags,ignoreCase:t,dotAll:e,extended:r,digitIsAscii:n,spaceIsAscii:i,wordIsAscii:o}}function Y(t){const e=t==null?void 0:t.atomic,r=t==null?void 0:t.flags;return{type:_.Group,...e&&{atomic:e},...r&&{flags:r},alternatives:[me()]}}function Le(t){const e={behind:!1,negate:!1,...t};return{type:_.Assertion,kind:e.behind?I.lookbehind:I.lookahead,negate:e.negate,alternatives:[me()]}}function Xs(){return{type:_.Pattern,alternatives:[me()]}}function ei(t,e,r,n=!0,i=!1){const o={type:_.Quantifier,min:e,max:r,greedy:n,possessive:i,element:t};return r<e?{...o,min:r,max:e,possessive:!0}:o}function Qs(t,e){return{type:_.Regex,pattern:t,flags:e}}function Js(t){return{type:_.Subroutine,ref:t}}function Ee(t,e){const r={negate:!1,skipPropertyNameValidation:!1,...e};return{type:_.CharacterSet,kind:D.property,value:r.skipPropertyNameValidation?t:Ys(t),negate:r.negate}}function Zs(t){return{type:_.VariableLengthCharacterSet,kind:le({"\\R":lt.newline,"\\X":lt.grapheme}[t],`Unexpected varcharset kind "${t}"`)}}function Ys(t){const e=gt(t);if(Bn.has(e))throw new Error(A`Unicode property "\p{${t}}" unsupported in Oniguruma`);const r=Gn.get(e);return r||t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}function el(t){const e=t.alternatives[0].elements[0];return t.type===_.Group&&lr(t,r=>r.type===_.Group)&&!(t.atomic&&e.flags)&&!(t.flags&&(e.atomic||e.flags))?(t.atomic?e.atomic=!0:t.flags&&(e.flags=t.flags),e):t}function tl(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function rl(t){for(let e=0;e<t.classes.length;e++){const r=t.classes[e],n=r.elements[0];r.elements.length===1&&n.type===_.CharacterClass&&(t.classes[e]=n,n.negate=r.negate!==n.negate)}}function qr(t,e){return le(t,`${(e==null?void 0:e.value)===93?"Empty":"Unclosed"} character class`)}function Kr(t){return le(t,"Unclosed group")}function nl(t,e){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e},n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Jt(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};be({node:t},n,ti);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};be({node:t},o,ri);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return be({node:t},a,il),t._strategy=n.strategy,t}var ti={AbsentFunction({node:t,replaceWith:e}){const r=ie(Y(),[Ne(Le({negate:!0}),t.alternatives),Ee("Any")]),n=ei(r,0,1/0);r.parent=n,e(ie(Y(),[n]))},Alternative:{enter({node:t,parent:e,key:r},{flagDirectivesByAlt:n}){const i=t.elements.filter(o=>o.kind===et.flags);for(let o=r+1;o<e.alternatives.length;o++){const a=e.alternatives[o];st(n,a,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){var r;if((r=e.get(t))!=null&&r.length){const n=ii(e.get(t));if(n){const i=ie(Y({flags:n}),t.elements);i.parent=t,t.elements=[i]}}}},Assertion({node:t,key:e,container:r,ast:n,remove:i,replaceWith:o},a){const{kind:s,negate:l}=t,{asciiWordBoundaries:u,avoidSubclass:p,supportedGNodes:m,wordIsAscii:h}=a;if(s===I.line_end)o(Q(A`(?=\z|\n)`));else if(s===I.line_start)o(Q(A`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}));else if(s===I.lookbehind)a.passedLookbehind=!0;else if(s===I.search_start)if(m.has(t))n.flags.sticky=!0,i();else{const d=r[e-1];if(d&&Ls(d))o(ie(Le({negate:!0})));else{if(p)throw new Error(A`Uses "\G" in a way that requires a subclass`);o(Jn(I.string_start)),a.strategy="search_start_clip"}}else if(s===I.string_end_newline)o(Q(A`(?=\n?\z)`));else if(s===I.word_boundary&&!h&&!u){const d=`(?:(?<=${ne})(?!${ne})|(?<!${ne})(?=${ne}))`,f=`(?:(?<=${ne})(?=${ne})|(?<!${ne})(?!${ne}))`;o(Q(l?f:d))}},Backreference({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!Vt(r)&&(r=Nt(r,e),t.ref=r)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:r}){let{name:n}=t;n&&!Vt(n)&&(n=Nt(n,e),t.name=n),r.set(t.number,t),n&&r.set(n,t)},CharacterSet({node:t,replaceWith:e},{accuracy:r,minTargetEs2024:n,digitIsAscii:i,spaceIsAscii:o,wordIsAscii:a}){const{kind:s,negate:l,value:u}=t;if(i&&(s===D.digit||u==="digit")){e(er(D.digit,{negate:l}));return}if(o&&(s===D.space||u==="space")){e(Mt(Q(ol),l));return}if(a&&(s===D.word||u==="word")){e(er(D.word,{negate:l}));return}if(s===D.any)e(Ee("Any"));else if(s===D.digit)e(Ee("Nd",{negate:l}));else if(s===D.hex)e(Ee("AHex",{negate:l}));else if(s===D.non_newline)e(Q(A`[^\n]`));else if(s===D.space)e(Ee("space",{negate:l}));else if(s===D.word)e(Mt(Q(ne),l));else if(s===D.property)$n.has(u)||(t.key="sc");else if(s===D.posix)if(!n&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[u];l&&(p=`\0-${V(p.codePointAt(0)-1)}${V(p.codePointAt(2)+1)}-`),e(Q(`[${p}]`))}else e(Mt(Q(Fn.get(u)),l))},Directive(t,e){const{node:r,parent:n,ast:i,remove:o,replaceWith:a,removeAllPrevSiblings:s,removeAllNextSiblings:l}=t,{kind:u,flags:p}=r;if(u===et.flags)if(!p.enable&&!p.disable)o();else{const m=ie(Y({flags:p}),l());a(m),li(m,t,e,ti)}else if(u===et.keep){const m=i.pattern.alternatives[0].elements[0],d=lr(i.pattern,f=>f.type===_.Group)&&m.alternatives.length===1?m:i.pattern;if(n.parent!==d||d.alternatives.length>1)throw new Error(A`Uses "\K" in a way that's unsupported`);a(ie(Le({behind:!0}),s()))}},Flags({node:t,parent:e}){["digitIsAscii","extended","spaceIsAscii","wordIsAscii"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e!=null&&e.extended&&delete e.extended,r!=null&&r.extended&&delete r.extended,e!=null&&e.dotAll&&(r!=null&&r.dotAll)&&delete e.dotAll,e!=null&&e.ignoreCase&&(r!=null&&r.ignoreCase)&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},Pattern:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const o of t.alternatives)if(o.elements.length===1&&o.elements[0].kind===I.search_start)o.elements.pop();else{const a=ai(o.elements);a?(n=!0,Array.isArray(a)?r.push(...a):r.push(a)):i=!0}n&&!i&&r.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(A`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:t}){if(t.element.type===_.Quantifier){const e=ie(Y(),[t.element]);e.parent=t,t.element=e}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!Vt(r)&&(r=Nt(r,e),t.ref=r)},VariableLengthCharacterSet({node:t,replaceWith:e},{accuracy:r,minTargetEs2024:n}){const{kind:i}=t;if(i===lt.newline)e(Q(`(?>\r
|
|
147
|
-
?|[
|
|
148
|
-
\v\f
\u2028\u2029])`));else if(i===lt.grapheme){if(r==="strict")throw new Error(A`Use of "\X" requires non-strict accuracy`);const o=n?A`\p{RGI_Emoji}`:Za().source.replace(/\\u\{/g,"\\x{");e(Q(A`(?>\r\n|${o}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}))}else throw new Error(`Unexpected varcharset kind "${i}"`)}},ri={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,replaceWith:e,skip:r},{groupOriginByCopy:n,groupsByName:i,multiplexCapturesToLeftByRef:o,openRefs:a,reffedNodesByReferencer:s}){const l=n.get(t);if(l&&a.has(t.number)){const p=Xr(t.number);s.set(p,a.get(t.number)),e(p),r();return}a.set(t.number,t),o.set(t.number,[]),t.name&&st(o,t.name,[]);const u=o.get(t.name??t.number);for(let p=0;p<u.length;p++){const m=u[p];if(l===m.node||l&&l===m.origin||t===m.origin){u.splice(p,1);break}}if(o.get(t.number).push({node:t,origin:l}),t.name&&o.get(t.name).push({node:t,origin:l}),t.name){const p=st(i,t.name,new Map);let m=!1;if(l)m=!0;else for(const h of p.values())if(!h.hasDuplicateNameToRemove){m=!0;break}i.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:m})}l&&(t._originNumber=l.number)},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=at(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Recursion({node:t,parent:e},{reffedNodesByReferencer:r}){const{ref:n}=t;let i=e;for(;(i=i.parent)&&!(i.type===_.CapturingGroup&&(i.name===n||i.number===n)););r.set(t,i)},Subroutine(t,e){const{node:r,replaceWith:n}=t,{ref:i}=r,o=e.subroutineRefMap.get(i),a=i===0,s=a?Xr(0):ni(o,e.groupOriginByCopy,null);let l=s;if(!a){const u=ii(ll(o,m=>m.type===_.Group&&!!m.flags)),p=u?at(e.globalFlags,u):e.globalFlags;al(p,e.currentFlags)||(l=ie(Y({flags:ul(p)}),[s]))}n(l),a||li(l,t,e,ri)}},il={Backreference({node:t,replaceWith:e},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}const i=r.reffedNodesByReferencer.get(t).filter(o=>sl(o,t));if(!i.length)e(ie(Le({negate:!0})));else if(i.length>1){const o=i.map(a=>Ne(me(),[Zt(a.number)]));e(Ne(Y(),o))}else t.ref=i[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Recursion({node:t},e){t.ref!==0&&(t.ref=e.reffedNodesByReferencer.get(t).number)},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=Zn();t.pattern.alternatives.at(-1).elements.push(i)}}}},ol="[ -\r ]",ne=A`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ne(t,e){return e.forEach(r=>r.parent=t),t[ur(t)]=e,t}function al(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function sl(t,e){let r=e;do{if(r.type===_.Pattern)return!1;if(r.type===_.Alternative)continue;if(r===t)return!1;const n=oi(r.parent);for(const i of n){if(i===r)break;if(i===t||si(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function ni(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[o,a]of Object.entries(t))o==="parent"?i.parent=Array.isArray(r)?n:r:a&&typeof a=="object"?i[o]=ni(a,e,i,r):(o==="type"&&a===_.CapturingGroup&&e.set(i,e.get(t)??t),i[o]=a);return i}function Xr(t){return{type:_.Recursion,ref:t}}function ll(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function Nt(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function ur(t){for(const e of["alternatives","classes","elements"])if(t[e])return e;return null}function ii(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{var o,a;(o=n.enable)!=null&&o[i]&&(delete r.disable[i],r.enable[i]=!0),(a=n.disable)!=null&&a[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function ul({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function oi(t){if(!t)throw new Error("Node expected");if(t.type===_.Quantifier)return[t.element];const e=ur(t);return e&&t[e]}function ai(t){const e=t.find(r=>r.kind===I.search_start||cl(r,{negate:!1})||!Ps(r));if(!e)return null;if(e.kind===I.search_start)return e;if(Ue(e))return e.alternatives[0].elements[0];if(Xn(e)){const r=[];for(const n of e.alternatives){const i=ai(n.elements);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function si(t,e){const r=oi(t)??[];for(const n of r)if(n===e||si(n,e))return!0;return!1}function cl(t,e){const r={negate:null,...e};return Ue(t)&&(r.negate===null||t.negate===r.negate)&&lr(t,n=>n.kind===I.search_start)}function Vt(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function Q(t,e){const n=Qn(zn(t),e).pattern.alternatives;return n.length>1||n[0].elements.length>1?Ne(Y(),n):n[0].elements[0]}function ie(t,e){const r=ur(t);return t[r][0].parent=t,e&&Ne(t[r][0],e),t}function Mt(t,e){return t.negate=e,t}function li(t,{parent:e,key:r,container:n},i,o){be({node:t,parent:e,key:r,container:n},i,o)}function pl(t,e){const r=Vn(e),n=Jt(r.target,"ES2024"),i=Jt(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!i){const d=[t.flags.ignoreCase];be({node:t},{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(f){d.push(f)},setHasCasedChar(){d.at(-1)?a=!0:s=!0}},ml)}const l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!s)};let u=null;const p={accuracy:r.accuracy,appliedGlobalFlags:l,avoidSubclass:r.avoidSubclass,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:u,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&s),useFlagMods:i,useFlagV:n,verbose:r.verbose};function m(d){switch(p.lastNode=u,u=d,d.type){case _.Regex:return{pattern:m(d.pattern),flags:m(d.flags),options:{...d.options}};case _.Alternative:return d.elements.map(m).join("");case _.Assertion:return _l(d,p,m);case _.Backreference:return yl(d,p);case _.CapturingGroup:return El(d,p,m);case _.Character:return Cl(d,p);case _.CharacterClass:return vl(d,p,m);case _.CharacterClassIntersection:if(!p.useFlagV)throw new Error("Use of class intersection requires min target ES2024");return d.classes.map(m).join("&&");case _.CharacterClassRange:return bl(d,p);case _.CharacterSet:return kl(d,p);case _.Flags:return Al(d,p);case _.Group:return Sl(d,p,m);case _.Pattern:return d.alternatives.map(m).join("|");case _.Quantifier:return m(d.element)+Tl(d);case _.Recursion:return wl(d,p);default:throw new Error(`Unexpected node type "${d.type}"`)}}const h=m(t);return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h}var ml={AnyGroup:{enter({node:t},e){const r=e.getCurrentModI();e.pushModI(t.flags?at({ignoreCase:r},t.flags).ignoreCase:r)},exit(t,e){e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){cr(V(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),ui(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind===D.property&&Un.has(t.value)&&e.setHasCasedChar()}},dl=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),hl=new Set(["-","\\","]","^","["]),fl=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Qr=new Map([[9,A`\t`],[10,A`\n`],[11,A`\v`],[12,A`\f`],[13,A`\r`],[8232,A`\u2028`],[8233,A`\u2029`],[65279,A`\uFEFF`]]),gl=new RegExp("^\\p{Cased}$","u");function cr(t){return gl.test(t)}function _l(t,e,r){const{kind:n,negate:i,alternatives:o}=t;if(Ue(t))return`(?${`${n===I.lookahead?"":"<"}${i?"!":"="}`}${o.map(r).join("|")})`;if(n===I.string_end)return"$";if(n===I.string_start)return"^";if(n===I.word_boundary)return i?A`\B`:A`\b`;throw new Error(`Unexpected assertion kind "${n}"`)}function yl({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t}function El({name:t,number:e,alternatives:r,_originNumber:n},i,o){return i.captureMap.set(e,{ignoreCase:i.currentFlags.ignoreCase}),`(${t?`?<${t}>`:""}${!i.avoidSubclass&&n?`${n<e?`$${n}`:""}${ge}`:""}${r.map(o).join("|")})`}function Cl({value:t},e){const r=V(t),n=Ce(t,{isAfterBackref:e.lastNode.type===_.Backreference,inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&cr(r)){const i=Mn(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r}function vl({negate:t,parent:e,elements:r},n,i){var s;const o=()=>`[${t?"^":""}${r.map(i).join("")}]`;if(!n.inCharClass){n.inCharClass=!0;const l=o();return n.inCharClass=!1,l}const a=(s=r[0])==null?void 0:s.type;if(!t&&a&&((!n.useFlagV||!n.verbose)&&e.type===_.CharacterClass&&a!==_.CharacterClassIntersection||!n.verbose&&e.type===_.CharacterClassIntersection&&r.length===1&&a!==_.CharacterClass&&a!==_.CharacterClassRange))return r.map(i).join("");if(!n.useFlagV&&e.type===_.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return o()}function bl(t,e){const r=t.min.value,n=t.max.value,i={isAfterBackref:!1,inCharClass:!0,useFlagV:e.useFlagV},o=Ce(r,i),a=Ce(n,i),s=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const l=ui(t);Rl(l).forEach(p=>{s.add(Array.isArray(p)?`${Ce(p[0],i)}-${Ce(p[1],i)}`:Ce(p,i))})}return`${o}-${a}${[...s].join("")}`}function kl({kind:t,negate:e,value:r,key:n},i){if(t===D.dot)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":A`[^\n]`;if(t===D.digit)return e?A`\D`:A`\d`;if(t===D.property){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Un.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?A`\P`:A`\p`}{${n?`${n}=`:""}${r}}`}if(t===D.word)return e?A`\W`:A`\w`;throw new Error(`Unexpected character set kind "${t}"`)}function Al(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")}function Sl({atomic:t,flags:e,parent:r,alternatives:n},i,o){const a=i.currentFlags;e&&(i.currentFlags=at(a,e));const s=n.map(o).join("|"),l=!i.verbose&&n.length===1&&r.type!==_.Quantifier&&!t&&(!i.useFlagMods||!e)?s:`(?${Il(t,e,i.useFlagMods)}${s})`;return i.currentFlags=a,l}function wl({ref:t},e){const r=e.recursionLimit;return t===0?`(?R=${r})`:A`\g<${t}&R=${r}>`}function ui(t,e){const r=!!(e!=null&&e.firstOnly),n=t.min.value,i=t.max.value,o=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return o;for(let a=n;a<=i;a++){const s=V(a);if(!cr(s))continue;const l=Mn(s).filter(u=>{const p=u.codePointAt(0);return p<n||p>i});if(l.length&&(o.push(...l),r))break}return o}function Ce(t,{isAfterBackref:e,inCharClass:r,useFlagV:n}){if(Qr.has(t))return Qr.get(t);if(t<32||t>126&&t<160||t>262143||e&&Pl(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?fl:hl:dl,o=V(t);return(i.has(o)?"\\":"")+o}function Rl(t){const e=t.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??(n=e[i]):n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function Il(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:o}=e;n=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${n}:`}function Tl({min:t,max:e,greedy:r,possessive:n}){let i;return!t&&e===1?i="?":!t&&e===1/0?i="*":t===1&&e===1/0?i="+":t===e?i=`{${t}}`:i=`{${t},${e===1/0?"":e}}`,i+(n?"+":r?"":"?")}function Pl(t){return t>47&&t<58}var pe,ke,Ll=(ke=class extends sr{constructor(r,n,i){var e=(..._c)=>(super(..._c),Cr(this,pe),g(this,"rawArgs"),this);if(r instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");e(r,n),r instanceof ke?(He(this,pe,kt(r,pe)),this.rawArgs=r.rawArgs):(He(this,pe,null),this.rawArgs={pattern:r.source,flags:r.flags,options:{}}),n!==void 0&&(this.rawArgs.flags=n)}else{const o={strategy:null,useEmulationGroups:!1,...i};e(r,n,{useEmulationGroups:o.useEmulationGroups}),He(this,pe,o.strategy),this.rawArgs={pattern:r,flags:n??"",options:{...o.strategy&&{strategy:o.strategy},...o.useEmulationGroups&&{useEmulationGroups:!0}}}}}exec(r){const n=super.exec,i=this.global||this.sticky,o=this.lastIndex;if(kt(this,pe)==="search_start_clip"&&i&&o){this.lastIndex=0;const a=n.call(this,r.slice(o));return a&&(Ol(a,this,r,o),this.lastIndex+=o),a}return n.call(this,r)}},pe=new WeakMap,ke);function Ol(t,e,r,n){if(t.input=r,t.index+=n,e.hasIndices){const i=t.indices;for(let a=0;a<i.length;a++){const s=i[a];s&&(i[a]=[s[0]+n,s[1]+n])}const o=i.groups;o&&Object.keys(o).forEach(a=>{const s=o[a];s&&(o[a]=[s[0]+n,s[1]+n])})}}function Dl(t,e){const r=Vn(e),n=r.avoidSubclass,i=zn(t,r.flags,{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}),o=Qn(i,{skipBackrefValidation:r.rules.allowOrphanBackrefs,verbose:r.verbose}),a=nl(o,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:n,bestEffortTarget:r.target}),s=pl(a,r),l={useEmulationGroups:!n},u={pattern:os(as(ls(s.pattern,l)),l),flags:`${r.hasIndices?"d":""}${r.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`},p=!n&&u.pattern.includes(ge),m=a._strategy;return(p||m)&&(u.options={...m&&{strategy:m},...p&&{useEmulationGroups:p}}),u}function xl(t,e){const r=Dl(t,e);return r.options?new Ll(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}const Jr=4294967295;class Nl{constructor(e,r={}){g(this,"regexps");this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:o}=r;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;const s=i==null?void 0:i.get(a);if(s){if(s instanceof RegExp)return s;if(n)return null;throw s}try{const l=o(a);return i==null||i.set(a,l),l}catch(l){if(i==null||i.set(a,l),n)return null;throw l}})}findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,o=[];function a(s,l,u=0){return{index:s,captureIndices:l.indices.map(p=>p==null?{start:Jr,end:Jr,length:0}:{start:p[0]+u,end:p[1]+u,length:p[1]-p[0]})}}for(let s=0;s<this.regexps.length;s++){const l=this.regexps[s];if(l)try{l.lastIndex=r;const u=l.exec(i);if(!u)continue;if(u.index===r)return a(s,u,0);o.push([s,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const s=Math.min(...o.map(l=>l[1].index));for(const[l,u,p]of o)if(u.index===s)return a(l,u,p)}return null}}function Vl(t,e){return xl(t,{global:!0,hasIndices:!0,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function bu(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||(e.regexConstructor=r=>Vl(r,{target:e.target})),{createScanner(r){return new Nl(r,e)},createString(r){return{content:r}}}}function Ml(t){return ee("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),dt(t)}function ku(t){return ee("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),dt(t)}function $l(t){return Array.isArray(t)?t:[t]}function yt(t,e=!1){var o;const r=t.split(/(\r?\n)/g);let n=0;const i=[];for(let a=0;a<r.length;a+=2){const s=e?r[a]+(r[a+1]||""):r[a];i.push([s,n]),n+=r[a].length,n+=((o=r[a+1])==null?void 0:o.length)||0}return i}function pr(t){return!t||["plaintext","txt","text","plain"].includes(t)}function ci(t){return t==="ansi"||pr(t)}function mr(t){return t==="none"}function pi(t){return mr(t)}function mi(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties).class||(n.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const r=Array.isArray(e)?e:e.split(/\s+/g);for(const i of r)i&&!t.properties.class.includes(i)&&t.properties.class.push(i);return t}function Gl(t,e){let r=0;const n=[];for(const i of e)i>r&&n.push({...t,content:t.content.slice(r,i),offset:t.offset+r}),r=i;return r<t.content.length&&n.push({...t,content:t.content.slice(r),offset:t.offset+r}),n}function Bl(t,e){const r=Array.from(e instanceof Set?e:new Set(e)).sort((n,i)=>n-i);return r.length?t.map(n=>n.flatMap(i=>{const o=r.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,s)=>a-s);return o.length?Gl(i,o):i})):t}async function di(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function ut(t,e){const r=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function de(t,e){return t&&((e==null?void 0:e[t==null?void 0:t.toLowerCase()])||t)}function hi(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&ae.Italic&&(e["font-style"]="italic"),t.fontStyle&ae.Bold&&(e["font-weight"]="bold"),t.fontStyle&ae.Underline&&(e["text-decoration"]="underline")),e}function Fl(t){return typeof t=="string"?t:Object.entries(t).map(([e,r])=>`${e}:${r}`).join(";")}function Ul(t){const e=yt(t,!0).map(([i])=>i);function r(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,a=0;for(const s of e){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function n(i,o){let a=0;for(let s=0;s<i;s++)a+=e[s].length;return a+=o,a}return{lines:e,indexToPos:r,posToIndex:n}}class j extends Error{constructor(e){super(e),this.name="ShikiError"}}const fi=new WeakMap;function Et(t,e){fi.set(t,e)}function Ve(t){return fi.get(t)}class we{constructor(...e){g(this,"_stacks",{});g(this,"lang");if(e.length===2){const[r,n]=e;this.lang=n,this._stacks=r}else{const[r,n,i]=e;this.lang=n,this._stacks={[i]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,r){return new we(Object.fromEntries($l(r).map(n=>[n,Ht])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return ee("GrammarState.scopes is deprecated, use GrammarState.getScopes() instead"),Zr(this._stacks[this.theme])}getScopes(e=this.theme){return Zr(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Zr(t){const e=[],r=new Set;function n(i){var a;if(r.has(i))return;r.add(i);const o=(a=i==null?void 0:i.nameScopesList)==null?void 0:a.scopeName;o&&e.push(o),i.parent&&n(i.parent)}return n(t),e}function jl(t,e){if(!(t instanceof we))throw new j("Invalid grammar state");return t.getInternalStack(e)}function Hl(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let n=function(a){if(typeof a=="number"){if(a<0||a>r.source.length)throw new j(`Invalid decoration offset: ${a}. Code length: ${r.source.length}`);return{...i.indexToPos(a),offset:a}}else{const s=i.lines[a.line];if(s===void 0)throw new j(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);if(a.character<0||a.character>s.length)throw new j(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,offset:i.posToIndex(a.line,a.character)}}};const i=Ul(r.source),o=(r.options.decorations||[]).map(a=>({...a,start:n(a.start),end:n(a.end)}));Wl(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}return{name:"shiki:decorations",tokens(r){var a;if(!((a=this.options.decorations)!=null&&a.length))return;const i=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Bl(r,i)},code(r){var p;if(!((p=this.options.decorations)!=null&&p.length))return;const n=e(this),i=Array.from(r.children).filter(m=>m.type==="element"&&m.tagName==="span");if(i.length!==n.converter.lines.length)throw new j(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(m,h,d,f){const v=i[m];let E="",C=-1,b=-1;if(h===0&&(C=0),d===0&&(b=0),d===Number.POSITIVE_INFINITY&&(b=v.children.length),C===-1||b===-1)for(let T=0;T<v.children.length;T++)E+=gi(v.children[T]),C===-1&&E.length===h&&(C=T+1),b===-1&&E.length===d&&(b=T+1);if(C===-1)throw new j(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(b===-1)throw new j(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const S=v.children.slice(C,b);if(!f.alwaysWrap&&S.length===v.children.length)s(v,f,"line");else if(!f.alwaysWrap&&S.length===1&&S[0].type==="element")s(S[0],f,"token");else{const T={type:"element",tagName:"span",properties:{},children:S};s(T,f,"wrapper"),v.children.splice(C,S.length,T)}}function a(m,h){i[m]=s(i[m],h,"line")}function s(m,h,d){var E;const f=h.properties||{},v=h.transform||(C=>C);return m.tagName=h.tagName||"span",m.properties={...m.properties,...f,class:m.properties.class},(E=h.properties)!=null&&E.class&&mi(m,h.properties.class),m=v(m,d)||m,m}const l=[],u=n.decorations.sort((m,h)=>h.start.offset-m.start.offset);for(const m of u){const{start:h,end:d}=m;if(h.line===d.line)o(h.line,h.character,d.character,m);else if(h.line<d.line){o(h.line,h.character,Number.POSITIVE_INFINITY,m);for(let f=h.line+1;f<d.line;f++)l.unshift(()=>a(f,m));o(d.line,0,d.character,m)}}l.forEach(m=>m())}}}function Wl(t){for(let e=0;e<t.length;e++){const r=t[e];if(r.start.offset>r.end.offset)throw new j(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=e+1;n<t.length;n++){const i=t[n],o=r.start.offset<i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<r.end.offset,s=i.start.offset<r.start.offset&&r.start.offset<i.end.offset,l=i.start.offset<r.end.offset&&r.end.offset<i.end.offset;if(o||a||s||l){if(a&&a||s&&l)continue;throw new j(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function gi(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(gi).join(""):""}const zl=[Hl()];function ct(t){return[...t.transformers||[],...zl]}var he=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],$t={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function ql(t,e){const r=t.indexOf("\x1B[",e);if(r!==-1){const n=t.indexOf("m",r);return{sequence:t.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:t.length}}function Yr(t,e){let r=1;const n=t[e+r++];let i;if(n==="2"){const o=[t[e+r++],t[e+r++],t[e+r]].map(a=>Number.parseInt(a));o.length===3&&!o.some(a=>Number.isNaN(a))&&(i={type:"rgb",rgb:o})}else if(n==="5"){const o=Number.parseInt(t[e+r]);Number.isNaN(o)||(i={type:"table",index:Number(o)})}return[r,i]}function Kl(t){const e=[];for(let r=0;r<t.length;r++){const n=t[r],i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)$t[i]&&e.push({type:"setDecoration",value:$t[i]});else if(i<=29){const o=$t[i-20];o&&e.push({type:"resetDecoration",value:o})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:he[i-30]}});else if(i===38){const[o,a]=Yr(t,r);a&&e.push({type:"setForegroundColor",value:a}),r+=o}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:he[i-40]}});else if(i===48){const[o,a]=Yr(t,r);a&&e.push({type:"setBackgroundColor",value:a}),r+=o}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:he[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:he[i-100+8]}})}return e}function Xl(){let t=null,e=null,r=new Set;return{parse(n){const i=[];let o=0;do{const a=ql(n,o),s=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(s.length>0&&i.push({value:s,foreground:t,background:e,decorations:new Set(r)}),a.sequence){const l=Kl(a.sequence);for(const u of l)u.type==="resetAll"?(t=null,e=null,r.clear()):u.type==="resetForegroundColor"?t=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&r.delete(u.value);for(const u of l)u.type==="setForegroundColor"?t=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&r.add(u.value)}o=a.position}while(o<n.length);return i}}}var Ql={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 Jl(t=Ql){function e(s){return t[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<he.length;u++)n.push(e(he[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)n.push(r([s[u],s[p],s[m]]));let l=8;for(let u=0;u<24;u++,l+=10)n.push(r([l,l,l]));return n}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return e(s.name);case"rgb":return r(s.rgb);case"table":return o(s.index)}}return{value:a}}function Zl(t,e,r){const n=ut(t,r),i=yt(e),o=Jl(Object.fromEntries(he.map(s=>{var l;return[s,(l=t.colors)==null?void 0:l[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]}))),a=Xl();return i.map(s=>a.parse(s[0]).map(l=>{let u,p;l.decorations.has("reverse")?(u=l.background?o.value(l.background):t.bg,p=l.foreground?o.value(l.foreground):t.fg):(u=l.foreground?o.value(l.foreground):t.fg,p=l.background?o.value(l.background):void 0),u=de(u,n),p=de(p,n),l.decorations.has("dim")&&(u=Yl(u));let m=ae.None;return l.decorations.has("bold")&&(m|=ae.Bold),l.decorations.has("italic")&&(m|=ae.Italic),l.decorations.has("underline")&&(m|=ae.Underline),{content:l.value,offset:s[1],color:u,bgColor:p,fontStyle:m}}))}function Yl(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const n=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${n}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(n=>`${n}${n}`).join("")}80`;const r=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:t}function Ct(t,e,r={}){const{lang:n="text",theme:i=t.getLoadedThemes()[0]}=r;if(pr(n)||mr(i))return yt(e).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:a}=t.setTheme(i);if(n==="ansi")return Zl(o,e,r);const s=t.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==s.name)throw new se(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(o.name))throw new se(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return eu(e,s,o,a,r)}function _i(...t){if(t.length===2)return Ve(t[1]);const[e,r,n={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=n;if(pr(i)||mr(o))throw new se("Plain language does not have grammar state");if(i==="ansi")throw new se("ANSI language does not have grammar state");const{theme:a,colorMap:s}=e.setTheme(o),l=e.getLanguage(i);return new we(pt(r,l,a,s,n).stateStack,l.name,a.name)}function eu(t,e,r,n,i){const o=pt(t,e,r,n,i),a=new we(pt(t,e,r,n,i).stateStack,e.name,r.name);return Et(o.tokens,a),o.tokens}function pt(t,e,r,n,i){const o=ut(r,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=yt(t);let u=i.grammarState?jl(i.grammarState,r.name)??Ht:i.grammarContextCode!=null?pt(i.grammarContextCode,e,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ht,p=[];const m=[];for(let h=0,d=l.length;h<d;h++){const[f,v]=l[h];if(f===""){p=[],m.push([]);continue}if(a>0&&f.length>=a){p=[],m.push([{content:f,offset:v,color:"",fontStyle:0}]);continue}let E,C,b;i.includeExplanation&&(E=e.tokenizeLine(f,u),C=E.tokens,b=0);const S=e.tokenizeLine2(f,u,s),T=S.tokens.length/2;for(let L=0;L<T;L++){const B=S.tokens[2*L],O=L+1<T?S.tokens[2*L+2]:f.length;if(B===O)continue;const te=S.tokens[2*L+1],je=de(n[Ae.getForeground(te)],o),Re=Ae.getFontStyle(te),vt={content:f.substring(B,O),offset:v+B,color:je,fontStyle:Re};if(i.includeExplanation){const gr=[];if(i.includeExplanation!=="scopeName")for(const re of r.settings){let ye;switch(typeof re.scope){case"string":ye=re.scope.split(/,/).map(bt=>bt.trim());break;case"object":ye=re.scope;break;default:continue}gr.push({settings:re,selectors:ye.map(bt=>bt.split(/ /))})}vt.explanation=[];let _r=0;for(;B+_r<O;){const re=C[b],ye=f.substring(re.startIndex,re.endIndex);_r+=ye.length,vt.explanation.push({content:ye,scopes:i.includeExplanation==="scopeName"?tu(re.scopes):ru(gr,re.scopes)}),b+=1}}p.push(vt)}m.push(p),p=[],u=S.ruleStack}return{tokens:m,stateStack:u}}function tu(t){return t.map(e=>({scopeName:e}))}function ru(t,e){const r=[];for(let n=0,i=e.length;n<i;n++){const o=e[n];r[n]={scopeName:o,themeMatches:iu(t,o,e.slice(0,n))}}return r}function en(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function nu(t,e,r){if(!en(t[t.length-1],e))return!1;let n=t.length-2,i=r.length-1;for(;n>=0&&i>=0;)en(t[n],r[i])&&(n-=1),i-=1;return n===-1}function iu(t,e,r){const n=[];for(const{selectors:i,settings:o}of t)for(const a of i)if(nu(a,e,r)){n.push(o);break}return n}function dr(t,e,r){const n=Object.entries(r.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=n.map(l=>{const u=Ct(t,e,{...r,theme:l.theme}),p=Ve(u),m=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:p,theme:m}}),o=ou(...i.map(l=>l.tokens)),a=o[0].map((l,u)=>l.map((p,m)=>{const h={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(h.explanation=p.explanation),o.forEach((d,f)=>{const{content:v,explanation:E,offset:C,...b}=d[u][m];h.variants[n[f].color]=b}),h})),s=i[0].state?new we(Object.fromEntries(i.map(l=>{var u;return[l.theme,(u=l.state)==null?void 0:u.getInternalStack(l.theme)]})),i[0].state.lang):void 0;return s&&Et(a,s),a}function ou(...t){const e=t.map(()=>[]),r=t.length;for(let n=0;n<t[0].length;n++){const i=t.map(l=>l[n]),o=e.map(()=>[]);e.forEach((l,u)=>l.push(o[u]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){const p=s[u];p.content.length===l?(o[u].push(p),a[u]+=1,s[u]=i[u][a[u]]):(o[u].push({...p,content:p.content.slice(0,l)}),s[u]={...p,content:p.content.slice(l),offset:p.offset+l})}}}return e}function Me(t,e,r){let n,i,o,a,s,l;if("themes"in r){const{defaultColor:u="light",cssVariablePrefix:p="--shiki-"}=r,m=Object.entries(r.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,C)=>E.color===u?-1:C.color===u?1:0);if(m.length===0)throw new se("`themes` option must not be empty");const h=dr(t,e,r);if(l=Ve(h),u&&!m.find(E=>E.color===u))throw new se(`\`themes\` option must contain the defaultColor key \`${u}\``);const d=m.map(E=>t.getTheme(E.theme)),f=m.map(E=>E.color);o=h.map(E=>E.map(C=>au(C,f,p,u))),l&&Et(o,l);const v=m.map(E=>ut(E.theme,r));i=m.map((E,C)=>(C===0&&u?"":`${p+E.color}:`)+(de(d[C].fg,v[C])||"inherit")).join(";"),n=m.map((E,C)=>(C===0&&u?"":`${p+E.color}-bg:`)+(de(d[C].bg,v[C])||"inherit")).join(";"),a=`shiki-themes ${d.map(E=>E.name).join(" ")}`,s=u?void 0:[i,n].join(";")}else if("theme"in r){const u=ut(r.theme,r);o=Ct(t,e,r);const p=t.getTheme(r.theme);n=de(p.bg,u),i=de(p.fg,u),a=p.name,l=Ve(o)}else throw new se("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:s,grammarState:l}}function au(t,e,r,n){const i={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(l=>hi(t.variants[l])),a=new Set(o.flatMap(l=>Object.keys(l))),s={};return o.forEach((l,u)=>{for(const p of a){const m=l[p]||"inherit";if(u===0&&n)s[p]=m;else{const h=p==="color"?"":p==="background-color"?"-bg":`-${p}`,d=r+e[u]+(p==="color"?"":h);s[d]=m}}}),i.htmlStyle=s,i}function $e(t,e,r,n={meta:{},options:r,codeToHast:(i,o)=>$e(t,i,o),codeToTokens:(i,o)=>Me(t,i,o)}){var d,f;let i=e;for(const v of ct(r))i=((d=v.preprocess)==null?void 0:d.call(n,i,r))||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:u,grammarState:p}=Me(t,i,r);const{mergeWhitespaces:m=!0}=r;m===!0?o=lu(o):m==="never"&&(o=uu(o));const h={...n,get source(){return i}};for(const v of ct(r))o=((f=v.tokens)==null?void 0:f.call(h,o))||o;return su(o,{...r,fg:a,bg:s,themeName:l,rootStyle:u},h,p)}function su(t,e,r,n=Ve(t)){var f,v,E;const i=ct(e),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=e;let u={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([C])=>!C.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const m=[],h={...r,structure:s,addClassToHast:mi,get source(){return r.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return u},get code(){return p},get lines(){return m}};if(t.forEach((C,b)=>{var L,B;b&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:`
|
|
149
|
-
`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const O of C){let te={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};typeof O.htmlStyle=="string"&&ee("`htmlStyle` as a string is deprecated. Use an object instead.");const je=Fl(O.htmlStyle||hi(O));je&&(te.properties.style=je);for(const Re of i)te=((L=Re==null?void 0:Re.span)==null?void 0:L.call(h,te,b+1,T,S,O))||te;s==="inline"?a.children.push(te):s==="classic"&&S.children.push(te),T+=O.content.length}if(s==="classic"){for(const O of i)S=((B=O==null?void 0:O.line)==null?void 0:B.call(h,S,b+1))||S;m.push(S),o.push(S)}}),s==="classic"){for(const C of i)p=((f=C==null?void 0:C.code)==null?void 0:f.call(h,p))||p;u.children.push(p);for(const C of i)u=((v=C==null?void 0:C.pre)==null?void 0:v.call(h,u))||u;a.children.push(u)}let d=a;for(const C of i)d=((E=C==null?void 0:C.root)==null?void 0:E.call(h,d))||d;return n&&Et(d,n),d}function lu(t){return t.map(e=>{const r=[];let n="",i=0;return e.forEach((o,a)=>{const l=!(o.fontStyle&&o.fontStyle&ae.Underline);l&&o.content.match(/^\s+$/)&&e[a+1]?(i||(i=o.offset),n+=o.content):n?(l?r.push({...o,offset:i,content:n+o.content}):r.push({content:n,offset:i},o),i=0,n=""):r.push(o)}),r})}function uu(t){return t.map(e=>e.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,o,a]=n;if(!i&&!a)return r;const s=[{...r,offset:r.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:r.offset}),a&&s.push({content:a,offset:r.offset+i.length+o.length}),s}))}function yi(t,e,r){var o;const n={meta:{},options:r,codeToHast:(a,s)=>$e(t,a,s),codeToTokens:(a,s)=>Me(t,a,s)};let i=Xa($e(t,e,r,n));for(const a of ct(r))i=((o=a.postprocess)==null?void 0:o.call(n,i,r))||i;return i}const tn={light:"#333333",dark:"#bbbbbb"},rn={light:"#fffffe",dark:"#1e1e1e"},nn="__shiki_resolved";function hr(t){var s,l,u,p,m;if(t!=null&&t[nn])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:r,fg:n}=e;if(!r||!n){const h=e.settings?e.settings.find(d=>!d.name&&!d.scope):void 0;(s=h==null?void 0:h.settings)!=null&&s.foreground&&(n=h.settings.foreground),(l=h==null?void 0:h.settings)!=null&&l.background&&(r=h.settings.background),!n&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(n=e.colors["editor.foreground"]),!r&&((p=e==null?void 0:e.colors)!=null&&p["editor.background"])&&(r=e.colors["editor.background"]),n||(n=e.type==="light"?tn.light:tn.dark),r||(r=e.type==="light"?rn.light:rn.dark),e.fg=n,e.bg=r}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function a(h){var f;if(o.has(h))return o.get(h);i+=1;const d=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(f=e.colorReplacements)!=null&&f[`#${d}`]?a(h):(o.set(h,d),d)}e.settings=e.settings.map(h=>{var E,C;const d=((E=h.settings)==null?void 0:E.foreground)&&!h.settings.foreground.startsWith("#"),f=((C=h.settings)==null?void 0:C.background)&&!h.settings.background.startsWith("#");if(!d&&!f)return h;const v={...h,settings:{...h.settings}};if(d){const b=a(h.settings.foreground);e.colorReplacements[b]=h.settings.foreground,v.settings.foreground=b}if(f){const b=a(h.settings.background);e.colorReplacements[b]=h.settings.background,v.settings.background=b}return v});for(const h of Object.keys(e.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((m=e.colors[h])!=null&&m.startsWith("#"))){const d=a(e.colors[h]);e.colorReplacements[d]=e.colors[h],e.colors[h]=d}return Object.defineProperty(e,nn,{enumerable:!1,writable:!1,value:!0}),e}async function Ei(t){return Array.from(new Set((await Promise.all(t.filter(e=>!ci(e)).map(async e=>await di(e).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function Ci(t){return(await Promise.all(t.map(async r=>pi(r)?null:hr(await di(r))))).filter(r=>!!r)}class cu extends No{constructor(r,n,i,o={}){super(r);g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=n,this._langs=i,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const n=hr(r);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let n=this._textmateThemeCache.get(r);n||(n=tt.createFromRawTheme(r),this._textmateThemeCache.set(r,n)),this._syncRegistry.setTheme(n)}getGrammar(r){if(this._alias[r]){const n=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],n.has(r))throw new j(`Circular alias \`${Array.from(n).join(" -> ")} -> ${r}\``);n.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var a,s,l,u;if(this.getGrammar(r.name))return;const n=new Set([...this._langMap.values()].filter(p=>{var m;return(m=p.embeddedLangsLazy)==null?void 0:m.includes(r.name)}));this._resolver.addLanguage(r);const i={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const o=this.loadGrammarWithConfiguration(r.scopeName,1,i);if(o.name=r.name,this._resolvedGrammars.set(r.name,o),r.aliases&&r.aliases.forEach(p=>{this._alias[p]=r.name}),this._loadedLanguagesCache=null,n.size)for(const p of n)this._resolvedGrammars.delete(p.name),this._loadedLanguagesCache=null,(s=(a=this._syncRegistry)==null?void 0:a._injectionGrammars)==null||s.delete(p.scopeName),(u=(l=this._syncRegistry)==null?void 0:l._grammars)==null||u.delete(p.scopeName),this.loadLanguage(this._langMap.get(p.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const o of r)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),i=n.filter(([o,a])=>!a);if(i.length){const o=n.filter(([a,s])=>{var l;return s&&((l=s.embeddedLangs)==null?void 0:l.some(u=>i.map(([p])=>p).includes(u)))}).filter(a=>!i.includes(a));throw new j(`Missing languages ${i.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[o,a]of n)this._resolver.addLanguage(a);for(const[o,a]of n)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const n of r.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class pu{constructor(e,r){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},r.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(r=>{this._langs.set(r,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(e.scopeName)})}getInjections(e){const r=e.split(".");let n=[];for(let i=1;i<=r.length;i++){const o=r.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let Ie=0;function vi(t){Ie+=1,t.warnings!==!1&&Ie>=10&&Ie%10===0&&console.warn(`[Shiki] ${Ie} 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 j("`engine` option is required for synchronous mode");const r=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(hr),i=new pu(t.engine,r),o=new cu(i,n,r,t.langAlias);let a;function s(b){E();const S=o.getGrammar(typeof b=="string"?b:b.name);if(!S)throw new j(`Language \`${b}\` not found, you may need to load it first`);return S}function l(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const S=o.getTheme(b);if(!S)throw new j(`Theme \`${b}\` not found, you may need to load it first`);return S}function u(b){E();const S=l(b);a!==b&&(o.setTheme(S),a=b);const T=o.getColorMap();return{theme:S,colorMap:T}}function p(){return E(),o.getLoadedThemes()}function m(){return E(),o.getLoadedLanguages()}function h(...b){E(),o.loadLanguages(b.flat(1))}async function d(...b){return h(await Ei(b))}function f(...b){E();for(const S of b.flat(1))o.loadTheme(S)}async function v(...b){return E(),f(await Ci(b))}function E(){if(e)throw new j("Shiki instance has been disposed")}function C(){e||(e=!0,o.dispose(),Ie-=1)}return{setTheme:u,getTheme:l,getLanguage:s,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:d,loadLanguageSync:h,loadTheme:v,loadThemeSync:f,dispose:C,[Symbol.dispose]:C}}async function bi(t={}){t.loadWasm&&ee("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead.");const[e,r,n]=await Promise.all([Ci(t.themes||[]),Ei(t.langs||[]),t.engine||dt(t.loadWasm||Ki())]);return vi({...t,themes:e,langs:r,engine:n})}function Au(t={}){return ee("`getShikiInternal` is deprecated. Use `createShikiInternal` instead."),bi(t)}async function fr(t={}){const e=await bi(t);return{getLastGrammarState:(...r)=>_i(e,...r),codeToTokensBase:(r,n)=>Ct(e,r,n),codeToTokensWithThemes:(r,n)=>dr(e,r,n),codeToTokens:(r,n)=>Me(e,r,n),codeToHast:(r,n)=>$e(e,r,n),codeToHtml:(r,n)=>yi(e,r,n),...e,getInternalContext:()=>e}}function Su(t={}){const e=vi(t);return{getLastGrammarState:(...r)=>_i(e,...r),codeToTokensBase:(r,n)=>Ct(e,r,n),codeToTokensWithThemes:(r,n)=>dr(e,r,n),codeToTokens:(r,n)=>Me(e,r,n),codeToHast:(r,n)=>$e(e,r,n),codeToHtml:(r,n)=>yi(e,r,n),...e,getInternalContext:()=>e}}function mu(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}const wu=mu(fr);function Ru(t={}){return ee("`getHighlighterCore` is deprecated. Use `createHighlighterCore` or `getSingletonHighlighterCore` instead."),fr(t)}function du(t,e,r){let n,i,o;if(e)ee("`createdBundledHighlighter` signature with `bundledLanguages` and `bundledThemes` is deprecated. Use the options object signature instead."),n=t,i=e,o=()=>Ml(r);else{const s=t;n=s.langs,i=s.themes,o=s.engine}async function a(s){function l(d){if(typeof d=="string"){if(ci(d))return[];const f=n[d];if(!f)throw new se(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}function u(d){if(pi(d))return"none";if(typeof d=="string"){const f=i[d];if(!f)throw new se(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}const p=(s.themes??[]).map(d=>u(d)),m=(s.langs??[]).map(d=>l(d)),h=await fr({engine:s.engine??o(),...s,themes:p,langs:m});return{...h,loadLanguage(...d){return h.loadLanguage(...d.map(l))},loadTheme(...d){return h.loadTheme(...d.map(u))}}}return a}function hu(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}function fu(t){const e=hu(t);return{getSingletonHighlighter(r){return e(r)},async codeToHtml(r,n){return(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHtml(r,n)},async codeToHast(r,n){return(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHast(r,n)},async codeToTokens(r,n){return(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToTokens(r,n)},async codeToTokensBase(r,n){return(await e({langs:[n.lang],themes:[n.theme]})).codeToTokensBase(r,n)},async codeToTokensWithThemes(r,n){return(await e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)})).codeToTokensWithThemes(r,n)},async getLastGrammarState(r,n){return(await e({langs:[n.lang],themes:[n.theme]})).getLastGrammarState(r,n)}}}function Iu(t={}){var a;const{name:e="css-variables",variablePrefix:r="--shiki-",fontStyle:n=!0}=t,i=s=>{var l;return(l=t.variableDefaults)!=null&&l[s]?`var(${r}${s}, ${t.variableDefaults[s]})`:`var(${r}${s})`},o={name:e,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("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:i("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:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("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:i("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:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("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:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("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:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return n||(o.tokenColors=(a=o.tokenColors)==null?void 0:a.map(s=>{var l;return(l=s.settings)!=null&&l.fontStyle&&delete s.settings.fontStyle,s})),o}const Tu=async t=>(ee('`getWasmInlined` is deprecated. Use `import("shiki/wasm")` instead.'),c(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url).then(e=>e.default(t))),ki=du({langs:Ii,themes:Pi,engine:()=>dt(c(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Pu,codeToHast:Lu,codeToTokens:Ou,codeToTokensBase:Du,codeToTokensWithThemes:xu,getSingletonHighlighter:Nu,getLastGrammarState:Vu}=fu(ki),Mu=t=>(ee("`getHighlighter` is deprecated. Use `createHighlighter` or `getSingletonHighlighter` instead."),ki(t));export{ae as FontStyle,se as ShikiError,Ae as StackElementMetadata,mi as addClassToHast,de as applyColorReplacements,Ii as bundledLanguages,Ri as bundledLanguagesAlias,wi as bundledLanguagesBase,on as bundledLanguagesInfo,Pi as bundledThemes,Ti as bundledThemesInfo,Lu as codeToHast,Pu as codeToHtml,Ou as codeToTokens,Du as codeToTokensBase,xu as codeToTokensWithThemes,Iu as createCssVariablesTheme,ki as createHighlighter,fr as createHighlighterCore,Su as createHighlighterCoreSync,bu as createJavaScriptRegexEngine,dt as createOnigurumaEngine,Ul as createPositionConverter,bi as createShikiInternal,vi as createShikiInternalSync,fu as createSingletonShorthands,ku as createWasmOnigEngine,du as createdBundledHighlighter,Vl as defaultJavaScriptRegexConstructor,Cu as enableDeprecationWarnings,Mu as getHighlighter,Ru as getHighlighterCore,Vu as getLastGrammarState,Au as getShikiInternal,Nu as getSingletonHighlighter,wu as getSingletonHighlighterCore,hi as getTokenStyleObject,Tu as getWasmInlined,Xa as hastToHtml,mr as isNoneTheme,pr as isPlainLang,ci as isSpecialLang,pi as isSpecialTheme,Hi as loadWasm,hu as makeSingletonHighlighter,mu as makeSingletonHighlighterCore,di as normalizeGetter,hr as normalizeTheme,ut as resolveColorReplacements,yt as splitLines,Gl as splitToken,Bl as splitTokens,Fl as stringifyTokenStyle,$l as toArray,Zl as tokenizeAnsiWithTheme,eu as tokenizeWithTheme,su as tokensToHast,Hl as transformerDecorations,ee as warnDeprecated};
|