vibelet 1.2.125 → 1.2.129
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.cjs +1 -1
- package/dist/runtime-version.cjs +1 -1
- package/dist/web/assets/abap-BdImnpbu.js +1 -0
- package/dist/web/assets/actionscript-3-CoDkCxhg.js +1 -0
- package/dist/web/assets/ada-bCR0ucgS.js +1 -0
- package/dist/web/assets/andromeeda-C4gqWexZ.js +1 -0
- package/dist/web/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist/web/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist/web/assets/apache-Pmp26Uib.js +1 -0
- package/dist/web/assets/apex-D8_7TLub.js +1 -0
- package/dist/web/assets/apl-dKokRX4l.js +1 -0
- package/dist/web/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/web/assets/ara-BRHolxvo.js +1 -0
- package/dist/web/assets/asciidoc-Ve4PFQV2.js +1 -0
- package/dist/web/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/web/assets/astro-CbQHKStN.js +1 -0
- package/dist/web/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/web/assets/awk-DMzUqQB5.js +1 -0
- package/dist/web/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/web/assets/ayu-light-BA47KaF1.js +1 -0
- package/dist/web/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/web/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/web/assets/bat-BkioyH1T.js +1 -0
- package/dist/web/assets/beancount-k_qm7-4y.js +1 -0
- package/dist/web/assets/berry-uYugtg8r.js +1 -0
- package/dist/web/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/web/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/web/assets/bird2-DPOp833l.js +1 -0
- package/dist/web/assets/blade-D4QpJJKB.js +1 -0
- package/dist/web/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/web/assets/c-BIGW1oBm.js +1 -0
- package/dist/web/assets/c3-eo99z4R2.js +1 -0
- package/dist/web/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/web/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/web/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/web/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/web/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/web/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/web/assets/clarity-D53aC0YG.js +1 -0
- package/dist/web/assets/clojure-P80f7IUj.js +1 -0
- package/dist/web/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/web/assets/cobol-nwyudZeR.js +1 -0
- package/dist/web/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/web/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/web/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/web/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/web/assets/coq-DkFqJrB1.js +1 -0
- package/dist/web/assets/cpp-CofmeUqb.js +1 -0
- package/dist/web/assets/crystal-tKQVLTB8.js +1 -0
- package/dist/web/assets/csharp-COcwbKMJ.js +1 -0
- package/dist/web/assets/css-DPfMkruS.js +1 -0
- package/dist/web/assets/csv-fuZLfV_i.js +1 -0
- package/dist/web/assets/cue-D82EKSYY.js +1 -0
- package/dist/web/assets/cypher-COkxafJQ.js +1 -0
- package/dist/web/assets/d-85-TOEBH.js +1 -0
- package/dist/web/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/web/assets/dart-CF10PKvl.js +1 -0
- package/dist/web/assets/dax-CEL-wOlO.js +1 -0
- package/dist/web/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/web/assets/diff-D97Zzqfu.js +1 -0
- package/dist/web/assets/docker-BcOcwvcX.js +1 -0
- package/dist/web/assets/dotenv-Da5cRb03.js +1 -0
- package/dist/web/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/web/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/web/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/web/assets/edge-BkV0erSs.js +1 -0
- package/dist/web/assets/elixir-CDX3lj18.js +1 -0
- package/dist/web/assets/elm-DbKCFpqz.js +1 -0
- package/dist/web/assets/emacs-lisp-C9XAeP06.js +1 -0
- package/dist/web/assets/erb-B12qg9BL.js +1 -0
- package/dist/web/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/web/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/web/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/web/assets/fennel-BYunw83y.js +1 -0
- package/dist/web/assets/fish-BvzEVeQv.js +1 -0
- package/dist/web/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/web/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/web/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/web/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/web/assets/gdresource-BOOCDP_w.js +1 -0
- package/dist/web/assets/gdscript-C5YyOfLZ.js +1 -0
- package/dist/web/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/web/assets/genie-D0YGMca9.js +1 -0
- package/dist/web/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/web/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/web/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/web/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/web/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/web/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/web/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/web/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/web/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/web/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/web/assets/gleam-BspZqrRM.js +1 -0
- package/dist/web/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist/web/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist/web/assets/glsl-DplSGwfg.js +1 -0
- package/dist/web/assets/gn-n2N0HUVH.js +1 -0
- package/dist/web/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/web/assets/go-CxLEBnE3.js +1 -0
- package/dist/web/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/web/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/web/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/web/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/web/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/web/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/web/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/web/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/web/assets/hack-CaT9iCJl.js +1 -0
- package/dist/web/assets/haml-B8DHNrY2.js +1 -0
- package/dist/web/assets/handlebars-BL8al0AC.js +1 -0
- package/dist/web/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/web/assets/haxe-CzTSHFRz.js +1 -0
- package/dist/web/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/web/assets/highlighted-body-TPN3WLV5-CgFTJgdd.js +1 -0
- package/dist/web/assets/hjson-D5-asLiD.js +1 -0
- package/dist/web/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/web/assets/horizon-BUw7H-hv.js +1 -0
- package/dist/web/assets/horizon-bright-Cn-bp-IR.js +1 -0
- package/dist/web/assets/houston-DnULxvSX.js +1 -0
- package/dist/web/assets/html-GMplVEZG.js +1 -0
- package/dist/web/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist/web/assets/http-jrhK8wxY.js +1 -0
- package/dist/web/assets/hurl-irOxFIW8.js +1 -0
- package/dist/web/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/web/assets/hy-DFXneXwc.js +1 -0
- package/dist/web/assets/imba-DGztddWO.js +1 -0
- package/dist/web/assets/{index-msLkYATw.js → index-DrHeZj-O.js} +14 -13
- package/dist/web/assets/ini-BEwlwnbL.js +1 -0
- package/dist/web/assets/java-CylS5w8V.js +1 -0
- package/dist/web/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/web/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist/web/assets/jison-wvAkD_A8.js +1 -0
- package/dist/web/assets/json-Cp-IABpG.js +1 -0
- package/dist/web/assets/json5-C9tS-k6U.js +1 -0
- package/dist/web/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/web/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/web/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/web/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/web/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/web/assets/julia-CxzCAyBv.js +1 -0
- package/dist/web/assets/just-Cw27pwNe.js +1 -0
- package/dist/web/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/web/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/web/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/web/assets/kdl-DV7GczEv.js +1 -0
- package/dist/web/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/web/assets/kusto-DZf3V79B.js +1 -0
- package/dist/web/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/web/assets/latex-CWtU0Tv5.js +1 -0
- package/dist/web/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/web/assets/less-B1dDrJ26.js +1 -0
- package/dist/web/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/web/assets/liquid-DYVedYrR.js +1 -0
- package/dist/web/assets/llvm-DjAJT7YJ.js +1 -0
- package/dist/web/assets/log-2UxHyX5q.js +1 -0
- package/dist/web/assets/logo-BtOb2qkB.js +1 -0
- package/dist/web/assets/lua-BaeVxFsk.js +1 -0
- package/dist/web/assets/luau-C-HG3fhB.js +1 -0
- package/dist/web/assets/make-CHLpvVh8.js +1 -0
- package/dist/web/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/web/assets/marko-CnJfTvn9.js +1 -0
- package/dist/web/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/web/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/web/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/web/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/web/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/web/assets/matlab-D7o27uSR.js +1 -0
- package/dist/web/assets/mdc-BMNejdWA.js +1 -0
- package/dist/web/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/web/assets/mermaid-O7DHMXV3-BUtlj-w-.js +275 -0
- package/dist/web/assets/mermaid-O7DHMXV3-CWrBrdCY.css +1 -0
- package/dist/web/assets/mermaid-mWjccvbQ.js +1 -0
- package/dist/web/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/web/assets/min-light-CTRr51gU.js +1 -0
- package/dist/web/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/web/assets/mojo-rZm6bMo-.js +1 -0
- package/dist/web/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/web/assets/moonbit-_H4v1dQx.js +1 -0
- package/dist/web/assets/move-IF9eRakj.js +1 -0
- package/dist/web/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/web/assets/nextflow-Zz6hmt5N.js +1 -0
- package/dist/web/assets/nextflow-groovy-BeH2EWoN.js +1 -0
- package/dist/web/assets/nginx-BpAMiNFr.js +1 -0
- package/dist/web/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/web/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/web/assets/nim-CVrawwO9.js +1 -0
- package/dist/web/assets/nix-CwoSXNpI.js +1 -0
- package/dist/web/assets/nord-Ddv68eIx.js +1 -0
- package/dist/web/assets/nushell-Cz2AlsmD.js +1 -0
- package/dist/web/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/web/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/web/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/web/assets/odin-BBf5iR-q.js +1 -0
- package/dist/web/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/web/assets/one-light-C3Wv6jpd.js +1 -0
- package/dist/web/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/web/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/web/assets/perl-C0TMdlhV.js +1 -0
- package/dist/web/assets/php-Dhbhpdrm.js +1 -0
- package/dist/web/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/web/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/web/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/web/assets/po-BTJTHyun.js +1 -0
- package/dist/web/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/web/assets/polar-C0HS_06l.js +1 -0
- package/dist/web/assets/postcss-CXtECtnM.js +1 -0
- package/dist/web/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/web/assets/powershell-Dpen1YoG.js +1 -0
- package/dist/web/assets/prisma-Dd19v3D-.js +1 -0
- package/dist/web/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/web/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/web/assets/pug-CGlum2m_.js +1 -0
- package/dist/web/assets/puppet-BMWR74SV.js +1 -0
- package/dist/web/assets/purescript-CklMAg4u.js +1 -0
- package/dist/web/assets/python-B6aJPvgy.js +1 -0
- package/dist/web/assets/qml-3beO22l8.js +1 -0
- package/dist/web/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/web/assets/qss-IeuSbFQv.js +1 -0
- package/dist/web/assets/r-Dspwwk_N.js +1 -0
- package/dist/web/assets/racket-BqYA7rlc.js +1 -0
- package/dist/web/assets/raku-DXvB9xmW.js +1 -0
- package/dist/web/assets/razor-Uh8Bk_45.js +1 -0
- package/dist/web/assets/red-bN70gL4F.js +1 -0
- package/dist/web/assets/reg-C-SQnVFl.js +1 -0
- package/dist/web/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/web/assets/rel-C3B-1QV4.js +1 -0
- package/dist/web/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/web/assets/ron-D8l8udqQ.js +1 -0
- package/dist/web/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/web/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/web/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/web/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/web/assets/rst-BrH8l1NY.js +1 -0
- package/dist/web/assets/ruby-Dw2BHqvy.js +1 -0
- package/dist/web/assets/rust-B1yitclQ.js +1 -0
- package/dist/web/assets/sas-cz2c8ADy.js +1 -0
- package/dist/web/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/web/assets/scala-C151Ov-r.js +1 -0
- package/dist/web/assets/scheme-C98Dy4si.js +1 -0
- package/dist/web/assets/scss-OYdSNvt2.js +1 -0
- package/dist/web/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/web/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/web/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/web/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/web/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/web/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/web/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist/web/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/web/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/web/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/web/assets/solidity-rGO070M0.js +1 -0
- package/dist/web/assets/soy-Brmx7dQM.js +1 -0
- package/dist/web/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/web/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/web/assets/sql-BLtJtn59.js +1 -0
- package/dist/web/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/web/assets/stata-BH5u7GGu.js +1 -0
- package/dist/web/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/web/assets/surrealql-Bq5Q-fJD.js +1 -0
- package/dist/web/assets/svelte-C_ipcX3V.js +1 -0
- package/dist/web/assets/swift-D82vCrfD.js +1 -0
- package/dist/web/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/web/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist/web/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/web/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/web/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/web/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/web/assets/templ-P3uqSqPl.js +1 -0
- package/dist/web/assets/terraform-BETggiCN.js +1 -0
- package/dist/web/assets/tex-idrVyKtj.js +1 -0
- package/dist/web/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/web/assets/toml-vGWfd6FD.js +1 -0
- package/dist/web/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist/web/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/web/assets/tsx-COt5Ahok.js +1 -0
- package/dist/web/assets/turtle-BsS91CYL.js +1 -0
- package/dist/web/assets/twig-DNn4PbVi.js +1 -0
- package/dist/web/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/web/assets/typespec-BGHnOYBU.js +1 -0
- package/dist/web/assets/typst-DHCkPAjA.js +1 -0
- package/dist/web/assets/v-BcVCzyr7.js +1 -0
- package/dist/web/assets/vala-CsfeWuGM.js +1 -0
- package/dist/web/assets/vb-D17OF-Vu.js +1 -0
- package/dist/web/assets/verilog-BQ8w6xss.js +1 -0
- package/dist/web/assets/vesper-DU1UobuO.js +1 -0
- package/dist/web/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/web/assets/viml-CJc9bBzg.js +1 -0
- package/dist/web/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/web/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/web/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/web/assets/vue-DN_0RTcg.js +1 -0
- package/dist/web/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/web/assets/vue-vine-CQOfvN7w.js +1 -0
- package/dist/web/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/web/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/web/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/web/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/web/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/web/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/web/assets/wit-5i3qLPDT.js +1 -0
- package/dist/web/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/web/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/web/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/web/assets/yaml-Buea-lGh.js +1 -0
- package/dist/web/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/web/assets/zig-VOosw3JB.js +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/highlighted-body-TPN3WLV5-CgFTJgdd.js","assets/index-DrHeZj-O.js","assets/index-Nazb4KfI.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as b,a as zp,r as L,j as C}from"./index-DrHeZj-O.js";function kc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}let Ie=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Gp(e){return Fa(e)}function Fa(e){return Array.isArray(e)?qp(e):e instanceof RegExp?e:typeof e=="object"?Wp(e):e}function qp(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Fa(e[n]);return t}function Wp(e){let t={};for(let n in e)t[n]=Fa(e[n]);return t}function xc(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Ac(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Ac(e.substring(0,e.length-1)):e.substr(~t+1)}var ls=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Wr=class{static hasCaptures(e){return e===null?!1:(ls.lastIndex=0,ls.test(e))}static replaceCaptures(e,t,n){return e.replace(ls,(r,i,s,a)=>{let u=n[parseInt(i||s,10)];if(u){let o=t.substring(u.start,u.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return r})}};function Cc(e,t){return e<t?-1:e>t?1:0}function Ic(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let s=Cc(e[i],t[i]);if(s!==0)return s}return 0}return n-r}function Go(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function wc(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Sc=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},bi=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Xp(e),t)}static createFromParsedTheme(e,t){return Zp(e,t)}_cachedMatchRoot=new Sc(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>Yp(e.parent,i.parentScopes));return r?new Nc(r.fontStyle,r.foreground,r.background):null}},cs=class ci{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new ci(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new ci(n,t[r]);return n}push(t){return new ci(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function Yp(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Qp(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Qp(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Nc=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Xp(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,s=t.length;i<s;i++){let a=t[i];if(!a.settings)continue;let u;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),u=d.split(",")}else Array.isArray(a.scope)?u=a.scope:u=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let d=a.settings.fontStyle.split(" ");for(let p=0,f=d.length;p<f;p++)switch(d[p]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let l=null;typeof a.settings.foreground=="string"&&Go(a.settings.foreground)&&(l=a.settings.foreground);let c=null;typeof a.settings.background=="string"&&Go(a.settings.background)&&(c=a.settings.background);for(let d=0,p=u.length;d<p;d++){let m=u[d].trim().split(" "),T=m[m.length-1],k=null;m.length>1&&(k=m.slice(0,m.length-1),k.reverse()),n[r++]=new Kp(T,k,i,o,l,c)}}return n}var Kp=class{constructor(e,t,n,r,i,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=s}},Fe=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Fe||{});function Zp(e,t){e.sort((o,l)=>{let c=Cc(o.scope,l.scope);return c!==0||(c=Ic(o.parentScopes,l.parentScopes),c!==0)?c:o.index-l.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let o=e.shift();o.fontStyle!==-1&&(n=o.fontStyle),o.foreground!==null&&(r=o.foreground),o.background!==null&&(i=o.background)}let s=new Jp(t),a=new Nc(n,s.getId(r),s.getId(i)),u=new tm(new Qs(0,null,-1,0,0),[]);for(let o=0,l=e.length;o<l;o++){let c=e[o];u.insert(0,c.scope,c.parentScopes,c.fontStyle,s.getId(c.foreground),s.getId(c.background))}return new bi(s,a,u)}var Jp=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},em=Object.freeze([]),Qs=class Lc{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,i,s){this.scopeDepth=t,this.parentScopes=n||em,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new Lc(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},tm=class Xs{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const s=n.parentScopes[i].length-t.parentScopes[r].length;if(s!==0)return s;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,s;if(r===-1?(i=t,s=""):(i=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Xs._cmpBySpecificity),n}insert(t,n,r,i,s,a){if(n===""){this._doInsertHere(t,r,i,s,a);return}let u=n.indexOf("."),o,l;u===-1?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1));let c;this._children.hasOwnProperty(o)?c=this._children[o]:(c=new Xs(this._mainRule.clone(),Qs.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,s,a)}_doInsertHere(t,n,r,i,s){if(n===null){this._mainRule.acceptOverwrite(t,r,i,s);return}for(let a=0,u=this._rulesWithParentScopes.length;a<u;a++){let o=this._rulesWithParentScopes[a];if(Ic(o.parentScopes,n)===0){o.acceptOverwrite(t,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Qs(t,n,r,i,s))}},Hn=class rt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=rt.getLanguageId(t),r=rt.getTokenType(t),i=rt.getFontStyle(t),s=rt.getForeground(t),a=rt.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:s,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,i,s,a,u){let o=rt.getLanguageId(t),l=rt.getTokenType(t),c=rt.containsBalancedBrackets(t)?1:0,d=rt.getFontStyle(t),p=rt.getForeground(t),f=rt.getBackground(t);return n!==0&&(o=n),r!==8&&(l=r),i!==null&&(c=i?1:0),s!==-1&&(d=s),a!==0&&(p=a),u!==0&&(f=u),(o<<0|l<<8|c<<10|d<<11|p<<15|f<<24)>>>0}};function _i(e,t){const n=[],r=nm(e);let i=r.next();for(;i!==null;){let o=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let l=a();if(n.push({matcher:l,priority:o}),i!==",")break;i=r.next()}return n;function s(){if(i==="-"){i=r.next();const o=s();return l=>!!o&&!o(l)}if(i==="("){i=r.next();const o=u();return i===")"&&(i=r.next()),o}if(qo(i)){const o=[];do o.push(i),i=r.next();while(qo(i));return l=>t(o,l)}return null}function a(){const o=[];let l=s();for(;l;)o.push(l),l=s();return c=>o.every(d=>d(c))}function u(){const o=[];let l=a();for(;l&&(o.push(l),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");l=a()}return c=>o.some(d=>d(c))}}function qo(e){return!!e&&!!e.match(/[\w\.:]+/)}function nm(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Rc(e){typeof e.dispose=="function"&&e.dispose()}var wr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},rm=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},im=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},sm=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new wr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new im;for(const n of e)am(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof wr){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function am(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof wr?di({baseGrammar:s,selfGrammar:i},r):Ks(e.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const a=n.injections(e.scopeName);if(a)for(const u of a)r.add(new wr(u))}function Ks(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ei([r],t,n)}}function di(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ei(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ei(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ei(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?xc({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ei(r.patterns,{...t,repository:i},n);const s=r.include;if(!s)continue;const a=Oc(s);switch(a.kind){case 0:di({...t,selfGrammar:t.baseGrammar},n);break;case 1:di(t,n);break;case 2:Ks(a.ruleName,{...t,repository:i},n);break;case 3:case 4:const u=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const o={baseGrammar:t.baseGrammar,selfGrammar:u,repository:i};a.kind===4?Ks(a.ruleName,o,n):di(o,n)}else a.kind===4?n.add(new rm(a.scopeName,a.ruleName)):n.add(new wr(a.scopeName));break}}}var om=class{kind=0},um=class{kind=1},lm=class{constructor(e){this.ruleName=e}kind=2},cm=class{constructor(e){this.scopeName=e}kind=3},dm=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Oc(e){if(e==="$base")return new om;if(e==="$self")return new um;const t=e.indexOf("#");if(t===-1)return new cm(e);if(t===0)return new lm(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new dm(n,r)}}var hm=/\\(\d+)/,Wo=/\\(\d+)/g,fm=-1,Pc=-2;var Mr=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Wr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Wr.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Ac(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Wr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Wr.replaceCaptures(this._contentName,e,t)}},pm=class extends Mr{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},mm=class extends Mr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Sr(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Nr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yo=class extends Mr{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Nr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zs=class extends Mr{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,s,a,u,o,l){super(e,t,n,r),this._begin=new Sr(i,this.id),this.beginCaptures=s,this._end=new Sr(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=o||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Nr;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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Ti=class extends Mr{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,s,a,u,o){super(e,t,n,r),this._begin=new Sr(i,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new Sr(a,Pc),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.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,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Nr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Nr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Dc=class Be{static createCaptureRule(t,n,r,i,s){return t.registerRule(a=>new pm(n,a,r,i,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new mm(t.$vscodeTextmateLocation,t.id,t.name,t.match,Be._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=xc({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new Yo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Be._compilePatterns(s,n,r))}return t.while?new Ti(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Be._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Be._compileCaptures(t.whileCaptures||t.captures,n,r),Be._compilePatterns(t.patterns,n,r)):new Zs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Be._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Be._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Be._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let s=0;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const u=parseInt(a,10);u>s&&(s=u)}for(let a=0;a<=s;a++)i[a]=null;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const u=parseInt(a,10);let o=0;t[a].patterns&&(o=Be.getCompiledRuleId(t[a],n,r)),i[u]=Be.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let s=0,a=t.length;s<a;s++){const u=t[s];let o=-1;if(u.include){const l=Oc(u.include);switch(l.kind){case 0:case 1:o=Be.getCompiledRuleId(r[u.include],n,r);break;case 2:let c=r[l.ruleName];c&&(o=Be.getCompiledRuleId(c,n,r));break;case 3:case 4:const d=l.scopeName,p=l.kind===4?l.ruleName:null,f=n.getExternalGrammar(d,r);if(f)if(p){let m=f.repository[p];m&&(o=Be.getCompiledRuleId(m,n,f.repository))}else o=Be.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else o=Be.getCompiledRuleId(u,n,r);if(o!==-1){const l=n.getRule(o);let c=!1;if((l instanceof Yo||l instanceof Zs||l instanceof Ti)&&l.hasMissingPatterns&&l.patterns.length===0&&(c=!0),c)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Sr=class vc{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let i=0,s=[],a=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const l=t.charAt(u+1);l==="z"?(s.push(t.substring(i,u)),s.push("$(?!\\n)(?<!\\n)"),i=u+2):(l==="A"||l==="G")&&(a=!0),u++}this.hasAnchor=a,i===0?this.source=t:(s.push(t.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=hm.test(this.source):this.hasBackReferences=!1}clone(){return new vc(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>t.substring(i.start,i.end));return Wo.lastIndex=0,this.source.replace(Wo,(i,s)=>wc(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],i=[],s,a,u,o;for(s=0,a=this.source.length;s<a;s++)u=this.source.charAt(s),t[s]=u,n[s]=u,r[s]=u,i[s]=u,u==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(t[s+1]="",n[s+1]="",r[s+1]="A",i[s+1]="A"):o==="G"?(t[s+1]="",n[s+1]="G",r[s+1]="",i[s+1]="G"):(t[s+1]=o,n[s+1]=o,r[s+1]=o,i[s+1]=o),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Nr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Qo(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(i=>i.resolveAnchors(t,n));return new Qo(e,r,this._items.map(i=>i.ruleId))}},Qo=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
3
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ds=class{constructor(e,t){this.languageId=e,this.tokenType=t}},gm=class Js{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ds(t,8),this._embeddedLanguagesMatcher=new bm(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Js._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ds(0,0);_getBasicScopeAttributes=new Sc(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ds(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Js.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},bm=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>wc(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Xo=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Mc(e,t,n,r,i,s,a,u){const o=t.content.length;let l=!1,c=-1;if(a){const f=_m(e,t,n,r,i,s);i=f.stack,r=f.linePos,n=f.isFirstLine,c=f.anchorPosition}const d=Date.now();for(;!l;){if(u!==0&&Date.now()-d>u)return new Xo(i,!0);p()}return new Xo(i,!1);function p(){const f=Em(e,t,n,r,i,c);if(!f){s.produce(i,o),l=!0;return}const m=f.captureIndices,T=f.matchedRuleId,k=m&&m.length>0?m[0].end>r:!1;if(T===fm){const g=i.getRule(e);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),dr(e,t,n,i,s,g.endCaptures,m),s.produce(i,m[0].end);const w=i;if(i=i.parent,c=w.getAnchorPos(),!k&&w.getEnterPos()===r){i=w,s.produce(i,o),l=!0;return}}else{const g=e.getRule(T);s.produce(i,m[0].start);const w=i,x=g.getName(t.content,m),O=i.contentNameScopesList.pushAttributed(x,e);if(i=i.push(T,r,c,m[0].end===o,null,O,O),g instanceof Zs){const D=g;dr(e,t,n,i,s,D.beginCaptures,m),s.produce(i,m[0].end),c=m[0].end;const S=D.getContentName(t.content,m),G=O.pushAttributed(S,e);if(i=i.withContentNameScopesList(G),D.endHasBackReferences&&(i=i.withEndRule(D.getEndWithResolvedBackReferences(t.content,m))),!k&&w.hasSameRuleAs(i)){i=i.pop(),s.produce(i,o),l=!0;return}}else if(g instanceof Ti){const D=g;dr(e,t,n,i,s,D.beginCaptures,m),s.produce(i,m[0].end),c=m[0].end;const S=D.getContentName(t.content,m),G=O.pushAttributed(S,e);if(i=i.withContentNameScopesList(G),D.whileHasBackReferences&&(i=i.withEndRule(D.getWhileWithResolvedBackReferences(t.content,m))),!k&&w.hasSameRuleAs(i)){i=i.pop(),s.produce(i,o),l=!0;return}}else if(dr(e,t,n,i,s,g.captures,m),s.produce(i,m[0].end),i=i.pop(),!k){i=i.safePop(),s.produce(i,o),l=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function _m(e,t,n,r,i,s){let a=i.beginRuleCapturedEOL?0:-1;const u=[];for(let o=i;o;o=o.pop()){const l=o.getRule(e);l instanceof Ti&&u.push({rule:l,stack:o})}for(let o=u.pop();o;o=u.pop()){const{ruleScanner:l,findOptions:c}=km(o.rule,e,o.stack.endRule,n,r===a),d=l.findNextMatchSync(t,r,c);if(d){if(d.ruleId!==Pc){i=o.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(s.produce(o.stack,d.captureIndices[0].start),dr(e,t,n,o.stack,s,o.rule.whileCaptures,d.captureIndices),s.produce(o.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=o.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:n}}function Em(e,t,n,r,i,s){const a=Tm(e,t,n,r,i,s),u=e.getInjections();if(u.length===0)return a;const o=ym(u,e,t,n,r,i,s);if(!o)return a;if(!a)return o;const l=a.captureIndices[0].start,c=o.captureIndices[0].start;return c<l||o.priorityMatch&&c===l?o:a}function Tm(e,t,n,r,i,s){const a=i.getRule(e),{ruleScanner:u,findOptions:o}=Bc(a,e,i.endRule,n,r===s),l=u.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function ym(e,t,n,r,i,s,a){let u=Number.MAX_VALUE,o=null,l,c=0;const d=s.contentNameScopesList.getScopeNames();for(let p=0,f=e.length;p<f;p++){const m=e[p];if(!m.matcher(d))continue;const T=t.getRule(m.ruleId),{ruleScanner:k,findOptions:g}=Bc(T,t,null,r,i===a),w=k.findNextMatchSync(n,i,g);if(!w)continue;const x=w.captureIndices[0].start;if(!(x>=u)&&(u=x,o=w.captureIndices,l=w.ruleId,c=m.priority,u===i))break}return o?{priorityMatch:c===-1,captureIndices:o,matchedRuleId:l}:null}function Bc(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function km(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function dr(e,t,n,r,i,s,a){if(s.length===0)return;const u=t.content,o=Math.min(s.length,a.length),l=[],c=a[0].end;for(let d=0;d<o;d++){const p=s[d];if(p===null)continue;const f=a[d];if(f.length===0)continue;if(f.start>c)break;for(;l.length>0&&l[l.length-1].endPos<=f.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,f.start):i.produce(r,f.start),p.retokenizeCapturedWithRuleId){const T=p.getName(u,a),k=r.contentNameScopesList.pushAttributed(T,e),g=p.getContentName(u,a),w=k.pushAttributed(g,e),x=r.push(p.retokenizeCapturedWithRuleId,f.start,-1,!1,null,k,w),O=e.createOnigString(u.substring(0,f.end));Mc(e,O,n&&f.start===0,f.start,x,i,!1,0),Rc(O);continue}const m=p.getName(u,a);if(m!==null){const k=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);l.push(new xm(k,f.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var xm=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Am(e,t,n,r,i,s,a,u){return new Im(e,t,n,r,i,s,a,u)}function Ko(e,t,n,r,i){const s=_i(t,yi),a=Dc.getCompiledRuleId(n,r,i.repository);for(const u of s)e.push({debugSelector:t,matcher:u.matcher,ruleId:a,grammar:i,priority:u.priority})}function yi(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(Cm(t[i],r))return n=i+1,!0;return!1})}function Cm(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Im=class{constructor(e,t,n,r,i,s,a,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new gm(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Zo(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const o of Object.keys(i)){const l=_i(o,yi);for(const c of l)this._tokenTypeMatchers.push({matcher:c.matcher,type:i[o]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let a in i)Ko(t,a,i[a],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(a=>{const u=this.getExternalGrammar(a);if(u){const o=u.injectionSelector;o&&Ko(t,o,u,this,u)}})}return t.sort((i,s)=>i.priority-s.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Zo(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Dc.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===ea.NULL){i=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=Hn.set(0,l.languageId,l.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),p=this.getRule(this._rootId).getName(null,null);let f;p?f=gr.createRootAndLookUpScopeName(p,d,this):f=gr.createRoot("unknown",d),t=new ea(null,this._rootId,-1,-1,!1,null,f,f)}else i=!1,t.reset();e=e+`
|
|
4
|
+
`;const s=this.createOnigString(e),a=s.content.length,u=new Sm(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),o=Mc(this,s,i,0,t,u,!0,r);return Rc(s),{lineLength:a,lineTokens:u,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function Zo(e,t){return e=Gp(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var gr=class _t{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const s of n)i=cs.push(i,s.scopeNames),r=new _t(r,i,s.encodedTokenAttributes);return r}static createRoot(t,n){return new _t(null,new cs(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),s=new cs(null,t),a=r.themeProvider.themeMatch(s),u=_t.mergeAttributes(n,i,a);return new _t(null,s,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return _t.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,s=0,a=0;return r!==null&&(i=r.fontStyle,s=r.foregroundId,a=r.backgroundId),Hn.set(t,n.languageId,n.tokenType,null,i,s,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return _t._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const s of r)i=_t._pushAttributed(i,s,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),s=t.scopePath.push(n),a=r.themeProvider.themeMatch(s),u=_t.mergeAttributes(t.tokenAttributes,i,a);return new _t(t,s,u)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ea=class an{constructor(t,n,r,i,s,a,u,o){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=u,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new an(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:an._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?gr.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){an._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,s,a,u){return new an(this,t,n,r,i,s,a,u)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new an(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=gr.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new an(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,gr.fromExtension(r,n.contentNameScopesList))}},wm=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):_i(n,yi).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>_i(n,yi).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Sm=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(r=Hn.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(s))}if(i&&(r=Hn.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},Nm=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,Am(e,s,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Lm=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Nm(bi.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(bi.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new wm(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,i,s){const a=new sm(this._syncRegistry,t);for(;a.Q.length>0;)a.Q.map(u=>this._loadSingleGrammar(u.scopeName)),a.processQueue();return this._grammarForScopeName(t,n,r,i,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,s)}},ta=ea.NULL;const Fc=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Br{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Br.prototype.normal={};Br.prototype.property={};Br.prototype.space=void 0;function Hc(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Br(n,r,t)}function Lr(e){return e.toLowerCase()}class Ke{constructor(t,n){this.attribute=n,this.property=t}}Ke.prototype.attribute="";Ke.prototype.booleanish=!1;Ke.prototype.boolean=!1;Ke.prototype.commaOrSpaceSeparated=!1;Ke.prototype.commaSeparated=!1;Ke.prototype.defined=!1;Ke.prototype.mustUseProperty=!1;Ke.prototype.number=!1;Ke.prototype.overloadedBoolean=!1;Ke.prototype.property="";Ke.prototype.spaceSeparated=!1;Ke.prototype.space=void 0;let Rm=0;const ee=_n(),Ce=_n(),na=_n(),U=_n(),be=_n(),Mn=_n(),Je=_n();function _n(){return 2**++Rm}const ra=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:Ce,commaOrSpaceSeparated:Je,commaSeparated:Mn,number:U,overloadedBoolean:na,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),hs=Object.keys(ra);class Ha extends Ke{constructor(t,n,r,i){let s=-1;if(super(t,n),Jo(this,"space",i),typeof r=="number")for(;++s<hs.length;){const a=hs[s];Jo(this,hs[s],(r&ra[a])===ra[a])}}}Ha.prototype.defined=!0;function Jo(e,t,n){n&&(e[t]=n)}function Vn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ha(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Lr(r)]=r,n[Lr(s.attribute)]=r}return new Br(t,n,e.space)}const Uc=Vn({properties:{ariaActiveDescendant:null,ariaAtomic:Ce,ariaAutoComplete:null,ariaBusy:Ce,ariaChecked:Ce,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Ce,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Ce,ariaFlowTo:be,ariaGrabbed:Ce,ariaHasPopup:null,ariaHidden:Ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:U,ariaLive:null,ariaModal:Ce,ariaMultiLine:Ce,ariaMultiSelectable:Ce,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Ce,ariaReadOnly:Ce,ariaRelevant:null,ariaRequired:Ce,ariaRoleDescription:be,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Ce,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $c(e,t){return t in e?e[t]:t}function jc(e,t){return $c(e,t.toLowerCase())}const Om=Vn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mn,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:be,autoFocus:ee,autoPlay:ee,blocking:be,capture:null,charSet:null,checked:ee,cite:null,className:be,cols:U,colSpan:null,content:null,contentEditable:Ce,controls:ee,controlsList:be,coords:U|Mn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:na,draggable:Ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:be,height:U,hidden:na,high:U,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:be,itemRef:be,itemScope:ee,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,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:ee,optimum:U,pattern:null,ping:be,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:be,required:ee,reversed:ee,rows:U,rowSpan:U,sandbox:be,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:Ce,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Ce,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:jc}),Pm=Vn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Je,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:be,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:Mn,g2:Mn,glyphName:Mn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:Je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Je,rev:Je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Je,requiredFeatures:Je,requiredFonts:Je,requiredFormats:Je,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:Je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Je,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$c}),Vc=Vn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),zc=Vn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jc}),Gc=Vn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Dm={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vm=/[A-Z]/g,eu=/-[a-z]/g,Mm=/^data[-\w.:]+$/i;function Fr(e,t){const n=Lr(t);let r=t,i=Ke;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Mm.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(eu,Fm);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!eu.test(s)){let a=s.replace(vm,Bm);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ha}return new i(r,t)}function Bm(e){return"-"+e.toLowerCase()}function Fm(e){return e.charAt(1).toUpperCase()}const zn=Hc([Uc,Om,Vc,zc,Gc],"html"),At=Hc([Uc,Pm,Vc,zc,Gc],"svg"),tu={}.hasOwnProperty;function Ua(e,t){const n=t||{};function r(i,...s){let a=r.invalid;const u=r.handlers;if(i&&tu.call(i,e)){const o=String(i[e]);a=tu.call(u,o)?u[o]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Hm=/["&'<>`]/g,Um=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$m=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,jm=/[|\\{}()[\]^$+*?.]/g,nu=new WeakMap;function Vm(e,t){if(e=e.replace(t.subset?zm(t.subset):Hm,r),t.subset||t.escapeOnly)return e;return e.replace(Um,n).replace($m,r);function n(i,s,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),t)}function r(i,s,a){return t.format(i.charCodeAt(0),a.charCodeAt(s+1),t)}}function zm(e){let t=nu.get(e);return t||(t=Gm(e),nu.set(e,t)),t}function Gm(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(jm,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const qm=/[\dA-Fa-f]/;function Wm(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!qm.test(String.fromCharCode(t))?r:r+";"}const Ym=/\d/;function Qm(e,t,n){const r="&#"+String(e);return n&&t&&!Ym.test(String.fromCharCode(t))?r:r+";"}const Xm=["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"],fs={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:"€"},Km=["cent","copy","divide","gt","lt","not","para","times"],qc={}.hasOwnProperty,ia={};let Yr;for(Yr in fs)qc.call(fs,Yr)&&(ia[fs[Yr]]=Yr);const Zm=/[^\dA-Za-z]/;function Jm(e,t,n,r){const i=String.fromCharCode(e);if(qc.call(ia,i)){const s=ia[i],a="&"+s;return n&&Xm.includes(s)&&!Km.includes(s)&&(!r||t&&t!==61&&Zm.test(String.fromCharCode(t)))?a:a+";"}return""}function e0(e,t,n){let r=Wm(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Jm(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Qm(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Bn(e,t){return Vm(e,Object.assign({format:e0},t))}const t0=/^>|^->|<!--|-->|--!>|<!-$/g,n0=[">"],r0=["<",">"];function i0(e,t,n,r){return r.settings.bogusComments?"<?"+Bn(e.value,Object.assign({},r.settings.characterReferences,{subset:n0}))+">":"<!--"+e.value.replace(t0,i)+"-->";function i(s){return Bn(s,Object.assign({},r.settings.characterReferences,{subset:r0}))}}function s0(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ki(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ru(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const a=n.slice(i,r).trim();(a||!s)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function $a(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function iu(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ja(e){return e.join(" ").trim()}const a0=/[ \t\n\f\r]/g;function Ui(e){return typeof e=="object"?e.type==="text"?su(e.value):!1:su(e)}function su(e){return e.replace(a0,"")===""}const Le=Yc(1),Wc=Yc(-1),o0=[];function Yc(e){return t;function t(n,r,i){const s=n?n.children:o0;let a=(r||0)+e,u=s[a];if(!i)for(;u&&Ui(u);)a+=e,u=s[a];return u}}const u0={}.hasOwnProperty;function Qc(e){return t;function t(n,r,i){return u0.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Va=Qc({body:c0,caption:ps,colgroup:ps,dd:p0,dt:f0,head:ps,html:l0,li:h0,optgroup:m0,option:g0,p:d0,rp:au,rt:au,tbody:_0,td:ou,tfoot:E0,th:ou,thead:b0,tr:T0});function ps(e,t,n){const r=Le(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ui(r.value.charAt(0)))}function l0(e,t,n){const r=Le(n,t);return!r||r.type!=="comment"}function c0(e,t,n){const r=Le(n,t);return!r||r.type!=="comment"}function d0(e,t,n){const r=Le(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function h0(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&r.tagName==="li"}function f0(e,t,n){const r=Le(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function p0(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function au(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function m0(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function g0(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function b0(e,t,n){const r=Le(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function _0(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function E0(e,t,n){return!Le(n,t)}function T0(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function ou(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const y0=Qc({body:A0,colgroup:C0,head:x0,html:k0,tbody:I0});function k0(e){const t=Le(e,-1);return!t||t.type!=="comment"}function x0(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function A0(e){const t=Le(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ui(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function C0(e,t,n){const r=Wc(n,t),i=Le(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Va(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function I0(e,t,n){const r=Wc(n,t),i=Le(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Va(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Qr={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 w0(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let o;i.space==="html"&&e.tagName==="svg"&&(r.schema=At);const l=S0(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(a=!1),(l||!s||!y0(e,t,n))&&(u.push("<",e.tagName,l?" "+l:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(o=l.charAt(l.length-1),(!r.settings.tightSelfClosing||o==="/"||o&&o!=='"'&&o!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(c),!a&&(!s||!Va(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function S0(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=N0(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function N0(e,t,n){const r=Fr(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let a=e.quote,u;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const o=Bn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Qr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?$a:ja)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?o:(e.settings.preferUnquoted&&(u=Bn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Qr.unquoted[i][s]}))),u!==n&&(e.settings.quoteSmart&&ki(n,a)>ki(n,e.alternative)&&(a=e.alternative),u=a+Bn(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Qr.single:Qr.double)[i][s],attribute:!0}))+a),o+(u&&"="+u))}const L0=["<","&"];function Xc(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Bn(e.value,Object.assign({},r.settings.characterReferences,{subset:L0}))}function R0(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Xc(e,t,n,r)}function O0(e,t,n,r){return r.all(e)}const P0=Ua("type",{invalid:D0,unknown:v0,handlers:{comment:i0,doctype:s0,element:w0,raw:R0,root:O0,text:Xc}});function D0(e){throw new Error("Expected node, not `"+e+"`")}function v0(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const M0={},B0={},F0=[];function H0(e,t){const n=t||M0,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:U0,all:$0,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Fc,characterReferences:n.characterReferences||B0,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?At:zn,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function U0(e,t,n){return P0(e,t,n,this)}function $0(e){const t=[],n=e&&e.children||F0;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function xi(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[i]=s:i===r&&Object.assign(n,s);return n}function Yt(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function j0(e){return Array.isArray(e)?e:[e]}async function Kc(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function za(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Zc(e){return e==="ansi"||za(e)}function Ga(e){return e==="none"}function Jc(e){return Ga(e)}function ed(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function $i(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const a=t?n[s]+(n[s+1]||""):n[s];i.push([a,r]),r+=n[s].length,r+=n[s+1]?.length||0}return i}function V0(e){const t=$i(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=i,a=0;for(const u of t){if(s<u.length)break;s-=u.length,a++}return{line:a,character:s}}function r(i,s){let a=0;for(let u=0;u<i;u++)a+=t[u].length;return a+=s,a}return{lines:t,indexToPos:n,posToIndex:r}}const qa="light-dark()",z0=["color","background-color"];function G0(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function q0(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const s=n.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,u)=>a-u);return s.length?G0(i,s):i})):e}function W0(e,t,n,r,i="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(c=>Ai(e.variants[c])),u=new Set(a.flatMap(c=>Object.keys(c))),o={},l=(c,d)=>{const p=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+t[c]+(d==="color"?"":p)};return a.forEach((c,d)=>{for(const p of u){const f=c[p]||"inherit";if(d===0&&r&&z0.includes(p))if(r===qa&&a.length>1){const m=t.findIndex(w=>w==="light"),T=t.findIndex(w=>w==="dark");if(m===-1||T===-1)throw new Ie('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const k=a[m][p]||"inherit",g=a[T][p]||"inherit";o[p]=`light-dark(${k}, ${g})`,i==="css-vars"&&(o[l(d,p)]=f)}else o[p]=f;else i==="css-vars"&&(o[l(d,p)]=f)}}),s.htmlStyle=o,s}function Ai(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Fe.Italic&&(t["font-style"]="italic"),e.fontStyle&Fe.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Fe.Underline&&n.push("underline"),e.fontStyle&Fe.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function sa(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const td=new WeakMap;function ji(e,t){td.set(e,t)}function Rr(e){return td.get(e)}class Gn{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Gn(Object.fromEntries(j0(n).map(r=>[r,ta])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Y0(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Y0(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const s=i?.nameScopesList?.scopeName;s&&t.push(s),i.parent&&r(i.parent)}return r(e),t}function Q0(e,t){if(!(e instanceof Gn))throw new Ie("Invalid grammar state");return e.getInternalStack(t)}function X0(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new Ie(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...i.indexToPos(a),offset:a}}else{const u=i.lines[a.line];if(u===void 0)throw new Ie(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let o=a.character;if(o<0&&(o=u.length+o),o<0||o>u.length)throw new Ie(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${u.length}`);return{...a,character:o,offset:i.posToIndex(a.line,o)}}};const i=V0(n.source),s=(n.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));K0(s),e.set(n.meta,{decorations:s,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const i=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return q0(n,i)},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(i.length!==r.converter.lines.length)throw new Ie(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(c,d,p,f){const m=i[c];let T="",k=-1,g=-1;if(d===0&&(k=0),p===0&&(g=0),p===Number.POSITIVE_INFINITY&&(g=m.children.length),k===-1||g===-1)for(let x=0;x<m.children.length;x++)T+=nd(m.children[x]),k===-1&&T.length===d&&(k=x+1),g===-1&&T.length===p&&(g=x+1);if(k===-1)throw new Ie(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(g===-1)throw new Ie(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const w=m.children.slice(k,g);if(!f.alwaysWrap&&w.length===m.children.length)u(m,f,"line");else if(!f.alwaysWrap&&w.length===1&&w[0].type==="element")u(w[0],f,"token");else{const x={type:"element",tagName:"span",properties:{},children:w};u(x,f,"wrapper"),m.children.splice(k,w.length,x)}}function a(c,d){i[c]=u(i[c],d,"line")}function u(c,d,p){const f=d.properties||{},m=d.transform||(T=>T);return c.tagName=d.tagName||"span",c.properties={...c.properties,...f,class:c.properties.class},d.properties?.class&&ed(c,d.properties.class),c=m(c,p)||c,c}const o=[],l=r.decorations.sort((c,d)=>d.start.offset-c.start.offset||c.end.offset-d.end.offset);for(const c of l){const{start:d,end:p}=c;if(d.line===p.line)s(d.line,d.character,p.character,c);else if(d.line<p.line){s(d.line,d.character,Number.POSITIVE_INFINITY,c);for(let f=d.line+1;f<p.line;f++)o.unshift(()=>a(f,c));s(p.line,0,p.character,c)}}o.forEach(c=>c())}}}function K0(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ie(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],s=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,a=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,u=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,o=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(s||a||u||o){if(s&&a||u&&o||u&&n.start.offset===n.end.offset||a&&i.start.offset===i.end.offset)continue;throw new Ie(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function nd(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(nd).join(""):""}const Z0=[X0()];function Ci(e){const t=J0(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Z0]}function J0(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var cn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],ms={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function eg(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function uu(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function tg(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)ms[r]&&t.push({type:"setDecoration",value:ms[r]});else if(r<=29){const i=ms[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:cn[r-30]}});else if(r===38){const i=uu(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:cn[r-40]}});else if(r===48){const i=uu(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:cn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:cn[r-100+8]}})}return t}function ng(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let s=0;do{const a=eg(r,s),u=a.sequence?r.substring(s,a.startPosition):r.substring(s);if(u.length>0&&i.push({value:u,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const o=tg(a.sequence);for(const l of o)l.type==="resetAll"?(e=null,t=null,n.clear()):l.type==="resetForegroundColor"?e=null:l.type==="resetBackgroundColor"?t=null:l.type==="resetDecoration"&&n.delete(l.value);for(const l of o)l.type==="setForegroundColor"?e=l.value:l.type==="setBackgroundColor"?t=l.value:l.type==="setDecoration"&&n.add(l.value)}s=a.position}while(s<r.length);return i}}}var rg={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 ig(e=rg){function t(u){return e[u]}function n(u){return`#${u.map(o=>Math.max(0,Math.min(o,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let l=0;l<cn.length;l++)r.push(t(cn[l]));let u=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let c=0;c<6;c++)for(let d=0;d<6;d++)r.push(n([u[l],u[c],u[d]]));let o=8;for(let l=0;l<24;l++,o+=10)r.push(n([o,o,o]));return r}function s(u){return i()[u]}function a(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return s(u.index)}}return{value:a}}const sg={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function ag(e,t,n){const r=xi(e,n),i=$i(t),s=Object.fromEntries(cn.map(o=>{const l=`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`,c=e.colors?.[l];return[o,c||sg[o]]})),a=ig(s),u=ng();return i.map(o=>u.parse(o[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?a.value(l.background):e.bg,d=l.foreground?a.value(l.foreground):e.fg):(c=l.foreground?a.value(l.foreground):e.fg,d=l.background?a.value(l.background):void 0),c=Yt(c,r),d=Yt(d,r),l.decorations.has("dim")&&(c=og(c));let p=Fe.None;return l.decorations.has("bold")&&(p|=Fe.Bold),l.decorations.has("italic")&&(p|=Fe.Italic),l.decorations.has("underline")&&(p|=Fe.Underline),l.decorations.has("strikethrough")&&(p|=Fe.Strikethrough),{content:l.value,offset:o[1],color:c,bgColor:d,fontStyle:p}}))}function og(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],s=r[1],a=r[2],u=r[3],o=Math.round(Number.parseInt(`${u}${u}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${s}${s}${a}${a}${o}`}else if(r.length===3){const i=r[0],s=r[1],a=r[2];return`#${i}${i}${s}${s}${a}${a}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Wa(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(za(i)||Ga(r))return $i(t).map(o=>[{content:o[0],offset:o[1]}]);const{theme:s,colorMap:a}=e.setTheme(r);if(i==="ansi")return ag(s,t,n);const u=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Ie(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Ie(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return lg(t,u,s,a,n)}function ug(...e){if(e.length===2)return Rr(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:s=t.getLoadedThemes()[0]}=r;if(za(i)||Ga(s))throw new Ie("Plain language does not have grammar state");if(i==="ansi")throw new Ie("ANSI language does not have grammar state");const{theme:a,colorMap:u}=t.setTheme(s),o=t.getLanguage(i);return new Gn(Ya(n,o,a,u,r).stateStack,o.name,a.name)}function lg(e,t,n,r,i){const s=Ya(e,t,n,r,i),a=new Gn(s.stateStack,t.name,n.name);return ji(s.tokens,a),s.tokens}function Ya(e,t,n,r,i){const s=xi(n,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:u=500}=i,o=$i(e);let l=i.grammarState?Q0(i.grammarState,n.name)??ta:i.grammarContextCode!=null?Ya(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ta,c=[];const d=[];for(let p=0,f=o.length;p<f;p++){const[m,T]=o[p];if(m===""){c=[],d.push([]);continue}if(a>0&&m.length>=a){c=[],d.push([{content:m,offset:T,color:"",fontStyle:0}]);continue}let k,g,w;i.includeExplanation&&(k=t.tokenizeLine(m,l,u),g=k.tokens,w=0);const x=t.tokenizeLine2(m,l,u),O=x.tokens.length/2;for(let D=0;D<O;D++){const S=x.tokens[2*D],G=D+1<O?x.tokens[2*D+2]:m.length;if(S===G)continue;const M=x.tokens[2*D+1],W=Yt(r[Hn.getForeground(M)],s),R=Hn.getFontStyle(M),$={content:m.substring(S,G),offset:T+S,color:W,fontStyle:R};if(i.includeExplanation){const j=[];if(i.includeExplanation!=="scopeName")for(const q of n.settings){let H;switch(typeof q.scope){case"string":H=q.scope.split(/,/).map(z=>z.trim());break;case"object":H=q.scope;break;default:continue}j.push({settings:q,selectors:H.map(z=>z.split(/ /))})}$.explanation=[];let ne=0;for(;S+ne<G;){const q=g[w],H=m.substring(q.startIndex,q.endIndex);ne+=H.length,$.explanation.push({content:H,scopes:i.includeExplanation==="scopeName"?cg(q.scopes):dg(j,q.scopes)}),w+=1}}c.push($)}d.push(c),c=[],l=x.ruleStack}return{tokens:d,stateStack:l}}function cg(e){return e.map(t=>({scopeName:t}))}function dg(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const s=t[r];n[r]={scopeName:s,themeMatches:fg(e,s,t.slice(0,r))}}return n}function lu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function hg(e,t,n){if(!lu(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)lu(e[r],n[i])&&(r-=1),i-=1;return r===-1}function fg(e,t,n){const r=[];for(const{selectors:i,settings:s}of e)for(const a of i)if(hg(a,t,n)){r.push(s);break}return r}function rd(e,t,n){const r=Object.entries(n.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),i=r.map(o=>{const l=Wa(e,t,{...n,theme:o.theme}),c=Rr(l),d=typeof o.theme=="string"?o.theme:o.theme.name;return{tokens:l,state:c,theme:d}}),s=pg(...i.map(o=>o.tokens)),a=s[0].map((o,l)=>o.map((c,d)=>{const p={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=c.explanation),s.forEach((f,m)=>{const{content:T,explanation:k,offset:g,...w}=f[l][d];p.variants[r[m].color]=w}),p})),u=i[0].state?new Gn(Object.fromEntries(i.map(o=>[o.theme,o.state?.getInternalStack(o.theme)])),i[0].state.lang):void 0;return u&&ji(a,u),a}function pg(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(o=>o[r]),s=t.map(()=>[]);t.forEach((o,l)=>o.push(s[l]));const a=i.map(()=>0),u=i.map(o=>o[0]);for(;u.every(o=>o);){const o=Math.min(...u.map(l=>l.content.length));for(let l=0;l<n;l++){const c=u[l];c.content.length===o?(s[l].push(c),a[l]+=1,u[l]=i[l][a[l]]):(s[l].push({...c,content:c.content.slice(0,o)}),u[l]={...c,content:c.content.slice(o),offset:c.offset+o})}}}return t}function Ii(e,t,n){let r,i,s,a,u,o;if("themes"in n){const{defaultColor:l="light",cssVariablePrefix:c="--shiki-",colorsRendering:d="css-vars"}=n,p=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,w)=>g.color===l?-1:w.color===l?1:0);if(p.length===0)throw new Ie("`themes` option must not be empty");const f=rd(e,t,n);if(o=Rr(f),l&&qa!==l&&!p.find(g=>g.color===l))throw new Ie(`\`themes\` option must contain the defaultColor key \`${l}\``);const m=p.map(g=>e.getTheme(g.theme)),T=p.map(g=>g.color);s=f.map(g=>g.map(w=>W0(w,T,c,l,d))),o&&ji(s,o);const k=p.map(g=>xi(g.theme,n));i=cu(p,m,k,c,l,"fg",d),r=cu(p,m,k,c,l,"bg",d),a=`shiki-themes ${m.map(g=>g.name).join(" ")}`,u=l?void 0:[i,r].join(";")}else if("theme"in n){const l=xi(n.theme,n);s=Wa(e,t,n);const c=e.getTheme(n.theme);r=Yt(c.bg,l),i=Yt(c.fg,l),a=c.name,o=Rr(s)}else throw new Ie("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:a,rootStyle:u,grammarState:o}}function cu(e,t,n,r,i,s,a){return e.map((u,o)=>{const l=Yt(t[o][s],n[o])||"inherit",c=`${r+u.color}${s==="bg"?"-bg":""}:${l}`;if(o===0&&i){if(i===qa&&e.length>1){const d=e.findIndex(T=>T.color==="light"),p=e.findIndex(T=>T.color==="dark");if(d===-1||p===-1)throw new Ie('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=Yt(t[d][s],n[d])||"inherit",m=Yt(t[p][s],n[p])||"inherit";return`light-dark(${f}, ${m});${c}`}return l}return a==="css-vars"?c:null}).filter(u=>!!u).join(";")}function wi(e,t,n,r={meta:{},options:n,codeToHast:(i,s)=>wi(e,i,s),codeToTokens:(i,s)=>Ii(e,i,s)}){let i=t;for(const m of Ci(n))i=m.preprocess?.call(r,i,n)||i;let{tokens:s,fg:a,bg:u,themeName:o,rootStyle:l,grammarState:c}=Ii(e,i,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=n;d===!0?s=gg(s):d==="never"&&(s=bg(s)),p&&(s=_g(s));const f={...r,get source(){return i}};for(const m of Ci(n))s=m.tokens?.call(f,s)||s;return mg(s,{...n,fg:a,bg:u,themeName:o,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},f,c)}function mg(e,t,n,r=Rr(e)){const i=Ci(t),s=[],a={type:"root",children:[]},{structure:u="classic",tabindex:o="0"}=t,l={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?l.style=t.rootStyle:l.style=`background-color:${t.bg};color:${t.fg}`),o!==!1&&o!=null&&(l.tabindex=o.toString());for(const[T,k]of Object.entries(t.meta||{}))T.startsWith("_")||(l[T]=k);let c={type:"element",tagName:"pre",properties:l,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:s};const p=[],f={...n,structure:u,addClassToHast:ed,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return c},get code(){return d},get lines(){return p}};if(e.forEach((T,k)=>{k&&(u==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&s.push({type:"text",value:`
|
|
13
|
+
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const x of T){let O={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]};const D=sa(x.htmlStyle||Ai(x));D&&(O.properties.style=D);for(const S of i)O=S?.span?.call(f,O,k+1,w,g,x)||O;u==="inline"?a.children.push(O):u==="classic"&&g.children.push(O),w+=x.content.length}if(u==="classic"){for(const x of i)g=x?.line?.call(f,g,k+1)||g;p.push(g),s.push(g)}else u==="inline"&&p.push(g)}),u==="classic"){for(const T of i)d=T?.code?.call(f,d)||d;c.children.push(d);for(const T of i)c=T?.pre?.call(f,c)||c;a.children.push(c)}else if(u==="inline"){const T=[];let k={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const x of a.children)x.type==="element"&&x.tagName==="br"?(T.push(k),k={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(x.type==="element"||x.type==="text")&&k.children.push(x);T.push(k);let w={type:"element",tagName:"code",properties:{},children:T};for(const x of i)w=x?.code?.call(f,w)||w;a.children=[];for(let x=0;x<w.children.length;x++){x>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const O=w.children[x];O.type==="element"&&a.children.push(...O.children)}}let m=a;for(const T of i)m=T?.root?.call(f,m)||m;return r&&ji(m,r),m}function gg(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((s,a)=>{const o=!(s.fontStyle&&(s.fontStyle&Fe.Underline||s.fontStyle&Fe.Strikethrough));o&&s.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=s.offset),r+=s.content):r?(o?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=void 0,r=""):n.push(s)}),n})}function bg(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,a]=r;if(!i&&!a)return n;const u=[{...n,offset:n.offset+i.length,content:s}];return i&&u.unshift({content:i,offset:n.offset}),a&&u.push({content:a,offset:n.offset+i.length+s.length}),u}))}function _g(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],s=sa(i.htmlStyle||Ai(i)),a=sa(r.htmlStyle||Ai(r)),u=i.fontStyle&&(i.fontStyle&Fe.Underline||i.fontStyle&Fe.Strikethrough),o=r.fontStyle&&(r.fontStyle&Fe.Underline||r.fontStyle&Fe.Strikethrough);!u&&!o&&s===a?i.content+=r.content:n.push({...r})}return n})}const Eg=H0;function Tg(e,t,n){const r={meta:{},options:n,codeToHast:(s,a)=>wi(e,s,a),codeToTokens:(s,a)=>Ii(e,s,a)};let i=Eg(wi(e,t,n,r));for(const s of Ci(n))i=s.postprocess?.call(r,i,n)||i;return i}const du={light:"#333333",dark:"#bbbbbb"},hu={light:"#fffffe",dark:"#1e1e1e"},fu="__shiki_resolved";function Qa(e){if(e?.[fu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const u=t.settings?t.settings.find(o=>!o.name&&!o.scope):void 0;u?.settings?.foreground&&(r=u.settings.foreground),u?.settings?.background&&(n=u.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?du.light:du.dark),n||(n=t.type==="light"?hu.light:hu.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const s=new Map;function a(u){if(s.has(u))return s.get(u);i+=1;const o=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${o}`]?a(u):(s.set(u,o),o)}t.settings=t.settings.map(u=>{const o=u.settings?.foreground&&!u.settings.foreground.startsWith("#"),l=u.settings?.background&&!u.settings.background.startsWith("#");if(!o&&!l)return u;const c={...u,settings:{...u.settings}};if(o){const d=a(u.settings.foreground);t.colorReplacements[d]=u.settings.foreground,c.settings.foreground=d}if(l){const d=a(u.settings.background);t.colorReplacements[d]=u.settings.background,c.settings.background=d}return c});for(const u of Object.keys(t.colors||{}))if((u==="editor.foreground"||u==="editor.background"||u.startsWith("terminal.ansi"))&&!t.colors[u]?.startsWith("#")){const o=a(t.colors[u]);t.colorReplacements[o]=t.colors[u],t.colors[u]=o}return Object.defineProperty(t,fu,{enumerable:!1,writable:!1,value:!0}),t}async function id(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Zc(t)).map(async t=>await Kc(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function sd(e){return(await Promise.all(e.map(async n=>Jc(n)?null:Qa(await Kc(n))))).filter(n=>!!n)}let yg=3;function kg(e,t=3){t>yg||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Pn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ad(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Pn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class xg extends Lm{constructor(t,n,r,i={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Qa(t);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(t){let n=this._textmateThemeCache.get(t);n||(n=bi.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=ad(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,s])=>!s);if(r.length){const i=n.filter(([s,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(o=>r.map(([l])=>l).includes(o)):!1).filter(s=>!r.includes(s));throw new Pn(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class Ag{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let er=0;function Cg(e){er+=1,e.warnings!==!1&&er>=10&&er%10===0&&console.warn(`[Shiki] ${er} 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 t=!1;if(!e.engine)throw new Pn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Qa),i=new Ag(e.engine,n),s=new xg(i,r,n,e.langAlias);let a;function u(x){return ad(x,e.langAlias)}function o(x){g();const O=s.getGrammar(typeof x=="string"?x:x.name);if(!O)throw new Pn(`Language \`${x}\` not found, you may need to load it first`);return O}function l(x){if(x==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const O=s.getTheme(x);if(!O)throw new Pn(`Theme \`${x}\` not found, you may need to load it first`);return O}function c(x){g();const O=l(x);a!==x&&(s.setTheme(O),a=x);const D=s.getColorMap();return{theme:O,colorMap:D}}function d(){return g(),s.getLoadedThemes()}function p(){return g(),s.getLoadedLanguages()}function f(...x){g(),s.loadLanguages(x.flat(1))}async function m(...x){return f(await id(x))}function T(...x){g();for(const O of x.flat(1))s.loadTheme(O)}async function k(...x){return g(),T(await sd(x))}function g(){if(t)throw new Pn("Shiki instance has been disposed")}function w(){t||(t=!0,s.dispose(),er-=1)}return{setTheme:c,getTheme:l,getLanguage:o,getLoadedThemes:d,getLoadedLanguages:p,resolveLangAlias:u,loadLanguage:m,loadLanguageSync:f,loadTheme:k,loadThemeSync:T,dispose:w,[Symbol.dispose]:w}}async function Ig(e){e.engine||kg("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([sd(e.themes||[]),id(e.langs||[]),e.engine]);return Cg({...e,themes:t,langs:n,engine:r})}async function wg(e){const t=await Ig(e);return{getLastGrammarState:(...n)=>ug(t,...n),codeToTokensBase:(n,r)=>Wa(t,n,r),codeToTokensWithThemes:(n,r)=>rd(t,n,r),codeToTokens:(n,r)=>Ii(t,n,r),codeToHast:(n,r)=>wi(t,n,r),codeToHtml:(n,r)=>Tg(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Sg(e){const t=e.langs,n=e.themes,r=e.engine;async function i(s){function a(d){if(typeof d=="string"){if(d=s.langAlias?.[d]||d,Zc(d))return[];const p=t[d];if(!p)throw new Ie(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}function u(d){if(Jc(d))return"none";if(typeof d=="string"){const p=n[d];if(!p)throw new Ie(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}const o=(s.themes??[]).map(d=>u(d)),l=(s.langs??[]).map(d=>a(d)),c=await wg({engine:s.engine??r(),...s,themes:o,langs:l});return{...c,loadLanguage(...d){return c.loadLanguage(...d.map(a))},loadTheme(...d){return c.loadTheme(...d.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}const Xa=[{id:"abap",name:"ABAP",import:(()=>b(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>b(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>b(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>b(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>b(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>b(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>b(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>b(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>b(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>b(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>b(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>b(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>b(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>b(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>b(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>b(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>b(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>b(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>b(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>b(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>b(()=>import("./bird2-DPOp833l.js"),[]))},{id:"blade",name:"Blade",import:(()=>b(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>b(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>b(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>b(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>b(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>b(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>b(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>b(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>b(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>b(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>b(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>b(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>b(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>b(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>b(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>b(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>b(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>b(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>b(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>b(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>b(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>b(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>b(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>b(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>b(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>b(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>b(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>b(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>b(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>b(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>b(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>b(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>b(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>b(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>b(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>b(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>b(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>b(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>b(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>b(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>b(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>b(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>b(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>b(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>b(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>b(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>b(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>b(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>b(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>b(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>b(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>b(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>b(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>b(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>b(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>b(()=>import("./go-CxLEBnE3.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>b(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>b(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>b(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>b(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>b(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>b(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>b(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>b(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>b(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>b(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>b(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>b(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>b(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>b(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>b(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>b(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>b(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>b(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>b(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>b(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>b(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>b(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>b(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>b(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>b(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>b(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>b(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>b(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>b(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>b(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>b(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>b(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>b(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>b(()=>import("./kusto-DZf3V79B.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>b(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>b(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>b(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>b(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>b(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>b(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>b(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>b(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>b(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>b(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>b(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>b(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>b(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>b(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>b(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>b(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>b(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>b(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>b(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>b(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>b(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>b(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>b(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>b(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>b(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>b(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>b(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>b(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>b(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>b(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>b(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>b(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>b(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>b(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>b(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>b(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>b(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>b(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>b(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>b(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>b(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>b(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>b(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>b(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>b(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>b(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>b(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>b(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>b(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>b(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>b(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>b(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>b(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>b(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>b(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>b(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>b(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>b(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>b(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>b(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>b(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>b(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>b(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>b(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>b(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>b(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>b(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>b(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>b(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>b(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>b(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>b(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>b(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>b(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>b(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>b(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>b(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>b(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>b(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>b(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>b(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>b(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>b(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>b(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>b(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>b(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>b(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>b(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>b(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>b(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>b(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>b(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>b(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>b(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>b(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>b(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>b(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>b(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>b(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>b(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>b(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>b(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>b(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>b(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>b(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>b(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>b(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>b(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>b(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>b(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>b(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>b(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>b(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>b(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>b(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>b(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>b(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>b(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>b(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>b(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>b(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>b(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>b(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>b(()=>import("./zig-VOosw3JB.js"),[]))}],Ng=Object.fromEntries(Xa.map(e=>[e.id,e.import])),Lg=Object.fromEntries(Xa.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),od={...Ng,...Lg},Rg=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>b(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>b(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>b(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>b(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>b(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>b(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>b(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>b(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>b(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>b(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>b(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>b(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>b(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>b(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>b(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>b(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>b(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>b(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>b(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>b(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>b(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>b(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>b(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>b(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>b(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>b(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>b(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>b(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>b(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>b(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>b(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>b(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>b(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>b(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>b(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>b(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>b(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>b(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>b(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>b(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>b(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>b(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>b(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>b(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>b(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>b(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>b(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>b(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>b(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>b(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>b(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>b(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>b(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>b(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>b(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>b(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>b(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>b(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>b(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>b(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>b(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>b(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>b(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>b(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>b(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Og=Object.fromEntries(Rg.map(e=>[e.id,e.import]));class Ka extends Error{constructor(t){super(t),this.name="ShikiError"}}function Pg(){return 2147483648}function Dg(){return typeof performance<"u"?performance.now():Date.now()}const vg=(e,t)=>e+(t-e%t)%t;async function Mg(e){let t,n;const r={};function i(f){n=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function s(f,m,T){r.HEAPU8.copyWithin(f,m,m+T)}function a(f){try{return t.grow(f-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function u(f){const m=r.HEAPU8.length;f=f>>>0;const T=Pg();if(f>T)return!1;for(let k=1;k<=4;k*=2){let g=m*(1+.2/k);g=Math.min(g,f+100663296);const w=Math.min(T,vg(Math.max(f,g),65536));if(a(w))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function l(f,m,T=1024){const k=m+T;let g=m;for(;f[g]&&!(g>=k);)++g;if(g-m>16&&f.buffer&&o)return o.decode(f.subarray(m,g));let w="";for(;m<g;){let x=f[m++];if(!(x&128)){w+=String.fromCharCode(x);continue}const O=f[m++]&63;if((x&224)===192){w+=String.fromCharCode((x&31)<<6|O);continue}const D=f[m++]&63;if((x&240)===224?x=(x&15)<<12|O<<6|D:x=(x&7)<<18|O<<12|D<<6|f[m++]&63,x<65536)w+=String.fromCharCode(x);else{const S=x-65536;w+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return w}function c(f,m){return f?l(r.HEAPU8,f,m):""}const d={emscripten_get_now:Dg,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function p(){const m=await e({env:d,wasi_snapshot_preview1:d});t=m.memory,i(t.buffer),Object.assign(r,m),r.UTF8ToString=c}return await p(),r}var Bg=Object.defineProperty,Fg=(e,t,n)=>t in e?Bg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Se=(e,t,n)=>Fg(e,typeof t!="symbol"?t+"":t,n);let Oe=null;function Hg(e){throw new Ka(e.UTF8ToString(e.getLastOnigError()))}class Vi{constructor(t){Se(this,"utf16Length"),Se(this,"utf8Length"),Se(this,"utf16Value"),Se(this,"utf8Value"),Se(this,"utf16OffsetToUtf8"),Se(this,"utf8OffsetToUtf16");const n=t.length,r=Vi._utf8ByteLength(t),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const u=new Uint8Array(r);let o=0;for(let l=0;l<n;l++){const c=t.charCodeAt(l);let d=c,p=!1;if(c>=55296&&c<=56319&&l+1<n){const f=t.charCodeAt(l+1);f>=56320&&f<=57343&&(d=(c-55296<<10)+65536|f-56320,p=!0)}i&&(s[l]=o,p&&(s[l+1]=o),d<=127?a[o+0]=l:d<=2047?(a[o+0]=l,a[o+1]=l):d<=65535?(a[o+0]=l,a[o+1]=l,a[o+2]=l):(a[o+0]=l,a[o+1]=l,a[o+2]=l,a[o+3]=l)),d<=127?u[o++]=d:d<=2047?(u[o++]=192|(d&1984)>>>6,u[o++]=128|(d&63)>>>0):d<=65535?(u[o++]=224|(d&61440)>>>12,u[o++]=128|(d&4032)>>>6,u[o++]=128|(d&63)>>>0):(u[o++]=240|(d&1835008)>>>18,u[o++]=128|(d&258048)>>>12,u[o++]=128|(d&4032)>>>6,u[o++]=128|(d&63)>>>0),p&&l++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=u,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const s=t.charCodeAt(r);let a=s,u=!1;if(s>=55296&&s<=56319&&r+1<i){const o=t.charCodeAt(r+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,u=!0)}a<=127?n+=1:a<=2047?n+=2:a<=65535?n+=3:n+=4,u&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const zi=class Et{constructor(t){if(Se(this,"id",++Et.LAST_ID),Se(this,"_onigBinding"),Se(this,"content"),Se(this,"utf16Length"),Se(this,"utf8Length"),Se(this,"utf16OffsetToUtf8"),Se(this,"utf8OffsetToUtf16"),Se(this,"ptr"),!Oe)throw new Ka("Must invoke loadWasm first.");this._onigBinding=Oe,this.content=t;const n=new Vi(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Et._sharedPtrInUse?(Et._sharedPtr||(Et._sharedPtr=Oe.omalloc(1e4)),Et._sharedPtrInUse=!0,Oe.HEAPU8.set(n.utf8Value,Et._sharedPtr),this.ptr=Et._sharedPtr):this.ptr=n.createString(Oe)}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===Et._sharedPtr?Et._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Se(zi,"LAST_ID",0);Se(zi,"_sharedPtr",0);Se(zi,"_sharedPtrInUse",!1);let ud=zi;class Ug{constructor(t){if(Se(this,"_onigBinding"),Se(this,"_ptr"),!Oe)throw new Ka("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,o=t.length;u<o;u++){const l=new Vi(t[u]);n[u]=l.createString(Oe),r[u]=l.utf8Length}const i=Oe.omalloc(4*t.length);Oe.HEAPU32.set(n,i/4);const s=Oe.omalloc(4*t.length);Oe.HEAPU32.set(r,s/4);const a=Oe.createOnigScanner(i,s,t.length);for(let u=0,o=t.length;u<o;u++)Oe.ofree(n[u]);Oe.ofree(s),Oe.ofree(i),a===0&&Hg(Oe),this._onigBinding=Oe,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new ud(t);const s=this._findNextMatchSync(t,n,!1,i);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(a===0)return null;const u=s.HEAPU32;let o=a/4;const l=u[o++],c=u[o++],d=[];for(let p=0;p<c;p++){const f=t.convertUtf8OffsetToUtf16(u[o++]),m=t.convertUtf8OffsetToUtf16(u[o++]);d[p]={start:f,end:m,length:m-f}}return{index:l,captureIndices:d}}}function $g(e){return typeof e.instantiator=="function"}function jg(e){return typeof e.default=="function"}function Vg(e){return typeof e.data<"u"}function zg(e){return typeof Response<"u"&&e instanceof Response}function Gg(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Xr;function qg(e){if(Xr)return Xr;async function t(){Oe=await Mg(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),$g(r)?r=await r.instantiator(n):jg(r)?r=await r.default(n):(Vg(r)&&(r=r.data),zg(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Wg(r)(n):r=await Yg(r)(n):Gg(r)?r=await gs(r)(n):r instanceof WebAssembly.Module?r=await gs(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await gs(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Xr=t(),Xr}function gs(e){return t=>WebAssembly.instantiate(e,t)}function Wg(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Yg(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Qg(e){return e&&await qg(e),{createScanner(t){return new Ug(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ud(t)}}}const Xg=Sg({langs:od,themes:Og,engine:()=>Qg(b(()=>import("./wasm-CG6Dc4jp.js"),[]))});function qn(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Kg(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const Za=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Pe=String.raw;function Wn(e,t){if(e==null)throw new Error(t??"Value expected");return e}const ld=Pe`\[\^?`,cd=`c.? | C(?:-.?)?|${Pe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Pe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Pe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Pe`o\{[^\}]*\}?`}|${Pe`\d{1,3}`}`,Ja=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Kr=new RegExp(Pe`
|
|
14
|
+
\\ (?:
|
|
15
|
+
${cd}
|
|
16
|
+
| [gk]<[^>]*>?
|
|
17
|
+
| [gk]'[^']*'?
|
|
18
|
+
| .
|
|
19
|
+
)
|
|
20
|
+
| \( (?:
|
|
21
|
+
\? (?:
|
|
22
|
+
[:=!>({]
|
|
23
|
+
| <[=!]
|
|
24
|
+
| <[^>]*>
|
|
25
|
+
| '[^']*'
|
|
26
|
+
| ~\|?
|
|
27
|
+
| #(?:[^)\\]|\\.?)*
|
|
28
|
+
| [^:)]*[:)]
|
|
29
|
+
)?
|
|
30
|
+
| \*[^\)]*\)?
|
|
31
|
+
)?
|
|
32
|
+
| (?:${Ja.source})+
|
|
33
|
+
| ${ld}
|
|
34
|
+
| .
|
|
35
|
+
`.replace(/\s+/g,""),"gsu"),bs=new RegExp(Pe`
|
|
36
|
+
\\ (?:
|
|
37
|
+
${cd}
|
|
38
|
+
| .
|
|
39
|
+
)
|
|
40
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
41
|
+
| ${ld}
|
|
42
|
+
| &&
|
|
43
|
+
| .
|
|
44
|
+
`.replace(/\s+/g,""),"gsu");function Zg(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=b1(n.flags),i=[r.extended],s={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(d){i.push(d)},replaceCurrentModX(d){i[i.length-1]=d},singleline:n.rules.singleline};let a=[],u;for(Kr.lastIndex=0;u=Kr.exec(e);){const d=Jg(s,e,u[0],Kr.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(Kr.lastIndex=d.lastIndex)}const o=[];let l=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++l:d.raw==="("&&o.push(d)}),l||o.forEach((d,p)=>{d.kind="capturing",d.number=p+1});const c=l||o.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?E1(d,c):d).flat(),flags:r}}function Jg(e,t,n,r){const[i,s]=n;if(n==="["||n==="[^"){const a=e1(t,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(s))return{token:pu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:c1(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:hd(n)}}if(s==="K")return{token:fd("keep",n)};if(s==="N"||s==="R")return{token:dn("newline",n,{negate:s==="N"})};if(s==="O")return{token:dn("any",n)};if(s==="X")return{token:dn("text_segment",n)};const a=dd(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(s==="*")return{token:p1(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:f1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Ln("group",n)};if(n==="(?>")return{token:Ln("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Ln(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Ln("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Ln("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:o1(n)}}if(e.getCurrentModX()){if(n==="#"){const a=t.indexOf(`
|
|
45
|
+
`,r);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(n)){const a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(t)?a.lastIndex:r}}}if(n===".")return{token:dn("dot",n)};if(n==="^"||n==="$"){const a=e.singleline?{"^":Pe`\A`,$:Pe`\Z`}[n]:n;return{token:pu(a,n)}}return n==="|"?{token:n1(n)}:Ja.test(n)?{tokens:T1(n)}:{token:vt(qn(n),n)}}function e1(e,t,n){const r=[mu(t[1]==="^",t)];let i=1,s;for(bs.lastIndex=n;s=bs.exec(e);){const a=s[0];if(a[0]==="["&&a[1]!==":")i++,r.push(mu(a[1]==="^",a));else if(a==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(vt(93,a));else if(i--,r.push(r1(a)),!i)break}else{const u=t1(a);Array.isArray(u)?r.push(...u):r.push(u)}}return{tokens:r,lastIndex:bs.lastIndex||e.length}}function t1(e){if(e[0]==="\\")return dd(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Za.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return dn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?i1(e):e==="&&"?s1(e):vt(qn(e),e)}function dd(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return h1(e);if("dDhHsSwW".includes(n))return m1(e);if(e.startsWith(Pe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return g1(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),s=new TextEncoder;return[...i].map(a=>{const u=[...s.encode(a)].map(o=>`\\x${o.toString(16)}`).join("");return vt(qn(a),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return vt(_1(e),e);if(gu.has(n))return vt(gu.get(n),e);if(/\d/.test(n))return a1(t,e);if(e==="\\")throw new Error(Pe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return vt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function n1(e){return{type:"Alternator",raw:e}}function pu(e,t){return{type:"Assertion",kind:e,raw:t}}function hd(e){return{type:"Backreference",raw:e}}function vt(e,t){return{type:"Character",value:e,raw:t}}function r1(e){return{type:"CharacterClassClose",raw:e}}function i1(e){return{type:"CharacterClassHyphen",raw:e}}function s1(e){return{type:"CharacterClassIntersector",raw:e}}function mu(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function dn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function fd(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Wn(n.flags),raw:t}}function a1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function o1(e){return{type:"GroupClose",raw:e}}function Ln(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function u1(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function l1(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function c1(e){return{type:"Subroutine",raw:e}}const d1=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),gu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function h1(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return vt(qn(t.toUpperCase())-64,e)}function f1(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),s=_u(n),a=_u(r),u={};if(s&&(u.enable=s),a&&(u.disable=a),e.endsWith(")"))return t.replaceCurrentModX(i),fd("flags",e,{flags:u});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,Ln("group",e,{...(s||a)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function p1(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:i}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const s=i?i.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[a,u,o]=s,l=d1.has(n)?n.toLowerCase():"custom";switch(l){case"fail":case"mismatch":case"skip":if(s.length>0)throw new Error(`Named callout arguments not allowed "${s}"`);break;case"error":if(s.length>1)throw new Error(`Named callout allows only one argument "${s}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!s.length||s.length>2)throw new Error(`Named callout must have one or two arguments "${s}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(s.length===2&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${u}"`);break;case"count":case"total_count":if(s.length>1)throw new Error(`Named callout allows only one argument "${s}"`);if(s.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(s.length!==3)throw new Error(`Named callout must have three arguments "${s}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof u=="number"||!/^(?:[<>!=]=|[<>])$/.test(u))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${u}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument three must be a tag or number "${o}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${l}"`)}return u1(l,r??null,i?.split(",")??null,e)}function bu(e){let t=null,n,r;if(e[0]==="{"){const{minStr:i,maxStr:s}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+i>a||s&&+s>a)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=s===void 0?+i:s===""?1/0:+s,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return l1(t,n,r,e)}function m1(e){const t=e[1].toLowerCase();return dn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function g1(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return dn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function _u(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function b1(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function _1(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function E1(e,t){const{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[hd(n)];const s=[],a=i.match(/^[0-7]+|\d/g);for(let u=0;u<a.length;u++){const o=a[u];let l;if(u===0&&o!=="8"&&o!=="9"){if(l=parseInt(o,8),l>127)throw new Error(Pe`Octal encoded byte above 177 unsupported "${n}"`)}else l=qn(o);s.push(vt(l,(u===0?"\\":"")+o))}return s}function T1(e){const t=[],n=new RegExp(Ja,"gy");let r;for(;r=n.exec(e);){const i=r[0];if(i[0]==="{"){const s=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(s){const{min:a,max:u}=s.groups;if(+a>+u&&i.endsWith("?")){n.lastIndex--,t.push(bu(i.slice(0,-1)));continue}}}t.push(bu(i))}return t}function pd(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function y1(e){return k1.has(e.type)}const k1=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function md(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Zg(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(p,f)=>{const m=r.tokens[s.nextIndex];switch(s.parent=p,s.nextIndex++,m.type){case"Alternator":return pn();case"Assertion":return x1(m);case"Backreference":return A1(m,s);case"Character":return Gi(m.value,{useLastValid:!!f.isCheckingRangeEnd});case"CharacterClassHyphen":return C1(m,s,f);case"CharacterClassOpen":return I1(m,s,f);case"CharacterSet":return w1(m,s);case"Directive":return P1(m.kind,{flags:m.flags});case"GroupOpen":return S1(m,s,f);case"NamedCallout":return v1(m.kind,m.tag,m.arguments);case"Quantifier":return N1(m,s);case"Subroutine":return L1(m,s);default:throw new Error(`Unexpected token type "${m.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},a=B1(D1(r.flags));let u=a.body[0];for(;s.nextIndex<r.tokens.length;){const p=i(u,{});p.type==="Alternative"?(a.body.push(p),u=p):u.body.push(p)}const{capturingGroups:o,hasNumberedRef:l,namedGroupsByName:c,subroutines:d}=s;if(l&&c.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:p}of d)if(typeof p=="number"){if(p>o.length)throw new Error("Subroutine uses a group number that's not defined");p&&(o[p-1].isSubroutined=!0)}else if(c.has(p)){if(c.get(p).length>1)throw new Error(Pe`Subroutine uses a duplicate group name "\g<${p}>"`);c.get(p)[0].isSubroutined=!0}else throw new Error(Pe`Subroutine uses a group name that's not defined "\g<${p}>"`);return a}function x1({kind:e}){return aa(Wn({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Pe`\B`||e===Pe`\Y`})}function A1({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(s,a=!1)=>{const u=t.capturingGroups.length;let o=!1;if(s>u)if(t.skipBackrefValidation)o=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,oa(a?u+1-s:s,{orphan:o})};if(n){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(s)return i(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return oa(r)}return i(+r)}function C1(e,t,n){const{tokens:r,walk:i}=t,s=t.parent,a=s.body.at(-1),u=r[t.nextIndex];if(!n.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const o=i(s,{...n,isCheckingRangeEnd:!0});if(a.type==="Character"&&o.type==="Character")return s.body.pop(),O1(a,o);throw new Error("Invalid character class range")}return Gi(qn("-"))}function I1({negate:e},t,n){const{tokens:r,walk:i}=t,s=[hi()],a=r[t.nextIndex];let u=yu(a);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")s.push(hi()),t.nextIndex++;else{const l=s.at(-1);l.body.push(i(l,n))}u=yu(r[t.nextIndex],a)}const o=hi({negate:e});return s.length===1?o.body=s[0].body:(o.kind="intersection",o.body=s.map(l=>l.body.length===1?l.body[0]:l)),t.nextIndex++,o}function w1({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:s,unicodePropertyMap:a}=r;if(e==="property"){const u=qi(n);if(Za.has(u)&&!a?.has(u))e="posix",n=u;else return Rn(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:s,unicodePropertyMap:a})}return e==="posix"?M1(n,{negate:t}):ua(e,{negate:t})}function S1(e,t,n){const{tokens:r,capturingGroups:i,namedGroupsByName:s,skipLookbehindValidation:a,walk:u}=t,o=F1(e),l=o.type==="AbsenceFunction",c=Tu(o),d=c&&o.negate;if(o.type==="CapturingGroup"&&(i.push(o),o.name&&Kg(s,o.name,[]).push(o)),l&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=ku(r[t.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")o.body.push(pn()),t.nextIndex++;else{const f=o.body.at(-1),m=u(f,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||d});if(f.body.push(m),(c||n.isInLookbehind)&&!a){const T="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(Eu(m)||m.type==="CapturingGroup")throw new Error(T)}else if(Eu(m)||Tu(m)&&m.negate)throw new Error(T)}}p=ku(r[t.nextIndex])}return t.nextIndex++,o}function N1({kind:e,min:t,max:n},r){const i=r.parent,s=i.body.at(-1);if(!s||!y1(s))throw new Error("Quantifier requires a repeatable token");const a=bd(e,t,n,s);return i.body.pop(),a}function L1({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let i=e.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(s){const u=+s.groups.num,o=n.length;if(t.hasNumberedRef=!0,i={"":u,"+":o+u,"-":o+1-u}[s.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=_d(i);return r.push(a),a}function R1(e,t){return{type:"AbsenceFunction",kind:e,body:Hr(t?.body)}}function pn(e){return{type:"Alternative",body:Ed(e?.body)}}function aa(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function oa(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function gd(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!H1(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Hr(t?.body)}}function Gi(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function hi(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Ed(e?.body)}}function O1(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ua(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function P1(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Wn(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function D1(e){return{type:"Flags",...e}}function ft(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Hr(e?.body)}}function on(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Hr(e?.body)}}function v1(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function M1(e,t){const n=!!t?.negate;if(!Za.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function bd(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function B1(e,t){return{type:"Regex",body:Hr(t?.body),flags:e}}function _d(e){return{type:"Subroutine",ref:e}}function Rn(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(qi(e));if(!r){if(n.normalizeUnknownPropertyNames)r=U1(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Pe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function F1({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":return R1("repeater");case"atomic":return ft({atomic:!0});case"capturing":return gd(i,{name:n});case"group":return ft({flags:e});case"lookahead":case"lookbehind":return on({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Hr(e){if(e===void 0)e=[pn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Ed(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Eu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Tu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function H1(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function U1(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function qi(e){return e.replace(/[- _]+/g,"").toLowerCase()}function yu(e,t){const n=t;return Wn(e,`Unclosed character class${n?.type==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function ku(e){return Wn(e,"Unclosed group")}function br(e,t,n=null){function r(s,a){for(let u=0;u<s.length;u++){const o=i(s[u],a,u,s);u=Math.max(-1,u+o)}}function i(s,a=null,u=null,o=null){let l=0,c=!1;const d={node:s,parent:a,key:u,container:o,root:e,remove(){Zr(o).splice(Math.max(0,Cn(u)+l),1),l--,c=!0},removeAllNextSiblings(){return Zr(o).splice(Cn(u)+1)},removeAllPrevSiblings(){const g=Cn(u)+l;return l-=g,Zr(o).splice(0,Math.max(0,g))},replaceWith(g,w={}){const x=!!w.traverse;o?o[Math.max(0,Cn(u)+l)]=g:Wn(a,"Can't replace root node")[u]=g,x&&i(g,a,u,o),c=!0},replaceWithMultiple(g,w={}){const x=!!w.traverse;if(Zr(o).splice(Math.max(0,Cn(u)+l),1,...g),l+=g.length-1,x){let O=0;for(let D=0;D<g.length;D++)O+=i(g[D],a,Cn(u)+D+O,o)}c=!0},skip(){c=!0}},{type:p}=s,f=t["*"],m=t[p],T=typeof f=="function"?f:f?.enter,k=typeof m=="function"?m:m?.enter;if(T?.(d,n),k?.(d,n),!c)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(s.body,s);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(s.min,s,"min"),i(s.max,s,"max");break;case"Quantifier":i(s.body,s,"body");break;case"Regex":r(s.body,s),i(s.flags,s,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return m?.exit?.(d,n),f?.exit?.(d,n),l}return i(e),e}function Zr(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Cn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const $1=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function j1(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function V1(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const ut=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function eo(e,t,n,r){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let a=0,u="";for(const o of e.matchAll(i)){const{0:l,groups:{$skip:c}}=o;if(!c&&(!r||r===ut.DEFAULT==!a)){n instanceof Function?u+=n(o,{context:a?ut.CHAR_CLASS:ut.DEFAULT,negated:s[s.length-1]}):u+=n;continue}l[0]==="["?(a++,s.push(l[1]==="^")):l==="]"&&a&&(a--,s.pop()),u+=l}return u}function Td(e,t,n,r){eo(e,t,n,r)}function z1(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let s=0,a;for(;a=i.exec(e);){const{0:u,groups:{$skip:o}}=a;if(!o&&(!r||r===ut.DEFAULT==!s))return a;u==="["?s++:u==="]"&&s&&s--,i.lastIndex==a.index&&i.lastIndex++}return null}function Jr(e,t,n){return!!z1(e,t,0,n)}function G1(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,s=1,a;for(;a=n.exec(e);){const[u]=a;if(u==="[")i++;else if(i)u==="]"&&i--;else if(u==="(")s++;else if(u===")"&&(s--,!s)){r=a.index;break}}return e.slice(t,r)}const xu=new RegExp(String.raw`(?<noncapturingStart>${$1})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function q1(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const i="(?>",s="(?:(?=(",a=[0],u=[];let o=0,l=0,c=NaN,d;do{d=!1;let p=0,f=0,m=!1,T;for(xu.lastIndex=Number.isNaN(c)?0:c+s.length;T=xu.exec(e);){const{0:k,index:g,groups:{capturingStart:w,noncapturingStart:x}}=T;if(k==="[")p++;else if(p)k==="]"&&p--;else if(k===i&&!m)c=g,m=!0;else if(m&&x)f++;else if(w)m?f++:(o++,a.push(o+l));else if(k===")"&&m){if(!f){l++;const O=o+l;if(e=`${e.slice(0,c)}${s}${e.slice(c+i.length,g)}))<$$${O}>)${e.slice(g+1)}`,d=!0,u.push(O),j1(n,O),r.size){const D=new Map;r.forEach((S,G)=>{D.set(G>=O?G+1:G,S.map(M=>M>=O?M+1:M))}),r=D}break}f--}}}while(d);return n.push(...u),e=eo(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:f,wrappedBackrefNum:m}})=>{if(f){const T=+f;if(T>a.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${a[T]}`}return`\\${m}`},ut.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const yd=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,_s=new RegExp(String.raw`
|
|
46
|
+
\\(?: \d+
|
|
47
|
+
| c[A-Za-z]
|
|
48
|
+
| [gk]<[^>]+>
|
|
49
|
+
| [pPu]\{[^\}]+\}
|
|
50
|
+
| u[A-Fa-f\d]{4}
|
|
51
|
+
| x[A-Fa-f\d]{2}
|
|
52
|
+
)
|
|
53
|
+
| \((?: \? (?: [:=!>]
|
|
54
|
+
| <(?:[=!]|[^>]+>)
|
|
55
|
+
| [A-Za-z\-]+:
|
|
56
|
+
| \(DEFINE\)
|
|
57
|
+
))?
|
|
58
|
+
| (?<qBase>${yd})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
59
|
+
| \\?.
|
|
60
|
+
`.replace(/\s+/g,""),"gsu");function W1(e){if(!new RegExp(`${yd}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,i="",s=0,a;for(_s.lastIndex=0;a=_s.exec(e);){const{0:u,index:o,groups:{qBase:l,qMod:c,invalidQ:d}}=a;if(u==="[")s||(r=o),s++;else if(u==="]")s?s--:r=null;else if(!s)if(c==="+"&&i&&!i.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${u}"`);let p=-1;if(/^\{\d+\}$/.test(l))e=V1(e,o+l.length,c,"");else{if(i===")"||i==="]"){const f=i===")"?n:r;if(f===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,f)}(?>${e.slice(f,o)}${l})${e.slice(o+u.length)}`}else e=`${e.slice(0,o-i.length)}(?>${i}${l})${e.slice(o+u.length)}`;p+=4}_s.lastIndex+=p}else u[0]==="("?t.push(o):u===")"&&(n=t.length?t.pop():null);i=u}return{pattern:e}}const ot=String.raw,Y1=ot`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,la=ot`\(\?R=(?<rDepth>[^\)]+)\)|${Y1}`,Wi=ot`\(\?<(?![=!])(?<captureName>[^>]+)>`,kd=ot`${Wi}|(?<unnamed>\()(?!\?)`,tn=new RegExp(ot`${Wi}|${la}|\(\?|\\?.`,"gsu"),Es="Cannot use multiple overlapping recursions";function Q1(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let i=t?.captureTransfers??new Map;if(!new RegExp(la,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&Jr(e,ot`\(\?\(DEFINE\)`,ut.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],a=Jr(e,ot`\\[1-9]`,ut.DEFAULT),u=new Map,o=[];let l=!1,c=0,d=0,p;for(tn.lastIndex=0;p=tn.exec(e);){const{0:f,groups:{captureName:m,rDepth:T,gRNameOrNum:k,gRDepth:g}}=p;if(f==="[")c++;else if(c)f==="]"&&c--;else if(T){if(Au(T),l)throw new Error(Es);if(a)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=e.slice(0,p.index),x=e.slice(tn.lastIndex);if(Jr(x,la,ut.DEFAULT))throw new Error(Es);const O=+T-1;e=Cu(w,x,O,!1,n,s,d),i=wu(i,w,O,s.length,0,d);break}else if(k){Au(g);let w=!1;for(const j of o)if(j.name===k||j.num===+k){if(w=!0,j.hasRecursedWithin)throw new Error(Es);break}if(!w)throw new Error(ot`Recursive \g cannot be used outside the referenced group "${r==="external"?k:ot`\g<${k}&R=${g}>`}"`);const x=u.get(k),O=G1(e,x);if(a&&Jr(O,ot`${Wi}|\((?!\?)`,ut.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const D=e.slice(x,p.index),S=O.slice(D.length+f.length),G=s.length,M=+g-1,W=Cu(D,S,M,!0,n,s,d);i=wu(i,D,M,s.length-G,G,d);const R=e.slice(0,x),$=e.slice(x+O.length);e=`${R}${W}${$}`,tn.lastIndex+=W.length-f.length-D.length-S.length,o.forEach(j=>j.hasRecursedWithin=!0),l=!0}else if(m)d++,u.set(String(d),tn.lastIndex),u.set(m,tn.lastIndex),o.push({num:d,name:m});else if(f[0]==="("){const w=f==="(";w&&(d++,u.set(String(d),tn.lastIndex)),o.push(w?{num:d}:{})}else f===")"&&o.pop()}return n.push(...s),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function Au(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Cu(e,t,n,r,i,s,a){const u=new Set;r&&Td(e+t,Wi,({groups:{captureName:l}})=>{u.add(l)},ut.DEFAULT);const o=[n,r?u:null,i,s,a];return`${e}${Iu(`(?:${e}`,"forward",...o)}(?:)${Iu(`${t})`,"backward",...o)}${t}`}function Iu(e,t,n,r,i,s,a){const o=c=>t==="forward"?c+2:n-c+2-1;let l="";for(let c=0;c<n;c++){const d=o(c);l+=eo(e,ot`${kd}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:f,unnamed:m,backref:T}})=>{if(T&&r&&!r.has(T))return p;const k=`_$${d}`;if(m||f){const g=a+s.length+1;return s.push(g),X1(i,g),m?p:`(?<${f}${k}>`}return ot`\k<${T}${k}>`},ut.DEFAULT)}return l}function X1(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function wu(e,t,n,r,i,s){if(e.size&&r){let a=0;Td(t,kd,()=>a++,ut.DEFAULT);const u=s-a+i,o=new Map;return e.forEach((l,c)=>{const d=(r-a*n)/n,p=a*n,f=c>u+a?c+r:c,m=[];for(const T of l)if(T<=u)m.push(T);else if(T>u+a+d)m.push(T+r);else if(T<=u+a)for(let k=0;k<=n;k++)m.push(T+a*k);else for(let k=0;k<=n;k++)m.push(T+p+d*k);o.set(f,m)}),o}return e}var Ne=String.fromCodePoint,J=String.raw,pt={},Yi=globalThis.RegExp;pt.flagGroups=(()=>{try{new Yi("(?i:)")}catch{return!1}return!0})();pt.unicodeSets=(()=>{try{new Yi("[[]]","v")}catch{return!1}return!0})();pt.bugFlagVLiteralHyphenIsRange=pt.unicodeSets?(()=>{try{new Yi(J`[\d\-a]`,"v")}catch{return!0}return!1})():!1;pt.bugNestedClassIgnoresNegation=pt.unicodeSets&&new Yi("[[^a]]","v").test("a");function Si(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Or(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function ca(e,t){return Su[e]>=Su[t]}function K1(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Su={ES2025:2025,ES2024:2024,ES2018:2018},Z1={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function xd(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Z1[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=pt.flagGroups?"ES2025":pt.unicodeSets?"ES2024":"ES2018"),t}var J1="[ -\r ]",eb=new Set([Ne(304),Ne(305)]),Rt=J`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ad(e){if(eb.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=rb.get(n),s=tb.get(n),a=nb.get(n);return[...r].length===1&&t.add(r),a&&t.add(a),i&&t.add(i),t.add(n),s&&t.add(s),[...t]}var to=new Map(`C Other
|
|
61
|
+
Cc Control cntrl
|
|
62
|
+
Cf Format
|
|
63
|
+
Cn Unassigned
|
|
64
|
+
Co Private_Use
|
|
65
|
+
Cs Surrogate
|
|
66
|
+
L Letter
|
|
67
|
+
LC Cased_Letter
|
|
68
|
+
Ll Lowercase_Letter
|
|
69
|
+
Lm Modifier_Letter
|
|
70
|
+
Lo Other_Letter
|
|
71
|
+
Lt Titlecase_Letter
|
|
72
|
+
Lu Uppercase_Letter
|
|
73
|
+
M Mark Combining_Mark
|
|
74
|
+
Mc Spacing_Mark
|
|
75
|
+
Me Enclosing_Mark
|
|
76
|
+
Mn Nonspacing_Mark
|
|
77
|
+
N Number
|
|
78
|
+
Nd Decimal_Number digit
|
|
79
|
+
Nl Letter_Number
|
|
80
|
+
No Other_Number
|
|
81
|
+
P Punctuation punct
|
|
82
|
+
Pc Connector_Punctuation
|
|
83
|
+
Pd Dash_Punctuation
|
|
84
|
+
Pe Close_Punctuation
|
|
85
|
+
Pf Final_Punctuation
|
|
86
|
+
Pi Initial_Punctuation
|
|
87
|
+
Po Other_Punctuation
|
|
88
|
+
Ps Open_Punctuation
|
|
89
|
+
S Symbol
|
|
90
|
+
Sc Currency_Symbol
|
|
91
|
+
Sk Modifier_Symbol
|
|
92
|
+
Sm Math_Symbol
|
|
93
|
+
So Other_Symbol
|
|
94
|
+
Z Separator
|
|
95
|
+
Zl Line_Separator
|
|
96
|
+
Zp Paragraph_Separator
|
|
97
|
+
Zs Space_Separator
|
|
98
|
+
ASCII
|
|
99
|
+
ASCII_Hex_Digit AHex
|
|
100
|
+
Alphabetic Alpha
|
|
101
|
+
Any
|
|
102
|
+
Assigned
|
|
103
|
+
Bidi_Control Bidi_C
|
|
104
|
+
Bidi_Mirrored Bidi_M
|
|
105
|
+
Case_Ignorable CI
|
|
106
|
+
Cased
|
|
107
|
+
Changes_When_Casefolded CWCF
|
|
108
|
+
Changes_When_Casemapped CWCM
|
|
109
|
+
Changes_When_Lowercased CWL
|
|
110
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
111
|
+
Changes_When_Titlecased CWT
|
|
112
|
+
Changes_When_Uppercased CWU
|
|
113
|
+
Dash
|
|
114
|
+
Default_Ignorable_Code_Point DI
|
|
115
|
+
Deprecated Dep
|
|
116
|
+
Diacritic Dia
|
|
117
|
+
Emoji
|
|
118
|
+
Emoji_Component EComp
|
|
119
|
+
Emoji_Modifier EMod
|
|
120
|
+
Emoji_Modifier_Base EBase
|
|
121
|
+
Emoji_Presentation EPres
|
|
122
|
+
Extended_Pictographic ExtPict
|
|
123
|
+
Extender Ext
|
|
124
|
+
Grapheme_Base Gr_Base
|
|
125
|
+
Grapheme_Extend Gr_Ext
|
|
126
|
+
Hex_Digit Hex
|
|
127
|
+
IDS_Binary_Operator IDSB
|
|
128
|
+
IDS_Trinary_Operator IDST
|
|
129
|
+
ID_Continue IDC
|
|
130
|
+
ID_Start IDS
|
|
131
|
+
Ideographic Ideo
|
|
132
|
+
Join_Control Join_C
|
|
133
|
+
Logical_Order_Exception LOE
|
|
134
|
+
Lowercase Lower
|
|
135
|
+
Math
|
|
136
|
+
Noncharacter_Code_Point NChar
|
|
137
|
+
Pattern_Syntax Pat_Syn
|
|
138
|
+
Pattern_White_Space Pat_WS
|
|
139
|
+
Quotation_Mark QMark
|
|
140
|
+
Radical
|
|
141
|
+
Regional_Indicator RI
|
|
142
|
+
Sentence_Terminal STerm
|
|
143
|
+
Soft_Dotted SD
|
|
144
|
+
Terminal_Punctuation Term
|
|
145
|
+
Unified_Ideograph UIdeo
|
|
146
|
+
Uppercase Upper
|
|
147
|
+
Variation_Selector VS
|
|
148
|
+
White_Space space
|
|
149
|
+
XID_Continue XIDC
|
|
150
|
+
XID_Start XIDS`.split(/\s/).map(e=>[qi(e),e])),tb=new Map([["s",Ne(383)],[Ne(383),"s"]]),nb=new Map([[Ne(223),Ne(7838)],[Ne(107),Ne(8490)],[Ne(229),Ne(8491)],[Ne(969),Ne(8486)]]),rb=new Map([jt(453),jt(456),jt(459),jt(498),...Ts(8072,8079),...Ts(8088,8095),...Ts(8104,8111),jt(8124),jt(8140),jt(8188)]),ib=new Map([["alnum",J`[\p{Alpha}\p{Nd}]`],["alpha",J`\p{Alpha}`],["ascii",J`\p{ASCII}`],["blank",J`[\p{Zs}\t]`],["cntrl",J`\p{Cc}`],["digit",J`\p{Nd}`],["graph",J`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",J`\p{Lower}`],["print",J`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",J`[\p{P}\p{S}]`],["space",J`\p{space}`],["upper",J`\p{Upper}`],["word",J`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",J`\p{AHex}`]]);function sb(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function jt(e){const t=Ne(e);return[t.toLowerCase(),t]}function Ts(e,t){return sb(e,t).map(n=>jt(n))}var Cd=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function ab(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Id(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ca(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};br(e,ob,r);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};br(e,ub,s);const a={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return br(e,lb,a),e._originMap=s.groupOriginByCopy,e._strategy=r.strategy,e}var ob={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:i}=e;if(i==="repeater"){const s=ft();s.body[0].body.push(on({negate:!0,body:r}),Rn("Any"));const a=ft();a.body[0].body.push(bd("greedy",0,1/0,s)),n(ke(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const i=e.body.filter(s=>s.kind==="flags");for(let s=n+1;s<t.body.length;s++){const a=t.body[s];Or(r,a,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Sd(t.get(e));if(n){const r=ft({flags:n});r.body[0].body=e.body,e.body=[ke(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:s,replaceWith:a},u){const{kind:o,negate:l}=e,{asciiWordBoundaries:c,avoidSubclass:d,supportedGNodes:p,wordIsAscii:f}=u;if(o==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${l?"Y":"y"}"`);if(o==="line_end")a(ke(on({body:[pn({body:[aa("string_end")]}),pn({body:[Gi(10)]})]}),t));else if(o==="line_start")a(ke(Ot(J`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(o==="search_start")if(p.has(e))i.flags.sticky=!0,s();else{const m=r[n-1];if(m&&mb(m))a(ke(on({negate:!0}),t));else{if(d)throw new Error(J`Uses "\G" in a way that requires a subclass`);a(Vt(aa("string_start"),t)),u.strategy="clip_search"}}else if(!(o==="string_end"||o==="string_start"))if(o==="string_end_newline")a(ke(Ot(J`(?=\n?\z)`),t));else if(o==="word_boundary"){if(!f&&!c){const m=`(?:(?<=${Rt})(?!${Rt})|(?<!${Rt})(?=${Rt}))`,T=`(?:(?<=${Rt})(?=${Rt})|(?<!${Rt})(?!${Rt}))`;a(ke(Ot(l?T:m),t))}}else throw new Error(`Unexpected assertion kind "${o}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!ks(n)&&(n=ys(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!ks(r)&&(r=ys(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=hi({body:[e]});n(ke(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:s,spaceIsAscii:a,wordIsAscii:u}){const{kind:o,negate:l,value:c}=e;if(s&&(o==="digit"||c==="digit")){n(Vt(ua("digit",{negate:l}),t));return}if(a&&(o==="space"||c==="space")){n(ke(xs(Ot(J1),l),t));return}if(u&&(o==="word"||c==="word")){n(Vt(ua("word",{negate:l}),t));return}if(o==="any")n(Vt(Rn("Any"),t));else if(o==="digit")n(Vt(Rn("Nd",{negate:l}),t));else if(o!=="dot")if(o==="text_segment"){if(r==="strict")throw new Error(J`Use of "\X" requires non-strict accuracy`);const d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=J`\p{RI}{2}|${d}(?:\u200D${d})*`;n(ke(Ot(J`(?>\r\n|${i?J`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(o==="hex")n(Vt(Rn("AHex",{negate:l}),t));else if(o==="newline")n(ke(Ot(l?`[^
|
|
151
|
+
]`:`(?>\r
|
|
152
|
+
?|[
|
|
153
|
+
\v\f
\u2028\u2029])`),t));else if(o==="posix")if(!i&&(c==="graph"||c==="print")){if(r==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[c];l&&(d=`\0-${Ne(d.codePointAt(0)-1)}${Ne(d.codePointAt(2)+1)}-`),n(ke(Ot(`[${d}]`),t))}else n(ke(xs(Ot(ib.get(c)),l),t));else if(o==="property")to.has(qi(c))||(e.key="sc");else if(o==="space")n(Vt(Rn("space",{negate:l}),t));else if(o==="word")n(ke(xs(Ot(Rt),l),t));else throw new Error(`Unexpected character set kind "${o}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:s,removeAllNextSiblings:a}){const{kind:u,flags:o}=e;if(u==="flags")if(!o.enable&&!o.disable)r();else{const l=ft({flags:o});l.body[0].body=a(),i(ke(l,t),{traverse:!0})}else if(u==="keep"){const l=n.body[0],d=n.body.length===1&&pd(l,{type:"Group"})&&l.body[0].body.length===1?l.body[0]:n;if(t.parent!==d||d.body.length>1)throw new Error(J`Uses "\K" in a way that's unsupported`);const p=on({behind:!0});p.body[0].body=s(),i(ke(p,t))}else throw new Error(`Unexpected directive kind "${u}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(ke(on({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=ft();t.body[0].body.push(e.body),e.body=ke(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,i=!1;for(const s of e.body)if(s.body.length===1&&s.body[0].kind==="search_start")s.body.pop();else{const a=Ld(s.body);a?(r=!0,Array.isArray(a)?n.push(...a):n.push(a)):i=!0}r&&!i&&n.forEach(s=>t.add(s))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(J`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!ks(n)&&(n=ys(n,t),e.ref=n)}},ub={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:s})=>s)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:s,multiplexCapturesToLeftByRef:a,openRefs:u,reffedNodesByReferencer:o}){const l=i.get(e);if(l&&u.has(e.number)){const d=Vt(Nu(e.number),t);o.set(d,u.get(e.number)),n(d);return}u.set(e.number,e),a.set(e.number,[]),e.name&&Or(a,e.name,[]);const c=a.get(e.name??e.number);for(let d=0;d<c.length;d++){const p=c[d];if(l===p.node||l&&l===p.origin||e===p.origin){c.splice(d,1);break}}if(a.get(e.number).push({node:e,origin:l}),e.name&&a.get(e.name).push({node:e,origin:l}),e.name){const d=Or(s,e.name,new Map);let p=!1;if(l)p=!0;else for(const f of d.values())if(!f.hasDuplicateNameToRemove){p=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:p})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Si(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:i,ref:s}=e;if(i){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===s||c.number===s)););r.reffedNodesByReferencer.set(e,c);return}const a=r.subroutineRefMap.get(s),u=s===0,o=u?Nu(0):wd(a,r.groupOriginByCopy,null);let l=o;if(!u){const c=Sd(hb(a,p=>p.type==="Group"&&!!p.flags)),d=c?Si(r.globalFlags,c):r.globalFlags;cb(d,r.currentFlags)||(l=ft({flags:fb(d)}),l.body[0].body.push(o))}n(ke(l,t),{traverse:!u})}},lb={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const s=r.reffedNodesByReferencer.get(e).filter(a=>db(a,e));if(!s.length)n(ke(on({negate:!0}),t));else if(s.length>1){const a=ft({atomic:!0,body:s.reverse().map(u=>pn({body:[oa(u.number)]}))});n(ke(a,t))}else e.ref=s[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const i=gd();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Id(e){br(e,{"*"({node:t,parent:n}){t.parent=n}})}function cb(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function db(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=Nd(n.parent);for(const i of r){if(i===n)break;if(i===e||Rd(i,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function wd(e,t,n,r){const i=Array.isArray(e)?[]:{};for(const[s,a]of Object.entries(e))s==="parent"?i.parent=Array.isArray(n)?r:n:a&&typeof a=="object"?i[s]=wd(a,t,i,n):(s==="type"&&a==="CapturingGroup"&&t.set(i,t.get(e)??e),i[s]=a);return i}function Nu(e){const t=_d(e);return t.isRecursive=!0,t}function hb(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function ys(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Sd(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(i=>{r.enable?.[i]&&(delete n.disable[i],n.enable[i]=!0),r.disable?.[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function fb({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Nd(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Ld(e){const t=e.find(n=>n.kind==="search_start"||gb(n,{negate:!1})||!pb(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const i=Ld(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function Rd(e,t){const n=Nd(e)??[];for(const r of n)if(r===t||Rd(r,t))return!0;return!1}function pb({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function mb(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function gb(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&pd(e.body[0],{type:"Assertion",kind:"search_start"})}function ks(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Ot(e,t){const r=md(e,{...t,unicodePropertyMap:to}).body;return r.length>1||r[0].body.length>1?ft({body:r}):r[0].body[0]}function xs(e,t){return e.negate=t,e}function Vt(e,t){return e.parent=t,e}function ke(e,t){return Id(e),e.parent=t,e}function bb(e,t){const n=xd(t),r=ca(n.target,"ES2024"),i=ca(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,u=null;if(!i){const f=[e.flags.ignoreCase];br(e,_b,{getCurrentModI:()=>f.at(-1),popModI(){f.pop()},pushModI(m){f.push(m)},setHasCasedChar(){f.at(-1)?a=!0:u=!0}})}const o={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!u)};let l=e;const c={accuracy:n.accuracy,appliedGlobalFlags:o,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!i&&a&&u),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(f){return c.lastNode=l,l=f,K1(Eb[f.type],`Unexpected node type "${f.type}"`)(f,c,d)}const p={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],c.captureMap.forEach((f,m)=>{f.hidden&&p._hiddenCaptures.push(m),f.transferTo&&Or(p._captureTransfers,f.transferTo,[]).push(m)}),p}var _b={"*":{enter({node:e},t){if(Ru(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Si({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Ru(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){no(Ne(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Od(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Cd.has(e.value)&&t.setHasCasedChar()}},Eb={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?J`\B`:J`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:i,number:s}=e,a={ignoreCase:t.currentFlags.ignoreCase},u=t.originMap.get(e);return u&&(a.hidden=!0,s>u.number&&(a.transferTo=u.number)),t.captureMap.set(s,a),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Ne(e),r=In(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&no(n)){const i=Ad(n);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:i,parent:s}=e;let{body:a}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");pt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(Ou)&&(a=[Gi(45),...a.filter(l=>!Ou(l))]);const u=()=>`[${i?"^":""}${a.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||pt.bugNestedClassIgnoresNegation)&&!i){const c=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(c.length){const d=ft(),p=d.body[0];return d.parent=s,p.parent=d,a=a.filter(f=>!c.includes(f)),e.body=a,a.length?(e.parent=p,p.body.push(e)):d.body.pop(),c.forEach(f=>{const m=pn({body:[f]});f.parent=m,m.parent=d,d.body.push(m)}),n(d)}}t.inCharClass=!0;const l=u();return t.inCharClass=!1,l}const o=a[0];if(r==="union"&&!i&&o&&((!t.useFlagV||!t.verbose)&&s.kind==="union"&&!(pt.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&s.kind==="intersection"&&a.length===1&&o.type!=="CharacterClassRange"))return a.map(n).join("");if(!t.useFlagV&&s.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return u()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=In(n,i),a=In(r,i),u=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const o=Od(e);Ab(o).forEach(c=>{u.add(Array.isArray(c)?`${In(c[0],i)}-${In(c[1],i)}`:In(c,i))})}return`${s}-${a}${[...u].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":J`[^\n]`;if(e==="digit")return t?J`\D`:J`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Cd.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?J`\P`:J`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?J`\W`:J`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},i,s){const a=i.currentFlags;n&&(i.currentFlags=Si(a,n));const u=t.map(s).join("|"),o=!i.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!i.useFlagMods||!n)?u:`(?${Cb(e,n,i.useFlagMods)}${u})`;return i.currentFlags=a,o},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,n){return n(e.body)+Ib(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:J`\g<${t}&R=${r}>`}},Tb=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),yb=new Set(["-","\\","]","^","["]),kb=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Lu=new Map([[9,J`\t`],[10,J`\n`],[11,J`\v`],[12,J`\f`],[13,J`\r`],[8232,J`\u2028`],[8233,J`\u2029`],[65279,J`\uFEFF`]]),xb=new RegExp("^\\p{Cased}$","u");function no(e){return xb.test(e)}function Od(e,t){const n=!!t?.firstOnly,r=e.min.value,i=e.max.value,s=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return s;for(let a=r;a<=i;a++){const u=Ne(a);if(!no(u))continue;const o=Ad(u).filter(l=>{const c=l.codePointAt(0);return c<r||c>i});if(o.length&&(s.push(...o),n))break}return s}function In(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Lu.has(e))return Lu.get(e);if(e<32||e>126&&e<160||e>262143||t&&wb(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?kb:yb:Tb,s=Ne(e);return(i.has(s)?"\\":"")+s}function Ab(e){const t=e.map(i=>i.codePointAt(0)).sort((i,s)=>i-s),n=[];let r=null;for(let i=0;i<t.length;i++)t[i+1]===t[i]+1?r??=t[i]:r===null?n.push(t[i]):(n.push([r,t[i]]),r=null);return n}function Cb(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:i,disable:s}=t;r=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${r}:`}function Ib({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Ru({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function wb(e){return e>47&&e<58}function Ou({type:e,value:t}){return e==="Character"&&t===45}var Sb=class da extends RegExp{#t=new Map;#e=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const s=t;super(s,n),this.#r=s.source,s instanceof da&&(this.#t=s.#t,this.#n=s.#n,this.#i=s.#i,this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#r=t,this.#t=Lb(s.hiddenCaptures,s.transfers),this.#i=s.strategy,this.rawOptions=r??{}}i||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:i,...s}=this.rawOptions;this.#e=new da(this.#r,this.flags,s)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#i==="clip_search"&&n&&r){this.lastIndex=0;const i=this.#s(t.slice(r));return i&&(Nb(i,r,t,this.hasIndices),this.lastIndex+=r),i}return this.#s(t)}#s(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let i;this.hasIndices&&(i=[...n.indices],n.indices.length=1);const s=[0];for(let a=1;a<r.length;a++){const{hidden:u,transferTo:o}=this.#t.get(a)??{};if(u?s.push(null):(s.push(n.length),n.push(r[a]),this.hasIndices&&n.indices.push(i[a])),o&&r[a]!==void 0){const l=s[o];if(!l)throw new Error(`Invalid capture transfer to "${l}"`);if(n[l]=r[a],this.hasIndices&&(n.indices[l]=i[a]),n.groups){this.#n||(this.#n=Rb(this.source));const c=this.#n.get(o);c&&(n.groups[c]=r[a],this.hasIndices&&(n.indices.groups[c]=i[a]))}}}return n}};function Nb(e,t,n,r){if(e.index+=t,e.input=n,r){const i=e.indices;for(let a=0;a<i.length;a++){const u=i[a];u&&(i[a]=[u[0]+t,u[1]+t])}const s=i.groups;s&&Object.keys(s).forEach(a=>{const u=s[a];u&&(s[a]=[u[0]+t,u[1]+t])})}}function Lb(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,i]of t)for(const s of i)Or(n,s,{}).transferTo=r;return n}function Rb(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,i=0,s;for(;s=t.exec(e);){const{0:a,groups:{capture:u,name:o}}=s;a==="["?r++:r?a==="]"&&r--:u&&(i++,o&&n.set(i,o))}return n}function Ob(e,t){const n=Pb(e,t);return n.options?new Sb(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Pb(e,t){const n=xd(t),r=md(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:to}),i=ab(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),s=bb(i,n),a=Q1(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),u=W1(a.pattern),o=q1(u.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),l={pattern:o.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=o.hiddenCaptures.sort((m,T)=>m-T),d=Array.from(o.captureTransfers),p=i._strategy,f=l.pattern.length>=n.lazyCompileLength;(c.length||d.length||p||f)&&(l.options={...c.length&&{hiddenCaptures:c},...d.length&&{transfers:d},...p&&{strategy:p},...f&&{lazyCompile:f}})}return l}const Pu=4294967295;class Db{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:i,regexConstructor:s}=n;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(a=>{if(typeof a!="string")return a;const u=i?.get(a);if(u){if(u instanceof RegExp)return u;if(r)return null;throw u}try{const o=s(a);return i?.set(a,o),o}catch(o){if(i?.set(a,o),r)return null;throw o}})}regexps;findNextMatchSync(t,n,r){const i=typeof t=="string"?t:t.content,s=[];function a(u,o,l=0){return{index:u,captureIndices:o.indices.map(c=>c==null?{start:Pu,end:Pu,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[0]})}}for(let u=0;u<this.regexps.length;u++){const o=this.regexps[u];if(o)try{o.lastIndex=n;const l=o.exec(i);if(!l)continue;if(l.index===n)return a(u,l,0);s.push([u,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(s.length){const u=Math.min(...s.map(o=>o[1].index));for(const[o,l,c]of s)if(l.index===u)return a(o,l,c)}return null}}function vb(e,t){return Ob(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Mb(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>vb(n,{target:t.target}),{createScanner(n){return new Db(n,t)},createString(n){return{content:n}}}}var Bb=Mb({forgiving:!0}),Fb=Object.fromEntries(Xa.flatMap(e=>{var t;return((t=e.aliases)!=null?t:[]).map(n=>[n,e.id])})),ha=new Set(Object.keys(od)),Du=e=>{let t=e.trim().toLowerCase();return Fb[t]||(ha.has(t),t)},As=new Map,Cs=new Map,wn=new Map,Ni=e=>{var t;return typeof e=="string"?e:(t=e.name)!=null?t:"custom"},Hb=(e,t)=>`${e}-${Ni(t[0])}-${Ni(t[1])}`,Ub=(e,t,n)=>{let r=e.slice(0,100),i=e.length>100?e.slice(-100):"";return`${t}:${n[0]}:${n[1]}:${e.length}:${r}:${i}`},$b=(e,t)=>{let n=Hb(e,t);if(As.has(n))return As.get(n);let r=Xg({themes:t,langs:[e],engine:Bb});return As.set(n,r),r};function jb(e={}){var t;let n=(t=e.themes)!=null?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(r){let i=Du(r);return ha.has(i)},getSupportedLanguages(){return Array.from(ha)},getThemes(){return n},highlight({code:r,language:i,themes:s},a){let u=Du(i),o=[Ni(s[0]),Ni(s[1])],l=Ub(r,u,o);return Cs.has(l)?Cs.get(l):(a&&(wn.has(l)||wn.set(l,new Set),wn.get(l).add(a)),$b(u,s).then(c=>{let d=c.getLoadedLanguages().includes(u)?u:"text",p=c.codeToTokens(r,{lang:d,themes:{light:o[0],dark:o[1]}});Cs.set(l,p);let f=wn.get(l);if(f){for(let m of f)m(p);wn.delete(l)}}).catch(c=>{console.error("[Streamdown Code] Failed to highlight code:",c),wn.delete(l)}),null)}}}var Vb=jb();const Qi=(function(e){if(e==null)return Wb;if(typeof e=="function")return Xi(e);if(typeof e=="object")return Array.isArray(e)?zb(e):Gb(e);if(typeof e=="string")return qb(e);throw new Error("Expected function, string, or object as test")});function zb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Qi(e[n]);return Xi(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function Gb(e){const t=e;return Xi(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function qb(e){return Xi(t);function t(n){return n&&n.type===e}}function Xi(e){return t;function t(n,r,i){return!!(Yb(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Wb(){return!0}function Yb(e){return e!==null&&typeof e=="object"&&"type"in e}const Pd=[],hr=!0,fa=!1,Dn="skip";function ro(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Qi(i),a=r?-1:1;u(e,void 0,[])();function u(o,l,c){const d=o&&typeof o=="object"?o:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Pd,m,T,k;if((!t||s(o,l,c[c.length-1]||void 0))&&(f=Qb(n(o,c)),f[0]===fa))return f;if("children"in o&&o.children){const g=o;if(g.children&&f[0]!==Dn)for(T=(r?g.children.length:-1)+a,k=c.concat(g);T>-1&&T<g.children.length;){const w=g.children[T];if(m=u(w,T,k)(),m[0]===fa)return m;T=typeof m[1]=="number"?m[1]:T+a}}return f}}}function Qb(e){return Array.isArray(e)?e:typeof e=="number"?[hr,e]:e==null?Pd:[e]}function xt(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),ro(e,s,u,i);function u(o,l){const c=l[l.length-1],d=c?c.children.indexOf(o):void 0;return a(o,d,c)}}const Un={indicator:"indicator",textOnly:"text-only",remove:"remove"};function Xb({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:s="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:a="text-gray-500",linkBlockPolicy:u=Un.indicator,imageBlockPolicy:o=Un.indicator}){const l=t.length&&!t.every(d=>d==="*"),c=n.length&&!n.every(d=>d==="*");if(!e&&(l||c))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const p=n_(e,t,n,r,i,s,a,u,o);Dd(d),xt(d,p)}}function vu(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function Kb(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const Zb=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Jb=new Set(["javascript:","data:","file:","vbscript:"]);function Mu(e,t,n,r=!1,i=!1,s=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const c=e.substring(5);if(c&&c.length>0&&c!=="invalid")return e}}catch{return null}return null}const a=vu(e,n);if(!a||Jb.has(a.protocol)||!(Zb.has(a.protocol)||s.includes(a.protocol)||s.includes("*")))return null;if(a.protocol==="mailto:"||!a.protocol.match(/^https?:$/))return a.href;const o=Kb(e);return a&&t.some(l=>{const c=vu(l,n);return!c||c.origin!==a.origin?!1:a.href.startsWith(c.href)})?o?a.pathname+a.search+a.hash:a.href:t.includes("*")?a.protocol!=="https:"&&a.protocol!=="http:"?null:o?a.pathname+a.search+a.hash:a.href:null}function Dd(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Dd(t)}}const Is=Symbol("node-seen");function e_(e,t,n){return t===Un.remove?{type:"remove"}:t===Un.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function t_(e,t,n){if(t===Un.remove)return{type:"remove"};if(t===Un.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const n_=(e,t,n,r,i,s,a,u,o)=>{const l=(c,d,p)=>{if(c.type!=="element"||c[Is])return hr;if(c.tagName==="a"){const f=Mu(c.properties.href,t,e,!1,!1,i);if(f===null){if(c[Is]=!0,xt(c,l),p&&typeof d=="number"){const m=e_(c,u,a);if(m.type==="remove")return p.children.splice(d,1),[Dn,d];p.children[d]=m.element}return Dn}else return c.properties.href=f,c.properties.target="_blank",c.properties.rel="noopener noreferrer",hr}if(c.tagName==="img"){const f=Mu(c.properties.src,n,e,r,!0,i);if(f===null){if(c[Is]=!0,xt(c,l),p&&typeof d=="number"){const m=t_(c,o,s);if(m.type==="remove")return p.children.splice(d,1),[Dn,d];p.children[d]=m.element}return Dn}else return c.properties.src=f,hr}return hr};return l},vd=-1,Ki=0,_r=1,Li=2,io=3,so=4,ao=5,oo=6,Md=7,Bd=8,Bu=typeof self=="object"?self:globalThis,r_=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case Ki:case vd:return n(a,i);case _r:{const u=n([],i);for(const o of a)u.push(r(o));return u}case Li:{const u=n({},i);for(const[o,l]of a)u[r(o)]=r(l);return u}case io:return n(new Date(a),i);case so:{const{source:u,flags:o}=a;return n(new RegExp(u,o),i)}case ao:{const u=n(new Map,i);for(const[o,l]of a)u.set(r(o),r(l));return u}case oo:{const u=n(new Set,i);for(const o of a)u.add(r(o));return u}case Md:{const{name:u,message:o}=a;return n(new Bu[u](o),i)}case Bd:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:u}=new Uint8Array(a);return n(new DataView(u),a)}}return n(new Bu[s](a),i)};return r},Fu=e=>r_(new Map,e)(0),Sn="",{toString:i_}={},{keys:s_}=Object,tr=e=>{const t=typeof e;if(t!=="object"||!e)return[Ki,t];const n=i_.call(e).slice(8,-1);switch(n){case"Array":return[_r,Sn];case"Object":return[Li,Sn];case"Date":return[io,Sn];case"RegExp":return[so,Sn];case"Map":return[ao,Sn];case"Set":return[oo,Sn];case"DataView":return[_r,n]}return n.includes("Array")?[_r,n]:n.includes("Error")?[Md,n]:[Li,n]},ei=([e,t])=>e===Ki&&(t==="function"||t==="symbol"),a_=(e,t,n,r)=>{const i=(a,u)=>{const o=r.push(a)-1;return n.set(u,o),o},s=a=>{if(n.has(a))return n.get(a);let[u,o]=tr(a);switch(u){case Ki:{let c=a;switch(o){case"bigint":u=Bd,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);c=null;break;case"undefined":return i([vd],a)}return i([u,c],a)}case _r:{if(o){let p=a;return o==="DataView"?p=new Uint8Array(a.buffer):o==="ArrayBuffer"&&(p=new Uint8Array(a)),i([o,[...p]],a)}const c=[],d=i([u,c],a);for(const p of a)c.push(s(p));return d}case Li:{if(o)switch(o){case"BigInt":return i([o,a.toString()],a);case"Boolean":case"Number":case"String":return i([o,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const c=[],d=i([u,c],a);for(const p of s_(a))(e||!ei(tr(a[p])))&&c.push([s(p),s(a[p])]);return d}case io:return i([u,a.toISOString()],a);case so:{const{source:c,flags:d}=a;return i([u,{source:c,flags:d}],a)}case ao:{const c=[],d=i([u,c],a);for(const[p,f]of a)(e||!(ei(tr(p))||ei(tr(f))))&&c.push([s(p),s(f)]);return d}case oo:{const c=[],d=i([u,c],a);for(const p of a)(e||!ei(tr(p)))&&c.push(s(p));return d}}const{message:l}=a;return i([u,{name:o,message:l}],a)};return s},Hu=(e,{json:t,lossy:n}={})=>{const r=[];return a_(!(t||n),!!t,new Map,r)(e),r},mn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Fu(Hu(e,t)):structuredClone(e):(e,t)=>Fu(Hu(e,t));const Uu=/[#.]/g;function o_(e,t){const n=e||"",r={};let i=0,s,a;for(;i<n.length;){Uu.lastIndex=i;const u=Uu.exec(n),o=n.slice(i,u?u.index:n.length);o&&(s?s==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:a=o,i+=o.length),u&&(s=u[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function Fd(e,t,n){const r=n?d_(n):void 0;function i(s,a,...u){let o;if(s==null){o={type:"root",children:[]};const l=a;u.unshift(l)}else{o=o_(s,t);const l=o.tagName.toLowerCase(),c=r?r.get(l):void 0;if(o.tagName=c||l,u_(a))u.unshift(a);else for(const[d,p]of Object.entries(a))l_(e,o.properties,d,p)}for(const l of u)pa(o.children,l);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function u_(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function l_(e,t,n,r){const i=Fr(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=iu(r):i.commaSeparated?s=ru(r):i.commaOrSpaceSeparated?s=iu(ru(r).join(" ")):s=$u(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?c_(r):String(r);if(Array.isArray(s)){const a=[];for(const u of s)a.push($u(i,i.property,u));s=a}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function pa(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)pa(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?pa(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function $u(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Lr(n)===Lr(t)))return!0}return n}function c_(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function d_(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const h_=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],f_=Fd(zn,"div"),p_=Fd(At,"g",h_);function m_(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let a=0;for(;;){let u=n[a];if(u===void 0){const o=ju(t,n[a-1]);u=o===-1?t.length+1:o+1,n[a]=u}if(u>s)return{line:a+1,column:s-(a>0?n[a-1]:0)+1,offset:s};a++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const u=n[n.length-1],o=ju(t,u),l=o===-1?t.length+1:o+1;if(u===l)break;n.push(l)}const a=(s.line>1?n[s.line-2]:0)+s.column-1;if(a<n[s.line-1])return a}}}function ju(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
154
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const hn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Hd={}.hasOwnProperty,g_=Object.prototype;function b_(e,t){const n=t||{};return uo({file:n.file||void 0,location:!1,schema:n.space==="svg"?At:zn,verbose:n.verbose||!1},e)}function uo(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},fi(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ud(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),a=m_(s),u=a.toPoint(0),o=a.toPoint(s.length);n.position={start:u,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},fi(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},fi(e,r,n),n}default:return n=__(e,t),n}}function Ud(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=uo(e,t[n]);r.push(i)}return r}function __(e,t){const n=e.schema;e.schema=t.namespaceURI===hn.svg?At:zn;let r=-1;const i={};for(;++r<t.attrs.length;){const u=t.attrs[r],o=(u.prefix?u.prefix+":":"")+u.name;Hd.call(g_,o)||(i[o]=u.value)}const a=(e.schema.space==="svg"?p_:f_)(t.tagName,i,Ud(e,t.childNodes));if(fi(e,t,a),a.tagName==="template"){const u=t,o=u.sourceCodeLocation,l=o&&o.startTag&&vn(o.startTag),c=o&&o.endTag&&vn(o.endTag),d=uo(e,u.content);l&&c&&e.file&&(d.position={start:l.end,end:c.start}),a.content=d}return e.schema=n,a}function fi(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=E_(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function E_(e,t,n){const r=vn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let a;if(n.attrs)for(a in n.attrs)Hd.call(n.attrs,a)&&(s[Fr(e.schema,a).property]=vn(n.attrs[a]));n.startTag;const u=vn(n.startTag),o=n.endTag?vn(n.endTag):void 0,l={opening:u};o&&(l.closing=o),l.properties=s,t.data={position:l}}}return r}function vn(e){const t=Vu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Vu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Vu(e){return e.line&&e.column?e:void 0}const T_={},y_={}.hasOwnProperty,$d=Ua("type",{handlers:{root:x_,element:S_,text:I_,comment:w_,doctype:C_}});function k_(e,t){const r=(t||T_).space;return $d(e,r==="svg"?At:zn)}function x_(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=lo(e.children,n,t),Yn(e,n),n}function A_(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=lo(e.children,n,t),Yn(e,n),n}function C_(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Yn(e,t),t}function I_(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Yn(e,t),t}function w_(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Yn(e,t),t}function S_(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=At);const i=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&y_.call(e.properties,s)){const o=N_(r,s,e.properties[s]);o&&i.push(o)}}const a=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:hn[a],childNodes:[],parentNode:null};return u.childNodes=lo(e.children,u,r),Yn(e,u),e.tagName==="template"&&e.content&&(u.content=A_(e.content,r)),u}function N_(e,t,n){const r=Fr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?$a(n):ja(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=i.name.indexOf(":");s<0?i.prefix="":(i.name=i.name.slice(s+1),i.prefix=r.attribute.slice(0,s)),i.namespace=hn[r.space]}return i}function lo(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const s=$d(e[r],n);s.parentNode=t,i.push(s)}return i}function Yn(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const L_=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ee="�";var _;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(_||(_={}));const We={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function jd(e){return e>=55296&&e<=57343}function R_(e){return e>=56320&&e<=57343}function O_(e,t){return(e-55296)*1024+9216+t}function Vd(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function zd(e){return e>=64976&&e<=65007||L_.has(e)}var P;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(P||(P={}));const P_=65536;class D_{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=P_,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,a=i+n,u=s+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(R_(n))return this.pos++,this._addGap(),O_(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(P.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;const r=this.html.charCodeAt(n);return r===_.CARRIAGE_RETURN?_.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;let t=this.html.charCodeAt(this.pos);return t===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):t===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,jd(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===_.LINE_FEED||t===_.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Vd(t)?this._err(P.controlCharacterInInputStream):zd(t)&&this._err(P.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var re;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(re||(re={}));function Gd(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const v_=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),M_=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function B_(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=M_.get(e))!==null&&t!==void 0?t:e}var De;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(De||(De={}));const F_=32;var Wt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Wt||(Wt={}));function ma(e){return e>=De.ZERO&&e<=De.NINE}function H_(e){return e>=De.UPPER_A&&e<=De.UPPER_F||e>=De.LOWER_A&&e<=De.LOWER_F}function U_(e){return e>=De.UPPER_A&&e<=De.UPPER_Z||e>=De.LOWER_A&&e<=De.LOWER_Z||ma(e)}function $_(e){return e===De.EQUALS||U_(e)}var Re;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Re||(Re={}));var Dt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Dt||(Dt={}));class j_{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Re.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Dt.Strict}startEntity(t){this.decodeMode=t,this.state=Re.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Re.EntityStart:return t.charCodeAt(n)===De.NUM?(this.state=Re.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Re.NamedEntity,this.stateNamedEntity(t,n));case Re.NumericStart:return this.stateNumericStart(t,n);case Re.NumericDecimal:return this.stateNumericDecimal(t,n);case Re.NumericHex:return this.stateNumericHex(t,n);case Re.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|F_)===De.LOWER_X?(this.state=Re.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Re.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ma(i)||H_(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ma(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===De.SEMI)this.consumed+=1;else if(this.decodeMode===Dt.Strict)return 0;return this.emitCodePoint(B_(this.result),this.consumed),this.errors&&(t!==De.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Wt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=V_(r,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Dt.Attribute&&(s===0||$_(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Wt.VALUE_LENGTH)>>14,s!==0){if(a===De.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Dt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Wt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Wt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Re.NamedEntity:return this.result!==0&&(this.decodeMode!==Dt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Re.NumericDecimal:return this.emitNumericEntity(0,2);case Re.NumericHex:return this.emitNumericEntity(0,3);case Re.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Re.EntityStart:return 0}}}function V_(e,t,n,r){const i=(t&Wt.BRANCH_LENGTH)>>7,s=t&Wt.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const o=r-s;return o<0||o>=i?-1:e[n+o]-1}let a=n,u=a+i-1;for(;a<=u;){const o=a+u>>>1,l=e[o];if(l<r)a=o+1;else if(l>r)u=o-1;else return e[o+i]}return-1}var B;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(B||(B={}));var fn;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(fn||(fn={}));var it;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(it||(it={}));var N;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(N||(N={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const z_=new Map([[N.A,h.A],[N.ADDRESS,h.ADDRESS],[N.ANNOTATION_XML,h.ANNOTATION_XML],[N.APPLET,h.APPLET],[N.AREA,h.AREA],[N.ARTICLE,h.ARTICLE],[N.ASIDE,h.ASIDE],[N.B,h.B],[N.BASE,h.BASE],[N.BASEFONT,h.BASEFONT],[N.BGSOUND,h.BGSOUND],[N.BIG,h.BIG],[N.BLOCKQUOTE,h.BLOCKQUOTE],[N.BODY,h.BODY],[N.BR,h.BR],[N.BUTTON,h.BUTTON],[N.CAPTION,h.CAPTION],[N.CENTER,h.CENTER],[N.CODE,h.CODE],[N.COL,h.COL],[N.COLGROUP,h.COLGROUP],[N.DD,h.DD],[N.DESC,h.DESC],[N.DETAILS,h.DETAILS],[N.DIALOG,h.DIALOG],[N.DIR,h.DIR],[N.DIV,h.DIV],[N.DL,h.DL],[N.DT,h.DT],[N.EM,h.EM],[N.EMBED,h.EMBED],[N.FIELDSET,h.FIELDSET],[N.FIGCAPTION,h.FIGCAPTION],[N.FIGURE,h.FIGURE],[N.FONT,h.FONT],[N.FOOTER,h.FOOTER],[N.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[N.FORM,h.FORM],[N.FRAME,h.FRAME],[N.FRAMESET,h.FRAMESET],[N.H1,h.H1],[N.H2,h.H2],[N.H3,h.H3],[N.H4,h.H4],[N.H5,h.H5],[N.H6,h.H6],[N.HEAD,h.HEAD],[N.HEADER,h.HEADER],[N.HGROUP,h.HGROUP],[N.HR,h.HR],[N.HTML,h.HTML],[N.I,h.I],[N.IMG,h.IMG],[N.IMAGE,h.IMAGE],[N.INPUT,h.INPUT],[N.IFRAME,h.IFRAME],[N.KEYGEN,h.KEYGEN],[N.LABEL,h.LABEL],[N.LI,h.LI],[N.LINK,h.LINK],[N.LISTING,h.LISTING],[N.MAIN,h.MAIN],[N.MALIGNMARK,h.MALIGNMARK],[N.MARQUEE,h.MARQUEE],[N.MATH,h.MATH],[N.MENU,h.MENU],[N.META,h.META],[N.MGLYPH,h.MGLYPH],[N.MI,h.MI],[N.MO,h.MO],[N.MN,h.MN],[N.MS,h.MS],[N.MTEXT,h.MTEXT],[N.NAV,h.NAV],[N.NOBR,h.NOBR],[N.NOFRAMES,h.NOFRAMES],[N.NOEMBED,h.NOEMBED],[N.NOSCRIPT,h.NOSCRIPT],[N.OBJECT,h.OBJECT],[N.OL,h.OL],[N.OPTGROUP,h.OPTGROUP],[N.OPTION,h.OPTION],[N.P,h.P],[N.PARAM,h.PARAM],[N.PLAINTEXT,h.PLAINTEXT],[N.PRE,h.PRE],[N.RB,h.RB],[N.RP,h.RP],[N.RT,h.RT],[N.RTC,h.RTC],[N.RUBY,h.RUBY],[N.S,h.S],[N.SCRIPT,h.SCRIPT],[N.SEARCH,h.SEARCH],[N.SECTION,h.SECTION],[N.SELECT,h.SELECT],[N.SOURCE,h.SOURCE],[N.SMALL,h.SMALL],[N.SPAN,h.SPAN],[N.STRIKE,h.STRIKE],[N.STRONG,h.STRONG],[N.STYLE,h.STYLE],[N.SUB,h.SUB],[N.SUMMARY,h.SUMMARY],[N.SUP,h.SUP],[N.TABLE,h.TABLE],[N.TBODY,h.TBODY],[N.TEMPLATE,h.TEMPLATE],[N.TEXTAREA,h.TEXTAREA],[N.TFOOT,h.TFOOT],[N.TD,h.TD],[N.TH,h.TH],[N.THEAD,h.THEAD],[N.TITLE,h.TITLE],[N.TR,h.TR],[N.TRACK,h.TRACK],[N.TT,h.TT],[N.U,h.U],[N.UL,h.UL],[N.SVG,h.SVG],[N.VAR,h.VAR],[N.WBR,h.WBR],[N.XMP,h.XMP]]);function Qn(e){var t;return(t=z_.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const F=h,G_={[B.HTML]:new Set([F.ADDRESS,F.APPLET,F.AREA,F.ARTICLE,F.ASIDE,F.BASE,F.BASEFONT,F.BGSOUND,F.BLOCKQUOTE,F.BODY,F.BR,F.BUTTON,F.CAPTION,F.CENTER,F.COL,F.COLGROUP,F.DD,F.DETAILS,F.DIR,F.DIV,F.DL,F.DT,F.EMBED,F.FIELDSET,F.FIGCAPTION,F.FIGURE,F.FOOTER,F.FORM,F.FRAME,F.FRAMESET,F.H1,F.H2,F.H3,F.H4,F.H5,F.H6,F.HEAD,F.HEADER,F.HGROUP,F.HR,F.HTML,F.IFRAME,F.IMG,F.INPUT,F.LI,F.LINK,F.LISTING,F.MAIN,F.MARQUEE,F.MENU,F.META,F.NAV,F.NOEMBED,F.NOFRAMES,F.NOSCRIPT,F.OBJECT,F.OL,F.P,F.PARAM,F.PLAINTEXT,F.PRE,F.SCRIPT,F.SECTION,F.SELECT,F.SOURCE,F.STYLE,F.SUMMARY,F.TABLE,F.TBODY,F.TD,F.TEMPLATE,F.TEXTAREA,F.TFOOT,F.TH,F.THEAD,F.TITLE,F.TR,F.TRACK,F.UL,F.WBR,F.XMP]),[B.MATHML]:new Set([F.MI,F.MO,F.MN,F.MS,F.MTEXT,F.ANNOTATION_XML]),[B.SVG]:new Set([F.TITLE,F.FOREIGN_OBJECT,F.DESC]),[B.XLINK]:new Set,[B.XML]:new Set,[B.XMLNS]:new Set},ga=new Set([F.H1,F.H2,F.H3,F.H4,F.H5,F.H6]);N.STYLE,N.SCRIPT,N.XMP,N.IFRAME,N.NOEMBED,N.NOFRAMES,N.PLAINTEXT;var E;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(E||(E={}));const xe={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function q_(e){return e>=_.DIGIT_0&&e<=_.DIGIT_9}function fr(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_Z}function W_(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_Z}function zt(e){return W_(e)||fr(e)}function zu(e){return zt(e)||q_(e)}function ti(e){return e+32}function qd(e){return e===_.SPACE||e===_.LINE_FEED||e===_.TABULATION||e===_.FORM_FEED}function Gu(e){return qd(e)||e===_.SOLIDUS||e===_.GREATER_THAN_SIGN}function Y_(e){return e===_.NULL?P.nullCharacterReference:e>1114111?P.characterReferenceOutsideUnicodeRange:jd(e)?P.surrogateCharacterReference:zd(e)?P.noncharacterCharacterReference:Vd(e)||e===_.CARRIAGE_RETURN?P.controlCharacterReference:null}class Q_{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new D_(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new j_(v_,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(P.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(P.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=Y_(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:re.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:re.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:re.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:re.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Gd(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(P.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Qn(t.tagName),t.type===re.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(P.endTagWithAttributes),t.selfClosing&&this._err(P.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case re.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case re.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case re.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:re.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=qd(t)?re.WHITESPACE_CHARACTER:t===_.NULL?re.NULL_CHARACTER:re.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(re.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Dt.Attribute:Dt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitCodePoint(t);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case _.AMPERSAND:{this._startCharacterReference();break}case _.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ee);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case _.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ee);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ee);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ee);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zt(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case _.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(P.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case _.EOF:{this._err(P.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zt(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case _.GREATER_THAN_SIGN:{this._err(P.missingEndTagName),this.state=E.DATA;break}case _.EOF:{this._err(P.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.tagName+=Ee;break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(fr(t)?ti(t):t)}}_stateRcdataLessThanSign(t){t===_.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){zt(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case _.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case _.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===_.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){zt(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case _.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case _.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){zt(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===_.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===_.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ee);break}case _.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case _.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case _.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===_.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zt(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zt(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(We.SCRIPT,!1)&&Gu(this.preprocessor.peek(We.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<We.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ee);break}case _.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case _.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case _.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===_.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(We.SCRIPT,!1)&&Gu(this.preprocessor.peek(We.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<We.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._err(P.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:{this._err(P.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.name+=Ee;break}default:this.currentAttr.name+=String.fromCodePoint(fr(t)?ti(t):t)}}_stateAfterAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case _.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(P.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case _.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case _.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:case _.EQUALS_SIGN:case _.GRAVE_ACCENT:{this._err(P.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case _.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case _.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ee;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(We.DASH_DASH,!0)?(this._createCommentToken(We.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(We.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(We.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(We.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(P.cdataInHtmlContent),this._createCommentToken(We.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(P.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case _.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case _.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case _.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case _.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ee;break}case _.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case _.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case _.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===_.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===_.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==_.GREATER_THAN_SIGN&&t!==_.EOF&&this._err(P.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case _.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case _.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case _.HYPHEN_MINUS:{n.data+="-";break}case _.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case _.GREATER_THAN_SIGN:{this._err(P.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case _.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(fr(t))this._createDoctypeToken(String.fromCharCode(ti(t))),this.state=E.DOCTYPE_NAME;else switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.NULL:{this._err(P.unexpectedNullCharacter),this._createDoctypeToken(Ee),this.state=E.DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this._err(P.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.name+=Ee;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(fr(t)?ti(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(We.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(We.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(P.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ee;break}case _.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ee;break}case _.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case _.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.QUOTATION_MARK:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ee;break}case _.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ee;break}case _.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case _.NULL:{this._err(P.unexpectedNullCharacter);break}case _.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case _.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case _.EOF:{this._err(P.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===_.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case _.GREATER_THAN_SIGN:{this.state=E.DATA;break}case _.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zu(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===_.SEMICOLON&&this._err(P.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Wd=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),qu=new Set([...Wd,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Ri=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),X_=new Set([...Ri,h.OL,h.UL]),K_=new Set([...Ri,h.BUTTON]),Wu=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),Yu=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),Z_=new Set([h.TR,h.TEMPLATE,h.HTML]),J_=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),eE=new Set([h.TABLE,h.TEMPLATE,h.HTML]),tE=new Set([h.TD,h.TH]);class nE{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===B.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==B.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ga,B.HTML)}popUntilTableCellPopped(){this.popUntilPopped(tE,B.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(eE,B.HTML)}clearBackToTableBodyContext(){this.clearBackTo(J_,B.HTML)}clearBackToTableRowContext(){this.clearBackTo(Z_,B.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case B.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case B.SVG:{if(Yu.has(i))return!1;break}case B.MATHML:{if(Wu.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ri)}hasInListItemScope(t){return this.hasInDynamicScope(t,X_)}hasInButtonScope(t){return this.hasInDynamicScope(t,K_)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case B.HTML:{if(ga.has(n))return!0;if(Ri.has(n))return!1;break}case B.SVG:{if(Yu.has(n))return!1;break}case B.MATHML:{if(Wu.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===B.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===B.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===B.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Wd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&qu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&qu.has(this.currentTagId);)this.pop()}}const ws=3;var kt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(kt||(kt={}));const Qu={type:kt.Marker};class rE{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const o=this.entries[u];if(o.type===kt.Marker)break;const{element:l}=o;if(this.treeAdapter.getTagName(l)===s&&this.treeAdapter.getNamespaceURI(l)===a){const c=this.treeAdapter.getAttrList(l);c.length===i&&r.push({idx:u,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ws)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ws)return;const i=new Map(n.map(a=>[a.name,a.value]));let s=0;for(let a=0;a<r.length;a++){const u=r[a];u.attrs.every(o=>i.get(o.name)===o.value)&&(s+=1,s>=ws&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Qu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:kt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:kt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Qu);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===kt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===kt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===kt.Element&&n.element===t)}}const Gt={createDocument(){return{nodeName:"#document",mode:it.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Gt.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Gt.isTextNode(n)){n.value+=t;return}}Gt.appendChild(e,Gt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Gt.isTextNode(r)?r.value+=t:Gt.insertBefore(e,Gt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Yd="html",iE="about:legacy-compat",sE="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qd=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aE=[...Qd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oE=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xd=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],uE=[...Xd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Xu(e,t){return t.some(n=>e.startsWith(n))}function lE(e){return e.name===Yd&&e.publicId===null&&(e.systemId===null||e.systemId===iE)}function cE(e){if(e.name!==Yd)return it.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===sE)return it.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),oE.has(n))return it.QUIRKS;let r=t===null?aE:Qd;if(Xu(n,r))return it.QUIRKS;if(r=t===null?Xd:uE,Xu(n,r))return it.LIMITED_QUIRKS}return it.NO_QUIRKS}const Ku={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},dE="definitionurl",hE="definitionURL",fE=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),pE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:B.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:B.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:B.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:B.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:B.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:B.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:B.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:B.XML}],["xml:space",{prefix:"xml",name:"space",namespace:B.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:B.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:B.XMLNS}]]),mE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),gE=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function bE(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===fn.COLOR||r===fn.SIZE||r===fn.FACE)||gE.has(t)}function Kd(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===dE){e.attrs[t].name=hE;break}}function Zd(e){for(let t=0;t<e.attrs.length;t++){const n=fE.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function co(e){for(let t=0;t<e.attrs.length;t++){const n=pE.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function _E(e){const t=mE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Qn(e.tagName))}function EE(e,t){return t===B.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function TE(e,t,n){if(t===B.MATHML&&e===h.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===fn.ENCODING){const i=n[r].value.toLowerCase();return i===Ku.TEXT_HTML||i===Ku.APPLICATION_XML}}return t===B.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function yE(e,t,n,r){return(!r||r===B.HTML)&&TE(e,t,n)||(!r||r===B.MATHML)&&EE(e,t)}const kE="hidden",xE=8,AE=3;var A;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(A||(A={}));const CE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Jd=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),Zu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Gt,onParseError:null};class Ju{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=A.INITIAL,this.originalInsertionMode=A.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Zu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Q_(this.options,this),this.activeFormattingElements=new rE(this.treeAdapter),this.fragmentContextID=r?Qn(this.treeAdapter.getTagName(r)):h.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new nE(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Zu,...n};t??(t=r.treeAdapter.createElement(N.TEMPLATE,B.HTML,[]));const i=r.treeAdapter.createElement("documentmock",B.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===h.TEMPLATE&&s.tmplInsertionModeStack.unshift(A.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:CE,a={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===B.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,B.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=A.TEXT}switchToPlaintextParsing(){this.insertionMode=A.TEXT,this.originalInsertionMode=A.IN_BODY,this.tokenizer.state=xe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===N.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==B.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=xe.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=xe.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=xe.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=xe.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,B.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,B.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(N.HTML,B.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:o,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:o,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===re.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===B.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,B.HTML)}_processToken(t){switch(t.type){case re.CHARACTER:{this.onCharacter(t);break}case re.NULL_CHARACTER:{this.onNullCharacter(t);break}case re.COMMENT:{this.onComment(t);break}case re.DOCTYPE:{this.onDoctype(t);break}case re.START_TAG:{this._processStartTag(t);break}case re.END_TAG:{this.onEndTag(t);break}case re.EOF:{this.onEof(t);break}case re.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return yE(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===kt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=A.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=A.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=A.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=A.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=A.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=A.IN_TABLE;return}case h.BODY:{this.insertionMode=A.IN_BODY;return}case h.FRAMESET:{this.insertionMode=A.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?A.AFTER_HEAD:A.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=A.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=A.IN_HEAD;return}break}}this.insertionMode=A.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=A.IN_SELECT_IN_TABLE;return}}this.insertionMode=A.IN_SELECT}_isElementCausesFosterParenting(t){return Jd.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===B.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return G_[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ty(this,t);return}switch(this.insertionMode){case A.INITIAL:{nr(this,t);break}case A.BEFORE_HTML:{Er(this,t);break}case A.BEFORE_HEAD:{Tr(this,t);break}case A.IN_HEAD:{yr(this,t);break}case A.IN_HEAD_NO_SCRIPT:{kr(this,t);break}case A.AFTER_HEAD:{xr(this,t);break}case A.IN_BODY:case A.IN_CAPTION:case A.IN_CELL:case A.IN_TEMPLATE:{th(this,t);break}case A.TEXT:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{Ss(this,t);break}case A.IN_TABLE_TEXT:{oh(this,t);break}case A.IN_COLUMN_GROUP:{Oi(this,t);break}case A.AFTER_BODY:{Pi(this,t);break}case A.AFTER_AFTER_BODY:{pi(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ey(this,t);return}switch(this.insertionMode){case A.INITIAL:{nr(this,t);break}case A.BEFORE_HTML:{Er(this,t);break}case A.BEFORE_HEAD:{Tr(this,t);break}case A.IN_HEAD:{yr(this,t);break}case A.IN_HEAD_NO_SCRIPT:{kr(this,t);break}case A.AFTER_HEAD:{xr(this,t);break}case A.TEXT:{this._insertCharacters(t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{Ss(this,t);break}case A.IN_COLUMN_GROUP:{Oi(this,t);break}case A.AFTER_BODY:{Pi(this,t);break}case A.AFTER_AFTER_BODY:{pi(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ba(this,t);return}switch(this.insertionMode){case A.INITIAL:case A.BEFORE_HTML:case A.BEFORE_HEAD:case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:case A.IN_BODY:case A.IN_TABLE:case A.IN_CAPTION:case A.IN_COLUMN_GROUP:case A.IN_TABLE_BODY:case A.IN_ROW:case A.IN_CELL:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:case A.IN_TEMPLATE:case A.IN_FRAMESET:case A.AFTER_FRAMESET:{ba(this,t);break}case A.IN_TABLE_TEXT:{rr(this,t);break}case A.AFTER_BODY:{OE(this,t);break}case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{PE(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case A.INITIAL:{DE(this,t);break}case A.BEFORE_HEAD:case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:{this._err(t,P.misplacedDoctype);break}case A.IN_TABLE_TEXT:{rr(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,P.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ny(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case A.INITIAL:{nr(this,t);break}case A.BEFORE_HTML:{vE(this,t);break}case A.BEFORE_HEAD:{BE(this,t);break}case A.IN_HEAD:{gt(this,t);break}case A.IN_HEAD_NO_SCRIPT:{UE(this,t);break}case A.AFTER_HEAD:{jE(this,t);break}case A.IN_BODY:{Ue(this,t);break}case A.IN_TABLE:{$n(this,t);break}case A.IN_TABLE_TEXT:{rr(this,t);break}case A.IN_CAPTION:{FT(this,t);break}case A.IN_COLUMN_GROUP:{po(this,t);break}case A.IN_TABLE_BODY:{es(this,t);break}case A.IN_ROW:{ts(this,t);break}case A.IN_CELL:{$T(this,t);break}case A.IN_SELECT:{ch(this,t);break}case A.IN_SELECT_IN_TABLE:{VT(this,t);break}case A.IN_TEMPLATE:{GT(this,t);break}case A.AFTER_BODY:{WT(this,t);break}case A.IN_FRAMESET:{YT(this,t);break}case A.AFTER_FRAMESET:{XT(this,t);break}case A.AFTER_AFTER_BODY:{ZT(this,t);break}case A.AFTER_AFTER_FRAMESET:{JT(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ry(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case A.INITIAL:{nr(this,t);break}case A.BEFORE_HTML:{ME(this,t);break}case A.BEFORE_HEAD:{FE(this,t);break}case A.IN_HEAD:{HE(this,t);break}case A.IN_HEAD_NO_SCRIPT:{$E(this,t);break}case A.AFTER_HEAD:{VE(this,t);break}case A.IN_BODY:{Ji(this,t);break}case A.TEXT:{ST(this,t);break}case A.IN_TABLE:{Pr(this,t);break}case A.IN_TABLE_TEXT:{rr(this,t);break}case A.IN_CAPTION:{HT(this,t);break}case A.IN_COLUMN_GROUP:{UT(this,t);break}case A.IN_TABLE_BODY:{_a(this,t);break}case A.IN_ROW:{lh(this,t);break}case A.IN_CELL:{jT(this,t);break}case A.IN_SELECT:{dh(this,t);break}case A.IN_SELECT_IN_TABLE:{zT(this,t);break}case A.IN_TEMPLATE:{qT(this,t);break}case A.AFTER_BODY:{fh(this,t);break}case A.IN_FRAMESET:{QT(this,t);break}case A.AFTER_FRAMESET:{KT(this,t);break}case A.AFTER_AFTER_BODY:{pi(this,t);break}}}onEof(t){switch(this.insertionMode){case A.INITIAL:{nr(this,t);break}case A.BEFORE_HTML:{Er(this,t);break}case A.BEFORE_HEAD:{Tr(this,t);break}case A.IN_HEAD:{yr(this,t);break}case A.IN_HEAD_NO_SCRIPT:{kr(this,t);break}case A.AFTER_HEAD:{xr(this,t);break}case A.IN_BODY:case A.IN_TABLE:case A.IN_CAPTION:case A.IN_COLUMN_GROUP:case A.IN_TABLE_BODY:case A.IN_ROW:case A.IN_CELL:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:{sh(this,t);break}case A.TEXT:{NT(this,t);break}case A.IN_TABLE_TEXT:{rr(this,t);break}case A.IN_TEMPLATE:{hh(this,t);break}case A.AFTER_BODY:case A.IN_FRAMESET:case A.AFTER_FRAMESET:case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{fo(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===_.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:case A.TEXT:case A.IN_COLUMN_GROUP:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:case A.IN_FRAMESET:case A.AFTER_FRAMESET:{this._insertCharacters(t);break}case A.IN_BODY:case A.IN_CAPTION:case A.IN_CELL:case A.IN_TEMPLATE:case A.AFTER_BODY:case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{eh(this,t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{Ss(this,t);break}case A.IN_TABLE_TEXT:{ah(this,t);break}}}}function IE(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ih(e,t),n}function wE(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function SE(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==n;s++,a=i){i=e.openElements.getCommonAncestor(a);const u=e.activeFormattingElements.getElementEntry(a),o=u&&s>=AE;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(a)):(a=NE(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function NE(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function LE(e,t,n){const r=e.treeAdapter.getTagName(t),i=Qn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&s===B.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function RE(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function ho(e,t){for(let n=0;n<xE;n++){const r=IE(e,t);if(!r)break;const i=wE(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=SE(e,i,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),a&&LE(e,a,s),RE(e,i,r)}}function ba(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function OE(e,t){e._appendCommentNode(t,e.openElements.items[0])}function PE(e,t){e._appendCommentNode(t,e.document)}function fo(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function DE(e,t){e._setDocumentType(t);const n=t.forceQuirks?it.QUIRKS:cE(t);lE(t)||e._err(t,P.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=A.BEFORE_HTML}function nr(e,t){e._err(t,P.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,it.QUIRKS),e.insertionMode=A.BEFORE_HTML,e._processToken(t)}function vE(e,t){t.tagID===h.HTML?(e._insertElement(t,B.HTML),e.insertionMode=A.BEFORE_HEAD):Er(e,t)}function ME(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Er(e,t)}function Er(e,t){e._insertFakeRootElement(),e.insertionMode=A.BEFORE_HEAD,e._processToken(t)}function BE(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.HEAD:{e._insertElement(t,B.HTML),e.headElement=e.openElements.current,e.insertionMode=A.IN_HEAD;break}default:Tr(e,t)}}function FE(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Tr(e,t):e._err(t,P.endTagWithoutMatchingOpenElement)}function Tr(e,t){e._insertFakeElement(N.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=A.IN_HEAD,e._processToken(t)}function gt(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,xe.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,xe.RAWTEXT):(e._insertElement(t,B.HTML),e.insertionMode=A.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,xe.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,xe.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=A.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(A.IN_TEMPLATE);break}case h.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:yr(e,t)}}function HE(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=A.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{yr(e,t);break}case h.TEMPLATE:{En(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function En(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,P.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,P.endTagWithoutMatchingOpenElement)}function yr(e,t){e.openElements.pop(),e.insertionMode=A.AFTER_HEAD,e._processToken(t)}function UE(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{gt(e,t);break}case h.NOSCRIPT:{e._err(t,P.nestedNoscriptInHead);break}default:kr(e,t)}}function $E(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=A.IN_HEAD;break}case h.BR:{kr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function kr(e,t){const n=t.type===re.EOF?P.openElementsLeftAfterEof:P.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=A.IN_HEAD,e._processToken(t)}function jE(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.BODY:{e._insertElement(t,B.HTML),e.framesetOk=!1,e.insertionMode=A.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,B.HTML),e.insertionMode=A.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,P.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),gt(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:xr(e,t)}}function VE(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{xr(e,t);break}case h.TEMPLATE:{En(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function xr(e,t){e._insertFakeElement(N.BODY,h.BODY),e.insertionMode=A.IN_BODY,Zi(e,t)}function Zi(e,t){switch(t.type){case re.CHARACTER:{th(e,t);break}case re.WHITESPACE_CHARACTER:{eh(e,t);break}case re.COMMENT:{ba(e,t);break}case re.START_TAG:{Ue(e,t);break}case re.END_TAG:{Ji(e,t);break}case re.EOF:{sh(e,t);break}}}function eh(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function th(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function zE(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function GE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function qE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,B.HTML),e.insertionMode=A.IN_FRAMESET)}function WE(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,B.HTML)}function YE(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ga.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,B.HTML)}function QE(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,B.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function XE(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,B.HTML),n||(e.formElement=e.openElements.current))}function KE(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,B.HTML)}function ZE(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,B.HTML),e.tokenizer.state=xe.PLAINTEXT}function JE(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.framesetOk=!1}function eT(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(ho(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nT(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(ho(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,B.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function iT(e,t){e.treeAdapter.getDocumentMode(e.document)!==it.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,B.HTML),e.framesetOk=!1,e.insertionMode=A.IN_TABLE}function nh(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,B.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function rh(e){const t=Gd(e,fn.TYPE);return t!=null&&t.toLowerCase()===kE}function sT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,B.HTML),rh(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function aT(e,t){e._appendElement(t,B.HTML),t.ackSelfClosing=!0}function oT(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,B.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uT(e,t){t.tagName=N.IMG,t.tagID=h.IMG,nh(e,t)}function lT(e,t){e._insertElement(t,B.HTML),e.skipNextNewLine=!0,e.tokenizer.state=xe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=A.TEXT}function cT(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,xe.RAWTEXT)}function dT(e,t){e.framesetOk=!1,e._switchToTextParsing(t,xe.RAWTEXT)}function el(e,t){e._switchToTextParsing(t,xe.RAWTEXT)}function hT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===A.IN_TABLE||e.insertionMode===A.IN_CAPTION||e.insertionMode===A.IN_TABLE_BODY||e.insertionMode===A.IN_ROW||e.insertionMode===A.IN_CELL?A.IN_SELECT_IN_TABLE:A.IN_SELECT}function fT(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML)}function pT(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,B.HTML)}function mT(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,B.HTML)}function gT(e,t){e._reconstructActiveFormattingElements(),Kd(t),co(t),t.selfClosing?e._appendElement(t,B.MATHML):e._insertElement(t,B.MATHML),t.ackSelfClosing=!0}function bT(e,t){e._reconstructActiveFormattingElements(),Zd(t),co(t),t.selfClosing?e._appendElement(t,B.SVG):e._insertElement(t,B.SVG),t.ackSelfClosing=!0}function tl(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML)}function Ue(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{tT(e,t);break}case h.A:{eT(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{YE(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{WE(e,t);break}case h.LI:case h.DD:case h.DT:{KE(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{nh(e,t);break}case h.HR:{oT(e,t);break}case h.RB:case h.RTC:{pT(e,t);break}case h.RT:case h.RP:{mT(e,t);break}case h.PRE:case h.LISTING:{QE(e,t);break}case h.XMP:{cT(e,t);break}case h.SVG:{bT(e,t);break}case h.HTML:{zE(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{gt(e,t);break}case h.BODY:{GE(e,t);break}case h.FORM:{XE(e,t);break}case h.NOBR:{nT(e,t);break}case h.MATH:{gT(e,t);break}case h.TABLE:{iT(e,t);break}case h.INPUT:{sT(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{aT(e,t);break}case h.IMAGE:{uT(e,t);break}case h.BUTTON:{JE(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{rT(e,t);break}case h.IFRAME:{dT(e,t);break}case h.SELECT:{hT(e,t);break}case h.OPTION:case h.OPTGROUP:{fT(e,t);break}case h.NOEMBED:case h.NOFRAMES:{el(e,t);break}case h.FRAMESET:{qE(e,t);break}case h.TEXTAREA:{lT(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?el(e,t):tl(e,t);break}case h.PLAINTEXT:{ZE(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:tl(e,t)}}function _T(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=A.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function ET(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=A.AFTER_BODY,fh(e,t))}function TT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function yT(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function kT(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(N.P,h.P),e._closePElement()}function xT(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function AT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function CT(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function IT(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function wT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function ih(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function Ji(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{ho(e,t);break}case h.P:{kT(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{TT(e,t);break}case h.LI:{xT(e);break}case h.DD:case h.DT:{AT(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{CT(e);break}case h.BR:{wT(e);break}case h.BODY:{_T(e,t);break}case h.HTML:{ET(e,t);break}case h.FORM:{yT(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{IT(e,t);break}case h.TEMPLATE:{En(e,t);break}default:ih(e,t)}}function sh(e,t){e.tmplInsertionModeStack.length>0?hh(e,t):fo(e,t)}function ST(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function NT(e,t){e._err(t,P.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ss(e,t){if(e.openElements.currentTagId!==void 0&&Jd.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=A.IN_TABLE_TEXT,t.type){case re.CHARACTER:{oh(e,t);break}case re.WHITESPACE_CHARACTER:{ah(e,t);break}}else Ur(e,t)}function LT(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,B.HTML),e.insertionMode=A.IN_CAPTION}function RT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,B.HTML),e.insertionMode=A.IN_COLUMN_GROUP}function OT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,h.COLGROUP),e.insertionMode=A.IN_COLUMN_GROUP,po(e,t)}function PT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,B.HTML),e.insertionMode=A.IN_TABLE_BODY}function DT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,h.TBODY),e.insertionMode=A.IN_TABLE_BODY,es(e,t)}function vT(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function MT(e,t){rh(t)?e._appendElement(t,B.HTML):Ur(e,t),t.ackSelfClosing=!0}function BT(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,B.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function $n(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{DT(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{gt(e,t);break}case h.COL:{OT(e,t);break}case h.FORM:{BT(e,t);break}case h.TABLE:{vT(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{PT(e,t);break}case h.INPUT:{MT(e,t);break}case h.CAPTION:{LT(e,t);break}case h.COLGROUP:{RT(e,t);break}default:Ur(e,t)}}function Pr(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{En(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:Ur(e,t)}}function Ur(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Zi(e,t),e.fosterParentingEnabled=n}function ah(e,t){e.pendingCharacterTokens.push(t)}function oh(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function rr(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ur(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const uh=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function FT(e,t){const n=t.tagID;uh.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_TABLE,$n(e,t)):Ue(e,t)}function HT(e,t){const n=t.tagID;switch(n){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_TABLE,n===h.TABLE&&Pr(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:Ji(e,t)}}function po(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.COL:{e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{gt(e,t);break}default:Oi(e,t)}}function UT(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=A.IN_TABLE);break}case h.TEMPLATE:{En(e,t);break}case h.COL:break;default:Oi(e,t)}}function Oi(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=A.IN_TABLE,e._processToken(t))}function es(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,B.HTML),e.insertionMode=A.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,h.TR),e.insertionMode=A.IN_ROW,ts(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE,$n(e,t));break}default:$n(e,t)}}function _a(e,t){const n=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE,Pr(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:Pr(e,t)}}function ts(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,B.HTML),e.insertionMode=A.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,es(e,t));break}default:$n(e,t)}}function lh(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,_a(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,_a(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:Pr(e,t)}}function $T(e,t){const n=t.tagID;uh.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),ts(e,t)):Ue(e,t)}function jT(e,t){const n=t.tagID;switch(n){case h.TD:case h.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),lh(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:Ji(e,t)}}function ch(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,B.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,B.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{gt(e,t);break}}}function dh(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{En(e,t);break}}}function VT(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ch(e,t)}function zT(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):dh(e,t)}function GT(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{gt(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=A.IN_TABLE,e.insertionMode=A.IN_TABLE,$n(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=A.IN_COLUMN_GROUP,e.insertionMode=A.IN_COLUMN_GROUP,po(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=A.IN_TABLE_BODY,e.insertionMode=A.IN_TABLE_BODY,es(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=A.IN_ROW,e.insertionMode=A.IN_ROW,ts(e,t);break}default:e.tmplInsertionModeStack[0]=A.IN_BODY,e.insertionMode=A.IN_BODY,Ue(e,t)}}function qT(e,t){t.tagID===h.TEMPLATE&&En(e,t)}function hh(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):fo(e,t)}function WT(e,t){t.tagID===h.HTML?Ue(e,t):Pi(e,t)}function fh(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=A.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Pi(e,t)}function Pi(e,t){e.insertionMode=A.IN_BODY,Zi(e,t)}function YT(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.FRAMESET:{e._insertElement(t,B.HTML);break}case h.FRAME:{e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{gt(e,t);break}}}function QT(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=A.AFTER_FRAMESET))}function XT(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.NOFRAMES:{gt(e,t);break}}}function KT(e,t){t.tagID===h.HTML&&(e.insertionMode=A.AFTER_AFTER_FRAMESET)}function ZT(e,t){t.tagID===h.HTML?Ue(e,t):pi(e,t)}function pi(e,t){e.insertionMode=A.IN_BODY,Zi(e,t)}function JT(e,t){switch(t.tagID){case h.HTML:{Ue(e,t);break}case h.NOFRAMES:{gt(e,t);break}}}function ey(e,t){t.chars=Ee,e._insertCharacters(t)}function ty(e,t){e._insertCharacters(t),e.framesetOk=!1}function ph(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==B.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ny(e,t){if(bE(t))ph(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===B.MATHML?Kd(t):r===B.SVG&&(_E(t),Zd(t)),co(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function ry(e,t){if(t.tagID===h.P||t.tagID===h.BR){ph(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===B.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}N.AREA,N.BASE,N.BASEFONT,N.BGSOUND,N.BR,N.COL,N.EMBED,N.FRAME,N.HR,N.IMG,N.INPUT,N.KEYGEN,N.LINK,N.META,N.PARAM,N.SOURCE,N.TRACK,N.WBR;const ns=mh("end"),Ct=mh("start");function mh(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function gh(e){const t=Ct(e),n=ns(e);if(t&&n)return{start:t,end:n}}const iy=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,sy=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),nl={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function bh(e,t){const n=my(e),r=Ua("type",{handlers:{root:ay,element:oy,text:uy,comment:Eh,doctype:ly,raw:dy},unknown:hy}),i={parser:n?new Ju(nl):Ju.getFragmentParser(void 0,nl),handle(u){r(u,i)},stitches:!1,options:t||{}};r(e,i),Xn(i,Ct());const s=n?i.parser.document:i.parser.getFragment(),a=b_(s,{file:i.options.file});return i.stitches&&xt(a,"comment",function(u,o,l){const c=u;if(c.value.stitch&&l&&o!==void 0){const d=l.children;return d[o]=c.value.stitch,o}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function _h(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function ay(e,t){_h(e.children,t)}function oy(e,t){fy(e,t),_h(e.children,t),py(e,t)}function uy(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:re.CHARACTER,chars:e.value,location:$r(e)};Xn(t,Ct(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ly(e,t){const n={type:re.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:$r(e)};Xn(t,Ct(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function cy(e,t){t.stitches=!0;const n=gy(e);if("children"in e&&"children"in n){const r=bh({type:"root",children:e.children},t.options);n.children=r.children}Eh({type:"comment",value:{stitch:n}},t)}function Eh(e,t){const n=e.value,r={type:re.COMMENT,data:n,location:$r(e)};Xn(t,Ct(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function dy(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Th(t,Ct(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(iy,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function hy(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))cy(n,t);else{let r="";throw sy.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Xn(e,t){Th(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=xe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Th(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function fy(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===xe.PLAINTEXT)return;Xn(t,Ct(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:hn.html;i===hn.html&&n==="svg"&&(i=hn.svg);const s=k_({...e,children:[]},{space:i===hn.svg?"svg":"html"}),a={type:re.START_TAG,tagName:n,tagID:Qn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:$r(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function py(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Fc.includes(n)||t.parser.tokenizer.state===xe.PLAINTEXT)return;Xn(t,ns(e));const r={type:re.END_TAG,tagName:n,tagID:Qn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:$r(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===xe.RCDATA||t.parser.tokenizer.state===xe.RAWTEXT||t.parser.tokenizer.state===xe.SCRIPT_DATA)&&(t.parser.tokenizer.state=xe.DATA)}function my(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function $r(e){const t=Ct(e)||{line:void 0,column:void 0,offset:void 0},n=ns(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function gy(e){return"children"in e?mn({...e,children:[]}):mn(e)}function Ea(e){return function(t,n){return bh(t,{...e,file:n})}}const nn=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],un={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...nn,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...nn],h2:[["className","sr-only"]],img:[...nn,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...nn,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...nn],table:[...nn],ul:[...nn,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},qt={}.hasOwnProperty;function by(e,t){let n={type:"root",children:[]};const r={schema:t?{...un,...t}:un,stack:[]},i=yh(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function yh(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return _y(e,n);case"doctype":return Ey(e,n);case"element":return Ty(e,n);case"root":return yy(e,n);case"text":return ky(e,n)}}}function _y(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),s={type:"comment",value:r<0?n:n.slice(0,r)};return jr(s,t),s}}function Ey(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return jr(n,t),n}}function Ty(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=kh(e,t.children),i=xy(e,t.properties);e.stack.pop();let s=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(s=!0,e.schema.ancestors&&qt.call(e.schema.ancestors,n))){const u=e.schema.ancestors[n];let o=-1;for(s=!1;++o<u.length;)e.stack.includes(u[o])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const a={type:"element",tagName:n,properties:i,children:r};return jr(a,t),a}function yy(e,t){const r={type:"root",children:kh(e,t.children)};return jr(r,t),r}function ky(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return jr(r,t),r}function kh(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const s=yh(e,r[i]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function xy(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,s=r&&qt.call(r,n)?r[n]:void 0,a=r&&qt.call(r,"*")?r["*"]:void 0,u=t&&typeof t=="object"?t:{},o={};let l;for(l in u)if(qt.call(u,l)){const c=u[l];let d=rl(e,il(s,l),l,c);d==null&&(d=rl(e,il(a,l),l,c)),d!=null&&(o[l]=d)}if(i&&qt.call(i,n)){const c=i[n];for(l in c)qt.call(c,l)&&!qt.call(o,l)&&(o[l]=c[l])}return o}function rl(e,t,n,r){return t?Array.isArray(r)?Ay(e,t,n,r):xh(e,t,n,r):void 0}function Ay(e,t,n,r){let i=-1;const s=[];for(;++i<r.length;){const a=xh(e,t,n,r[i]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}function xh(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Cy(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,s=0;for(;++s<t.length;){const a=t[s];if(a&&typeof a=="object"&&"flags"in a){if(a.test(String(r))){i=!0;break}}else if(a===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Cy(e,t,n){const r=e.schema.protocols&&qt.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),s=i.indexOf(":"),a=i.indexOf("?"),u=i.indexOf("#"),o=i.indexOf("/");if(s<0||o>-1&&s>o||a>-1&&s>a||u>-1&&s>u)return!0;let l=-1;for(;++l<r.length;){const c=r[l];if(s===c.length&&i.slice(0,c.length)===c)return!0}return!1}function jr(e,t){const n=gh(t);t.data&&(e.data=mn(t.data)),n&&(e.position=n)}function il(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],s=typeof i=="string"?i:i[0];if(s===t)return i;s==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function Ah(e){return function(t){return by(t,e)}}const je=Kt(/[A-Za-z]/),He=Kt(/[\dA-Za-z]/),Iy=Kt(/[#-'*+\--9=?A-Z^-~]/);function Di(e){return e!==null&&(e<32||e===127)}const Ta=Kt(/\d/),wy=Kt(/[\dA-Fa-f]/),Sy=Kt(/[!-/:-@[-`{-~]/);function X(e){return e!==null&&e<-2}function pe(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const rs=Kt(new RegExp("\\p{P}|\\p{S}","u")),gn=Kt(/\s/);function Kt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ny(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ly(e,t,n){const i=Qi((n||{}).ignore||[]),s=Ry(t);let a=-1;for(;++a<s.length;)ro(e,"text",u);function u(l,c){let d=-1,p;for(;++d<c.length;){const f=c[d],m=p?p.children:void 0;if(i(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return o(l,c)}function o(l,c){const d=c[c.length-1],p=s[a][0],f=s[a][1];let m=0;const k=d.children.indexOf(l);let g=!1,w=[];p.lastIndex=0;let x=p.exec(l.value);for(;x;){const O=x.index,D={index:x.index,input:x.input,stack:[...c,l]};let S=f(...x,D);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=O+1:(m!==O&&w.push({type:"text",value:l.value.slice(m,O)}),Array.isArray(S)?w.push(...S):S&&w.push(S),m=O+x[0].length,g=!0),!p.global)break;x=p.exec(l.value)}return g?(m<l.value.length&&w.push({type:"text",value:l.value.slice(m)}),d.children.splice(k,1,...w)):w=[l],k+w.length}}function Ry(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Oy(i[0]),Py(i[1])])}return t}function Oy(e){return typeof e=="string"?new RegExp(Ny(e),"g"):e}function Py(e){return typeof e=="function"?e:function(){return e}}const Ns="phrasing",Ls=["autolink","link","image","label"];function Dy(){return{transforms:[$y],enter:{literalAutolink:My,literalAutolinkEmail:Rs,literalAutolinkHttp:Rs,literalAutolinkWww:Rs},exit:{literalAutolink:Uy,literalAutolinkEmail:Hy,literalAutolinkHttp:By,literalAutolinkWww:Fy}}}function vy(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ns,notInConstruct:Ls},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ns,notInConstruct:Ls},{character:":",before:"[ps]",after:"\\/",inConstruct:Ns,notInConstruct:Ls}]}}function My(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Rs(e){this.config.enter.autolinkProtocol.call(this,e)}function By(e){this.config.exit.autolinkProtocol.call(this,e)}function Fy(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Hy(e){this.config.exit.autolinkEmail.call(this,e)}function Uy(e){this.exit(e)}function $y(e){Ly(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,jy],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Vy]],{ignore:["link","linkReference"]})}function jy(e,t,n,r,i){let s="";if(!Ch(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!zy(n)))return!1;const a=Gy(n+r);if(!a[0])return!1;const u={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[u,{type:"text",value:a[1]}]:u}function Vy(e,t,n,r){return!Ch(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zy(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Gy(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ki(e,"(");let s=ki(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function Ch(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||gn(n)||rs(n))&&(!t||n!==47)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ih.peek=ek;function qy(){this.buffer()}function Wy(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Yy(){this.buffer()}function Qy(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ky(e){this.exit(e)}function Zy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Jy(e){this.exit(e)}function ek(){return"["}function Ih(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),u=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),u(),a(),s+=i.move("]"),s}function tk(){return{enter:{gfmFootnoteCallString:qy,gfmFootnoteCall:Wy,gfmFootnoteDefinitionLabelString:Yy,gfmFootnoteDefinition:Qy},exit:{gfmFootnoteCallString:Xy,gfmFootnoteCall:Ky,gfmFootnoteDefinitionLabelString:Zy,gfmFootnoteDefinition:Jy}}}function nk(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ih},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,a){const u=s.createTracker(a);let o=u.move("[^");const l=s.enter("footnoteDefinition"),c=s.enter("label");return o+=u.move(s.safe(s.associationId(r),{before:o,after:"]"})),c(),o+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),o+=u.move((t?`
|
|
155
|
+
`:" ")+s.indentLines(s.containerFlow(r,u.current()),t?wh:rk))),l(),o}}function rk(e,t,n){return t===0?e:wh(e,t,n)}function wh(e,t,n){return(n?"":" ")+e}const ik=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Sh.peek=lk;function sk(){return{canContainEols:["delete"],enter:{strikethrough:ok},exit:{strikethrough:uk}}}function ak(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ik}],handlers:{delete:Sh}}}function ok(e){this.enter({type:"delete",children:[]},e)}function uk(e){this.exit(e)}function Sh(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function lk(){return"~"}function ck(e){return e.length}function dk(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ck,s=[],a=[],u=[],o=[];let l=0,c=-1;for(;++c<e.length;){const T=[],k=[];let g=-1;for(e[c].length>l&&(l=e[c].length);++g<e[c].length;){const w=hk(e[c][g]);if(n.alignDelimiters!==!1){const x=i(w);k[g]=x,(o[g]===void 0||x>o[g])&&(o[g]=x)}T.push(w)}a[c]=T,u[c]=k}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<l;)s[d]=sl(r[d]);else{const T=sl(r);for(;++d<l;)s[d]=T}d=-1;const p=[],f=[];for(;++d<l;){const T=s[d];let k="",g="";T===99?(k=":",g=":"):T===108?k=":":T===114&&(g=":");let w=n.alignDelimiters===!1?1:Math.max(1,o[d]-k.length-g.length);const x=k+"-".repeat(w)+g;n.alignDelimiters!==!1&&(w=k.length+w+g.length,w>o[d]&&(o[d]=w),f[d]=w),p[d]=x}a.splice(1,0,p),u.splice(1,0,f),c=-1;const m=[];for(;++c<a.length;){const T=a[c],k=u[c];d=-1;const g=[];for(;++d<l;){const w=T[d]||"";let x="",O="";if(n.alignDelimiters!==!1){const D=o[d]-(k[d]||0),S=s[d];S===114?x=" ".repeat(D):S===99?D%2?(x=" ".repeat(D/2+.5),O=" ".repeat(D/2-.5)):(x=" ".repeat(D/2),O=x):O=" ".repeat(D)}n.delimiterStart!==!1&&!d&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&w==="")&&(n.delimiterStart!==!1||d)&&g.push(" "),n.alignDelimiters!==!1&&g.push(x),g.push(w),n.alignDelimiters!==!1&&g.push(O),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||d!==l-1)&&g.push("|")}m.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
|
|
156
|
+
`)}function hk(e){return e==null?"":String(e)}function sl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function fk(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),pk);return i(),a}function pk(e,t,n){return">"+(n?"":" ")+e}function mk(e,t){return al(e,t.inConstruct,!0)&&!al(e,t.notInConstruct,!1)}function al(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ol(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
157
|
+
`&&mk(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
158
|
+
`}function gk(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}function bk(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function _k(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ek(e,t,n,r){const i=_k(n),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(bk(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(s,Tk);return d(),p}const u=n.createTracker(r),o=i.repeat(Math.max(gk(s,i)+1,3)),l=n.enter("codeFenced");let c=u.move(o);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=u.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...u.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=u.move(" "),c+=u.move(n.safe(e.meta,{before:c,after:`
|
|
159
|
+
`,encode:["`"],...u.current()})),d()}return c+=u.move(`
|
|
160
|
+
`),s&&(c+=u.move(s+`
|
|
161
|
+
`)),c+=u.move(o),l(),c}function Tk(e,t,n){return(n?"":" ")+e}function mo(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function yk(e,t,n,r){const i=mo(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let u=n.enter("label");const o=n.createTracker(r);let l=o.move("[");return l+=o.move(n.safe(n.associationId(e),{before:l,after:"]",...o.current()})),l+=o.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":`
|
|
162
|
+
`,...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),a(),l}function kk(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Dr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function jn(e){if(e===null||pe(e)||gn(e))return 1;if(rs(e))return 2}function vi(e,t,n){const r=jn(e),i=jn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Nh.peek=xk;function Nh(e,t,n,r){const i=kk(n),s=n.enter("emphasis"),a=n.createTracker(r),u=a.move(i);let o=a.move(n.containerPhrasing(e,{after:i,before:u,...a.current()}));const l=o.charCodeAt(0),c=vi(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(o=Dr(l)+o.slice(1));const d=o.charCodeAt(o.length-1),p=vi(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+Dr(d));const f=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},u+o+f}function xk(e,t,n){return n.options.emphasis||"*"}const Ak={};function go(e,t){const n=Ak,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Lh(e,r,i)}function Lh(e,t,n){if(Ck(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ul(e.children,t,n)}return Array.isArray(e)?ul(e,t,n):""}function ul(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Lh(e[i],t,n);return r.join("")}function Ck(e){return!!(e&&typeof e=="object")}function Ik(e,t){let n=!1;return xt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,fa}),!!((!e.depth||e.depth<3)&&go(e)&&(t.options.setext||n))}function wk(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(Ik(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...s.current(),before:`
|
|
163
|
+
`,after:`
|
|
164
|
+
`});return d(),c(),p+`
|
|
165
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
166
|
+
`))+1))}const a="#".repeat(i),u=n.enter("headingAtx"),o=n.enter("phrasing");s.move(a+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
|
|
167
|
+
`,...s.current()});return/^[\t ]/.test(l)&&(l=Dr(l.charCodeAt(0))+l.slice(1)),l=l?a+" "+l:a,n.options.closeAtx&&(l+=" "+a),o(),u(),l}Rh.peek=Sk;function Rh(e){return e.value||""}function Sk(){return"<"}Oh.peek=Nk;function Oh(e,t,n,r){const i=mo(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let u=n.enter("label");const o=n.createTracker(r);let l=o.move("![");return l+=o.move(n.safe(e.alt,{before:l,after:"]",...o.current()})),l+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),l+=o.move(")"),a(),l}function Nk(){return"!"}Ph.peek=Lk;function Ph(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const u=n.createTracker(r);let o=u.move("![");const l=n.safe(e.alt,{before:o,after:"]",...u.current()});o+=u.move(l+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return a(),n.stack=c,s(),i==="full"||!l||l!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function Lk(){return"!"}Dh.peek=Rk;function Dh(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],u=n.compilePattern(a);let o;if(a.atBreak)for(;o=u.exec(r);){let l=o.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(o.index+1)}}return i+r+i}function Rk(){return"`"}function vh(e,t){const n=go(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Mh.peek=Ok;function Mh(e,t,n,r){const i=mo(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let u,o;if(vh(e,n)){const c=n.stack;n.stack=[],u=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),u(),n.stack=c,d}u=n.enter("link"),o=n.enter("label");let l=a.move("[");return l+=a.move(n.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(n.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(o=n.enter("destinationRaw"),l+=a.move(n.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),o(),e.title&&(o=n.enter(`title${s}`),l+=a.move(" "+i),l+=a.move(n.safe(e.title,{before:l,after:i,...a.current()})),l+=a.move(i),o()),l+=a.move(")"),u(),l}function Ok(e,t,n){return vh(e,n)?"<":"["}Bh.peek=Pk;function Bh(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const u=n.createTracker(r);let o=u.move("[");const l=n.containerPhrasing(e,{before:o,after:"]",...u.current()});o+=u.move(l+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return a(),n.stack=c,s(),i==="full"||!l||l!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function Pk(){return"["}function bo(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Dk(e){const t=bo(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vk(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Fh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Mk(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?vk(n):bo(n);const u=e.ordered?a==="."?")":".":Dk(n);let o=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(o=!0),Fh(n)===a&&c){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(a=u),n.bulletCurrent=a;const l=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),l}function Bk(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fk(e,t,n,r){const i=Bk(n);let s=n.bulletCurrent||bo(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const u=n.createTracker(r);u.move(s+" ".repeat(a-s.length)),u.shift(a);const o=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,u.current()),c);return o(),l;function c(d,p,f){return p?(f?"":" ".repeat(a))+d:(f?s:s+" ".repeat(a-s.length))+d}}function Hk(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a}const Uk=Qi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $k(e,t,n,r){return(e.children.some(function(a){return Uk(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function jk(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Hh.peek=Vk;function Hh(e,t,n,r){const i=jk(n),s=n.enter("strong"),a=n.createTracker(r),u=a.move(i+i);let o=a.move(n.containerPhrasing(e,{after:i,before:u,...a.current()}));const l=o.charCodeAt(0),c=vi(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(o=Dr(l)+o.slice(1));const d=o.charCodeAt(o.length-1),p=vi(r.after.charCodeAt(0),d,i);p.inside&&(o=o.slice(0,-1)+Dr(d));const f=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},u+o+f}function Vk(e,t,n){return n.options.strong||"*"}function zk(e,t,n,r){return n.safe(e.value,r)}function Gk(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function qk(e,t,n){const r=(Fh(n)+(n.options.ruleSpaces?" ":"")).repeat(Gk(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Uh={blockquote:fk,break:ol,code:Ek,definition:yk,emphasis:Nh,hardBreak:ol,heading:wk,html:Rh,image:Oh,imageReference:Ph,inlineCode:Dh,link:Mh,linkReference:Bh,list:Mk,listItem:Fk,paragraph:Hk,root:$k,strong:Hh,text:zk,thematicBreak:qk},ll=document.createElement("i");function _o(e){const t="&"+e+";";ll.innerHTML=t;const n=ll.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Wk(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const Yk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qk(e){return e.replace(Yk,Xk)}function Xk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Wk(n.slice(s?2:1),s?16:10)}return _o(n)||e}function Kk(){return{enter:{table:Zk,tableData:cl,tableHeader:cl,tableRow:ex},exit:{codeText:tx,table:Jk,tableData:Os,tableHeader:Os,tableRow:Os}}}function Zk(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Jk(e){this.exit(e),this.data.inTable=void 0}function ex(e){this.enter({type:"tableRow",children:[]},e)}function Os(e){this.exit(e)}function cl(e){this.enter({type:"tableCell",children:[]},e)}function tx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nx));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nx(e,t){return t==="|"?t:e}function rx(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
168
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:o,tableRow:u}};function a(f,m,T,k){return l(c(f,T,k),f.align)}function u(f,m,T,k){const g=d(f,T,k),w=l([g]);return w.slice(0,w.indexOf(`
|
|
169
|
+
`))}function o(f,m,T,k){const g=T.enter("tableCell"),w=T.enter("phrasing"),x=T.containerPhrasing(f,{...k,before:s,after:s});return w(),g(),x}function l(f,m){return dk(f,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(f,m,T){const k=f.children;let g=-1;const w=[],x=m.enter("table");for(;++g<k.length;)w[g]=d(k[g],m,T);return x(),w}function d(f,m,T){const k=f.children;let g=-1;const w=[],x=m.enter("tableRow");for(;++g<k.length;)w[g]=o(k[g],f,m,T);return x(),w}function p(f,m,T){let k=Uh.inlineCode(f,m,T);return T.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function ix(){return{exit:{taskListCheckValueChecked:dl,taskListCheckValueUnchecked:dl,paragraph:ax}}}function sx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ox}}}function dl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ax(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const u=i[s];if(u.type==="paragraph"){a=u;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ox(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);s&&u.move(a);let o=Uh.listItem(e,t,n,{...r,...u.current()});return s&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),o;function l(c){return c+a}}function ux(){return[Dy(),tk(),sk(),Kk(),ix()]}function lx(e){return{extensions:[vy(),nk(e),ak(),rx(e),sx()]}}function Qe(e,t,n,r){const i=e.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function st(e,t){return e.length>0?(Qe(e,e.length,0,t),e):t}const hl={}.hasOwnProperty;function $h(e){const t={};let n=-1;for(;++n<e.length;)cx(t,e[n]);return t}function cx(e,t){let n;for(n in t){const i=(hl.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let a;if(s)for(a in s){hl.call(i,a)||(i[a]=[]);const u=s[a];dx(i[a],Array.isArray(u)?u:u?[u]:[])}}}function dx(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Qe(e,0,0,r)}const hx={tokenize:_x,partial:!0},jh={tokenize:Ex,partial:!0},Vh={tokenize:Tx,partial:!0},zh={tokenize:yx,partial:!0},fx={tokenize:kx,partial:!0},Gh={name:"wwwAutolink",tokenize:gx,previous:Wh},qh={name:"protocolAutolink",tokenize:bx,previous:Yh},Mt={name:"emailAutolink",tokenize:mx,previous:Qh},It={};function px(){return{text:It}}let rn=48;for(;rn<123;)It[rn]=Mt,rn++,rn===58?rn=65:rn===91&&(rn=97);It[43]=Mt;It[45]=Mt;It[46]=Mt;It[95]=Mt;It[72]=[Mt,qh];It[104]=[Mt,qh];It[87]=[Mt,Gh];It[119]=[Mt,Gh];function mx(e,t,n){const r=this;let i,s;return a;function a(d){return!ya(d)||!Qh.call(r,r.previous)||Eo(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return ya(d)?(e.consume(d),u):d===64?(e.consume(d),o):n(d)}function o(d){return d===46?e.check(fx,c,l)(d):d===45||d===95||He(d)?(s=!0,e.consume(d),o):c(d)}function l(d){return e.consume(d),i=!0,o}function c(d){return s&&i&&je(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function gx(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Wh.call(r,r.previous)||Eo(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hx,e.attempt(jh,e.attempt(Vh,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function bx(e,t,n){const r=this;let i="",s=!1;return a;function a(d){return(d===72||d===104)&&Yh.call(r,r.previous)&&!Eo(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),u):n(d)}function u(d){if(je(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),o}return n(d)}function o(d){return d===47?(e.consume(d),s?l:(s=!0,o)):n(d)}function l(d){return d===null||Di(d)||pe(d)||gn(d)||rs(d)?n(d):e.attempt(jh,e.attempt(Vh,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function _x(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):t(a)}}function Ex(e,t,n){let r,i,s;return a;function a(l){return l===46||l===95?e.check(zh,o,u)(l):l===null||pe(l)||gn(l)||l!==45&&rs(l)?o(l):(s=!0,e.consume(l),a)}function u(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),a}function o(l){return i||r||!s?n(l):t(l)}}function Tx(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(zh,t,s)(a):a===null||pe(a)||gn(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&r++,e.consume(a),i}}function yx(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),s):u===93?(e.consume(u),i):u===60||u===null||pe(u)||gn(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||pe(u)||gn(u)?t(u):r(u)}function s(u){return je(u)?a(u):n(u)}function a(u){return u===59?(e.consume(u),r):je(u)?(e.consume(u),a):n(u)}}function kx(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return He(s)?n(s):t(s)}}function Wh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||pe(e)}function Yh(e){return!je(e)}function Qh(e){return!(e===47||ya(e))}function ya(e){return e===43||e===45||e===46||e===95||He(e)}function Eo(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Kn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(s===37&&He(e.charCodeAt(n+1))&&He(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const u=e.charCodeAt(n+1);s<56320&&u>56319&&u<57344?(a=String.fromCharCode(s,u),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function is(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const ka={name:"attention",resolveAll:xx,tokenize:Ax};function xx(e,t){let n=-1,r,i,s,a,u,o,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};fl(d,-o),fl(p,o),a={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},u={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},s={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:o>1?"strong":"emphasis",start:{...a.start},end:{...u.end}},e[r][1].end={...a.start},e[n][1].start={...u.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=st(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=st(l,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),l=st(l,is(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=st(l,[["exit",s,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=st(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Qe(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ax(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jn(r);let s;return a;function a(o){return s=o,e.enter("attentionSequence"),u(o)}function u(o){if(o===s)return e.consume(o),u;const l=e.exit("attentionSequence"),c=jn(o),d=!c||c===2&&i||n.includes(o),p=!i||i===2&&c||n.includes(r);return l._open=!!(s===42?d:d&&(i||!p)),l._close=!!(s===42?p:p&&(c||!d)),t(o)}}function fl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Cx={name:"autolink",tokenize:Ix};function Ix(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(f){return je(f)?(e.consume(f),a):f===64?n(f):l(f)}function a(f){return f===43||f===45||f===46||He(f)?(r=1,u(f)):l(f)}function u(f){return f===58?(e.consume(f),r=0,o):(f===43||f===45||f===46||He(f))&&r++<32?(e.consume(f),u):(r=0,l(f))}function o(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Di(f)?n(f):(e.consume(f),o)}function l(f){return f===64?(e.consume(f),c):Iy(f)?(e.consume(f),l):n(f)}function c(f){return He(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||He(f))&&r++<63){const m=f===45?p:d;return e.consume(f),m}return n(f)}}function le(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(o){return ae(o)?(e.enter(n),u(o)):t(o)}function u(o){return ae(o)&&s++<i?(e.consume(o),u):(e.exit(n),t(o))}}const Vr={partial:!0,tokenize:wx};function wx(e,t,n){return r;function r(s){return ae(s)?le(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||X(s)?t(s):n(s)}}const Xh={continuation:{tokenize:Nx},exit:Lx,name:"blockQuote",tokenize:Sx};function Sx(e,t,n){const r=this;return i;function i(a){if(a===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return n(a)}function s(a){return ae(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Nx(e,t,n){const r=this;return i;function i(a){return ae(a)?le(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(Xh,t,n)(a)}}function Lx(e){e.exit("blockQuote")}const Kh={name:"characterEscape",tokenize:Rx};function Rx(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Sy(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Zh={name:"characterReference",tokenize:Ox};function Ox(e,t,n){const r=this;let i=0,s,a;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),o}function o(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),s=31,a=He,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=wy,c):(e.enter("characterReferenceValue"),s=7,a=Ta,c(d))}function c(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===He&&!_o(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<s?(e.consume(d),c):n(d)}}const pl={partial:!0,tokenize:Dx},ml={concrete:!0,name:"codeFenced",tokenize:Px};function Px(e,t,n){const r=this,i={partial:!0,tokenize:D};let s=0,a=0,u;return o;function o(S){return l(S)}function l(S){const G=r.events[r.events.length-1];return s=G&&G[1].type==="linePrefix"?G[2].sliceSerialize(G[1],!0).length:0,u=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===u?(a++,e.consume(S),c):a<3?n(S):(e.exit("codeFencedFenceSequence"),ae(S)?le(e,d,"whitespace")(S):d(S))}function d(S){return S===null||X(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(pl,T,O)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||X(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):ae(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),le(e,f,"whitespace")(S)):S===96&&S===u?n(S):(e.consume(S),p)}function f(S){return S===null||X(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||X(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===u?n(S):(e.consume(S),m)}function T(S){return e.attempt(i,O,k)(S)}function k(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return s>0&&ae(S)?le(e,w,"linePrefix",s+1)(S):w(S)}function w(S){return S===null||X(S)?e.check(pl,T,O)(S):(e.enter("codeFlowValue"),x(S))}function x(S){return S===null||X(S)?(e.exit("codeFlowValue"),w(S)):(e.consume(S),x)}function O(S){return e.exit("codeFenced"),t(S)}function D(S,G,M){let W=0;return R;function R(H){return S.enter("lineEnding"),S.consume(H),S.exit("lineEnding"),$}function $(H){return S.enter("codeFencedFence"),ae(H)?le(S,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):j(H)}function j(H){return H===u?(S.enter("codeFencedFenceSequence"),ne(H)):M(H)}function ne(H){return H===u?(W++,S.consume(H),ne):W>=a?(S.exit("codeFencedFenceSequence"),ae(H)?le(S,q,"whitespace")(H):q(H)):M(H)}function q(H){return H===null||X(H)?(S.exit("codeFencedFence"),G(H)):M(H)}}}function Dx(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Ps={name:"codeIndented",tokenize:Mx},vx={partial:!0,tokenize:Bx};function Mx(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),le(e,s,"linePrefix",5)(l)}function s(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(l):n(l)}function a(l){return l===null?o(l):X(l)?e.attempt(vx,a,o)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||X(l)?(e.exit("codeFlowValue"),a(l)):(e.consume(l),u)}function o(l){return e.exit("codeIndented"),t(l)}}function Bx(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):X(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):le(e,s,"linePrefix",5)(a)}function s(a){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(a):X(a)?i(a):n(a)}}const Fx={name:"codeText",previous:Ux,resolve:Hx,tokenize:$x};function Hx(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Ux(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $x(e,t,n){let r=0,i,s;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),o(d))}function o(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),o):d===96?(s=e.enter("codeTextSequence"),i=0,c(d)):X(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||X(d)?(e.exit("codeTextData"),o(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(s.type="codeTextData",l(d))}}let jx=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ir(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ir(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ir(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ir(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ir(this.left,n.reverse())}}};function ir(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Vx(e){const t={};let n=-1,r,i,s,a,u,o,l;const c=new jx(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,s=0,s<o.length&&o[s][1].type==="lineEndingBlank"&&(s+=2),s<o.length&&o[s][1].type==="content"))for(;++s<o.length&&o[s][1].type!=="content";)o[s][1].type==="chunkText"&&(o[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,zx(c,n)),n=t[n],l=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return Qe(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function zx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const u=a.events,o=[],l={};let c,d,p=-1,f=n,m=0,T=0;const k=[T];for(;f;){for(;e.get(++i)[1]!==f;);s.push(i),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(T=p+1,k.push(T),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):k.pop(),p=k.length;p--;){const g=u.slice(k[p],k[p+1]),w=s.pop();o.push([w,w+g.length-1]),e.splice(w,2,g)}for(o.reverse(),p=-1;++p<o.length;)l[m+o[p][0]]=m+o[p][1],m+=o[p][1]-o[p][0]-1;return l}const Gx={resolve:Wx,tokenize:Yx},qx={partial:!0,tokenize:Qx};function Wx(e){return Vx(e),e}function Yx(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?s(u):X(u)?e.check(qx,a,s)(u):(e.consume(u),i)}function s(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function a(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Qx(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),le(e,s,"linePrefix")}function s(a){if(a===null||X(a))return n(a);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Jh(e,t,n,r,i,s,a,u,o){const l=o||Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return g===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(g),e.exit(s),p):g===null||g===32||g===41||Di(g)?n(g):(e.enter(r),e.enter(a),e.enter(u),e.enter("chunkString",{contentType:"string"}),T(g))}function p(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===62?(e.exit("chunkString"),e.exit(u),p(g)):g===null||g===60||X(g)?n(g):(e.consume(g),g===92?m:f)}function m(g){return g===60||g===62||g===92?(e.consume(g),f):f(g)}function T(g){return!c&&(g===null||g===41||pe(g))?(e.exit("chunkString"),e.exit(u),e.exit(a),e.exit(r),t(g)):c<l&&g===40?(e.consume(g),c++,T):g===41?(e.consume(g),c--,T):g===null||g===32||g===40||Di(g)?n(g):(e.consume(g),g===92?k:T)}function k(g){return g===40||g===41||g===92?(e.consume(g),T):T(g)}}function ef(e,t,n,r,i,s){const a=this;let u=0,o;return l;function l(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(s),c}function c(f){return u>999||f===null||f===91||f===93&&!o||f===94&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):f===93?(e.exit(s),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||X(f)||u++>999?(e.exit("chunkString"),c(f)):(e.consume(f),o||(o=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),u++,d):d(f)}}function tf(e,t,n,r,i,s){let a;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,o):n(p)}function o(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(s),l(p))}function l(p){return p===a?(e.exit(s),o(a)):p===null?n(p):X(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),le(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||X(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function Ar(e,t){let n;return r;function r(i){return X(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Xx={name:"definition",tokenize:Zx},Kx={partial:!0,tokenize:Jx};function Zx(e,t,n){const r=this;let i;return s;function s(f){return e.enter("definition"),a(f)}function a(f){return ef.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function u(f){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),o):n(f)}function o(f){return pe(f)?Ar(e,l)(f):l(f)}function l(f){return Jh(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(Kx,d,d)(f)}function d(f){return ae(f)?le(e,p,"whitespace")(f):p(f)}function p(f){return f===null||X(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function Jx(e,t,n){return r;function r(u){return pe(u)?Ar(e,i)(u):n(u)}function i(u){return tf(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function s(u){return ae(u)?le(e,a,"whitespace")(u):a(u)}function a(u){return u===null||X(u)?t(u):n(u)}}const e2={name:"hardBreakEscape",tokenize:t2};function t2(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return X(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const n2={name:"headingAtx",resolve:r2,tokenize:i2};function r2(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Qe(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function i2(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||pe(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),o(c)):c===null||X(c)?(e.exit("atxHeading"),t(c)):ae(c)?le(e,u,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function o(c){return c===35?(e.consume(c),o):(e.exit("atxHeadingSequence"),u(c))}function l(c){return c===null||c===35||pe(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),l)}}const s2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gl=["pre","script","style","textarea"],a2={concrete:!0,name:"htmlFlow",resolveTo:l2,tokenize:c2},o2={partial:!0,tokenize:h2},u2={partial:!0,tokenize:d2};function l2(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function c2(e,t,n){const r=this;let i,s,a,u,o;return l;function l(I){return c(I)}function c(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),d}function d(I){return I===33?(e.consume(I),p):I===47?(e.consume(I),s=!0,T):I===63?(e.consume(I),i=3,r.interrupt?t:y):je(I)?(e.consume(I),a=String.fromCharCode(I),k):n(I)}function p(I){return I===45?(e.consume(I),i=2,f):I===91?(e.consume(I),i=5,u=0,m):je(I)?(e.consume(I),i=4,r.interrupt?t:y):n(I)}function f(I){return I===45?(e.consume(I),r.interrupt?t:y):n(I)}function m(I){const me="CDATA[";return I===me.charCodeAt(u++)?(e.consume(I),u===me.length?r.interrupt?t:j:m):n(I)}function T(I){return je(I)?(e.consume(I),a=String.fromCharCode(I),k):n(I)}function k(I){if(I===null||I===47||I===62||pe(I)){const me=I===47,ge=a.toLowerCase();return!me&&!s&&gl.includes(ge)?(i=1,r.interrupt?t(I):j(I)):s2.includes(a.toLowerCase())?(i=6,me?(e.consume(I),g):r.interrupt?t(I):j(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):s?w(I):x(I))}return I===45||He(I)?(e.consume(I),a+=String.fromCharCode(I),k):n(I)}function g(I){return I===62?(e.consume(I),r.interrupt?t:j):n(I)}function w(I){return ae(I)?(e.consume(I),w):R(I)}function x(I){return I===47?(e.consume(I),R):I===58||I===95||je(I)?(e.consume(I),O):ae(I)?(e.consume(I),x):R(I)}function O(I){return I===45||I===46||I===58||I===95||He(I)?(e.consume(I),O):D(I)}function D(I){return I===61?(e.consume(I),S):ae(I)?(e.consume(I),D):x(I)}function S(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),o=I,G):ae(I)?(e.consume(I),S):M(I)}function G(I){return I===o?(e.consume(I),o=null,W):I===null||X(I)?n(I):(e.consume(I),G)}function M(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||pe(I)?D(I):(e.consume(I),M)}function W(I){return I===47||I===62||ae(I)?x(I):n(I)}function R(I){return I===62?(e.consume(I),$):n(I)}function $(I){return I===null||X(I)?j(I):ae(I)?(e.consume(I),$):n(I)}function j(I){return I===45&&i===2?(e.consume(I),z):I===60&&i===1?(e.consume(I),K):I===62&&i===4?(e.consume(I),Ae):I===63&&i===3?(e.consume(I),y):I===93&&i===5?(e.consume(I),ve):X(I)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(o2,ze,ne)(I)):I===null||X(I)?(e.exit("htmlFlowData"),ne(I)):(e.consume(I),j)}function ne(I){return e.check(u2,q,ze)(I)}function q(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),H}function H(I){return I===null||X(I)?ne(I):(e.enter("htmlFlowData"),j(I))}function z(I){return I===45?(e.consume(I),y):j(I)}function K(I){return I===47?(e.consume(I),a="",ye):j(I)}function ye(I){if(I===62){const me=a.toLowerCase();return gl.includes(me)?(e.consume(I),Ae):j(I)}return je(I)&&a.length<8?(e.consume(I),a+=String.fromCharCode(I),ye):j(I)}function ve(I){return I===93?(e.consume(I),y):j(I)}function y(I){return I===62?(e.consume(I),Ae):I===45&&i===2?(e.consume(I),y):j(I)}function Ae(I){return I===null||X(I)?(e.exit("htmlFlowData"),ze(I)):(e.consume(I),Ae)}function ze(I){return e.exit("htmlFlow"),t(I)}}function d2(e,t,n){const r=this;return i;function i(a){return X(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function h2(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Vr,t,n)}}const f2={name:"htmlText",tokenize:p2};function p2(e,t,n){const r=this;let i,s,a;return u;function u(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),o}function o(y){return y===33?(e.consume(y),l):y===47?(e.consume(y),D):y===63?(e.consume(y),x):je(y)?(e.consume(y),M):n(y)}function l(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),s=0,m):je(y)?(e.consume(y),w):n(y)}function c(y){return y===45?(e.consume(y),f):n(y)}function d(y){return y===null?n(y):y===45?(e.consume(y),p):X(y)?(a=d,K(y)):(e.consume(y),d)}function p(y){return y===45?(e.consume(y),f):d(y)}function f(y){return y===62?z(y):y===45?p(y):d(y)}function m(y){const Ae="CDATA[";return y===Ae.charCodeAt(s++)?(e.consume(y),s===Ae.length?T:m):n(y)}function T(y){return y===null?n(y):y===93?(e.consume(y),k):X(y)?(a=T,K(y)):(e.consume(y),T)}function k(y){return y===93?(e.consume(y),g):T(y)}function g(y){return y===62?z(y):y===93?(e.consume(y),g):T(y)}function w(y){return y===null||y===62?z(y):X(y)?(a=w,K(y)):(e.consume(y),w)}function x(y){return y===null?n(y):y===63?(e.consume(y),O):X(y)?(a=x,K(y)):(e.consume(y),x)}function O(y){return y===62?z(y):x(y)}function D(y){return je(y)?(e.consume(y),S):n(y)}function S(y){return y===45||He(y)?(e.consume(y),S):G(y)}function G(y){return X(y)?(a=G,K(y)):ae(y)?(e.consume(y),G):z(y)}function M(y){return y===45||He(y)?(e.consume(y),M):y===47||y===62||pe(y)?W(y):n(y)}function W(y){return y===47?(e.consume(y),z):y===58||y===95||je(y)?(e.consume(y),R):X(y)?(a=W,K(y)):ae(y)?(e.consume(y),W):z(y)}function R(y){return y===45||y===46||y===58||y===95||He(y)?(e.consume(y),R):$(y)}function $(y){return y===61?(e.consume(y),j):X(y)?(a=$,K(y)):ae(y)?(e.consume(y),$):W(y)}function j(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),i=y,ne):X(y)?(a=j,K(y)):ae(y)?(e.consume(y),j):(e.consume(y),q)}function ne(y){return y===i?(e.consume(y),i=void 0,H):y===null?n(y):X(y)?(a=ne,K(y)):(e.consume(y),ne)}function q(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||pe(y)?W(y):(e.consume(y),q)}function H(y){return y===47||y===62||pe(y)?W(y):n(y)}function z(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function K(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ye}function ye(y){return ae(y)?le(e,ve,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):ve(y)}function ve(y){return e.enter("htmlTextData"),a(y)}}const To={name:"labelEnd",resolveAll:_2,resolveTo:E2,tokenize:T2},m2={tokenize:y2},g2={tokenize:k2},b2={tokenize:x2};function _2(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Qe(e,0,e.length,n),e}function E2(e,t){let n=e.length,r=0,i,s,a,u;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const o={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[a-2][1].start}};return u=[["enter",o,t],["enter",l,t]],u=st(u,e.slice(s+1,s+r+3)),u=st(u,[["enter",c,t]]),u=st(u,is(t.parser.constructs.insideSpan.null,e.slice(s+r+4,a-3),t)),u=st(u,[["exit",c,t],e[a-2],e[a-1],["exit",l,t]]),u=st(u,e.slice(a+1)),u=st(u,[["exit",o,t]]),Qe(e,s,e.length,u),e}function T2(e,t,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return u;function u(p){return s?s._inactive?d(p):(a=r.parser.defined.includes(mt(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),o):n(p)}function o(p){return p===40?e.attempt(m2,c,a?c:d)(p):p===91?e.attempt(g2,c,a?l:d)(p):a?c(p):d(p)}function l(p){return e.attempt(b2,c,d)(p)}function c(p){return t(p)}function d(p){return s._balanced=!0,n(p)}}function y2(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return pe(d)?Ar(e,s)(d):s(d)}function s(d){return d===41?c(d):Jh(e,a,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return pe(d)?Ar(e,o)(d):c(d)}function u(d){return n(d)}function o(d){return d===34||d===39||d===40?tf(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return pe(d)?Ar(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function k2(e,t,n){const r=this;return i;function i(u){return ef.call(r,e,s,a,"reference","referenceMarker","referenceString")(u)}function s(u){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function a(u){return n(u)}}function x2(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const A2={name:"labelStartImage",resolveAll:To.resolveAll,tokenize:C2};function C2(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),s}function s(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),a):n(u)}function a(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const I2={name:"labelStartLink",resolveAll:To.resolveAll,tokenize:w2};function w2(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Ds={name:"lineEnding",tokenize:S2};function S2(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),le(e,t,"linePrefix")}}const mi={name:"thematicBreak",tokenize:N2};function N2(e,t,n){let r=0,i;return s;function s(l){return e.enter("thematicBreak"),a(l)}function a(l){return i=l,u(l)}function u(l){return l===i?(e.enter("thematicBreakSequence"),o(l)):r>=3&&(l===null||X(l))?(e.exit("thematicBreak"),t(l)):n(l)}function o(l){return l===i?(e.consume(l),r++,o):(e.exit("thematicBreakSequence"),ae(l)?le(e,u,"whitespace")(l):u(l))}}const Ye={continuation:{tokenize:P2},exit:v2,name:"list",tokenize:O2},L2={partial:!0,tokenize:M2},R2={partial:!0,tokenize:D2};function O2(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return u;function u(f){const m=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ta(f)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(mi,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(f)}return n(f)}function o(f){return Ta(f)&&++a<10?(e.consume(f),o):(!r.interrupt||a<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Vr,r.interrupt?n:c,e.attempt(L2,p,d))}function c(f){return r.containerState.initialBlankLine=!0,s++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function P2(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Vr,i,s);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,le(e,t,"listItemIndent",r.containerState.size+1)(u)}function s(u){return r.containerState.furtherBlankLines||!ae(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(R2,t,a)(u))}function a(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,le(e,e.attempt(Ye,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function D2(e,t,n){const r=this;return le(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(s):n(s)}}function v2(e){e.exit(this.containerState.type)}function M2(e,t,n){const r=this;return le(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!ae(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const bl={name:"setextUnderline",resolveTo:B2,tokenize:F2};function B2(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function F2(e,t,n){const r=this;let i;return s;function s(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,a(l)):n(l)}function a(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),ae(l)?le(e,o,"lineSuffix")(l):o(l))}function o(l){return l===null||X(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const H2={tokenize:W2,partial:!0};function U2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:z2,continuation:{tokenize:G2},exit:q2}},text:{91:{name:"gfmFootnoteCall",tokenize:V2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$2,resolveTo:j2}}}}function $2(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){a=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!a||!a._balanced)return n(o);const l=mt(r.sliceSerialize({start:a.end,end:r.now()}));return l.codePointAt(0)!==94||!s.includes(l.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function j2(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function V2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),o}function o(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(s>999||d===93&&!a||d===null||d===91||pe(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return pe(d)||(a=!0),s++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,l):l(d)}}function z2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,u;return o;function o(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!u||m===null||m===91||pe(m))return n(m);if(m===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return s=mt(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return pe(m)||(u=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(s)||i.push(s),le(e,f,"gfmFootnoteDefinitionWhitespace")):n(m)}function f(m){return t(m)}}function G2(e,t,n){return e.check(Vr,t,e.attempt(H2,t,n))}function q2(e){e.exit("gfmFootnoteDefinition")}function W2(e,t,n){const r=this;return le(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):n(s)}}function Y2(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,u){let o=-1;for(;++o<a.length;)if(a[o][0]==="enter"&&a[o][1].type==="strikethroughSequenceTemporary"&&a[o][1]._close){let l=o;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[o][1].end.offset-a[o][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[o][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[o][1].end)},d={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[o][1].start)},p=[["enter",c,u],["enter",a[l][1],u],["exit",a[l][1],u],["enter",d,u]],f=u.parser.constructs.insideSpan.null;f&&Qe(p,p.length,0,is(f,a.slice(l+1,o),u)),Qe(p,p.length,0,[["exit",d,u],["enter",a[o][1],u],["exit",a[o][1],u],["exit",c,u]]),Qe(a,l-1,o-l+3,p),o=l+p.length-2;break}}for(o=-1;++o<a.length;)a[o][1].type==="strikethroughSequenceTemporary"&&(a[o][1].type="data");return a}function s(a,u,o){const l=this.previous,c=this.events;let d=0;return p;function p(m){return l===126&&c[c.length-1][1].type!=="characterEscape"?o(m):(a.enter("strikethroughSequenceTemporary"),f(m))}function f(m){const T=jn(l);if(m===126)return d>1?o(m):(a.consume(m),d++,f);if(d<2&&!n)return o(m);const k=a.exit("strikethroughSequenceTemporary"),g=jn(m);return k._open=!g||g===2&&!!T,k._close=!T||T===2&&!!g,u(m)}}}class Q2{constructor(){this.map=[]}add(t,n,r){X2(this,t,n,r)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function X2(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function K2(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Z2(){return{flow:{null:{name:"table",tokenize:J2,resolveAll:eA}}}}function J2(e,t,n){const r=this;let i=0,s=0,a;return u;function u(R){let $=r.events.length-1;for(;$>-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const j=$>-1?r.events[$][1].type:null,ne=j==="tableHead"||j==="tableRow"?S:o;return ne===S&&r.parser.lazy[r.now().line]?n(R):ne(R)}function o(R){return e.enter("tableHead"),e.enter("tableRow"),l(R)}function l(R){return R===124||(a=!0,s+=1),c(R)}function c(R){return R===null?n(R):X(R)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),f):n(R):ae(R)?le(e,c,"whitespace")(R):(s+=1,a&&(a=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||pe(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function f(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),a=!1,ae(R)?le(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):m(R))}function m(R){return R===45||R===58?k(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),T):D(R)}function T(R){return ae(R)?le(e,k,"whitespace")(R):k(R)}function k(R){return R===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),g):R===45?(s+=1,g(R)):R===null||X(R)?O(R):D(R)}function g(R){return R===45?(e.enter("tableDelimiterFiller"),w(R)):D(R)}function w(R){return R===45?(e.consume(R),w):R===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(R))}function x(R){return ae(R)?le(e,O,"whitespace")(R):O(R)}function O(R){return R===124?m(R):R===null||X(R)?!a||i!==s?D(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):D(R)}function D(R){return n(R)}function S(R){return e.enter("tableRow"),G(R)}function G(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),G):R===null||X(R)?(e.exit("tableRow"),t(R)):ae(R)?le(e,G,"whitespace")(R):(e.enter("data"),M(R))}function M(R){return R===null||R===124||pe(R)?(e.exit("data"),G(R)):(e.consume(R),R===92?W:M)}function W(R){return R===92||R===124?(e.consume(R),M):M(R)}}function eA(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],u=!1,o=0,l,c,d;const p=new Q2;for(;++n<e.length;){const f=e[n],m=f[1];f[0]==="enter"?m.type==="tableHead"?(u=!1,o!==0&&(_l(p,t,o,l,c),c=void 0,o=0),l={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",l,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],a=[0,n+1,0,0],u&&(u=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],d=ni(p,t,s,i,void 0,d),s=[0,0,0,0]),a[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],d=ni(p,t,s,i,void 0,d)),s=a,a=[s[1],n,0,0])):m.type==="tableHead"?(u=!0,o=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(o=n,s[1]!==0?(a[0]=a[1],d=ni(p,t,s,i,n,d)):a[1]!==0&&(d=ni(p,t,a,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=n)}for(o!==0&&_l(p,t,o,l,c),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=K2(t.events,n))}return e}function ni(e,t,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(s.end=Object.assign({},On(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const o=On(t.events,n[1]);if(s={type:a,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const l=On(t.events,n[2]),c=On(t.events,n[3]),d={type:u,start:Object.assign({},l),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,T=n[3]-n[2]-1;e.add(m,T,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},On(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function _l(e,t,n,r,i){const s=[],a=On(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function On(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const tA={name:"tasklistCheck",tokenize:rA};function nA(){return{text:{91:tA}}}function rA(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),s)}function s(o){return pe(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),a):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),a):n(o)}function a(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(o)}function u(o){return X(o)?t(o):ae(o)?e.check({tokenize:iA},t,n)(o):n(o)}}function iA(e,t,n){return le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function sA(e){return $h([px(),U2(),Y2(e),Z2(),nA()])}const aA={};function oA(e){const t=this,n=e||aA,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(sA(n)),s.push(ux()),a.push(lx(n))}var uA=Object.defineProperty,lA=Object.defineProperties,cA=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,dA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable,Tl=(e,t,n)=>t in e?uA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nf=(e,t)=>{for(var n in t||(t={}))dA.call(t,n)&&Tl(e,n,t[n]);if(El)for(var n of El(t))hA.call(t,n)&&Tl(e,n,t[n]);return e},rf=(e,t)=>lA(e,cA(t)),Xe=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e[i]==="\\"&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},fA=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},pA=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!fA(e,n)&&(t+=1)}return t},Qt=(e,t)=>{let n=!1,r=!1,i=-1;for(let s=0;s<e.length;s+=1){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){s+=1;continue}if(e.substring(s,s+3)==="```"){r=!r,s+=2;continue}if(!r&&e[s]==="`")if(n){if(i<t&&t<s)return!0;n=!1,i=-1}else n=!0,i=s}return!1},mA=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,gA=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(mA,(t,n,r,i)=>Xe(e,i)?t:`${n}\\>${r}`),bA=/(\*\*)([^*]*\*?)$/,_A=/(__)([^_]*?)$/,EA=/(\*\*\*)([^*]*?)$/,TA=/(\*)([^*]*?)$/,yA=/(_)([^_]*?)$/,kA=/(`)([^`]*?)$/,xA=/(~~)([^~]*?)$/,Tn=/^[\s_~*`]*$/,sf=/^[\s]*[-*+][\s]+$/,AA=/[\p{L}\p{N}_]/u,CA=/^```[^`\n]*```?$/,IA=/^\*{4,}$/,wA=/(__)([^_]+)_$/,SA=/(~~)([^~]+)~$/,yl=/~~/g,Xt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:AA.test(e)},NA=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},af=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},ss=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},LA=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
170
|
+
`)return!1}return!1},of=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?LA(e,t):!1;if(e[n]===`
|
|
171
|
+
`)return!1}return!1},RA=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let r=n+1<e.length?e[n+1]:"";return r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="/"}if(e[n]===`
|
|
172
|
+
`)return!1}return!1},yo=(e,t,n)=>{let r=0;for(let o=t-1;o>=0;o-=1)if(e[o]===`
|
|
173
|
+
`){r=o+1;break}let i=e.length;for(let o=t;o<e.length;o+=1)if(e[o]===`
|
|
174
|
+
`){i=o;break}let s=e.substring(r,i),a=0,u=!1;for(let o of s)if(o===n)a+=1;else if(o!==" "&&o!==" "){u=!0;break}return a>=3&&!u},OA=(e,t,n,r)=>n==="\\"||e.includes("$")&&ss(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(n==="*"||n&&r&&Xt(n)&&Xt(r)||(!n||n===" "||n===" "||n===`
|
|
175
|
+
`)&&(!r||r===" "||r===" "||r===`
|
|
176
|
+
`)),uf=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="*")continue;let s=i>0?e[i-1]:"",a=i<r-1?e[i+1]:"";OA(e,i,s,a)||(t+=1)}return t},PA=(e,t,n,r)=>!!(n==="\\"||e.includes("$")&&ss(e,t)||of(e,t)||RA(e,t)||n==="_"||r==="_"||n&&r&&Xt(n)&&Xt(r)),DA=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="_")continue;let s=i>0?e[i-1]:"",a=i<r-1?e[i+1]:"";PA(e,i,s,a)||(t+=1)}return t},vA=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||(e[i]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},ko=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="*"&&r+1<e.length&&e[r+1]==="*"&&(t+=1,r+=1)}return t},kl=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="_"&&r+1<e.length&&e[r+1]==="_"&&(t+=1,r+=1)}return t},MA=(e,t,n)=>{if(!t||Tn.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
177
|
+
`),i=r===-1?0:r+1,s=e.substring(i,n);return sf.test(s)&&t.includes(`
|
|
178
|
+
`)?!0:yo(e,n,"*")},BA=e=>{let t=e.match(bA);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return Xe(e,r)||Qt(e,r)||MA(e,n,r)?e:ko(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},FA=(e,t,n)=>{if(!t||Tn.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
179
|
+
`),i=r===-1?0:r+1,s=e.substring(i,n);return sf.test(s)&&t.includes(`
|
|
180
|
+
`)?!0:yo(e,n,"_")},HA=e=>{let t=e.match(_A);if(!t){let i=e.match(wA);if(i){let s=e.lastIndexOf(i[1]);if(!(Xe(e,s)||Qt(e,s))&&kl(e)%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return Xe(e,r)||Qt(e,r)||FA(e,n,r)?e:kl(e)%2===1?`${e}__`:e},UA=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!ss(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if((!r||r===" "||r===" "||r===`
|
|
181
|
+
`)&&(!i||i===" "||i===" "||i===`
|
|
182
|
+
`)||r&&i&&Xt(r)&&Xt(i))continue;return n}}return-1},$A=e=>{if(!e.match(TA))return e;let t=UA(e);if(t===-1||Xe(e,t)||Qt(e,t))return e;let n=e.substring(t+1);return!n||Tn.test(n)?e:uf(e)%2===1?`${e}*`:e},lf=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!ss(e,n)&&!of(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if(r&&i&&Xt(r)&&Xt(i))continue;return n}}return-1},jA=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
183
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},VA=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(ko(t)%2!==1)return null;let n=t.indexOf("**"),r=lf(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},zA=e=>{if(!e.match(yA))return e;let t=lf(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||Tn.test(n)||Xe(e,t)||Qt(e,t))return e;if(DA(e)%2===1){let r=VA(e);return r!==null?r:jA(e)}return e},GA=e=>{let t=ko(e),n=uf(e);return t%2===0&&n%2===0},qA=(e,t,n)=>!t||Tn.test(t)||Xe(e,n)||Qt(e,n)?!0:yo(e,n,"*"),WA=e=>{if(IA.test(e))return e;let t=e.match(EA);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return qA(e,n,r)?e:vA(e)%2===1?GA(e)?e:`${e}***`:e},YA=/<[a-zA-Z/][^>]*$/,QA=e=>{let t=e.match(YA);return!t||t.index===void 0||Xe(e,t.index)?e:e.substring(0,t.index).trimEnd()},XA=e=>!e.match(CA)||e.includes(`
|
|
184
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,KA=e=>(e.match(/```/g)||[]).length%2===1,ZA=e=>{let t=XA(e);if(t!==null)return t;let n=e.match(kA);if(n&&!KA(e)){let r=n[2];if(!r||Tn.test(r))return e;if(pA(e)%2===1)return`${e}\``}return e},JA=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",eC=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!JA(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},tC=e=>{let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
185
|
+
`,t)!==-1&&!e.endsWith(`
|
|
186
|
+
`)?`${e}
|
|
187
|
+
$$`:`${e}$$`},nC=e=>eC(e)%2===0?e:tC(e),rC=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=NA(e,t);if(r===-1||Xe(e,r))return null;let i=r>0&&e[r-1]==="!",s=i?r-1:r,a=e.substring(0,s);if(i)return a;let u=e.substring(r+1,t);return n==="text-only"?`${a}${u}`:`${a}[${u}](streamdown:incomplete-link)`},xl=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!Xe(e,n)){if(n>0&&e[n-1]==="!")continue;let r=af(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let i=e.indexOf(")",r+2);i!==-1&&(n=i)}}return t},iC=(e,t,n)=>{let r=t>0&&e[t-1]==="!",i=r?t-1:t;if(!e.substring(t+1).includes("]")){let s=e.substring(0,i);if(r)return s;if(n==="text-only"){let a=xl(e,t);return e.substring(0,a)+e.substring(a+1)}return`${e}](streamdown:incomplete-link)`}if(af(e,t)===-1){let s=e.substring(0,i);if(r)return s;if(n==="text-only"){let a=xl(e,t);return e.substring(0,a)+e.substring(a+1)}return`${e}](streamdown:incomplete-link)`}return null},cf=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!Xe(e,n)){let r=rC(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!Xe(e,r)){let i=iC(e,r,t);if(i!==null)return i}return e},sC=/^-{1,2}$/,aC=/^[\s]*-{1,2}[\s]+$/,oC=/^={1,2}$/,uC=/^[\s]*={1,2}[\s]+$/,lC=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
188
|
+
`);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(sC.test(i)&&!n.match(aC)){let s=r.split(`
|
|
189
|
+
`).at(-1);if(s&&s.trim().length>0)return`${e}`}if(oC.test(i)&&!n.match(uC)){let s=r.split(`
|
|
190
|
+
`).at(-1);if(s&&s.trim().length>0)return`${e}`}return e},cC=e=>{var t,n;let r=e.match(xA);if(r){let i=r[2];if(!i||Tn.test(i))return e;let s=e.lastIndexOf(r[1]);if(Xe(e,s)||Qt(e,s))return e;if(((t=e.match(yl))==null?void 0:t.length)%2===1)return`${e}~~`}else{let i=e.match(SA);if(i){let s=e.lastIndexOf(i[0].slice(0,2));if(Xe(e,s)||Qt(e,s))return e;if(((n=e.match(yl))==null?void 0:n.length)%2===1)return`${e}~`}}return e},vs=e=>e!==!1,et={COMPARISON_OPERATORS:-10,HTML_TAGS:-5,SETEXT_HEADINGS:0,LINKS:10,BOLD_ITALIC:20,BOLD:30,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,DEFAULT:100},dC=[{handler:{name:"comparisonOperators",handle:gA,priority:et.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:QA,priority:et.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:lC,priority:et.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:cf,priority:et.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:WA,priority:et.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:BA,priority:et.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:HA,priority:et.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:$A,priority:et.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:zA,priority:et.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:ZA,priority:et.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:cC,priority:et.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:nC,priority:et.KATEX},optionKey:"katex"}],hC=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return dC.filter(({handler:r,optionKey:i})=>r.name==="links"?vs(e?.links)||vs(e?.images):vs(e?.[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:rf(nf({},r),{handle:s=>cf(s,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},fC=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=hC(t),s=((n=t?.handlers)!=null?n:[]).map(u=>{var o;return{handler:rf(nf({},u),{priority:(o=u.priority)!=null?o:et.DEFAULT}),earlyReturn:void 0}}),a=[...i,...s].sort((u,o)=>{var l,c;return((l=u.handler.priority)!=null?l:0)-((c=o.handler.priority)!=null?c:0)});for(let{handler:u,earlyReturn:o}of a)if(r=u.handle(r),o!=null&&o(r))return r;return r},pC=fC;function df(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=df(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hf(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=df(e))&&(r&&(r+=" "),r+=t);return r}const mC=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gC=(e,t)=>({classGroupId:e,validator:t}),ff=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Mi="-",Al=[],bC="arbitrary..",_C=e=>{const t=TC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return EC(a);const u=a.split(Mi),o=u[0]===""&&u.length>1?1:0;return pf(u,o,t)},getConflictingClassGroupIds:(a,u)=>{if(u){const o=r[a],l=n[a];return o?l?mC(l,o):o:l||Al}return n[a]||Al}}},pf=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const l=pf(e,t+1,s);if(l)return l}const a=n.validators;if(a===null)return;const u=t===0?e.join(Mi):e.slice(t).join(Mi),o=a.length;for(let l=0;l<o;l++){const c=a[l];if(c.validator(u))return c.classGroupId}},EC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?bC+r:void 0})(),TC=e=>{const{theme:t,classGroups:n}=e;return yC(n,t)},yC=(e,t)=>{const n=ff();for(const r in e){const i=e[r];xo(i,n,r,t)}return n},xo=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const a=e[s];kC(a,t,n,r)}},kC=(e,t,n,r)=>{if(typeof e=="string"){xC(e,t,n);return}if(typeof e=="function"){AC(e,t,n,r);return}CC(e,t,n,r)},xC=(e,t,n)=>{const r=e===""?t:mf(t,e);r.classGroupId=n},AC=(e,t,n,r)=>{if(IC(e)){xo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gC(n,e))},CC=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let a=0;a<s;a++){const[u,o]=i[a];xo(o,mf(t,u),n,r)}},mf=(e,t)=>{let n=e;const r=t.split(Mi),i=r.length;for(let s=0;s<i;s++){const a=r[s];let u=n.nextPart.get(a);u||(u=ff(),n.nextPart.set(a,u)),n=u}return n},IC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return i(s,a),a},set(s,a){s in n?n[s]=a:i(s,a)}}},xa="!",Cl=":",SC=[],Il=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),NC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let a=0,u=0,o=0,l;const c=i.length;for(let T=0;T<c;T++){const k=i[T];if(a===0&&u===0){if(k===Cl){s.push(i.slice(o,T)),o=T+1;continue}if(k==="/"){l=T;continue}}k==="["?a++:k==="]"?a--:k==="("?u++:k===")"&&u--}const d=s.length===0?i:i.slice(o);let p=d,f=!1;d.endsWith(xa)?(p=d.slice(0,-1),f=!0):d.startsWith(xa)&&(p=d.slice(1),f=!0);const m=l&&l>o?l-o:void 0;return Il(s,f,p,m)};if(t){const i=t+Cl,s=r;r=a=>a.startsWith(i)?s(a.slice(i.length)):Il(SC,!1,a,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},LC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const a=n[s],u=a[0]==="[",o=t.has(a);u||o?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},RC=e=>({cache:wC(e.cacheSize),parseClassName:NC(e),sortModifiers:LC(e),..._C(e)}),OC=/\s+/,PC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],u=e.trim().split(OC);let o="";for(let l=u.length-1;l>=0;l-=1){const c=u[l],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:T}=n(c);if(d){o=c+(o.length>0?" "+o:o);continue}let k=!!T,g=r(k?m.substring(0,T):m);if(!g){if(!k){o=c+(o.length>0?" "+o:o);continue}if(g=r(m),!g){o=c+(o.length>0?" "+o:o);continue}k=!1}const w=p.length===0?"":p.length===1?p[0]:s(p).join(":"),x=f?w+xa:w,O=x+g;if(a.indexOf(O)>-1)continue;a.push(O);const D=i(g,k);for(let S=0;S<D.length;++S){const G=D[S];a.push(x+G)}o=c+(o.length>0?" "+o:o)}return o},DC=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=gf(n))&&(i&&(i+=" "),i+=r);return i},gf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gf(e[r]))&&(n&&(n+=" "),n+=t);return n},vC=(e,...t)=>{let n,r,i,s;const a=o=>{const l=t.reduce((c,d)=>d(c),e());return n=RC(l),r=n.cache.get,i=n.cache.set,s=u,u(o)},u=o=>{const l=r(o);if(l)return l;const c=PC(o,n);return i(o,c),c};return s=a,(...o)=>s(DC(...o))},MC=[],we=e=>{const t=n=>n[e]||MC;return t.isThemeGetter=!0,t},bf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_f=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,FC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,UC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ht=e=>BC.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Ut=e=>!!e&&Number.isInteger(Number(e)),Ms=e=>e.endsWith("%")&&te(e.slice(0,-1)),Pt=e=>FC.test(e),Ef=()=>!0,VC=e=>HC.test(e)&&!UC.test(e),Ao=()=>!1,zC=e=>$C.test(e),GC=e=>jC.test(e),qC=e=>!Y(e)&&!Q(e),WC=e=>Zt(e,kf,Ao),Y=e=>bf.test(e),sn=e=>Zt(e,xf,VC),wl=e=>Zt(e,tI,te),YC=e=>Zt(e,Cf,Ef),QC=e=>Zt(e,Af,Ao),Sl=e=>Zt(e,Tf,Ao),XC=e=>Zt(e,yf,GC),ri=e=>Zt(e,If,zC),Q=e=>_f.test(e),sr=e=>yn(e,xf),KC=e=>yn(e,Af),Nl=e=>yn(e,Tf),ZC=e=>yn(e,kf),JC=e=>yn(e,yf),ii=e=>yn(e,If,!0),eI=e=>yn(e,Cf,!0),Zt=(e,t,n)=>{const r=bf.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yn=(e,t,n=!1)=>{const r=_f.exec(e);return r?r[1]?t(r[1]):n:!1},Tf=e=>e==="position"||e==="percentage",yf=e=>e==="image"||e==="url",kf=e=>e==="length"||e==="size"||e==="bg-size",xf=e=>e==="length",tI=e=>e==="number",Af=e=>e==="family-name",Cf=e=>e==="number"||e==="weight",If=e=>e==="shadow",nI=()=>{const e=we("color"),t=we("font"),n=we("text"),r=we("font-weight"),i=we("tracking"),s=we("leading"),a=we("breakpoint"),u=we("container"),o=we("spacing"),l=we("radius"),c=we("shadow"),d=we("inset-shadow"),p=we("text-shadow"),f=we("drop-shadow"),m=we("blur"),T=we("perspective"),k=we("aspect"),g=we("ease"),w=we("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...O(),Q,Y],S=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],M=()=>[Q,Y,o],W=()=>[Ht,"full","auto",...M()],R=()=>[Ut,"none","subgrid",Q,Y],$=()=>["auto",{span:["full",Ut,Q,Y]},Ut,Q,Y],j=()=>[Ut,"auto",Q,Y],ne=()=>["auto","min","max","fr",Q,Y],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...M()],K=()=>[Ht,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ye=()=>[Ht,"screen","full","dvw","lvw","svw","min","max","fit",...M()],ve=()=>[Ht,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],y=()=>[e,Q,Y],Ae=()=>[...O(),Nl,Sl,{position:[Q,Y]}],ze=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",ZC,WC,{size:[Q,Y]}],me=()=>[Ms,sr,sn],ge=()=>["","none","full",l,Q,Y],oe=()=>["",te,sr,sn],Ge=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[te,Ms,Nl,Sl],lt=()=>["","none",m,Q,Y],nt=()=>["none",te,Q,Y],wt=()=>["none",te,Q,Y],Ft=()=>[te,Q,Y],St=()=>[Ht,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pt],breakpoint:[Pt],color:[Ef],container:[Pt],"drop-shadow":[Pt],ease:["in","out","in-out"],font:[qC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pt],shadow:[Pt],spacing:["px",te],text:[Pt],"text-shadow":[Pt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ht,Y,Q,k]}],container:["container"],columns:[{columns:[te,Y,Q,u]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ut,"auto",Q,Y]}],basis:[{basis:[Ht,"full","auto",u,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Ht,"auto","initial","none",Y]}],grow:[{grow:["",te,Q,Y]}],shrink:[{shrink:["",te,Q,Y]}],order:[{order:[Ut,"first","last","none",Q,Y]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...ye()]}],"min-inline-size":[{"min-inline":["auto",...ye()]}],"max-inline-size":[{"max-inline":["none",...ye()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[u,"screen",...K()]}],"min-w":[{"min-w":[u,"screen","none",...K()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,sr,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,eI,YC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ms,Y]}],"font-family":[{font:[KC,QC,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Q,Y]}],"line-clamp":[{"line-clamp":[te,"none",Q,wl]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",Q,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",Q,sn]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[te,"auto",Q,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:ze()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ut,Q,Y],radial:["",Q,Y],conic:[Ut,Q,Y]},JC,XC]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ge(),"hidden","none"]}],"divide-style":[{divide:[...Ge(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...Ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,Q,Y]}],"outline-w":[{outline:["",te,sr,sn]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",c,ii,ri]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",d,ii,ri]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[te,sn]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",p,ii,ri]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[te,Q,Y]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[Q,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:ze()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Y]}],filter:[{filter:["","none",Q,Y]}],blur:[{blur:lt()}],brightness:[{brightness:[te,Q,Y]}],contrast:[{contrast:[te,Q,Y]}],"drop-shadow":[{"drop-shadow":["","none",f,ii,ri]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",te,Q,Y]}],"hue-rotate":[{"hue-rotate":[te,Q,Y]}],invert:[{invert:["",te,Q,Y]}],saturate:[{saturate:[te,Q,Y]}],sepia:[{sepia:["",te,Q,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Y]}],"backdrop-blur":[{"backdrop-blur":lt()}],"backdrop-brightness":[{"backdrop-brightness":[te,Q,Y]}],"backdrop-contrast":[{"backdrop-contrast":[te,Q,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,Q,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,Q,Y]}],"backdrop-invert":[{"backdrop-invert":["",te,Q,Y]}],"backdrop-opacity":[{"backdrop-opacity":[te,Q,Y]}],"backdrop-saturate":[{"backdrop-saturate":[te,Q,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",te,Q,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",Q,Y]}],ease:[{ease:["linear","initial",g,Q,Y]}],delay:[{delay:[te,Q,Y]}],animate:[{animate:["none",w,Q,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,Q,Y]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:nt()}],"rotate-x":[{"rotate-x":nt()}],"rotate-y":[{"rotate-y":nt()}],"rotate-z":[{"rotate-z":nt()}],scale:[{scale:wt()}],"scale-x":[{"scale-x":wt()}],"scale-y":[{"scale-y":wt()}],"scale-z":[{"scale-z":wt()}],"scale-3d":["scale-3d"],skew:[{skew:Ft()}],"skew-x":[{"skew-x":Ft()}],"skew-y":[{"skew-y":Ft()}],transform:[{transform:[Q,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,Y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,Y]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[te,sr,sn,wl]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wf=vC(nI);var Sf=zp();const rI=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iI=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sI={};function Ll(e,t){return(sI.jsx?iI:rI).test(e)}var Nn={},Bs,Rl;function aI(){if(Rl)return Bs;Rl=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g,o=`
|
|
191
|
+
`,l="/",c="*",d="",p="comment",f="declaration";function m(k,g){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];g=g||{};var w=1,x=1;function O(q){var H=q.match(t);H&&(w+=H.length);var z=q.lastIndexOf(o);x=~z?q.length-z:x+q.length}function D(){var q={line:w,column:x};return function(H){return H.position=new S(q),W(),H}}function S(q){this.start=q,this.end={line:w,column:x},this.source=g.source}S.prototype.content=k;function G(q){var H=new Error(g.source+":"+w+":"+x+": "+q);if(H.reason=q,H.filename=g.source,H.line=w,H.column=x,H.source=k,!g.silent)throw H}function M(q){var H=q.exec(k);if(H){var z=H[0];return O(z),k=k.slice(z.length),H}}function W(){M(n)}function R(q){var H;for(q=q||[];H=$();)H!==!1&&q.push(H);return q}function $(){var q=D();if(!(l!=k.charAt(0)||c!=k.charAt(1))){for(var H=2;d!=k.charAt(H)&&(c!=k.charAt(H)||l!=k.charAt(H+1));)++H;if(H+=2,d===k.charAt(H-1))return G("End of comment missing");var z=k.slice(2,H-2);return x+=2,O(z),k=k.slice(H),x+=2,q({type:p,comment:z})}}function j(){var q=D(),H=M(r);if(H){if($(),!M(i))return G("property missing ':'");var z=M(s),K=q({type:f,property:T(H[0].replace(e,d)),value:z?T(z[0].replace(e,d)):d});return M(a),K}}function ne(){var q=[];R(q);for(var H;H=j();)H!==!1&&(q.push(H),R(q));return q}return W(),ne()}function T(k){return k?k.replace(u,d):d}return Bs=m,Bs}var Ol;function oI(){if(Ol)return Nn;Ol=1;var e=Nn&&Nn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=n;const t=e(aI());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const a=(0,t.default)(r),u=typeof i=="function";return a.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:c}=o;u?i(l,c,o):c&&(s=s||{},s[l]=c)}),s}return Nn}var ar={},Pl;function uI(){if(Pl)return ar;Pl=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(l){return!l||n.test(l)||e.test(l)},a=function(l,c){return c.toUpperCase()},u=function(l,c){return"".concat(c,"-")},o=function(l,c){return c===void 0&&(c={}),s(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,u):l=l.replace(r,u),l.replace(t,a))};return ar.camelCase=o,ar}var or,Dl;function lI(){if(Dl)return or;Dl=1;var e=or&&or.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(oI()),n=uI();function r(i,s){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(u,o){u&&o&&(a[(0,n.camelCase)(u,s)]=o)}),a}return r.default=r,or=r,or}var cI=lI();const dI=kc(cI);function Cr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vl(e.position):"start"in e||"end"in e?vl(e):"line"in e||"column"in e?Aa(e):""}function Aa(e){return Ml(e&&e.line)+":"+Ml(e&&e.column)}function vl(e){return Aa(e&&e.start)+"-"+Aa(e&&e.end)}function Ml(e){return e&&typeof e=="number"?e:1}class $e extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?s.ruleId=r:(s.source=r.slice(0,o),s.ruleId=r.slice(o+1))}if(!s.place&&s.ancestors&&s.ancestors){const o=s.ancestors[s.ancestors.length-1];o&&(s.place=o.position)}const u=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Cr(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$e.prototype.file="";$e.prototype.name="";$e.prototype.reason="";$e.prototype.message="";$e.prototype.stack="";$e.prototype.column=void 0;$e.prototype.line=void 0;$e.prototype.ancestors=void 0;$e.prototype.cause=void 0;$e.prototype.fatal=void 0;$e.prototype.place=void 0;$e.prototype.ruleId=void 0;$e.prototype.source=void 0;const Co={}.hasOwnProperty,hI=new Map,fI=/[A-Z]/g,pI=new Set(["table","tbody","thead","tfoot","tr"]),mI=new Set(["td","th"]),Nf="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=AI(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=xI(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?At:zn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Lf(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function Lf(e,t,n){if(t.type==="element")return bI(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _I(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return TI(e,t,n);if(t.type==="mdxjsEsm")return EI(e,t);if(t.type==="root")return yI(e,t,n);if(t.type==="text")return kI(e,t)}function bI(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=At,e.schema=i),e.ancestors.push(t);const s=Of(e,t.tagName,!1),a=CI(e,t);let u=wo(e,t);return pI.has(t.tagName)&&(u=u.filter(function(o){return typeof o=="string"?!Ui(o):!0})),Rf(e,a,s,t),Io(a,u),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function _I(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}vr(e,t.position)}function EI(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vr(e,t.position)}function TI(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=At,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:Of(e,t.name,!0),a=II(e,t),u=wo(e,t);return Rf(e,a,s,t),Io(a,u),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function yI(e,t,n){const r={};return Io(r,wo(e,t)),e.create(t,e.Fragment,r,n)}function kI(e,t){return t.value}function Rf(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Io(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function xI(e,t,n){return r;function r(i,s,a,u){const l=Array.isArray(a.children)?n:t;return u?l(s,a,u):l(s,a)}}function AI(e,t){return n;function n(r,i,s,a){const u=Array.isArray(s.children),o=Ct(r);return t(i,s,a,u,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function CI(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Co.call(t.properties,i)){const s=wI(e,i,t.properties[i]);if(s){const[a,u]=s;e.tableCellAlignToStyle&&a==="align"&&typeof u=="string"&&mI.has(t.tagName)?r=u:n[a]=u}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function II(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const u=a.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else vr(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,s=e.evaluater.evaluateExpression(u.expression)}else vr(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function wo(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:hI;for(;++r<t.children.length;){const s=t.children[r];let a;if(e.passKeys){const o=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(o){const l=i.get(o)||0;a=o+"-"+l,i.set(o,l+1)}}const u=Lf(e,s,a);u!==void 0&&n.push(u)}return n}function wI(e,t,n){const r=Fr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$a(n):ja(n)),r.property==="style"){let i=typeof n=="object"?n:SI(e,String(n));return e.stylePropertyNameCase==="css"&&(i=NI(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Dm[r.property]||r.property:r.attribute,n]}}function SI(e,t){try{return dI(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new $e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Nf+"#cannot-parse-style-attribute",i}}function Of(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,a;for(;++s<i.length;){const u=Ll(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:u,computed:!!(s&&u.type==="Literal"),optional:!1}:u}r=a}else r=Ll(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Co.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);vr(e)}function vr(e,t){const n=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Nf+"#cannot-handle-mdx-estrees-without-createevaluater",n}function NI(e){const t={};let n;for(n in e)Co.call(e,n)&&(t[LI(n)]=e[n]);return t}function LI(e){let t=e.replace(fI,RI);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function RI(e){return"-"+e.toLowerCase()}const Fs={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},OI={tokenize:PI};function PI(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),le(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),s(u)}function s(u){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,a(u)}function a(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return X(u)?(e.consume(u),e.exit("chunkText"),s):(e.consume(u),a)}}const DI={tokenize:vI},Bl={tokenize:MI};function vI(e){const t=this,n=[];let r=0,i,s,a;return u;function u(x){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,o,l)(x)}return l(x)}function o(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const O=t.events.length;let D=O,S;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){S=t.events[D][1].end;break}g(r);let G=O;for(;G<t.events.length;)t.events[G][1].end={...S},G++;return Qe(t.events,D+1,0,t.events.slice(O)),t.events.length=G,l(x)}return u(x)}function l(x){if(r===n.length){if(!i)return p(x);if(i.currentConstruct&&i.currentConstruct.concrete)return m(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Bl,c,d)(x)}function c(x){return i&&w(),g(r),p(x)}function d(x){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(x)}function p(x){return t.containerState={},e.attempt(Bl,f,m)(x)}function f(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function m(x){if(x===null){i&&w(),g(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),T(x)}function T(x){if(x===null){k(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return X(x)?(e.consume(x),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(x),T)}function k(x,O){const D=t.sliceStream(x);if(O&&D.push(null),x.previous=s,s&&(s.next=x),s=x,i.defineSkip(x.start),i.write(D),t.parser.lazy[x.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<a&&(!i.events[S][1].end||i.events[S][1].end.offset>a))return;const G=t.events.length;let M=G,W,R;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(W){R=t.events[M][1].end;break}W=!0}for(g(r),S=G;S<t.events.length;)t.events[S][1].end={...R},S++;Qe(t.events,M+1,0,t.events.slice(G)),t.events.length=S}}function g(x){let O=n.length;for(;O-- >x;){const D=n[O];t.containerState=D[1],D[0].exit.call(t,e)}n.length=x}function w(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function MI(e,t,n){return le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const BI={tokenize:FI};function FI(e){const t=this,n=e.attempt(Vr,r,e.attempt(this.parser.constructs.flowInitial,i,le(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Gx,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HI={resolveAll:Df()},UI=Pf("string"),$I=Pf("text");function Pf(e){return{resolveAll:Df(e==="text"?jI:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,a,u);return a;function a(c){return l(c)?s(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),o}function o(c){return l(c)?(n.exit("data"),s(c)):(n.consume(c),o)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Df(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function jI(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,a=-1,u=0,o;for(;s--;){const l=i[s];if(typeof l=="string"){for(a=l.length;l.charCodeAt(a-1)===32;)u++,a--;if(a)break;a=-1}else if(l===-2)o=!0,u++;else if(l!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const l={type:n===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const VI={42:Ye,43:Ye,45:Ye,48:Ye,49:Ye,50:Ye,51:Ye,52:Ye,53:Ye,54:Ye,55:Ye,56:Ye,57:Ye,62:Xh},zI={91:Xx},GI={[-2]:Ps,[-1]:Ps,32:Ps},qI={35:n2,42:mi,45:[bl,mi],60:a2,61:bl,95:mi,96:ml,126:ml},WI={38:Zh,92:Kh},YI={[-5]:Ds,[-4]:Ds,[-3]:Ds,33:A2,38:Zh,42:ka,60:[Cx,f2],91:I2,92:[e2,Kh],93:To,95:ka,96:Fx},QI={null:[ka,HI]},XI={null:[42,95]},KI={null:[]},ZI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:XI,contentInitial:zI,disable:KI,document:VI,flow:qI,flowInitial:GI,insideSpan:QI,string:WI,text:YI},Symbol.toStringTag,{value:"Module"}));function JI(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],u=[];const o={attempt:G(D),check:G(S),consume:w,enter:x,exit:O,interrupt:G(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:T,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let c=t.tokenize.call(l,o);return t.resolveAll&&s.push(t),l;function d($){return a=st(a,$),k(),a[a.length-1]!==null?[]:(M(t,0),l.events=is(s,l.events,l),l.events)}function p($,j){return tw(f($),j)}function f($){return ew(a,$)}function m(){const{_bufferIndex:$,_index:j,line:ne,column:q,offset:H}=r;return{_bufferIndex:$,_index:j,line:ne,column:q,offset:H}}function T($){i[$.line]=$.column,R()}function k(){let $;for(;r._index<a.length;){const j=a[r._index];if(typeof j=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<j.length;)g(j.charCodeAt(r._bufferIndex));else g(j)}}function g($){c=c($)}function w($){X($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,R()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=$}function x($,j){const ne=j||{};return ne.type=$,ne.start=m(),l.events.push(["enter",ne,l]),u.push(ne),ne}function O($){const j=u.pop();return j.end=m(),l.events.push(["exit",j,l]),j}function D($,j){M($,j.from)}function S($,j){j.restore()}function G($,j){return ne;function ne(q,H,z){let K,ye,ve,y;return Array.isArray(q)?ze(q):"tokenize"in q?ze([q]):Ae(q);function Ae(oe){return Ge;function Ge(Me){const de=Me!==null&&oe[Me],lt=Me!==null&&oe.null,nt=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(lt)?lt:lt?[lt]:[]];return ze(nt)(Me)}}function ze(oe){return K=oe,ye=0,oe.length===0?z:I(oe[ye])}function I(oe){return Ge;function Ge(Me){return y=W(),ve=oe,oe.partial||(l.currentConstruct=oe),oe.name&&l.parser.constructs.disable.null.includes(oe.name)?ge():oe.tokenize.call(j?Object.assign(Object.create(l),j):l,o,me,ge)(Me)}}function me(oe){return $(ve,y),H}function ge(oe){return y.restore(),++ye<K.length?I(K[ye]):z}}}function M($,j){$.resolveAll&&!s.includes($)&&s.push($),$.resolve&&Qe(l.events,j,l.events.length-j,$.resolve(l.events.slice(j),l)),$.resolveTo&&(l.events=$.resolveTo(l.events,l))}function W(){const $=m(),j=l.previous,ne=l.currentConstruct,q=l.events.length,H=Array.from(u);return{from:q,restore:z};function z(){r=$,l.previous=j,l.currentConstruct=ne,l.events.length=q,u=H,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ew(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const u=a[0];typeof u=="string"?a[0]=u.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function tw(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
|
|
192
|
+
`;break}case-3:{a=`\r
|
|
193
|
+
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function nw(e){const r={constructs:$h([ZI,...(e||{}).extensions||[]]),content:i(OI),defined:[],document:i(DI),flow:i(BI),lazy:{},string:i(UI),text:i($I)};return r;function i(s){return a;function a(u){return JI(r,s,u)}}}class rw{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ur(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ur(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ur(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ur(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ur(this.left,n.reverse())}}}function ur(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function iw(e){const t={};let n=-1,r,i,s,a,u,o,l;const c=new rw(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,s=0,s<o.length&&o[s][1].type==="lineEndingBlank"&&(s+=2),s<o.length&&o[s][1].type==="content"))for(;++s<o.length&&o[s][1].type!=="content";)o[s][1].type==="chunkText"&&(o[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,sw(c,n)),n=t[n],l=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return Qe(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function sw(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const u=a.events,o=[],l={};let c,d,p=-1,f=n,m=0,T=0;const k=[T];for(;f;){for(;e.get(++i)[1]!==f;);s.push(i),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(T=p+1,k.push(T),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):k.pop(),p=k.length;p--;){const g=u.slice(k[p],k[p+1]),w=s.pop();o.push([w,w+g.length-1]),e.splice(w,2,g)}for(o.reverse(),p=-1;++p<o.length;)l[m+o[p][0]]=m+o[p][1],m+=o[p][1]-o[p][0]-1;return l}function aw(e){for(;!iw(e););return e}const Fl=/[\0\t\n\r]/g;function ow(){let e=1,t="",n=!0,r;return i;function i(s,a,u){const o=[];let l,c,d,p,f;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),d=0,t="",n&&(s.charCodeAt(0)===65279&&d++,n=void 0);d<s.length;){if(Fl.lastIndex=d,l=Fl.exec(s),p=l&&l.index!==void 0?l.index:s.length,f=s.charCodeAt(p),!l){t=s.slice(d);break}if(f===10&&d===p&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),d<p&&(o.push(s.slice(d,p)),e+=p-d),f){case 0:{o.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,o.push(-2);e++<c;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return u&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}function uw(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const vf={}.hasOwnProperty;function lw(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),cw(n)(aw(nw(n).document().write(ow()(e,t,!0))))}function cw(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(qe),autolinkProtocol:W,autolinkEmail:W,atxHeading:s(xn),blockQuote:s(lt),characterEscape:W,characterReference:W,codeFenced:s(nt),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(nt,a),codeText:s(wt,a),codeTextData:W,data:W,codeFlowValue:W,definition:s(Ft),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(St),hardBreakEscape:s(qr),hardBreakTrailing:s(qr),htmlFlow:s(se,a),htmlFlowData:W,htmlText:s(se,a),htmlTextData:W,image:s(_e),label:a,link:s(qe),listItem:s(Jt),listItemValue:p,listOrdered:s(ct,d),listUnordered:s(ct),paragraph:s(Up),reference:I,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(xn),strong:s($p),thematicBreak:s(Vp)},exit:{atxHeading:o(),atxHeadingSequence:D,autolink:o(),autolinkEmail:de,autolinkProtocol:Me,blockQuote:o(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:oe,characterReference:Ge,codeFenced:o(k),codeFencedFence:T,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:R,codeIndented:o(g),codeText:o(H),codeTextData:R,data:R,definition:o(),definitionDestinationString:O,definitionLabelString:w,definitionTitleString:x,emphasis:o(),hardBreakEscape:o(j),hardBreakTrailing:o(j),htmlFlow:o(ne),htmlFlowData:R,htmlText:o(q),htmlTextData:R,image:o(K),label:ve,labelText:ye,lineEnding:$,link:o(z),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:me,resourceDestinationString:y,resourceTitleString:Ae,resource:ze,setextHeading:o(M),setextHeadingLineSequence:G,setextHeadingText:S,strong:o(),thematicBreak:o()}};Mf(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(v){let V={type:"root",children:[]};const Z={stack:[V],tokenStack:[],config:t,enter:u,exit:l,buffer:a,resume:c,data:n},ue=[];let fe=-1;for(;++fe<v.length;)if(v[fe][1].type==="listOrdered"||v[fe][1].type==="listUnordered")if(v[fe][0]==="enter")ue.push(fe);else{const dt=ue.pop();fe=i(v,dt,fe)}for(fe=-1;++fe<v.length;){const dt=t[v[fe][0]];vf.call(dt,v[fe][1].type)&&dt[v[fe][1].type].call(Object.assign({sliceSerialize:v[fe][2].sliceSerialize},Z),v[fe][1])}if(Z.tokenStack.length>0){const dt=Z.tokenStack[Z.tokenStack.length-1];(dt[1]||Hl).call(Z,void 0,dt[0])}for(V.position={start:$t(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:$t(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},fe=-1;++fe<t.transforms.length;)V=t.transforms[fe](V)||V;return V}function i(v,V,Z){let ue=V-1,fe=-1,dt=!1,en,Nt,Zn,Jn;for(;++ue<=Z;){const Ze=v[ue];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?fe++:fe--,Jn=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(en&&!Jn&&!fe&&!Zn&&(Zn=ue),Jn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Jn=void 0}if(!fe&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||fe===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(en){let An=ue;for(Nt=void 0;An--;){const Lt=v[An];if(Lt[1].type==="lineEnding"||Lt[1].type==="lineEndingBlank"){if(Lt[0]==="exit")continue;Nt&&(v[Nt][1].type="lineEndingBlank",dt=!0),Lt[1].type="lineEnding",Nt=An}else if(!(Lt[1].type==="linePrefix"||Lt[1].type==="blockQuotePrefix"||Lt[1].type==="blockQuotePrefixWhitespace"||Lt[1].type==="blockQuoteMarker"||Lt[1].type==="listItemIndent"))break}Zn&&(!Nt||Zn<Nt)&&(en._spread=!0),en.end=Object.assign({},Nt?v[Nt][1].start:Ze[1].end),v.splice(Nt||ue,0,["exit",en,Ze[2]]),ue++,Z++}if(Ze[1].type==="listItemPrefix"){const An={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};en=An,v.splice(ue,0,["enter",An,Ze[2]]),ue++,Z++,Zn=void 0,Jn=!0}}}return v[V][1]._spread=dt,Z}function s(v,V){return Z;function Z(ue){u.call(this,v(ue),ue),V&&V.call(this,ue)}}function a(){this.stack.push({type:"fragment",children:[]})}function u(v,V,Z){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([V,Z||void 0]),v.position={start:$t(V.start),end:void 0}}function o(v){return V;function V(Z){v&&v.call(this,Z),l.call(this,Z)}}function l(v,V){const Z=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==v.type&&(V?V.call(this,v,ue[0]):(ue[1]||Hl).call(this,v,ue[0]));else throw new Error("Cannot close `"+v.type+"` ("+Cr({start:v.start,end:v.end})+"): it’s not open");Z.position.end=$t(v.end)}function c(){return go(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(v){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0}}function f(){const v=this.resume(),V=this.stack[this.stack.length-1];V.lang=v}function m(){const v=this.resume(),V=this.stack[this.stack.length-1];V.meta=v}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const v=this.resume(),V=this.stack[this.stack.length-1];V.value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const v=this.resume(),V=this.stack[this.stack.length-1];V.value=v.replace(/(\r?\n|\r)$/g,"")}function w(v){const V=this.resume(),Z=this.stack[this.stack.length-1];Z.label=V,Z.identifier=mt(this.sliceSerialize(v)).toLowerCase()}function x(){const v=this.resume(),V=this.stack[this.stack.length-1];V.title=v}function O(){const v=this.resume(),V=this.stack[this.stack.length-1];V.url=v}function D(v){const V=this.stack[this.stack.length-1];if(!V.depth){const Z=this.sliceSerialize(v).length;V.depth=Z}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function G(v){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function W(v){const Z=this.stack[this.stack.length-1].children;let ue=Z[Z.length-1];(!ue||ue.type!=="text")&&(ue=jp(),ue.position={start:$t(v.start),end:void 0},Z.push(ue)),this.stack.push(ue)}function R(v){const V=this.stack.pop();V.value+=this.sliceSerialize(v),V.position.end=$t(v.end)}function $(v){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Z=V.children[V.children.length-1];Z.position.end=$t(v.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(W.call(this,v),R.call(this,v))}function j(){this.data.atHardBreak=!0}function ne(){const v=this.resume(),V=this.stack[this.stack.length-1];V.value=v}function q(){const v=this.resume(),V=this.stack[this.stack.length-1];V.value=v}function H(){const v=this.resume(),V=this.stack[this.stack.length-1];V.value=v}function z(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=V,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function K(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=V,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function ye(v){const V=this.sliceSerialize(v),Z=this.stack[this.stack.length-2];Z.label=Qk(V),Z.identifier=mt(V).toLowerCase()}function ve(){const v=this.stack[this.stack.length-1],V=this.resume(),Z=this.stack[this.stack.length-1];if(this.data.inReference=!0,Z.type==="link"){const ue=v.children;Z.children=ue}else Z.alt=V}function y(){const v=this.resume(),V=this.stack[this.stack.length-1];V.url=v}function Ae(){const v=this.resume(),V=this.stack[this.stack.length-1];V.title=v}function ze(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function me(v){const V=this.resume(),Z=this.stack[this.stack.length-1];Z.label=V,Z.identifier=mt(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function ge(v){this.data.characterReferenceType=v.type}function oe(v){const V=this.sliceSerialize(v),Z=this.data.characterReferenceType;let ue;Z?(ue=uw(V,Z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=_o(V);const fe=this.stack[this.stack.length-1];fe.value+=ue}function Ge(v){const V=this.stack.pop();V.position.end=$t(v.end)}function Me(v){R.call(this,v);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(v)}function de(v){R.call(this,v);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(v)}function lt(){return{type:"blockquote",children:[]}}function nt(){return{type:"code",lang:null,meta:null,value:""}}function wt(){return{type:"inlineCode",value:""}}function Ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function St(){return{type:"emphasis",children:[]}}function xn(){return{type:"heading",depth:0,children:[]}}function qr(){return{type:"break"}}function se(){return{type:"html",value:""}}function _e(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function ct(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[]}}function Jt(v){return{type:"listItem",spread:v._spread,checked:null,children:[]}}function Up(){return{type:"paragraph",children:[]}}function $p(){return{type:"strong",children:[]}}function jp(){return{type:"text",value:""}}function Vp(){return{type:"thematicBreak"}}}function $t(e){return{line:e.line,column:e.column,offset:e.offset}}function Mf(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Mf(e,r):dw(e,r)}}function dw(e,t){let n;for(n in t)if(vf.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Hl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Cr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Cr({start:t.start,end:t.end})+") is still open")}function hw(e){const t=this;t.parser=n;function n(r){return lw(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function fw(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function pw(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
194
|
+
`}]}function mw(e,t){const n=t.value?t.value+`
|
|
195
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function gw(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bw(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _w(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Kn(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,u+=1,e.footnoteCounts.set(r,u);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,o);const l={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,l),e.applyData(t,l)}function Ew(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tw(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Bf(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function yw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bf(e,t);const i={src:Kn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function kw(e,t){const n={src:Kn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xw(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Aw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bf(e,t);const i={href:Kn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Cw(e,t){const n={href:Kn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Iw(e,t,n){const r=e.all(t),i=n?ww(n):Ff(t),s={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(i||u!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
|
|
196
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&a.push({type:"text",value:`
|
|
197
|
+
`});const l={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,l),e.applyData(t,l)}function ww(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ff(n[r])}return t}function Ff(e){const t=e.spread;return t??e.children.length>1}function Sw(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Nw(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lw(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Rw(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ow(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Ct(t.children[1]),o=ns(t.children[t.children.length-1]);u&&o&&(a.position={start:u,end:o}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Pw(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,u=a?a.length:t.children.length;let o=-1;const l=[];for(;++o<u;){const d=t.children[o],p={},f=a?a[o]:void 0;f&&(p.align=f);let m={type:"element",tagName:s,properties:p,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),l.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function Dw(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ul=9,$l=32;function vw(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(jl(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(jl(t.slice(i),i>0,!1)),s.join("")}function jl(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===Ul||s===$l;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===Ul||s===$l;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Mw(e,t){const n={type:"text",value:vw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Bw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Fw={blockquote:fw,break:pw,code:mw,delete:gw,emphasis:bw,footnoteReference:_w,heading:Ew,html:Tw,imageReference:yw,image:kw,inlineCode:xw,linkReference:Aw,link:Cw,listItem:Iw,list:Sw,paragraph:Nw,root:Lw,strong:Rw,table:Ow,tableCell:Dw,tableRow:Pw,text:Mw,thematicBreak:Bw,toml:si,yaml:si,definition:si,footnoteDefinition:si};function si(){}function Hw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function $w(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Hw,r=e.options.footnoteBackLabel||Uw,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let o=-1;for(;++o<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[o]);if(!l)continue;const c=e.all(l),d=String(l.identifier).toUpperCase(),p=Kn(d.toLowerCase());let f=0;const m=[],T=e.footnoteCounts.get(d);for(;T!==void 0&&++f<=T;){m.length>0&&m.push({type:"text",value:" "});let w=typeof n=="string"?n:n(o,f);typeof w=="string"&&(w={type:"text",value:w}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,f),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const k=c[c.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const w=k.children[k.children.length-1];w&&w.type==="text"?w.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...m)}else c.push(...m);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(l,g),u.push(g)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...mn(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
198
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
199
|
+
`}]}}const Ca={}.hasOwnProperty,jw={};function Vw(e,t){const n=t||jw,r=new Map,i=new Map,s=new Map,a={...Fw,...n.handlers},u={all:l,applyData:Gw,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:o,options:n,patch:zw,wrap:Ww};return xt(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),u;function o(c,d){const p=c.type,f=u.handlers[p];if(Ca.call(u.handlers,p)&&f)return f(u,c,d);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in c){const{children:T,...k}=c,g=mn(k);return g.children=u.all(c),g}return mn(c)}return(u.options.unknownHandler||qw)(u,c,d)}function l(c){const d=[];if("children"in c){const p=c.children;let f=-1;for(;++f<p.length;){const m=u.one(p[f],c);if(m){if(f&&p[f-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Vl(m.value)),!Array.isArray(m)&&m.type==="element")){const T=m.children[0];T&&T.type==="text"&&(T.value=Vl(T.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function zw(e,t){e.position&&(t.position=gh(e))}function Gw(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,mn(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function qw(e,t){const n=t.data||{},r="value"in t&&!(Ca.call(n,"hProperties")||Ca.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ww(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
200
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
201
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
202
|
+
`}),n}function Vl(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function zl(e,t){const n=Vw(e,t),r=n.one(e,void 0),i=$w(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
|
|
203
|
+
`},i),s}function Yw(e,t){return e&&"run"in e?async function(n,r){const i=zl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return zl(n,{file:r,...e||t})}}function Gl(e){if(e)throw e}var Hs,ql;function Qw(){if(ql)return Hs;ql=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},s=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var p;for(p in l);return typeof p>"u"||e.call(l,p)},a=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},u=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return Hs=function o(){var l,c,d,p,f,m,T=arguments[0],k=1,g=arguments.length,w=!1;for(typeof T=="boolean"&&(w=T,T=arguments[1]||{},k=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});k<g;++k)if(l=arguments[k],l!=null)for(c in l)d=u(T,c),p=u(l,c),T!==p&&(w&&p&&(s(p)||(f=i(p)))?(f?(f=!1,m=d&&i(d)?d:[]):m=d&&s(d)?d:{},a(T,{name:c,newValue:o(w,m,p)})):typeof p<"u"&&a(T,{name:c,newValue:p}));return T},Hs}var Xw=Qw();const Us=kc(Xw);function Ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kw(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);u(null,...i);function u(o,...l){const c=e[++s];let d=-1;if(o){a(o);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,c?Zw(c,u)(...l):a(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Zw(e,t){let n;return r;function r(...a){const u=e.length>a.length;let o;u&&a.push(i);try{o=e.apply(this,a)}catch(l){const c=l;if(u&&n)throw c;return i(c)}u||(o&&o.then&&typeof o.then=="function"?o.then(s,i):o instanceof Error?i(o):s(o))}function i(a,...u){n||(n=!0,t(a,...u))}function s(a){i(null,a)}}const yt={basename:Jw,dirname:eS,extname:tS,join:nS,sep:"/"};function Jw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zr(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function eS(e){if(zr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function tS(e){zr(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const u=e.codePointAt(t);if(u===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),u===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function nS(...e){let t=-1,n;for(;++t<e.length;)zr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":rS(n)}function rS(e){zr(e);const t=e.codePointAt(0)===47;let n=iS(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function iS(e,t){let n="",r=0,i=-1,s=0,a=-1,u,o;for(;++a<=e.length;){if(a<e.length)u=e.codePointAt(a);else{if(u===47)break;u=47}if(u===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else u===46&&s>-1?s++:s=-1}return n}function zr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sS={cwd:aS};function aS(){return"/"}function wa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oS(e){if(typeof e=="string")e=new URL(e);else if(!wa(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return uS(e)}function uS(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const $s=["history","path","basename","stem","extname","dirname"];class lS{constructor(t){let n;t?wa(t)?n={path:t}:typeof t=="string"||cS(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":sS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<$s.length;){const s=$s[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)$s.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?yt.basename(this.path):void 0}set basename(t){Vs(t,"basename"),js(t,"basename"),this.path=yt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yt.dirname(this.path):void 0}set dirname(t){Wl(this.basename,"dirname"),this.path=yt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yt.extname(this.path):void 0}set extname(t){if(js(t,"extname"),Wl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wa(t)&&(t=oS(t)),Vs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yt.basename(this.path,this.extname):void 0}set stem(t){Vs(t,"stem"),js(t,"stem"),this.path=yt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new $e(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function js(e,t){if(e&&e.includes(yt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yt.sep+"`")}function Vs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Wl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dS=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),hS={}.hasOwnProperty;class So extends dS{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kw()}copy(){const t=new So;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Us(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qs("data",this.frozen),this.namespace[t]=n,this):hS.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qs("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ai(t),r=this.parser||this.Parser;return zs("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),zs("process",this.parser||this.Parser),Gs("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const u=ai(t),o=r.parse(u);r.run(o,u,function(c,d,p){if(c||!d||!p)return l(c);const f=d,m=r.stringify(f,p);mS(m)?p.value=m:p.result=m,l(c,p)});function l(c,d){c||!d?a(c):s?s(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),zs("processSync",this.parser||this.Parser),Gs("processSync",this.compiler||this.Compiler),this.process(t,i),Ql("processSync","process",n),r;function i(s,a){n=!0,Gl(s),r=a}}run(t,n,r){Yl(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,u){const o=ai(n);i.run(t,o,l);function l(c,d,p){const f=d||t;c?u(c):a?a(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),Ql("runSync","run",r),i;function s(a,u){Gl(a),i=u,r=!0}}stringify(t,n){this.freeze();const r=ai(n),i=this.compiler||this.Compiler;return Gs("stringify",i),Yl(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(qs("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(l){if(typeof l=="function")o(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...d]=l;o(c,d)}else a(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function a(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(l.plugins),l.settings&&(i.settings=Us(!0,i.settings,l.settings))}function u(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const d=l[c];s(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function o(l,c){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===l){p=d;break}if(p===-1)r.push([l,...c]);else if(c.length>0){let[f,...m]=c;const T=r[p][1];Ia(T)&&Ia(f)&&(f=Us(!0,T,f)),r[p]=[l,f,...m]}}}}const fS=new So().freeze();function zs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qs(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yl(e){if(!Ia(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ql(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ai(e){return pS(e)?e:new lS(e)}function pS(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mS(e){return typeof e=="string"||gS(e)}function gS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function No(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var kn=No();function Hf(e){kn=e}var ln={exec:()=>null};function ce(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(Ve.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,t)};return r}var bS=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},_S=/^(?:[ \t]*(?:\n|$))+/,ES=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,TS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Uf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$f=ce(Uf).replace(/bull/g,Lo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kS=ce(Uf).replace(/bull/g,Lo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ro=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xS=/^[^\n]+/,Oo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,AS=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Oo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),CS=ce(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lo).getRegex(),as="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Po=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,IS=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Po).replace("tag",as).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jf=ce(Ro).replace("hr",Gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",as).getRegex(),wS=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",jf).getRegex(),Do={blockquote:wS,code:ES,def:AS,fences:TS,heading:yS,hr:Gr,html:IS,lheading:$f,list:CS,newline:_S,paragraph:jf,table:ln,text:xS},Xl=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",as).getRegex(),SS={...Do,lheading:kS,table:Xl,paragraph:ce(Ro).replace("hr",Gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",as).getRegex()},NS={...Do,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Po).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ln,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Ro).replace("hr",Gr).replace("heading",` *#{1,6} *[^
|
|
204
|
+
]`).replace("lheading",$f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},LS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,RS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vf=/^( {2,}|\\)\n(?!\s*$)/,OS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,os=/[\p{P}\p{S}]/u,vo=/[\s\p{P}\p{S}]/u,zf=/[^\s\p{P}\p{S}]/u,PS=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,vo).getRegex(),Gf=/(?!~)[\p{P}\p{S}]/u,DS=/(?!~)[\s\p{P}\p{S}]/u,vS=/(?:[^\s\p{P}\p{S}]|~)/u,qf=/(?![*_])[\p{P}\p{S}]/u,MS=/(?![*_])[\s\p{P}\p{S}]/u,BS=/(?:[^\s\p{P}\p{S}]|[*_])/u,FS=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",bS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Wf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,HS=ce(Wf,"u").replace(/punct/g,os).getRegex(),US=ce(Wf,"u").replace(/punct/g,Gf).getRegex(),Yf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$S=ce(Yf,"gu").replace(/notPunctSpace/g,zf).replace(/punctSpace/g,vo).replace(/punct/g,os).getRegex(),jS=ce(Yf,"gu").replace(/notPunctSpace/g,vS).replace(/punctSpace/g,DS).replace(/punct/g,Gf).getRegex(),VS=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zf).replace(/punctSpace/g,vo).replace(/punct/g,os).getRegex(),zS=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,qf).getRegex(),GS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",qS=ce(GS,"gu").replace(/notPunctSpace/g,BS).replace(/punctSpace/g,MS).replace(/punct/g,qf).getRegex(),WS=ce(/\\(punct)/,"gu").replace(/punct/g,os).getRegex(),YS=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),QS=ce(Po).replace("(?:-->|$)","-->").getRegex(),XS=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",QS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,KS=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Bi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Qf=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Bi).replace("ref",Oo).getRegex(),Xf=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Oo).getRegex(),ZS=ce("reflink|nolink(?!\\()","g").replace("reflink",Qf).replace("nolink",Xf).getRegex(),Kl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Mo={_backpedal:ln,anyPunctuation:WS,autolink:YS,blockSkip:FS,br:Vf,code:RS,del:ln,delLDelim:ln,delRDelim:ln,emStrongLDelim:HS,emStrongRDelimAst:$S,emStrongRDelimUnd:VS,escape:LS,link:KS,nolink:Xf,punctuation:PS,reflink:Qf,reflinkSearch:ZS,tag:XS,text:OS,url:ln},JS={...Mo,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Bi).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bi).getRegex()},Sa={...Mo,emStrongRDelimAst:jS,emStrongLDelim:US,delLDelim:zS,delRDelim:qS,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Kl).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Kl).getRegex()},e3={...Sa,br:ce(Vf).replace("{2,}","*").getRegex(),text:ce(Sa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},oi={normal:Do,gfm:SS,pedantic:NS},lr={normal:Mo,gfm:Sa,breaks:e3,pedantic:JS},t3={"&":"&","<":"<",">":">",'"':""","'":"'"},Zl=e=>t3[e];function Tt(e,t){if(t){if(Ve.escapeTest.test(e))return e.replace(Ve.escapeReplace,Zl)}else if(Ve.escapeTestNoEncode.test(e))return e.replace(Ve.escapeReplaceNoEncode,Zl);return e}function Jl(e){try{e=encodeURI(e).replace(Ve.percentDecode,"%")}catch{return null}return e}function ec(e,t){let n=e.replace(Ve.findPipe,(s,a,u)=>{let o=!1,l=a;for(;--l>=0&&u[l]==="\\";)o=!o;return o?"|":" |"}),r=n.split(Ve.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Ve.slashPipe,"|");return r}function cr(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function n3(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function r3(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let s=4-n%4;r+=" ".repeat(s),n+=s}else r+=i,n++;return r}function tc(e,t,n,r,i){let s=t.href,a=t.title||null,u=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:a,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,o}function i3(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
205
|
+
`).map(s=>{let a=s.match(n.other.beginningSpace);if(a===null)return s;let[u]=a;return u.length>=i.length?s.slice(i.length):s}).join(`
|
|
206
|
+
`)}var Fi=class{options;rules;lexer;constructor(e){this.options=e||kn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:cr(n,`
|
|
207
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=i3(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=cr(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:cr(t[0],`
|
|
208
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=cr(t[0],`
|
|
209
|
+
`).split(`
|
|
210
|
+
`),r="",i="",s=[];for(;n.length>0;){let a=!1,u=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))u.push(n[o]),a=!0;else if(!a)u.push(n[o]);else break;n=n.slice(o);let l=u.join(`
|
|
211
|
+
`),c=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
212
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
213
|
+
${l}`:l,i=i?`${i}
|
|
214
|
+
${c}`:c;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=d,n.length===0)break;let p=s.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let f=p,m=f.raw+`
|
|
215
|
+
`+n.join(`
|
|
216
|
+
`),T=this.blockquote(m);s[s.length-1]=T,r=r.substring(0,r.length-f.raw.length)+T.raw,i=i.substring(0,i.length-f.text.length)+T.text;break}else if(p?.type==="list"){let f=p,m=f.raw+`
|
|
217
|
+
`+n.join(`
|
|
218
|
+
`),T=this.list(m);s[s.length-1]=T,r=r.substring(0,r.length-p.raw.length)+T.raw,i=i.substring(0,i.length-f.raw.length)+T.raw,n=m.substring(s.at(-1).raw.length).split(`
|
|
219
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=!1;for(;e;){let o=!1,l="",c="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=r3(t[2].split(`
|
|
220
|
+
`,1)[0],t[1].length),p=e.split(`
|
|
221
|
+
`,1)[0],f=!d.trim(),m=0;if(this.options.pedantic?(m=2,c=d.trimStart()):f?m=t[1].length+1:(m=d.search(this.rules.other.nonSpaceChar),m=m>4?1:m,c=d.slice(m),m+=t[1].length),f&&this.rules.other.blankLine.test(p)&&(l+=p+`
|
|
222
|
+
`,e=e.substring(p.length+1),o=!0),!o){let T=this.rules.other.nextBulletRegex(m),k=this.rules.other.hrRegex(m),g=this.rules.other.fencesBeginRegex(m),w=this.rules.other.headingBeginRegex(m),x=this.rules.other.htmlBeginRegex(m),O=this.rules.other.blockquoteBeginRegex(m);for(;e;){let D=e.split(`
|
|
223
|
+
`,1)[0],S;if(p=D,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),S=p):S=p.replace(this.rules.other.tabCharGlobal," "),g.test(p)||w.test(p)||x.test(p)||O.test(p)||T.test(p)||k.test(p))break;if(S.search(this.rules.other.nonSpaceChar)>=m||!p.trim())c+=`
|
|
224
|
+
`+S.slice(m);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||g.test(d)||w.test(d)||k.test(d))break;c+=`
|
|
225
|
+
`+p}f=!p.trim(),l+=D+`
|
|
226
|
+
`,e=e.substring(D.length+1),d=S.slice(m)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0)),i.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),i.raw+=l}let u=i.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let o of i.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let l=this.rules.other.listTaskCheckbox.exec(o.raw);if(l){let c={type:"checkbox",raw:l[0]+" ",checked:l[0]!=="[ ]"};o.checked=c.checked,i.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=c.raw+o.tokens[0].raw,o.tokens[0].text=c.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(c)):o.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):o.tokens.unshift(c)}}if(!i.loose){let l=o.tokens.filter(d=>d.type==="space"),c=l.length>0&&l.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=c}}if(i.loose)for(let o of i.items){o.loose=!0;for(let l of o.tokens)l.type==="text"&&(l.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ec(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
227
|
+
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<n.length;a++)s.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:s.align[a]});for(let a of i)s.rows.push(ec(a,s.header.length).map((u,o)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[o]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
228
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=cr(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=n3(t[2],"()");if(s===-2)return;if(s>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),tc(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return tc(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,s,a,u=i,o=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(a=[...s].length,r[3]||r[4]){u+=a;continue}else if((r[5]||r[6])&&i%3&&!((i+a)%3)){o+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+o);let c=[...r[0]][0].length,d=e.slice(0,i+r.index+c+a);if(Math.min(i,a)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,s,a,u=i,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+i);(r=o.exec(t))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s||(a=[...s].length,a!==i))continue;if(r[3]||r[4]){u+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u);let l=[...r[0]][0].length,c=e.slice(0,i+r.index+l+a),d=c.slice(i,-i);return{type:"del",raw:c,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},at=class Na{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||kn,this.options.tokenizer=this.options.tokenizer||new Fi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ve,block:oi.normal,inline:lr.normal};this.options.pedantic?(n.block=oi.pedantic,n.inline=lr.pedantic):this.options.gfm&&(n.block=oi.gfm,this.options.breaks?n.inline=lr.breaks:n.inline=lr.gfm),this.tokenizer.rules=n}static get rules(){return{block:oi,inline:lr}}static lex(t,n){return new Na(n).lex(t)}static lexInline(t,n){return new Na(n).inlineTokens(t)}lex(t){t=t.replace(Ve.carriageReturn,`
|
|
229
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(Ve.tabCharGlobal," ").replace(Ve.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(a=>(i=a.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let a=n.at(-1);i.raw.length===1&&a!==void 0?a.raw+=`
|
|
230
|
+
`:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
231
|
+
`)?"":`
|
|
232
|
+
`)+i.raw,a.text+=`
|
|
233
|
+
`+i.text,this.inlineQueue.at(-1).src=a.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
234
|
+
`)?"":`
|
|
235
|
+
`)+i.raw,a.text+=`
|
|
236
|
+
`+i.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let s=t;if(this.options.extensions?.startBlock){let a=1/0,u=t.slice(1),o;this.options.extensions.startBlock.forEach(l=>{o=l.call({lexer:this},u),typeof o=="number"&&o>=0&&(a=Math.min(a,o))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){let a=n.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
|
|
237
|
+
`)?"":`
|
|
238
|
+
`)+i.raw,a.text+=`
|
|
239
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(i),r=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let a=n.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
240
|
+
`)?"":`
|
|
241
|
+
`)+i.raw,a.text+=`
|
|
242
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(i);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,i=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)o.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)s=i[2]?i[2].length:0,r=r.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,u="";for(;t;){a||(u=""),a=!1;let o;if(this.options.extensions?.inline?.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(o.raw.length);let c=n.at(-1);o.type==="text"&&c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(t,r,u)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(t,r,u)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(t)){t=t.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(t))){t=t.substring(o.raw.length),n.push(o);continue}let l=t;if(this.options.extensions?.startInline){let c=1/0,d=t.slice(1),p;this.options.extensions.startInline.forEach(f=>{p=f.call({lexer:this},d),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(o=this.tokenizer.inlineText(l)){t=t.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(u=o.raw.slice(-1)),a=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):n.push(o);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}},Hi=class{options;parser;constructor(t){this.options=t||kn}space(t){return""}code({text:t,lang:n,escaped:r}){let i=(n||"").match(Ve.notSpaceStart)?.[0],s=t.replace(Ve.endingNewline,"")+`
|
|
243
|
+
`;return i?'<pre><code class="language-'+Tt(i)+'">'+(r?s:Tt(s,!0))+`</code></pre>
|
|
244
|
+
`:"<pre><code>"+(r?s:Tt(s,!0))+`</code></pre>
|
|
245
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
246
|
+
${this.parser.parse(t)}</blockquote>
|
|
247
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
248
|
+
`}hr(t){return`<hr>
|
|
249
|
+
`}list(t){let n=t.ordered,r=t.start,i="";for(let u=0;u<t.items.length;u++){let o=t.items[u];i+=this.listitem(o)}let s=n?"ol":"ul",a=n&&r!==1?' start="'+r+'"':"";return"<"+s+a+`>
|
|
250
|
+
`+i+"</"+s+`>
|
|
251
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
252
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
253
|
+
`}table(t){let n="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);n+=this.tablerow({text:r});let i="";for(let s=0;s<t.rows.length;s++){let a=t.rows[s];r="";for(let u=0;u<a.length;u++)r+=this.tablecell(a[u]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
254
|
+
<thead>
|
|
255
|
+
`+n+`</thead>
|
|
256
|
+
`+i+`</table>
|
|
257
|
+
`}tablerow({text:t}){return`<tr>
|
|
258
|
+
${t}</tr>
|
|
259
|
+
`}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
260
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Tt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let i=this.parser.parseInline(r),s=Jl(t);if(s===null)return i;t=s;let a='<a href="'+t+'"';return n&&(a+=' title="'+Tt(n)+'"'),a+=">"+i+"</a>",a}image({href:t,title:n,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let s=Jl(t);if(s===null)return Tt(r);t=s;let a=`<img src="${t}" alt="${Tt(r)}"`;return n&&(a+=` title="${Tt(n)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Tt(t.text)}},Bo=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ht=class La{options;renderer;textRenderer;constructor(t){this.options=t||kn,this.options.renderer=this.options.renderer||new Hi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Bo}static parse(t,n){return new La(n).parse(t)}static parseInline(t,n){return new La(n).parseInline(t)}parse(t){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let a=i,u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=u||"";continue}}let s=i;switch(s.type){case"space":{n+=this.renderer.space(s);break}case"hr":{n+=this.renderer.hr(s);break}case"heading":{n+=this.renderer.heading(s);break}case"code":{n+=this.renderer.code(s);break}case"table":{n+=this.renderer.table(s);break}case"blockquote":{n+=this.renderer.blockquote(s);break}case"list":{n+=this.renderer.list(s);break}case"checkbox":{n+=this.renderer.checkbox(s);break}case"html":{n+=this.renderer.html(s);break}case"def":{n+=this.renderer.def(s);break}case"paragraph":{n+=this.renderer.paragraph(s);break}case"text":{n+=this.renderer.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,n=this.renderer){let r="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=u||"";continue}}let a=s;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"checkbox":{r+=n.checkbox(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},pr=class{options;block;constructor(e){this.options=e||kn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?at.lex:at.lexInline}provideParser(){return this.block?ht.parse:ht.parseInline}},s3=class{defaults=No();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ht;Renderer=Hi;TextRenderer=Bo;Lexer=at;Tokenizer=Fi;Hooks=pr;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(let i of t)switch(r=r.concat(n.call(this,i)),i.type){case"table":{let s=i;for(let a of s.header)r=r.concat(this.walkTokens(a.tokens,n));for(let a of s.rows)for(let u of a)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{let s=i;r=r.concat(this.walkTokens(s.items,n));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let u=s[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=n.renderers[s.name];a?n.renderers[s.name]=function(...u){let o=s.renderer.apply(this,u);return o===!1&&(o=a.apply(this,u)),o}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=n[s.level];a?a.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){let s=this.defaults.renderer||new Hi(this.defaults);for(let a in r.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let u=a,o=r.renderer[u],l=s[u];s[u]=(...c)=>{let d=o.apply(s,c);return d===!1&&(d=l.apply(s,c)),d||""}}i.renderer=s}if(r.tokenizer){let s=this.defaults.tokenizer||new Fi(this.defaults);for(let a in r.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let u=a,o=r.tokenizer[u],l=s[u];s[u]=(...c)=>{let d=o.apply(s,c);return d===!1&&(d=l.apply(s,c)),d}}i.tokenizer=s}if(r.hooks){let s=this.defaults.hooks||new pr;for(let a in r.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let u=a,o=r.hooks[u],l=s[u];pr.passThroughHooks.has(a)?s[u]=c=>{if(this.defaults.async&&pr.passThroughHooksRespectAsync.has(a))return(async()=>{let p=await o.call(s,c);return l.call(s,p)})();let d=o.call(s,c);return l.call(s,d)}:s[u]=(...c)=>{if(this.defaults.async)return(async()=>{let p=await o.apply(s,c);return p===!1&&(p=await l.apply(s,c)),p})();let d=o.apply(s,c);return d===!1&&(d=l.apply(s,c)),d}}i.hooks=s}if(r.walkTokens){let s=this.defaults.walkTokens,a=r.walkTokens;i.walkTokens=function(u){let o=[];return o.push(a.call(this,u)),s&&(o=o.concat(s.call(this,u))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return at.lex(t,n??this.defaults)}parser(t,n){return ht.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let i={...r},s={...this.defaults,...i},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let u=s.hooks?await s.hooks.preprocess(n):n,o=await(s.hooks?await s.hooks.provideLexer():t?at.lex:at.lexInline)(u,s),l=s.hooks?await s.hooks.processAllTokens(o):o;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():t?ht.parse:ht.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(a);try{s.hooks&&(n=s.hooks.preprocess(n));let u=(s.hooks?s.hooks.provideLexer():t?at.lex:at.lexInline)(n,s);s.hooks&&(u=s.hooks.processAllTokens(u)),s.walkTokens&&this.walkTokens(u,s.walkTokens);let o=(s.hooks?s.hooks.provideParser():t?ht.parse:ht.parseInline)(u,s);return s.hooks&&(o=s.hooks.postprocess(o)),o}catch(u){return a(u)}}}onError(t,n){return r=>{if(r.message+=`
|
|
261
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Tt(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}},bn=new s3;function he(e,t){return bn.parse(e,t)}he.options=he.setOptions=function(e){return bn.setOptions(e),he.defaults=bn.defaults,Hf(he.defaults),he};he.getDefaults=No;he.defaults=kn;he.use=function(...e){return bn.use(...e),he.defaults=bn.defaults,Hf(he.defaults),he};he.walkTokens=function(e,t){return bn.walkTokens(e,t)};he.parseInline=bn.parseInline;he.Parser=ht;he.parser=ht.parse;he.Renderer=Hi;he.TextRenderer=Bo;he.Lexer=at;he.lexer=at.lex;he.Tokenizer=Fi;he.Hooks=pr;he.parse=he;he.options;he.setOptions;he.use;he.walkTokens;he.parseInline;ht.parse;at.lex;var a3=300,o3="300px",u3=500;function l3(e={}){let{immediate:t=!1,debounceDelay:n=a3,rootMargin:r=o3,idleTimeout:i=u3}=e,[s,a]=L.useState(!1),u=L.useRef(null),o=L.useRef(null),l=L.useRef(null),c=L.useMemo(()=>f=>{let m=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),d=L.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(f,m)=>window.requestIdleCallback(f,m):c,[c]),p=L.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return L.useEffect(()=>{if(t){a(!0);return}let f=u.current;if(!f)return;o.current&&(clearTimeout(o.current),o.current=null),l.current&&(p(l.current),l.current=null);let m=()=>{o.current&&(clearTimeout(o.current),o.current=null),l.current&&(p(l.current),l.current=null)},T=x=>{l.current=d(O=>{O.timeRemaining()>0||O.didTimeout?(a(!0),x.disconnect()):l.current=d(()=>{a(!0),x.disconnect()},{timeout:i/2})},{timeout:i})},k=x=>{m(),o.current=window.setTimeout(()=>{var O,D;let S=x.takeRecords();(S.length===0||(D=(O=S.at(-1))==null?void 0:O.isIntersecting)!=null&&D)&&T(x)},n)},g=(x,O)=>{x.isIntersecting?k(O):m()},w=new IntersectionObserver(x=>{for(let O of x)g(O,w)},{rootMargin:r,threshold:0});return w.observe(f),()=>{o.current&&clearTimeout(o.current),l.current&&p(l.current),w.disconnect()}},[t,n,r,i,p,d]),{shouldRender:s,containerRef:u}}var Kf=/\s/,c3=/^\s+$/,d3=new Set(["code","pre","svg","math","annotation"]),h3=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",f3=e=>e.some(t=>h3(t)&&d3.has(t.tagName)),p3=e=>{let t=[],n="",r=!1;for(let i of e){let s=Kf.test(i);s!==r&&n&&(t.push(n),n=""),n+=i,r=s}return n&&t.push(n),t},m3=e=>{let t=[],n="";for(let r of e)Kf.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},g3=(e,t,n,r,i)=>({type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:i?`--sd-animation:sd-${t};--sd-duration:0ms;--sd-easing:${r}`:`--sd-animation:sd-${t};--sd-duration:${n}ms;--sd-easing:${r}`},children:[{type:"text",value:e}]}),b3=(e,t,n,r,i)=>{let s=t.at(-1);if(!(s&&"children"in s))return;if(f3(t))return Dn;let a=s,u=a.children.indexOf(e);if(u===-1)return;let o=e.value;if(!o.trim()){i.count+=o.length;return}let l=n.sep==="char"?m3(o):p3(o),c=r.prevContentLength,d=l.map(p=>{let f=i.count;if(i.count+=p.length,c3.test(p))return{type:"text",value:p};let m=c>0&&f<c;return g3(p,n.animation,n.duration,n.easing,m)});return a.children.splice(u,1,...d),u+d.length},_3=0;function Ra(e){var t,n,r,i;let s={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(r=e?.easing)!=null?r:"ease",sep:(i=e?.sep)!=null?i:"word"},a={prevContentLength:0,lastRenderCharCount:0},u=_3++,o=()=>l=>{let c={count:0};ro(l,"text",(d,p)=>b3(d,p,s,a,c)),a.lastRenderCharCount=c.count,a.prevContentLength=0};return Object.defineProperty(o,"name",{value:`rehypeAnimate$${u}`}),{name:"animate",type:"animate",rehypePlugin:o,setPrevContentLength(l){a.prevContentLength=l},getLastRenderCharCount(){let l=a.lastRenderCharCount;return a.lastRenderCharCount=0,l}}}Ra();var Zf=L.createContext(!1),E3=()=>L.useContext(Zf),Fo=(...e)=>wf(hf(e)),T3=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(r=>r.startsWith(n)?r:`${e}:${r}`).join(" ")},y3=e=>e?(...t)=>T3(e,wf(hf(t))):Fo,Fn=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},Oa=L.createContext(Fo),ie=()=>L.useContext(Oa),k3=Fo("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),x3=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),s=n.slice(r+1).trim();i&&s&&(t[i]=s)}}return t},A3=L.memo(({children:e,result:t,language:n,className:r,startLine:i,...s})=>{let a=ie(),u=L.useMemo(()=>a(k3),[a]),o=L.useMemo(()=>{let l={};return t.bg&&(l["--sdm-bg"]=t.bg),t.fg&&(l["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(l,x3(t.rootStyle)),l},[t.bg,t.fg,t.rootStyle]);return C.jsx("div",{className:a(r,"overflow-hidden rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...s,children:C.jsx("pre",{className:a(r,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:o,children:C.jsx("code",{className:a("[counter-increment:line_0] [counter-reset:line]"),style:i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((l,c)=>C.jsx("span",{className:u,children:l.length===0||l.length===1&&l[0].content===""?`
|
|
262
|
+
`:l.map((d,p)=>{let f={},m=!!d.bgColor;if(d.color&&(f["--sdm-c"]=d.color),d.bgColor&&(f["--sdm-tbg"]=d.bgColor),d.htmlStyle)for(let[T,k]of Object.entries(d.htmlStyle))T==="color"?f["--sdm-c"]=k:T==="background-color"?(f["--sdm-tbg"]=k,m=!0):f[T]=k;return C.jsx("span",{className:a("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",m&&"bg-[var(--sdm-tbg)]",m&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:f,...d.htmlAttrs,children:d.content},p)})},c))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine),C3=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let s=ie();return C.jsx("div",{className:s("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},Jf=L.createContext({code:""}),ep=()=>L.useContext(Jf),I3=({language:e})=>{let t=ie();return C.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:C.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},w3=/\n+$/,S3=L.lazy(()=>b(()=>import("./highlighted-body-TPN3WLV5-CgFTJgdd.js"),__vite__mapDeps([101,102,103])).then(e=>({default:e.HighlightedCodeBlockBody}))),N3=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:s,...a})=>{let u=ie(),o=L.useMemo(()=>e.replace(w3,""),[e]),l=L.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:o.split(`
|
|
263
|
+
`).map(c=>[{content:c,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[o]);return C.jsx(Jf.Provider,{value:{code:e},children:C.jsxs(C3,{isIncomplete:i,language:t,children:[C.jsx(I3,{language:t}),r?C.jsx("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:C.jsx("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:r})}):null,C.jsx(L.Suspense,{fallback:C.jsx(A3,{className:n,language:t,result:l,startLine:s,...a}),children:C.jsx(S3,{className:n,code:o,language:t,raw:l,startLine:s,...a})})]})})},L3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),R3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),O3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),P3=e=>C.jsxs("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[C.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),D3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),v3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),M3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),B3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),F3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),H3=e=>C.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:C.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),mr={CheckIcon:L3,CopyIcon:R3,DownloadIcon:O3,ExternalLinkIcon:B3,Loader2Icon:P3,Maximize2Icon:D3,RotateCcwIcon:v3,XIcon:M3,ZoomInIcon:F3,ZoomOutIcon:H3},tp=L.createContext(mr),U3=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>e[i]===t[i])},nc=({icons:e,children:t})=>{let n=L.useRef(e),r=L.useRef(e?{...mr,...e}:mr);U3(n.current,e)||(n.current=e,r.current=e?{...mr,...e}:mr);let i=r.current;return C.jsx(tp.Provider,{value:i,children:t})},bt=()=>L.useContext(tp),np={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},Pa=L.createContext(np),Bt=()=>L.useContext(Pa),rc=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:s,...a})=>{let u=ie(),[o,l]=L.useState(!1),c=L.useRef(0),{code:d}=ep(),{isAnimating:p}=L.useContext(tt),f=Bt(),m=s??d,T=async()=>{var w;if(typeof window>"u"||!((w=navigator?.clipboard)!=null&&w.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(m),l(!0),e?.(),c.current=window.setTimeout(()=>l(!1),n))}catch(x){t?.(x)}};L.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let k=bt(),g=o?k.CheckIcon:k.CopyIcon;return C.jsx("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:p,onClick:T,title:f.copyCode,type:"button",...a,children:r??C.jsx(g,{size:14})})},ic={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},$3=({onDownload:e,onError:t,language:n,children:r,className:i,code:s,...a})=>{let u=ie(),{code:o}=ep(),{isAnimating:l}=L.useContext(tt),c=Bt(),d=bt(),p=s??o,f=`file.${n&&n in ic?ic[n]:"txt"}`,m="text/plain",T=()=>{try{Fn(f,p,m),e?.()}catch(k){t?.(k)}};return C.jsx("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:l,onClick:T,title:c.downloadFile,type:"button",...a,children:r??C.jsx(d.DownloadIcon,{size:14})})},sc=()=>{let{Loader2Icon:e}=bt(),t=ie();return C.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[C.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),C.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:C.jsx(e,{className:t("size-4 animate-spin")})})]})},j3=/\.[^/.]+$/,V3=({node:e,className:t,src:n,alt:r,onLoad:i,onError:s,...a})=>{let{DownloadIcon:u}=bt(),o=ie(),l=L.useRef(null),[c,d]=L.useState(!1),[p,f]=L.useState(!1),m=Bt(),T=a.width!=null||a.height!=null,k=(c||T)&&!p,g=p&&!T;L.useEffect(()=>{let D=l.current;if(D!=null&&D.complete){let S=D.naturalWidth>0;d(S),f(!S)}},[]);let w=L.useCallback(D=>{d(!0),f(!1),i?.(D)},[i]),x=L.useCallback(D=>{d(!1),f(!0),s?.(D)},[s]),O=async()=>{if(n)try{let D=await(await fetch(n)).blob(),S=new URL(n,window.location.origin).pathname.split("/").pop()||"",G=S.split(".").pop(),M=S.includes(".")&&G!==void 0&&G.length<=4,W="";if(M)W=S;else{let R=D.type,$="png";R.includes("jpeg")||R.includes("jpg")?$="jpg":R.includes("png")?$="png":R.includes("svg")?$="svg":R.includes("gif")?$="gif":R.includes("webp")&&($="webp"),W=`${(r||S||"image").replace(j3,"")}.${$}`}Fn(W,D,D.type)}catch{window.open(n,"_blank")}};return n?C.jsxs("div",{className:o("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[C.jsx("img",{alt:r,className:o("max-w-full rounded-lg",g&&"hidden",t),"data-streamdown":"image",onError:x,onLoad:w,ref:l,src:n,...a}),g&&C.jsx("span",{className:o("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:m.imageNotAvailable}),C.jsx("div",{className:o("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),k&&C.jsx("button",{className:o("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:O,title:m.downloadImage,type:"button",children:C.jsx(u,{size:14})})]}):null},Ir=0,Ho=()=>{Ir+=1,Ir===1&&(document.body.style.overflow="hidden")},Uo=()=>{Ir=Math.max(0,Ir-1),Ir===0&&(document.body.style.overflow="")},z3=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:s,ExternalLinkIcon:a,XIcon:u}=bt(),o=ie(),[l,c]=L.useState(!1),d=Bt(),p=L.useCallback(async()=>{try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch{}},[e]),f=L.useCallback(()=>{r(),n()},[r,n]);return L.useEffect(()=>{if(t){Ho();let m=T=>{T.key==="Escape"&&n()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m),Uo()}}},[t,n]),t?C.jsx("div",{className:o("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:m=>{m.key==="Escape"&&n()},role:"button",tabIndex:0,children:C.jsxs("div",{className:o("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:m=>m.stopPropagation(),onKeyDown:m=>m.stopPropagation(),role:"presentation",children:[C.jsx("button",{className:o("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:d.close,type:"button",children:C.jsx(u,{size:16})}),C.jsxs("div",{className:o("flex flex-col gap-2"),children:[C.jsxs("div",{className:o("flex items-center gap-2 font-semibold text-lg"),children:[C.jsx(a,{size:20}),C.jsx("span",{children:d.openExternalLink})]}),C.jsx("p",{className:o("text-muted-foreground text-sm"),children:d.externalLinkWarning})]}),C.jsx("div",{className:o("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),C.jsxs("div",{className:o("flex gap-2"),children:[C.jsx("button",{className:o("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:l?C.jsxs(C.Fragment,{children:[C.jsx(i,{size:14}),C.jsx("span",{children:d.copied})]}):C.jsxs(C.Fragment,{children:[C.jsx(s,{size:14}),C.jsx("span",{children:d.copyLink})]})}),C.jsxs("button",{className:o("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[C.jsx(a,{size:14}),C.jsx("span",{children:d.openLink})]})]})]})}):null},Da=L.createContext(null),$o=()=>L.useContext(Da),dL=()=>{var e;let t=$o();return(e=t?.code)!=null?e:null},jo=()=>{var e;let t=$o();return(e=t?.mermaid)!=null?e:null},G3=e=>{var t;let n=$o();return n!=null&&n.renderers&&e&&(t=n.renderers.find(r=>Array.isArray(r.language)?r.language.includes(e):r.language===e))!=null?t:null},q3=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,s)=>{let a="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),u=new Image;u.crossOrigin="anonymous",u.onload=()=>{let o=document.createElement("canvas"),l=u.width*r,c=u.height*r;o.width=l,o.height=c;let d=o.getContext("2d");if(!d){s(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(u,0,0,l,c),o.toBlob(p=>{if(!p){s(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},u.onerror=()=>s(new Error("Failed to load SVG image")),u.src=a})},W3=({chart:e,children:t,className:n,onDownload:r,config:i,onError:s})=>{let a=ie(),[u,o]=L.useState(!1),l=L.useRef(null),{isAnimating:c}=L.useContext(tt),d=bt(),p=jo(),f=Bt(),m=async T=>{try{if(T==="mmd"){Fn("diagram.mmd",e,"text/plain"),o(!1),r?.(T);return}if(!p){s?.(new Error("Mermaid plugin not available"));return}let k=p.getMermaid(i),g=e.split("").reduce((O,D)=>(O<<5)-O+D.charCodeAt(0)|0,0),w=`mermaid-${Math.abs(g)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:x}=await k.render(w,e);if(!x){s?.(new Error("SVG not found. Please wait for the diagram to render."));return}if(T==="svg"){Fn("diagram.svg",x,"image/svg+xml"),o(!1),r?.(T);return}if(T==="png"){let O=await q3(x);Fn("diagram.png",O,"image/png"),r?.(T),o(!1);return}}catch(k){s?.(k)}};return L.useEffect(()=>{let T=k=>{let g=k.composedPath();l.current&&!g.includes(l.current)&&o(!1)};return document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)}},[]),C.jsxs("div",{className:a("relative"),ref:l,children:[C.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:c,onClick:()=>o(!u),title:f.downloadDiagram,type:"button",children:t??C.jsx(d.DownloadIcon,{size:14})}),u?C.jsxs("div",{className:a("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[C.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("svg"),title:f.downloadDiagramAsSvg,type:"button",children:f.mermaidFormatSvg}),C.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("png"),title:f.downloadDiagramAsPng,type:"button",children:f.mermaidFormatPng}),C.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("mmd"),title:f.downloadDiagramAsMmd,type:"button",children:f.mermaidFormatMmd})]}):null]})},Y3=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...s})=>{let{Maximize2Icon:a,XIcon:u}=bt(),o=ie(),[l,c]=L.useState(!1),{isAnimating:d,controls:p}=L.useContext(tt),f=Bt(),m=(()=>{if(typeof p=="boolean")return p;let k=p.mermaid;return k===!1?!1:k===!0||k===void 0?!0:k.panZoom!==!1})(),T=()=>{c(!l)};return L.useEffect(()=>{if(l){Ho();let k=g=>{g.key==="Escape"&&c(!1)};return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k),Uo()}}},[l]),L.useEffect(()=>{l?n?.():r&&r()},[l,n,r]),C.jsxs(C.Fragment,{children:[C.jsx("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:d,onClick:T,title:f.viewFullscreen,type:"button",...s,children:C.jsx(a,{size:14})}),l?Sf.createPortal(C.jsxs("div",{className:o("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:T,onKeyDown:k=>{k.key==="Escape"&&T()},role:"button",tabIndex:0,children:[C.jsx("button",{className:o("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:T,title:f.exitFullscreen,type:"button",children:C.jsx(u,{size:20})}),C.jsx("div",{className:o("flex size-full items-center justify-center p-4"),onClick:k=>k.stopPropagation(),onKeyDown:k=>k.stopPropagation(),role:"presentation",children:C.jsx(Mp,{chart:e,className:o("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:m})})]}),document.body):null]})},rp=e=>{var t,n;let r=[],i=[],s=e.querySelectorAll("thead th");for(let u of s)r.push(((t=u.textContent)==null?void 0:t.trim())||"");let a=e.querySelectorAll("tbody tr");for(let u of a){let o=[],l=u.querySelectorAll("td");for(let c of l)o.push(((n=c.textContent)==null?void 0:n.trim())||"");i.push(o)}return{headers:r,rows:i}},ip=e=>{let{headers:t,rows:n}=e,r=u=>{let o=!1,l=!1;for(let c of u){if(c==='"'){o=!0,l=!0;break}(c===","||c===`
|
|
264
|
+
`)&&(o=!0)}return o?l?`"${u.replace(/"/g,'""')}"`:`"${u}"`:u},i=t.length>0?n.length+1:n.length,s=new Array(i),a=0;t.length>0&&(s[a]=t.map(r).join(","),a+=1);for(let u of n)s[a]=u.map(r).join(","),a+=1;return s.join(`
|
|
265
|
+
`)},Q3=e=>{let{headers:t,rows:n}=e,r=u=>{let o=!1;for(let c of u)if(c===" "||c===`
|
|
266
|
+
`||c==="\r"){o=!0;break}if(!o)return u;let l=[];for(let c of u)c===" "?l.push("\\t"):c===`
|
|
267
|
+
`?l.push("\\n"):c==="\r"?l.push("\\r"):l.push(c);return l.join("")},i=t.length>0?n.length+1:n.length,s=new Array(i),a=0;t.length>0&&(s[a]=t.map(r).join(" "),a+=1);for(let u of n)s[a]=u.map(r).join(" "),a+=1;return s.join(`
|
|
268
|
+
`)},Ws=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):n.push(r);return n.join("")},va=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,s=t.map(u=>Ws(u));r[i]=`| ${s.join(" | ")} |`,i+=1;let a=new Array(t.length);for(let u=0;u<t.length;u+=1)a[u]="---";r[i]=`| ${a.join(" | ")} |`,i+=1;for(let u of n)if(u.length<t.length){let o=new Array(t.length);for(let l=0;l<t.length;l+=1)o[l]=l<u.length?Ws(u[l]):"";r[i]=`| ${o.join(" | ")} |`,i+=1}else{let o=u.map(l=>Ws(l));r[i]=`| ${o.join(" | ")} |`,i+=1}return r.join(`
|
|
269
|
+
`)},sp=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let s=ie(),[a,u]=L.useState(!1),[o,l]=L.useState(!1),c=L.useRef(null),d=L.useRef(0),{isAnimating:p}=L.useContext(tt),f=Bt(),m=async g=>{var w,x;if(typeof window>"u"||!((w=navigator?.clipboard)!=null&&w.write)){r?.(new Error("Clipboard API not available"));return}try{let O=(x=c.current)==null?void 0:x.closest('[data-streamdown="table-wrapper"]'),D=O?.querySelector("table");if(!D){r?.(new Error("Table not found"));return}let S=rp(D),G=({csv:ip,tsv:Q3,md:va}[g]||va)(S),M=new ClipboardItem({"text/plain":new Blob([G],{type:"text/plain"}),"text/html":new Blob([D.outerHTML],{type:"text/html"})});await navigator.clipboard.write([M]),l(!0),u(!1),n?.(g),d.current=window.setTimeout(()=>l(!1),i)}catch(O){r?.(O)}};L.useEffect(()=>{let g=w=>{let x=w.composedPath();c.current&&!x.includes(c.current)&&u(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g),window.clearTimeout(d.current)}},[]);let T=bt(),k=o?T.CheckIcon:T.CopyIcon;return C.jsxs("div",{className:s("relative"),ref:c,children:[C.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>u(!a),title:f.copyTable,type:"button",children:e??C.jsx(k,{height:14,width:14})}),a?C.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[C.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("md"),title:f.copyTableAsMarkdown,type:"button",children:f.tableFormatMarkdown}),C.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("csv"),title:f.copyTableAsCsv,type:"button",children:f.tableFormatCsv}),C.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("tsv"),title:f.copyTableAsTsv,type:"button",children:f.tableFormatTsv})]}):null]})},ap=({children:e,className:t,onDownload:n,onError:r})=>{let i=ie(),[s,a]=L.useState(!1),u=L.useRef(null),{isAnimating:o}=L.useContext(tt),l=Bt(),c=bt(),d=p=>{var f;try{let m=(f=u.current)==null?void 0:f.closest('[data-streamdown="table-wrapper"]'),T=m?.querySelector("table");if(!T){r?.(new Error("Table not found"));return}let k=rp(T),g=p==="csv"?ip(k):va(k);Fn(`table.${p==="csv"?"csv":"md"}`,g,p==="csv"?"text/csv":"text/markdown"),a(!1),n?.(p)}catch(m){r?.(m)}};return L.useEffect(()=>{let p=f=>{let m=f.composedPath();u.current&&!m.includes(u.current)&&a(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]),C.jsxs("div",{className:i("relative"),ref:u,children:[C.jsx("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>a(!s),title:l.downloadTable,type:"button",children:e??C.jsx(c.DownloadIcon,{size:14})}),s?C.jsxs("div",{className:i("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[C.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>d("csv"),title:l.downloadTableAsCsv,type:"button",children:l.tableFormatCsv}),C.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>d("markdown"),title:l.downloadTableAsMarkdown,type:"button",children:l.tableFormatMarkdown})]}):null]})},X3=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:s}=bt(),a=ie(),[u,o]=L.useState(!1),{isAnimating:l}=L.useContext(tt),c=Bt(),d=()=>{o(!0)},p=()=>{o(!1)};return L.useEffect(()=>{if(u){Ho();let f=m=>{m.key==="Escape"&&o(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),Uo()}}},[u]),C.jsxs(C.Fragment,{children:[C.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:d,title:c.viewFullscreen,type:"button",children:C.jsx(i,{size:14})}),u?Sf.createPortal(C.jsx("div",{"aria-label":c.viewFullscreen,"aria-modal":"true",className:a("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:f=>{f.key==="Escape"&&p()},role:"dialog",children:C.jsxs("div",{className:a("flex h-full flex-col"),onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:[C.jsxs("div",{className:a("flex items-center justify-end gap-1 p-4"),children:[n?C.jsx(sp,{}):null,r?C.jsx(ap,{}):null,C.jsx("button",{className:a("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:c.exitFullscreen,type:"button",children:C.jsx(s,{size:20})})]}),C.jsx("div",{className:a("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:C.jsx("table",{className:a("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},K3=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:s=!0,...a})=>{let u=ie(),o=n&&r,l=n&&i,c=n&&s,d=o||l||c;return C.jsxs("div",{className:u("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[d?C.jsxs("div",{className:u("flex items-center justify-end gap-1"),children:[o?C.jsx(sp,{}):null,l?C.jsx(ap,{}):null,c?C.jsx(X3,{showCopy:o,showDownload:l,children:e}):null]}):null,C.jsx("div",{className:u("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:C.jsx("table",{className:u("w-full divide-y divide-border",t),"data-streamdown":"table",...a,children:e})})]})},Z3=/startLine=(\d+)/,J3=L.lazy(()=>b(()=>Promise.resolve().then(()=>rL),void 0).then(e=>({default:e.Mermaid}))),eN=/language-([^\s]+)/;function us(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,s=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===s?.line&&i?.column===s?.column}function Te(e,t){return e.className===t.className&&us(e.node,t.node)}var Ma=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Ys=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},ac=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},ui=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Vo=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>Te(e,t));Vo.displayName="MarkdownOl";var op=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>e.className===t.className&&us(e.node,t.node));op.displayName="MarkdownLi";var up=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>Te(e,t));up.displayName="MarkdownUl";var lp=L.memo(({className:e,node:t,...n})=>{let r=ie();return C.jsx("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>Te(e,t));lp.displayName="MarkdownHr";var cp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>Te(e,t));cp.displayName="MarkdownStrong";var tN=({children:e,className:t,href:n,node:r,...i})=>{let s=ie(),{linkSafety:a}=L.useContext(tt),[u,o]=L.useState(!1),l=n==="streamdown:incomplete-link",c=L.useCallback(async m=>{if(!(!(a!=null&&a.enabled&&n)||l)){if(m.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}o(!0)}},[a,n,l]),d=L.useCallback(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p=L.useCallback(()=>{o(!1)},[]),f={url:n??"",isOpen:u,onClose:p,onConfirm:d};return a!=null&&a.enabled&&n?C.jsxs(C.Fragment,{children:[C.jsx("button",{className:s("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":l,"data-streamdown":"link",onClick:c,type:"button",children:e}),a.renderModal?a.renderModal(f):C.jsx(z3,{...f})]}):C.jsx("a",{className:s("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":l,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},dp=L.memo(tN,(e,t)=>Te(e,t)&&e.href===t.href);dp.displayName="MarkdownA";var hp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>Te(e,t));hp.displayName="MarkdownH1";var fp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>Te(e,t));fp.displayName="MarkdownH2";var pp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>Te(e,t));pp.displayName="MarkdownH3";var mp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>Te(e,t));mp.displayName="MarkdownH4";var gp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>Te(e,t));gp.displayName="MarkdownH5";var bp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>Te(e,t));bp.displayName="MarkdownH6";var _p=L.memo(({children:e,className:t,node:n,...r})=>{let{controls:i}=L.useContext(tt),s=Ma(i,"table"),a=Ys(i,"copy"),u=Ys(i,"download"),o=Ys(i,"fullscreen");return C.jsx(K3,{className:t,showControls:s,showCopy:a,showDownload:u,showFullscreen:o,...r,children:e})},(e,t)=>Te(e,t));_p.displayName="MarkdownTable";var Ep=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>Te(e,t));Ep.displayName="MarkdownThead";var Tp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>Te(e,t));Tp.displayName="MarkdownTbody";var yp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>Te(e,t));yp.displayName="MarkdownTr";var kp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>Te(e,t));kp.displayName="MarkdownTh";var xp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>Te(e,t));xp.displayName="MarkdownTd";var Ap=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>Te(e,t));Ap.displayName="MarkdownBlockquote";var Cp=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>Te(e,t));Cp.displayName="MarkdownSup";var Ip=L.memo(({children:e,className:t,node:n,...r})=>{let i=ie();return C.jsx("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>Te(e,t));Ip.displayName="MarkdownSub";var wp=L.memo(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=a=>{var u,o;if(!L.isValidElement(a))return!1;let l=Array.isArray(a.props.children)?a.props.children:[a.props.children],c=!1,d=!1;for(let p of l)if(p){if(typeof p=="string")p.trim()!==""&&(c=!0);else if(L.isValidElement(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)d=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let m of f){if(typeof m=="string"&&m.trim()!==""){c=!0;break}if(L.isValidElement(m)&&((o=m.props)==null?void 0:o["data-footnote-backref"])===void 0){c=!0;break}}}}return d&&!c},s=Array.isArray(e)?e.map(a=>{if(!L.isValidElement(a))return a;if(a.type===Vo){let u=(Array.isArray(a.props.children)?a.props.children:[a.props.children]).filter(o=>!i(o));return u.length===0?null:{...a,props:{...a.props,children:u}}}return a}):e;return(Array.isArray(s)?s.some(a=>a!==null):s!==null)?C.jsx("section",{className:t,...r,children:s}):null}return C.jsx("section",{className:t,...r,children:e})},(e,t)=>Te(e,t));wp.displayName="MarkdownSection";var nN=({node:e,className:t,children:n,...r})=>{var i,s;let a=ie(),u=!("data-block"in r),{mermaid:o,controls:l}=L.useContext(tt),c=jo(),d=E3(),p=t?.match(eN),f=(i=p?.at(1))!=null?i:"",m=G3(f);if(u)return C.jsx("code",{className:a("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let T=(s=e?.properties)==null?void 0:s.metastring,k=T?.match(Z3),g=k?Number.parseInt(k[1],10):void 0,w=g!==void 0&&g>=1?g:void 0,x="";if(L.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?x=n.props.children:typeof n=="string"&&(x=n),m){let G=m.component;return C.jsx(L.Suspense,{fallback:C.jsx(sc,{}),children:C.jsx(G,{code:x,isIncomplete:d,language:f})})}if(f==="mermaid"&&c){let G=Ma(l,"mermaid"),M=ui(l,"download"),W=ui(l,"copy"),R=ui(l,"fullscreen"),$=ui(l,"panZoom"),j=G&&(M||W||R);return C.jsx(L.Suspense,{fallback:C.jsx(sc,{}),children:C.jsxs("div",{className:a("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[C.jsx("div",{className:a("flex h-8 items-center text-muted-foreground text-xs"),children:C.jsx("span",{className:a("ml-1 font-mono lowercase"),children:"mermaid"})}),j?C.jsx("div",{className:a("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:C.jsxs("div",{className:a("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[M?C.jsx(W3,{chart:x,config:o?.config}):null,W?C.jsx(rc,{code:x}):null,R?C.jsx(Y3,{chart:x,config:o?.config}):null]})}):null,C.jsx("div",{className:a("rounded-md border border-border bg-background"),children:C.jsx(J3,{chart:x,config:o?.config,showControls:$})})]})})}let O=Ma(l,"code"),D=ac(l,"download"),S=ac(l,"copy");return C.jsx(N3,{className:t,code:x,isIncomplete:d,language:f,startLine:w,children:O?C.jsxs(C.Fragment,{children:[D?C.jsx($3,{code:x,language:f}):null,S?C.jsx(rc,{}):null]}):null})},Sp=L.memo(nN,(e,t)=>e.className===t.className&&us(e.node,t.node));Sp.displayName="MarkdownCode";var Np=L.memo(V3,(e,t)=>e.className===t.className&&us(e.node,t.node));Np.displayName="MarkdownImg";var Lp=L.memo(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&L.isValidElement(r[0])){let i=r[0].props.node,s=i?.tagName;if(s==="img")return C.jsx(C.Fragment,{children:e});if(s==="code"&&"data-block"in r[0].props)return C.jsx(C.Fragment,{children:e})}return C.jsx("p",{...n,children:e})},(e,t)=>Te(e,t));Lp.displayName="MarkdownParagraph";var rN={ol:Vo,li:op,ul:up,hr:lp,strong:cp,a:dp,h1:hp,h2:fp,h3:pp,h4:mp,h5:gp,h6:bp,table:_p,thead:Ep,tbody:Tp,tr:yp,th:kp,td:xp,blockquote:Ap,code:Sp,img:Np,pre:({children:e})=>L.isValidElement(e)?L.cloneElement(e,{"data-block":"true"}):e,sup:Cp,sub:Ip,p:Lp,section:wp},iN=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,sN=new RegExp("\\p{L}","u");function oc(e){let t=e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"");for(let n of t){if(iN.test(n))return"rtl";if(sN.test(n))return"ltr"}return"ltr"}var aN=/^[ \t]{0,3}(`{3,}|~{3,})/,oN=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,uc=e=>{let t=e.split(`
|
|
270
|
+
`),n=null,r=0;for(let i of t){let s=aN.exec(i);if(n===null){if(s){let a=s[1];n=a[0],r=a.length}}else if(s){let a=s[1],u=a[0],o=a.length;u===n&&o>=r&&(n=null,r=0)}}return n!==null},uN=e=>{let t=e.split(`
|
|
271
|
+
`);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&oN.test(r))return!0}return!1},lN=()=>e=>{xt(e,"html",(t,n,r)=>{!r||typeof n!="number"||(r.children[n]={type:"text",value:t.value})})},lc=[],cc={allowDangerousHtml:!0},li=new WeakMap,cN=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let c="default";return this.keyCache.set(e,c),c}let s=c=>{if(!c||c.length===0)return"";let d="";for(let p=0;p<c.length;p+=1){let f=c[p];if(p>0&&(d+=","),Array.isArray(f)){let[m,T]=f;if(typeof m=="function"){let k=li.get(m);k||(k=m.name,li.set(m,k)),d+=k}else d+=String(m);d+=":",d+=JSON.stringify(T)}else if(typeof f=="function"){let m=li.get(f);m||(m=f.name,li.set(f,m)),d+=m}else d+=String(f)}return d},a=s(n),u=s(r),o=i?JSON.stringify(i):"",l=`${u}::${a}::${o}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},dc=new cN,Rp=e=>{let t=dN(e),n=e.children||"",r=t.runSync(t.parse(n),n);return bN(r,e)},dN=e=>{let t=dc.get(e);if(t)return t;let n=fN(e);return dc.set(e,n),n},hN=e=>e.some(t=>Array.isArray(t)?t[0]===Ea:t===Ea),fN=e=>{let t=e.rehypePlugins||lc,n=e.remarkPlugins||lc,r=hN(t)?n:[...n,lN],i=e.remarkRehypeOptions?{...cc,...e.remarkRehypeOptions}:cc;return fS().use(hw).use(r).use(Yw,i).use(t)},Op=e=>e,pN=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},mN=(e,t)=>{var n;for(let r in Fs)if(Object.hasOwn(Fs,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],s=Fs[r];(s===null||s.includes(e.tagName))&&(e.properties[r]=(n=t(String(i||""),r,e))!=null?n:void 0)}},gN=(e,t,n,r,i,s)=>{let a=!1;return r?a=!r.includes(e.tagName):i&&(a=i.includes(e.tagName)),!a&&s&&typeof t=="number"&&(a=!s(e,t,n)),a},bN=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:s,unwrapDisallowed:a,urlTransform:u}=t;if(n||r||i||s||u){let o=u||Op;xt(e,(l,c,d)=>{if(l.type==="raw"&&d&&typeof c=="number")return pN(d,c,s,l.value),c;if(l.type==="element"&&(mN(l,o),gN(l,c,d,r,i,n)&&d&&typeof c=="number"))return a&&l.children?d.children.splice(c,1,...l.children):d.children.splice(c,1),c})}return gI(e,{Fragment:C.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0})},_N=/\[\^[\w-]{1,200}\](?!:)/,EN=/\[\^[\w-]{1,200}\]:/,TN=/<(\w+)[\s>]/,yN=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),hc=new Map,fc=new Map,kN=e=>{let t=e.toLowerCase(),n=hc.get(t);if(n)return n;let r=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return hc.set(t,r),r},xN=e=>{let t=e.toLowerCase(),n=fc.get(t);if(n)return n;let r=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return fc.set(t,r),r},pc=(e,t)=>{if(yN.has(t.toLowerCase()))return 0;let n=e.match(kN(t));if(!n)return 0;let r=0;for(let i of n)i.trimEnd().endsWith("/>")||(r+=1);return r},mc=(e,t)=>{let n=e.match(xN(t));return n?n.length:0},AN=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},CN=e=>{let t=_N.test(e),n=EN.test(e);if(t||n)return[e];let r=at.lex(e,{gfm:!0}),i=[],s=[],a=!1;for(let u of r){let o=u.raw,l=i.length;if(s.length>0){i[l-1]+=o;let c=s.at(-1),d=pc(o,c),p=mc(o,c);for(let f=0;f<d;f+=1)s.push(c);for(let f=0;f<p;f+=1)s.length>0&&s.at(-1)===c&&s.pop();continue}if(u.type==="html"&&u.block){let c=o.match(TN);if(c){let d=c[1],p=pc(o,d),f=mc(o,d);p>f&&s.push(d)}}if(l>0&&!a){let c=i[l-1];if(AN(c)%2===1){i[l-1]=c+o;continue}}i.push(o),u.type!=="space"&&(a=u.type==="code")}return i},IN=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(s,a,u,o)=>{let l=u.replace(/\n\n/g,`
|
|
272
|
+
<!---->
|
|
273
|
+
`);return a+l+o})}return n},wN=/([\\`*_~[\]|])/g,SN=e=>e.replace(wN,"\\$1"),NN=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(s,a,u,o)=>a+SN(u)+o)}return n},Pp=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(Pp).join(""):"",LN=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(r=>r.toLowerCase()));xt(t,"element",r=>{if(n.has(r.tagName.toLowerCase())){let i=Pp(r);r.children=i?[{type:"text",value:i}]:[]}})},RN=()=>e=>{xt(e,"code",t=>{var n,r;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(r=t.data.hProperties)!=null?r:{},metastring:t.meta})})},ON=/^[ \t]*<[\w!/?-]/,PN=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,DN=e=>typeof e!="string"||e.length===0||!ON.test(e)?e:e.replace(PN,"$1"),gc,bc,_c,Ec,gi={...un,protocols:{...un.protocols,href:[...(bc=(gc=un.protocols)==null?void 0:gc.href)!=null?bc:[],"tel"]},attributes:{...un.attributes,code:[...(Ec=(_c=un.attributes)==null?void 0:_c.code)!=null?Ec:[],"metastring"]}},Ba={raw:Ea,sanitize:[Ah,gi],harden:[Xb,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},vN={gfm:[oA,{}],codeMeta:RN},Tc=Object.values(Ba),MN=Object.values(vN),BN={block:" ▋",circle:" ●"},FN={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},tt=L.createContext(FN),Dp=L.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:s,animatePlugin:a,...u})=>{if(a){let c=a.getLastRenderCharCount();a.setPrevContentLength(c)}let o=typeof e=="string"&&n?DN(e):e,l=C.jsx(Rp,{...u,children:o});return C.jsx(Zf.Provider,{value:i,children:s?C.jsx("div",{dir:s,style:{display:"contents"},children:l}):l})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var s,a;return((s=e.components)==null?void 0:s[i])!==((a=t.components)==null?void 0:a[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});Dp.displayName="Block";var HN=["github-light","github-dark"],vp=L.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:s,rehypePlugins:a=Tc,remarkPlugins:u=MN,className:o,shikiTheme:l=HN,mermaid:c,controls:d=!0,isAnimating:p=!1,animated:f,BlockComponent:m=Dp,parseMarkdownIntoBlocksFn:T=CN,caret:k,plugins:g,remend:w,linkSafety:x={enabled:!0},allowedTags:O,literalTagContent:D,translations:S,icons:G,prefix:M,onAnimationStart:W,onAnimationEnd:R,...$})=>{let j=L.useId(),[ne,q]=L.useTransition(),H=L.useMemo(()=>y3(M),[M]),z=L.useRef(null),K=L.useRef(W),ye=L.useRef(R);K.current=W,ye.current=R,L.useEffect(()=>{var se,_e,qe;if(t==="static")return;let ct=z.current;if(z.current=p,ct===null){p&&((se=K.current)==null||se.call(K));return}p&&!ct?(_e=K.current)==null||_e.call(K):!p&&ct&&((qe=ye.current)==null||qe.call(ye))},[p,t]);let ve=L.useMemo(()=>O?Object.keys(O):[],[O]),y=L.useMemo(()=>{if(typeof e!="string")return"";let se=t==="streaming"&&r?pC(e,w):e;return D&&D.length>0&&(se=NN(se,D)),ve.length>0&&(se=IN(se,ve)),se},[e,t,r,w,ve,D]),Ae=L.useMemo(()=>T(y),[y,T]),[ze,I]=L.useState(Ae);L.useEffect(()=>{t==="streaming"&&!Me?q(()=>{I(Ae)}):I(Ae)},[Ae,t]);let me=t==="streaming"?ze:Ae,ge=L.useMemo(()=>n==="auto"?me.map(oc):void 0,[me,n]),oe=L.useMemo(()=>me.map((se,_e)=>`${j}-${_e}`),[me.length,j]),Ge=L.useMemo(()=>f===!0?"true":f?JSON.stringify(f):"",[f]),Me=L.useMemo(()=>Ge?Ge==="true"?Ra():Ra(f):null,[Ge]),de=L.useMemo(()=>{var se,_e;return{shikiTheme:(_e=(se=g?.code)==null?void 0:se.getThemes())!=null?_e:l,controls:d,isAnimating:p,mode:t,mermaid:c,linkSafety:x}},[l,d,p,t,c,x,g?.code]),lt=L.useMemo(()=>S?JSON.stringify(S):"",[S]),nt=L.useMemo(()=>({...np,...S}),[lt]),wt=L.useMemo(()=>{let{inlineCode:se,..._e}=s??{},qe={...rN,..._e};if(se){let ct=qe.code;qe.code=Jt=>"data-block"in Jt?ct?L.createElement(ct,Jt):null:L.createElement(se,Jt)}return qe},[s]),Ft=L.useMemo(()=>{let se=[];return g!=null&&g.cjk&&(se=[...se,...g.cjk.remarkPluginsBefore]),se=[...se,...u],g!=null&&g.cjk&&(se=[...se,...g.cjk.remarkPluginsAfter]),g!=null&&g.math&&(se=[...se,g.math.remarkPlugin]),se},[u,g?.math,g?.cjk]),St=L.useMemo(()=>{var se;let _e=a;if(O&&Object.keys(O).length>0&&a===Tc){let qe={...gi,tagNames:[...(se=gi.tagNames)!=null?se:[],...Object.keys(O)],attributes:{...gi.attributes,...O}};_e=[Ba.raw,[Ah,qe],Ba.harden]}return D&&D.length>0&&(_e=[..._e,[LN,D]]),g!=null&&g.math&&(_e=[..._e,g.math.rehypePlugin]),Me&&p&&(_e=[..._e,Me.rehypePlugin]),_e},[a,g?.math,Me,p,O,D]),xn=L.useMemo(()=>{if(!p||me.length===0)return!1;let se=me.at(-1);return uc(se)||uN(se)},[p,me]),qr=L.useMemo(()=>k&&p&&!xn?{"--streamdown-caret":`"${BN[k]}"`}:void 0,[k,p,xn]);return t==="static"?C.jsx(Pa.Provider,{value:nt,children:C.jsx(Da.Provider,{value:g??null,children:C.jsx(tt.Provider,{value:de,children:C.jsx(nc,{icons:G,children:C.jsx(Oa.Provider,{value:H,children:C.jsx("div",{className:H("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",o),dir:n==="auto"?oc(y):n,children:C.jsx(Rp,{components:wt,rehypePlugins:St,remarkPlugins:Ft,...$,children:y})})})})})})}):C.jsx(Pa.Provider,{value:nt,children:C.jsx(Da.Provider,{value:g??null,children:C.jsx(tt.Provider,{value:de,children:C.jsx(nc,{icons:G,children:C.jsx(Oa.Provider,{value:H,children:C.jsxs("div",{className:H("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",k&&!xn?"*:last:after:inline *:last:after:align-baseline *:last:after:content-[var(--streamdown-caret)]":null,o),style:qr,children:[me.length===0&&k&&p&&C.jsx("span",{}),me.map((se,_e)=>{var qe;let ct=_e===me.length-1,Jt=p&&ct&&uc(se);return C.jsx(m,{animatePlugin:Me,components:wt,content:se,dir:(qe=ge?.[_e])!=null?qe:n!=="auto"?n:void 0,index:_e,isIncomplete:Jt,rehypePlugins:St,remarkPlugins:Ft,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...$},oe[_e])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);vp.displayName="Streamdown";var UN=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:s=!0,initialZoom:a=1,fullscreen:u=!1})=>{let{RotateCcwIcon:o,ZoomInIcon:l,ZoomOutIcon:c}=bt(),d=ie(),p=L.useRef(null),f=L.useRef(null),[m,T]=L.useState(a),[k,g]=L.useState({x:0,y:0}),[w,x]=L.useState(!1),[O,D]=L.useState({x:0,y:0}),[S,G]=L.useState({x:0,y:0}),M=L.useCallback(z=>{T(K=>Math.max(n,Math.min(r,K+z)))},[n,r]),W=L.useCallback(()=>{M(i)},[M,i]),R=L.useCallback(()=>{M(-i)},[M,i]),$=L.useCallback(()=>{T(a),g({x:0,y:0})},[a]),j=L.useCallback(z=>{z.preventDefault();let K=z.deltaY>0?-i:i;M(K)},[M,i]),ne=L.useCallback(z=>{if(z.button!==0||z.isPrimary===!1)return;x(!0),D({x:z.clientX,y:z.clientY}),G(k);let K=z.currentTarget;K instanceof HTMLElement&&K.setPointerCapture(z.pointerId)},[k]),q=L.useCallback(z=>{if(!w)return;z.preventDefault();let K=z.clientX-O.x,ye=z.clientY-O.y;g({x:S.x+K,y:S.y+ye})},[w,O,S]),H=L.useCallback(z=>{x(!1);let K=z.currentTarget;K instanceof HTMLElement&&K.releasePointerCapture(z.pointerId)},[]);return L.useEffect(()=>{let z=p.current;if(z)return z.addEventListener("wheel",j,{passive:!1}),()=>{z.removeEventListener("wheel",j)}},[j]),L.useEffect(()=>{let z=f.current;if(z&&w)return document.body.style.userSelect="none",z.addEventListener("pointermove",q,{passive:!1}),z.addEventListener("pointerup",H),z.addEventListener("pointercancel",H),()=>{document.body.style.userSelect="",z.removeEventListener("pointermove",q),z.removeEventListener("pointerup",H),z.removeEventListener("pointercancel",H)}},[w,q,H]),C.jsxs("div",{className:d("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",t),ref:p,style:{cursor:w?"grabbing":"grab"},children:[s?C.jsxs("div",{className:d("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[C.jsx("button",{className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m>=r,onClick:W,title:"Zoom in",type:"button",children:C.jsx(l,{size:16})}),C.jsx("button",{className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m<=n,onClick:R,title:"Zoom out",type:"button",children:C.jsx(c,{size:16})}),C.jsx("button",{className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:$,title:"Reset zoom and pan",type:"button",children:C.jsx(o,{size:16})})]}):null,C.jsx("div",{className:d("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:ne,ref:f,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${m})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Mp=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let s=ie(),[a,u]=L.useState(null),[o,l]=L.useState(!1),[c,d]=L.useState(""),[p,f]=L.useState(""),[m,T]=L.useState(0),{mermaid:k}=L.useContext(tt),g=jo(),w=k?.errorComponent,{shouldRender:x,containerRef:O}=l3({immediate:r});if(L.useEffect(()=>{if(x){if(!g){u("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{u(null),l(!0);let S=g.getMermaid(n),G=e.split("").reduce((R,$)=>(R<<5)-R+$.charCodeAt(0)|0,0),M=`mermaid-${Math.abs(G)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:W}=await S.render(M,e);d(W),f(W)}catch(S){if(!(p||c)){let G=S instanceof Error?S.message:"Failed to render Mermaid chart";u(G)}}finally{l(!1)}})()}},[e,n,m,x,g]),!(x||c||p))return C.jsx("div",{className:s("my-4 min-h-[200px]",t),ref:O});if(o&&!c&&!p)return C.jsx("div",{className:s("my-4 flex justify-center p-4",t),ref:O,children:C.jsxs("div",{className:s("flex items-center space-x-2 text-muted-foreground"),children:[C.jsx("div",{className:s("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),C.jsx("span",{className:s("text-sm"),children:"Loading diagram..."})]})});if(a&&!c&&!p){let S=()=>T(G=>G+1);return w?C.jsx("div",{ref:O,children:C.jsx(w,{chart:e,error:a,retry:S})}):C.jsxs("div",{className:s("rounded-md bg-red-50 p-4",t),ref:O,children:[C.jsxs("p",{className:s("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",a]}),C.jsxs("details",{className:s("mt-2"),children:[C.jsx("summary",{className:s("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),C.jsx("pre",{className:s("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let D=c||p;return C.jsx("div",{className:s("size-full",t),"data-streamdown":"mermaid",ref:O,children:C.jsx(UN,{className:s(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:C.jsx("div",{"aria-label":"Mermaid chart",className:s("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:D},role:"img"})})})};const $N=/^[a-z][a-z0-9+.-]*:/i,jN=/^[a-z]:[\\/]/i,Bp=/\.(?:md|markdown)$/i,Fp="https://vibelet.local",Hp="/__vibelet_markdown__",VN=`${Fp}${Hp}`;function zN(e){try{return decodeURIComponent(e)}catch{return e}}function zo(e){const t=e?.trim()??"";if(!t||t.startsWith("#")||t.startsWith("//"))return null;const n=qN(t);if(n)return n;if($N.test(t)&&!jN.test(t))return null;const r=t.split(/[?#]/,1)[0]??"";return Bp.test(r)?zN(r):null}function GN(e){const t=e.split(`
|
|
274
|
+
`);let n=null;return t.map(r=>{const i=r.match(/^ {0,3}(`{3,}|~{3,})/);if(i){const s=i[1][0];return n===s?n=null:n||(n=s),r}return n?r:WN(r)}).join(`
|
|
275
|
+
`)}function qN(e){let t;try{t=new URL(e)}catch{return null}if(t.origin!==Fp||t.pathname!==Hp)return null;const n=t.searchParams.get("path");return!n||!Bp.test(n)?null:n}function WN(e){let t="",n=0;for(;n<e.length;){if(e[n]==="`"){const r=YN(e,n);t+=e.slice(n,r),n=r;continue}if(e[n]==="["&&e[n-1]!=="!"){const r=QN(e,n);if(r){t+=r.text,n=r.end;continue}}t+=e[n],n+=1}return t}function YN(e,t){let n=0;for(;e[t+n]==="`";)n+=1;const r="`".repeat(n),i=e.indexOf(r,t+n);return i<0?e.length:i+n}function QN(e,t){const n=XN(e,t);if(n<0||e[n+1]!=="(")return null;const r=n+2,i=KN(e,r);if(i<0)return null;const s=e.slice(r,i),a=ZN(s);return a?{text:`${e.slice(t,r)}${a})`,end:i+1}:null}function XN(e,t){let n=!1;for(let r=t+1;r<e.length;r+=1){const i=e[r];if(n){n=!1;continue}if(i==="\\"){n=!0;continue}if(i==="]")return r}return-1}function KN(e,t){let n=!1;for(let r=t;r<e.length;r+=1){const i=e[r];if(n){n=!1;continue}if(i==="\\"){n=!0;continue}if(i===")")return r}return-1}function ZN(e){const t=e.match(/^\s*/)?.[0]??"",n=e.match(/\s*$/)?.[0]??"",r=e.slice(t.length,e.length-n.length);if(r.startsWith("<")){const a=r.indexOf(">");if(a<0)return null;const u=r.slice(1,a),o=yc(u);return o?`${t}<${o}>${r.slice(a+1)}${n}`:null}const i=r.match(/^(\S+)([\s\S]*)$/);if(!i)return null;const s=yc(i[1]);return s?`${t}${s}${i[2]}${n}`:null}function yc(e){const t=zo(e);return t?`${VN}?path=${encodeURIComponent(t)}`:null}const JN={code:Vb},eL=(e,t,n)=>zo(e)?e:Op(e);function tL(e){if(!(e instanceof Element))return null;const t=e.closest("a[href]");return t instanceof HTMLAnchorElement?t:null}function nL({baseCwd:e,content:t,onOpenRemoteFile:n}){const r=L.useMemo(()=>GN(t),[t]),i=s=>{if(s.defaultPrevented||s.button!==0)return;const a=tL(s.target),u=zo(a?.getAttribute("href"));u&&(s.preventDefault(),n(u,e))};return C.jsx("div",{className:"message-markdown",onClick:i,children:C.jsx(vp,{isAnimating:!1,linkSafety:{enabled:!1},plugins:JN,urlTransform:eL,children:r})})}const hL=Object.freeze(Object.defineProperty({__proto__:null,MessageMarkdown:nL},Symbol.toStringTag,{value:"Module"})),rL=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:Mp},Symbol.toStringTag,{value:"Module"}));export{A3 as B,dL as M,tt as R,hL as a};
|