@alivault/pico 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +17 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/assets/abap-smLpETzL.js +1 -0
- package/.output/public/assets/actionscript-3-o-aRvjY5.js +1 -0
- package/.output/public/assets/ada-D5RRX1i4.js +1 -0
- package/.output/public/assets/andromeeda-N4z3YzmR.js +1 -0
- package/.output/public/assets/angular-html-BZNntD0J.js +1 -0
- package/.output/public/assets/angular-ts-SQQMYL2C.js +1 -0
- package/.output/public/assets/apache-DttKlSqg.js +1 -0
- package/.output/public/assets/apex-DL7j-a2n.js +1 -0
- package/.output/public/assets/apl-D5V6uPDr.js +1 -0
- package/.output/public/assets/applescript-DCbL_2FX.js +1 -0
- package/.output/public/assets/ara-DqheWJCe.js +1 -0
- package/.output/public/assets/asciidoc-BH2sf2K4.js +1 -0
- package/.output/public/assets/asm-rfjOMz3U.js +1 -0
- package/.output/public/assets/astro-DeXKSaFP.js +1 -0
- package/.output/public/assets/aurora-x-CND-FqEb.js +1 -0
- package/.output/public/assets/awk-CMV5n9Z7.js +1 -0
- package/.output/public/assets/ayu-dark-on7xzq_B.js +1 -0
- package/.output/public/assets/ayu-light-DnGeGGc2.js +1 -0
- package/.output/public/assets/ayu-mirage-DG3LlYC_.js +1 -0
- package/.output/public/assets/ballerina-BjMqJjlr.js +1 -0
- package/.output/public/assets/bat-BaVbo_qw.js +1 -0
- package/.output/public/assets/beancount-DBt5Mbc_.js +1 -0
- package/.output/public/assets/berry-Cyjuxiss.js +1 -0
- package/.output/public/assets/bibtex-BV_0nsPq.js +1 -0
- package/.output/public/assets/bicep-C2gEwu4J.js +1 -0
- package/.output/public/assets/bird2-BRyaEJd0.js +1 -0
- package/.output/public/assets/blade-Bu5re0Vg.js +1 -0
- package/.output/public/assets/bsl-B1qbqNES.js +1 -0
- package/.output/public/assets/c-Nc9zJT78.js +1 -0
- package/.output/public/assets/c3-DTTbp5N2.js +1 -0
- package/.output/public/assets/cadence-CPz83cmI.js +1 -0
- package/.output/public/assets/cairo-BDj8wWhy.js +1 -0
- package/.output/public/assets/catppuccin-frappe-Dr22sraq.js +1 -0
- package/.output/public/assets/catppuccin-latte-C57EeX8c.js +1 -0
- package/.output/public/assets/catppuccin-macchiato-CpheI4uD.js +1 -0
- package/.output/public/assets/catppuccin-mocha-D8Lmdks_.js +1 -0
- package/.output/public/assets/clarity-CFJ2Yc3q.js +1 -0
- package/.output/public/assets/clojure-6R01QgJC.js +1 -0
- package/.output/public/assets/cmake-D5rSbMir.js +1 -0
- package/.output/public/assets/cobol-nvZDS9LT.js +1 -0
- package/.output/public/assets/codeowners-_3A-ClkN.js +1 -0
- package/.output/public/assets/codeql-DlIhJTR7.js +1 -0
- package/.output/public/assets/coffee-BKLOTq4e.js +1 -0
- package/.output/public/assets/common-lisp-BvQzz173.js +1 -0
- package/.output/public/assets/coq-DTNXReIC.js +1 -0
- package/.output/public/assets/cpp-D6g1DVNt.js +1 -0
- package/.output/public/assets/crystal-DfoZI57w.js +1 -0
- package/.output/public/assets/csharp-BDKQY1K9.js +1 -0
- package/.output/public/assets/css-DRmnABqB.js +1 -0
- package/.output/public/assets/csv-DNUpVBxl.js +1 -0
- package/.output/public/assets/cue-DDdBc2s3.js +1 -0
- package/.output/public/assets/cypher-CguaznO2.js +1 -0
- package/.output/public/assets/d-CHcoyjv3.js +1 -0
- package/.output/public/assets/dark-plus-CqeW_0kH.js +1 -0
- package/.output/public/assets/dart-RM3aRphk.js +1 -0
- package/.output/public/assets/dax-nbnY1d79.js +1 -0
- package/.output/public/assets/desktop-BD76cvxT.js +1 -0
- package/.output/public/assets/diff-CdkWtnkL.js +1 -0
- package/.output/public/assets/docker-ZyPHc6zB.js +1 -0
- package/.output/public/assets/dotenv-BdJZEwA6.js +1 -0
- package/.output/public/assets/dracula-CtqCPLGa.js +1 -0
- package/.output/public/assets/dracula-soft-DmBpwRAy.js +1 -0
- package/.output/public/assets/dream-maker-BJL4qlg3.js +1 -0
- package/.output/public/assets/edge-DwocGnOF.js +1 -0
- package/.output/public/assets/elixir-Dtbfds1r.js +1 -0
- package/.output/public/assets/elm-CpPtm471.js +1 -0
- package/.output/public/assets/emacs-lisp-_LyYa2Ky.js +1 -0
- package/.output/public/assets/erb--z3IM9Cb.js +1 -0
- package/.output/public/assets/erlang-Bc4hQuqa.js +1 -0
- package/.output/public/assets/everforest-dark-CrbyKk4n.js +1 -0
- package/.output/public/assets/everforest-light-DRbSh8Tm.js +1 -0
- package/.output/public/assets/fennel-CC2BkRsS.js +1 -0
- package/.output/public/assets/fish-D2ZCzqcE.js +1 -0
- package/.output/public/assets/fluent-DKAm3m7q.js +1 -0
- package/.output/public/assets/fortran-fixed-form-B02FOYI-.js +1 -0
- package/.output/public/assets/fortran-free-form-BPTf0lbT.js +1 -0
- package/.output/public/assets/fsharp-DhdR18vN.js +1 -0
- package/.output/public/assets/gdresource-DgnrMPIx.js +1 -0
- package/.output/public/assets/gdscript-CsadCSaZ.js +1 -0
- package/.output/public/assets/gdshader-PfnN_8tR.js +1 -0
- package/.output/public/assets/genie-Bj-orPAV.js +1 -0
- package/.output/public/assets/gherkin-COVWpJ-Q.js +1 -0
- package/.output/public/assets/git-commit-DGJi7qBD.js +1 -0
- package/.output/public/assets/git-rebase-Ce47xoa6.js +1 -0
- package/.output/public/assets/github-dark-default-DX3IG_X0.js +1 -0
- package/.output/public/assets/github-dark-dimmed-CH6p_7ez.js +1 -0
- package/.output/public/assets/github-dark-high-contrast-Bg2sSao5.js +1 -0
- package/.output/public/assets/github-dark-ipGuFGYC.js +1 -0
- package/.output/public/assets/github-light-BxjqOQl0.js +1 -0
- package/.output/public/assets/github-light-default-DwpDd1IQ.js +1 -0
- package/.output/public/assets/github-light-high-contrast-C0QeixPf.js +1 -0
- package/.output/public/assets/gleam-BF2NigGj.js +1 -0
- package/.output/public/assets/glimmer-js-C0BuzxQC.js +1 -0
- package/.output/public/assets/glimmer-ts-irOZ-cAQ.js +1 -0
- package/.output/public/assets/glsl-JAhLUe0P.js +1 -0
- package/.output/public/assets/gn-CMIt9roj.js +1 -0
- package/.output/public/assets/gnuplot-DgWlRTEj.js +1 -0
- package/.output/public/assets/go-DLnOLj8q.js +1 -0
- package/.output/public/assets/graphql-D2ba3BkR.js +1 -0
- package/.output/public/assets/groovy-B9qLWIkE.js +1 -0
- package/.output/public/assets/gruvbox-dark-hard-BIMX9ePb.js +1 -0
- package/.output/public/assets/gruvbox-dark-medium-DxuwyVzM.js +1 -0
- package/.output/public/assets/gruvbox-dark-soft-ba2fjht0.js +1 -0
- package/.output/public/assets/gruvbox-light-hard-DAJK2PqC.js +1 -0
- package/.output/public/assets/gruvbox-light-medium-WRifDAJD.js +1 -0
- package/.output/public/assets/gruvbox-light-soft-B0dBOoVB.js +1 -0
- package/.output/public/assets/hack-CgzUpY8l.js +1 -0
- package/.output/public/assets/haml-C-oIZcDo.js +1 -0
- package/.output/public/assets/handlebars-CbP-Mhzf.js +1 -0
- package/.output/public/assets/haskell-BaGpmm_c.js +1 -0
- package/.output/public/assets/haxe-DfXTCEOz.js +1 -0
- package/.output/public/assets/hcl-CbCtpSbi.js +1 -0
- package/.output/public/assets/hjson-_4-w-pHU.js +1 -0
- package/.output/public/assets/hlsl-DpuYn7pp.js +1 -0
- package/.output/public/assets/horizon-C5RtD1fY.js +1 -0
- package/.output/public/assets/horizon-bright-pEOice34.js +1 -0
- package/.output/public/assets/houston-A0zg9vNP.js +1 -0
- package/.output/public/assets/html-ddqpqPg0.js +1 -0
- package/.output/public/assets/html-derivative-DWGxf_At.js +1 -0
- package/.output/public/assets/http-Bg1nG1nG.js +1 -0
- package/.output/public/assets/hurl-zm47Pi1n.js +1 -0
- package/.output/public/assets/hxml-adC65L_J.js +1 -0
- package/.output/public/assets/hy-t9zDXBje.js +1 -0
- package/.output/public/assets/imba-Bxu-TDfw.js +1 -0
- package/.output/public/assets/index-CthXqlK7.js +53 -0
- package/.output/public/assets/ini-D-v34c8N.js +1 -0
- package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/.output/public/assets/java-DVLnIrqC.js +1 -0
- package/.output/public/assets/javascript-Cop1kpy_.js +1 -0
- package/.output/public/assets/jinja-Bnj4awH5.js +1 -0
- package/.output/public/assets/jison-CuCNs9Q3.js +1 -0
- package/.output/public/assets/json-CTw4n7kn.js +1 -0
- package/.output/public/assets/json5-D0XL1D5m.js +1 -0
- package/.output/public/assets/jsonc-BBgf3TX3.js +1 -0
- package/.output/public/assets/jsonl-KrKLbtB7.js +1 -0
- package/.output/public/assets/jsonnet-B2ZwWMOt.js +1 -0
- package/.output/public/assets/jssm-ByRpI9-B.js +1 -0
- package/.output/public/assets/jsx-0oMUGqZj.js +1 -0
- package/.output/public/assets/julia-DNYHzXlE.js +1 -0
- package/.output/public/assets/just-BlWkkmf2.js +1 -0
- package/.output/public/assets/kanagawa-dragon-CtPmcCMp.js +1 -0
- package/.output/public/assets/kanagawa-lotus-DpOXEGCa.js +1 -0
- package/.output/public/assets/kanagawa-wave-CLVCyc-n.js +1 -0
- package/.output/public/assets/kdl-6FPPEH4H.js +1 -0
- package/.output/public/assets/kotlin-D4L3Nd2D.js +1 -0
- package/.output/public/assets/kusto-D-mmc07O.js +1 -0
- package/.output/public/assets/laserwave-7fEj4XGb.js +1 -0
- package/.output/public/assets/latex-DqPzjMIt.js +1 -0
- package/.output/public/assets/lean-BMVMuP2E.js +1 -0
- package/.output/public/assets/less-C95PyOu0.js +1 -0
- package/.output/public/assets/light-plus-DHI2dh3p.js +1 -0
- package/.output/public/assets/liquid-BURJK16h.js +1 -0
- package/.output/public/assets/llvm-Dy3qORTl.js +1 -0
- package/.output/public/assets/log-BQop7fzg.js +1 -0
- package/.output/public/assets/logo-DKtnYmrp.js +1 -0
- package/.output/public/assets/lua-31hdJClp.js +1 -0
- package/.output/public/assets/luau-Dha4KG0q.js +1 -0
- package/.output/public/assets/make-DfmS6buu.js +1 -0
- package/.output/public/assets/markdown-BaI9LyM4.js +1 -0
- package/.output/public/assets/marko-C2ZcdSLh.js +1 -0
- package/.output/public/assets/material-theme-Dm6ETY8i.js +1 -0
- package/.output/public/assets/material-theme-darker-BeyjmM5Z.js +1 -0
- package/.output/public/assets/material-theme-lighter-CCOYYzKL.js +1 -0
- package/.output/public/assets/material-theme-ocean-CUtPiiX3.js +1 -0
- package/.output/public/assets/material-theme-palenight-2L4zMwIM.js +1 -0
- package/.output/public/assets/matlab-BT79Cq_j.js +1 -0
- package/.output/public/assets/mdc-N1ii9pk5.js +1 -0
- package/.output/public/assets/mdx-CxGBwLNt.js +1 -0
- package/.output/public/assets/mermaid-DLf3axBN.js +1 -0
- package/.output/public/assets/min-dark-B8TUPGHg.js +1 -0
- package/.output/public/assets/min-light-BDOoBxcA.js +1 -0
- package/.output/public/assets/mipsasm-DXuU_0cI.js +1 -0
- package/.output/public/assets/mojo-1Omp2pIo.js +1 -0
- package/.output/public/assets/monokai-E_VBmXGZ.js +1 -0
- package/.output/public/assets/moonbit-DZzq699o.js +1 -0
- package/.output/public/assets/move-DxDAOJVd.js +1 -0
- package/.output/public/assets/narrat-CxDcPPb9.js +1 -0
- package/.output/public/assets/nextflow-JEyYUlIq.js +1 -0
- package/.output/public/assets/nextflow-groovy-wvmJO4hi.js +1 -0
- package/.output/public/assets/nginx-BuomO0W8.js +1 -0
- package/.output/public/assets/night-owl-DefhalNX.js +1 -0
- package/.output/public/assets/night-owl-light-byb3AbEn.js +1 -0
- package/.output/public/assets/nim-hKoEPsYL.js +1 -0
- package/.output/public/assets/nix-DsFTDHWT.js +1 -0
- package/.output/public/assets/nord-D5rQzHT-.js +1 -0
- package/.output/public/assets/nushell-BQ_rO0AM.js +1 -0
- package/.output/public/assets/objective-c-BMq6JT_m.js +1 -0
- package/.output/public/assets/objective-cpp-DRwojuGv.js +1 -0
- package/.output/public/assets/ocaml-e4_gKO6E.js +1 -0
- package/.output/public/assets/odin-mdTPwYOg.js +1 -0
- package/.output/public/assets/one-dark-pro-DxXww9jg.js +1 -0
- package/.output/public/assets/one-light-D9c03w7t.js +1 -0
- package/.output/public/assets/openscad-D2aTdNfr.js +1 -0
- package/.output/public/assets/pascal-D4n_G8vj.js +1 -0
- package/.output/public/assets/perl-CAGVW6Ra.js +1 -0
- package/.output/public/assets/php-BycclmzS.js +1 -0
- package/.output/public/assets/pierre-dark-CizZ1Z5z.js +1 -0
- package/.output/public/assets/pierre-light-CHMWfAMe.js +1 -0
- package/.output/public/assets/pkl-DcjhAp0L.js +1 -0
- package/.output/public/assets/plastic-uOsw7z1x.js +1 -0
- package/.output/public/assets/plsql-BSy3Ag0J.js +1 -0
- package/.output/public/assets/po-Be96RYkA.js +1 -0
- package/.output/public/assets/poimandres-CyO4HORD.js +1 -0
- package/.output/public/assets/polar-BmhMKWum.js +1 -0
- package/.output/public/assets/postcss-BTQso3H9.js +1 -0
- package/.output/public/assets/powerquery-DVyQv3M2.js +1 -0
- package/.output/public/assets/powershell-BmtCGJVD.js +1 -0
- package/.output/public/assets/prisma-CCFA9rEj.js +1 -0
- package/.output/public/assets/prolog-DWGEEo78.js +1 -0
- package/.output/public/assets/proto-C3eop1kM.js +1 -0
- package/.output/public/assets/pug-4maJHz9G.js +1 -0
- package/.output/public/assets/puppet-C0_7Nv5A.js +1 -0
- package/.output/public/assets/purescript-Bv-B8yRw.js +1 -0
- package/.output/public/assets/python-CKg5r0C3.js +1 -0
- package/.output/public/assets/qml-JLIQfzyb.js +1 -0
- package/.output/public/assets/qmldir-Cqfb4Lox.js +1 -0
- package/.output/public/assets/qss-Csho9BH8.js +1 -0
- package/.output/public/assets/r-UcxRcvcA.js +1 -0
- package/.output/public/assets/racket-D8-uWeQH.js +1 -0
- package/.output/public/assets/raku-Cj4JSa8p.js +1 -0
- package/.output/public/assets/razor-P8rbooCh.js +1 -0
- package/.output/public/assets/red-z4H4llUY.js +1 -0
- package/.output/public/assets/reg-DXGFiJSl.js +1 -0
- package/.output/public/assets/regexp-3-A0406L.js +1 -0
- package/.output/public/assets/rel-CunnVTBK.js +1 -0
- package/.output/public/assets/riscv-C8BcOCkS.js +1 -0
- package/.output/public/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
- package/.output/public/assets/ron-DiDyR9oa.js +1 -0
- package/.output/public/assets/rose-pine-BADquuIH.js +1 -0
- package/.output/public/assets/rose-pine-dawn-BLcEeBoh.js +1 -0
- package/.output/public/assets/rose-pine-moon-BK_tLY1Y.js +1 -0
- package/.output/public/assets/rosmsg-CHmL1Uyj.js +1 -0
- package/.output/public/assets/routes-Bp0r03R8.js +2147 -0
- package/.output/public/assets/rst-C6GHyL-N.js +1 -0
- package/.output/public/assets/ruby-Cl8PVkbY.js +1 -0
- package/.output/public/assets/rust-DjJFInu3.js +1 -0
- package/.output/public/assets/sas-CXoVwlZN.js +1 -0
- package/.output/public/assets/sass-D3xZ5o-v.js +1 -0
- package/.output/public/assets/scala-B0IRml5w.js +1 -0
- package/.output/public/assets/scheme-BhwcV3Av.js +1 -0
- package/.output/public/assets/scss-DNczJ95n.js +1 -0
- package/.output/public/assets/sdbl-BmWYR-pI.js +1 -0
- package/.output/public/assets/shaderlab-DZ3Lsiak.js +1 -0
- package/.output/public/assets/shellscript-DaVPunOM.js +1 -0
- package/.output/public/assets/shellsession-COm1V40U.js +1 -0
- package/.output/public/assets/slack-dark-DOnVms5P.js +1 -0
- package/.output/public/assets/slack-ochin-DcRTft4q.js +1 -0
- package/.output/public/assets/smalltalk-DVQuUMII.js +1 -0
- package/.output/public/assets/snazzy-light-x9CLJ1W9.js +1 -0
- package/.output/public/assets/solarized-dark-BB1sh-pe.js +1 -0
- package/.output/public/assets/solarized-light-9-RPS998.js +1 -0
- package/.output/public/assets/solidity-gQ4WXILB.js +1 -0
- package/.output/public/assets/soy-DwewhJ_3.js +1 -0
- package/.output/public/assets/sparql-B9c85a_o.js +1 -0
- package/.output/public/assets/splunk-OB48_RcD.js +1 -0
- package/.output/public/assets/sql-CrTmZCMa.js +1 -0
- package/.output/public/assets/ssh-config-DA9YMRGV.js +1 -0
- package/.output/public/assets/stata-Bl--TAbZ.js +1 -0
- package/.output/public/assets/styles-DEX5mU_p.css +2 -0
- package/.output/public/assets/stylus-sKwvsUaC.js +1 -0
- package/.output/public/assets/surrealql-BW79EE-U.js +1 -0
- package/.output/public/assets/svelte-ziMErdPi.js +1 -0
- package/.output/public/assets/swift-C72NbAtg.js +1 -0
- package/.output/public/assets/synthwave-84-eJ9uRN_S.js +1 -0
- package/.output/public/assets/system-verilog-CnWMF7Nq.js +1 -0
- package/.output/public/assets/systemd-DMzItW5N.js +1 -0
- package/.output/public/assets/talonscript-DopQCWDL.js +1 -0
- package/.output/public/assets/tasl-C28SYKbq.js +1 -0
- package/.output/public/assets/tcl-DHq7zmoF.js +1 -0
- package/.output/public/assets/templ-C_9I6ncv.js +1 -0
- package/.output/public/assets/terraform-CogS1YKX.js +1 -0
- package/.output/public/assets/tex-D8LVuLf5.js +1 -0
- package/.output/public/assets/tokyo-night-B9N7LyrF.js +1 -0
- package/.output/public/assets/toml-BH_iPsgK.js +1 -0
- package/.output/public/assets/ts-tags-DKuFCGsc.js +1 -0
- package/.output/public/assets/tsv-BIkdBZX1.js +1 -0
- package/.output/public/assets/tsx-BjkCKOtw.js +1 -0
- package/.output/public/assets/turtle-CqNXyJWZ.js +1 -0
- package/.output/public/assets/twig-Bs1kcsO6.js +1 -0
- package/.output/public/assets/typescript-BoHeP9q1.js +1 -0
- package/.output/public/assets/typespec-CQ9LYD_e.js +1 -0
- package/.output/public/assets/typst-T-Fsk-Sv.js +1 -0
- package/.output/public/assets/v-BhMEOw9x.js +1 -0
- package/.output/public/assets/vala-DzajMnwt.js +1 -0
- package/.output/public/assets/vb-7Xr8dEYW.js +1 -0
- package/.output/public/assets/verilog-AvXtwZir.js +1 -0
- package/.output/public/assets/vesper-CtgQQ2sf.js +1 -0
- package/.output/public/assets/vhdl-BHu0zg1P.js +1 -0
- package/.output/public/assets/viml-Di0QpLfC.js +1 -0
- package/.output/public/assets/vitesse-black-jXdfyqgD.js +1 -0
- package/.output/public/assets/vitesse-dark-B88PxG1r.js +1 -0
- package/.output/public/assets/vitesse-light-BXxZh2iV.js +1 -0
- package/.output/public/assets/vue-Dnf0y5RU.js +1 -0
- package/.output/public/assets/vue-html-CRtKS76J.js +1 -0
- package/.output/public/assets/vue-vine-BxjPqU7T.js +1 -0
- package/.output/public/assets/vyper-C3R5yXgx.js +1 -0
- package/.output/public/assets/wasm-CEUrWlVz.js +1 -0
- package/.output/public/assets/wasm-Chsuwt1A.js +1 -0
- package/.output/public/assets/wenyan-BonVcr2i.js +1 -0
- package/.output/public/assets/wgsl-D59WYmNq.js +1 -0
- package/.output/public/assets/wikitext-ariTI2Wk.js +1 -0
- package/.output/public/assets/wit-EA4fa3Dt.js +1 -0
- package/.output/public/assets/wolfram-DDp7LhyU.js +1 -0
- package/.output/public/assets/xml-eU7M3iZJ.js +1 -0
- package/.output/public/assets/xsl-DSqe4nTO.js +1 -0
- package/.output/public/assets/yaml-BTD1XHJG.js +1 -0
- package/.output/public/assets/zenscript-4WaROUyc.js +1 -0
- package/.output/public/assets/zig-CJoLJGwV.js +1 -0
- package/.output/public/favicon.png +0 -0
- package/.output/public/favicon.svg +7 -0
- package/.output/public/manifest.json +28 -0
- package/.output/public/robots.txt +3 -0
- package/.output/public/screenshots/pico-workspace-alt.png +0 -0
- package/.output/public/screenshots/pico-workspace.png +0 -0
- package/.output/public/sounds/session-done.mp3 +0 -0
- package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +5 -0
- package/.output/server/_chunks/ssr-renderer.mjs +15 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +14407 -0
- package/.output/server/_libs/@dnd-kit/core+[...].mjs +2748 -0
- package/.output/server/_libs/@pierre/diffs+[...].mjs +19074 -0
- package/.output/server/_libs/@pierre/trees+[...].mjs +9236 -0
- package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +1789 -0
- package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +136 -0
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
- package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +1607 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +13950 -0
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +90 -0
- package/.output/server/_libs/bail.mjs +13 -0
- package/.output/server/_libs/character-entities.mjs +2135 -0
- package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/.output/server/_libs/cmdk.mjs +473 -0
- package/.output/server/_libs/decode-named-character-reference+[...].mjs +19 -0
- package/.output/server/_libs/devlop.mjs +5 -0
- package/.output/server/_libs/diff.mjs +732 -0
- package/.output/server/_libs/dnd-kit__accessibility.mjs +46 -0
- package/.output/server/_libs/dnd-kit__sortable.mjs +400 -0
- package/.output/server/_libs/escape-string-regexp.mjs +7 -0
- package/.output/server/_libs/estree-util-is-identifier-name.mjs +20 -0
- package/.output/server/_libs/extend.mjs +75 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +1210 -0
- package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +1244 -0
- package/.output/server/_libs/hookable.mjs +41 -0
- package/.output/server/_libs/html-url-attributes.mjs +44 -0
- package/.output/server/_libs/is-plain-obj.mjs +8 -0
- package/.output/server/_libs/longest-streak.mjs +29 -0
- package/.output/server/_libs/lucide-react.mjs +632 -0
- package/.output/server/_libs/markdown-table.mjs +289 -0
- package/.output/server/_libs/mdast-util-find-and-replace+[...].mjs +636 -0
- package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +8409 -0
- package/.output/server/_libs/mdast-util-gfm+[...].mjs +2346 -0
- package/.output/server/_libs/mdast-util-to-hast+[...].mjs +1772 -0
- package/.output/server/_libs/micromark-extension-gfm+[...].mjs +2234 -0
- package/.output/server/_libs/next-themes.mjs +124 -0
- package/.output/server/_libs/pierre__theme.mjs +10 -0
- package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
- package/.output/server/_libs/radix-ui__react-compose-refs.mjs +30 -0
- package/.output/server/_libs/radix-ui__react-context.mjs +88 -0
- package/.output/server/_libs/react-markdown+[...].mjs +2316 -0
- package/.output/server/_libs/remark-gfm.mjs +34 -0
- package/.output/server/_libs/shiki.mjs +16 -0
- package/.output/server/_libs/shikijs__langs.mjs +1355 -0
- package/.output/server/_libs/shikijs__themes.mjs +262 -0
- package/.output/server/_libs/sonner.mjs +908 -0
- package/.output/server/_libs/sugar-high.mjs +1036 -0
- package/.output/server/_libs/tailwind-merge.mjs +1962 -0
- package/.output/server/_libs/tanstack__history.mjs +342 -0
- package/.output/server/_libs/tanstack__pacer.mjs +1111 -0
- package/.output/server/_libs/tanstack__query-core.mjs +2202 -0
- package/.output/server/_libs/tanstack__react-hotkeys.mjs +152 -0
- package/.output/server/_libs/tanstack__react-query.mjs +180 -0
- package/.output/server/_libs/tanstack__react-store.mjs +39 -0
- package/.output/server/_libs/tanstack__router-core.mjs +6 -0
- package/.output/server/_libs/tanstack__store.mjs +28 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_libs/unctx.mjs +82 -0
- package/.output/server/_libs/ungap__structured-clone.mjs +197 -0
- package/.output/server/_libs/vaul.mjs +1250 -0
- package/.output/server/_libs/zod.mjs +3341 -0
- package/.output/server/_runtime.mjs +35 -0
- package/.output/server/_ssr/router-Bz70uQ0p.mjs +7231 -0
- package/.output/server/_ssr/routes-C7oV8l68.mjs +21622 -0
- package/.output/server/_ssr/routes-DGvt0TQ-.mjs +1275 -0
- package/.output/server/_ssr/ssr.mjs +5176 -0
- package/.output/server/_ssr/start-C9AjCGlr.mjs +4 -0
- package/.output/server/_tanstack-start-manifest_v-D0yEuwRY.mjs +65 -0
- package/.output/server/index.mjs +2563 -0
- package/.output/server/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/package.json +9 -0
- package/LICENSE +8 -0
- package/README.md +111 -0
- package/bin/pico.mjs +206 -0
- package/package.json +105 -0
- package/public/screenshots/pico-workspace-alt.png +0 -0
- package/public/screenshots/pico-workspace.png +0 -0
- package/scripts/patch-react-jsx-dev-runtime.mjs +93 -0
|
@@ -0,0 +1,1036 @@
|
|
|
1
|
+
import { n as __exportAll } from "../_runtime.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/index.js
|
|
3
|
+
var JSXBrackets = new Set([
|
|
4
|
+
"<",
|
|
5
|
+
">",
|
|
6
|
+
"{",
|
|
7
|
+
"}",
|
|
8
|
+
"[",
|
|
9
|
+
"]"
|
|
10
|
+
]);
|
|
11
|
+
var Keywords_Js = new Set([
|
|
12
|
+
"for",
|
|
13
|
+
"do",
|
|
14
|
+
"while",
|
|
15
|
+
"if",
|
|
16
|
+
"else",
|
|
17
|
+
"return",
|
|
18
|
+
"function",
|
|
19
|
+
"var",
|
|
20
|
+
"let",
|
|
21
|
+
"const",
|
|
22
|
+
"true",
|
|
23
|
+
"false",
|
|
24
|
+
"undefined",
|
|
25
|
+
"this",
|
|
26
|
+
"new",
|
|
27
|
+
"delete",
|
|
28
|
+
"typeof",
|
|
29
|
+
"in",
|
|
30
|
+
"instanceof",
|
|
31
|
+
"void",
|
|
32
|
+
"break",
|
|
33
|
+
"continue",
|
|
34
|
+
"switch",
|
|
35
|
+
"case",
|
|
36
|
+
"default",
|
|
37
|
+
"throw",
|
|
38
|
+
"try",
|
|
39
|
+
"catch",
|
|
40
|
+
"finally",
|
|
41
|
+
"debugger",
|
|
42
|
+
"with",
|
|
43
|
+
"yield",
|
|
44
|
+
"async",
|
|
45
|
+
"await",
|
|
46
|
+
"class",
|
|
47
|
+
"extends",
|
|
48
|
+
"super",
|
|
49
|
+
"import",
|
|
50
|
+
"export",
|
|
51
|
+
"from",
|
|
52
|
+
"static"
|
|
53
|
+
]);
|
|
54
|
+
var Keywords_Ts = new Set([
|
|
55
|
+
...Keywords_Js,
|
|
56
|
+
"type",
|
|
57
|
+
"interface",
|
|
58
|
+
"enum",
|
|
59
|
+
"implements",
|
|
60
|
+
"readonly",
|
|
61
|
+
"abstract",
|
|
62
|
+
"declare",
|
|
63
|
+
"namespace",
|
|
64
|
+
"module",
|
|
65
|
+
"private",
|
|
66
|
+
"protected",
|
|
67
|
+
"public",
|
|
68
|
+
"override",
|
|
69
|
+
"keyof",
|
|
70
|
+
"infer",
|
|
71
|
+
"is",
|
|
72
|
+
"asserts",
|
|
73
|
+
"satisfies",
|
|
74
|
+
"as",
|
|
75
|
+
"unknown",
|
|
76
|
+
"never",
|
|
77
|
+
"any",
|
|
78
|
+
"number",
|
|
79
|
+
"string",
|
|
80
|
+
"boolean",
|
|
81
|
+
"bigint",
|
|
82
|
+
"symbol",
|
|
83
|
+
"object"
|
|
84
|
+
]);
|
|
85
|
+
var Signs = new Set([
|
|
86
|
+
"+",
|
|
87
|
+
"-",
|
|
88
|
+
"*",
|
|
89
|
+
"/",
|
|
90
|
+
"%",
|
|
91
|
+
"=",
|
|
92
|
+
"!",
|
|
93
|
+
"&",
|
|
94
|
+
"|",
|
|
95
|
+
"^",
|
|
96
|
+
"~",
|
|
97
|
+
"!",
|
|
98
|
+
"?",
|
|
99
|
+
":",
|
|
100
|
+
".",
|
|
101
|
+
",",
|
|
102
|
+
";",
|
|
103
|
+
`'`,
|
|
104
|
+
"\"",
|
|
105
|
+
".",
|
|
106
|
+
"(",
|
|
107
|
+
")",
|
|
108
|
+
"[",
|
|
109
|
+
"]",
|
|
110
|
+
"#",
|
|
111
|
+
"@",
|
|
112
|
+
"\\",
|
|
113
|
+
...JSXBrackets
|
|
114
|
+
]);
|
|
115
|
+
var DefaultOptions = {
|
|
116
|
+
keywords: Keywords_Js,
|
|
117
|
+
onCommentStart: isCommentStart_Js,
|
|
118
|
+
onCommentEnd: isCommentEnd_Js
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Fast, heuristic TS detection. It intentionally prefers speed over full parsing.
|
|
122
|
+
* @param {string} code
|
|
123
|
+
* @returns {boolean}
|
|
124
|
+
*/
|
|
125
|
+
function isLikelyTypeScript(code) {
|
|
126
|
+
let tsScore = 0;
|
|
127
|
+
if (/\binterface\s+[A-Za-z_$][\w$]*/.test(code)) tsScore += 2;
|
|
128
|
+
if (/\btype\s+[A-Za-z_$][\w$]*\s*=/.test(code)) tsScore += 2;
|
|
129
|
+
if (/\benum\s+[A-Za-z_$][\w$]*/.test(code)) tsScore += 2;
|
|
130
|
+
if (/\b(?:implements|readonly|declare|namespace|satisfies|infer|keyof|asserts)\b/.test(code)) tsScore += 2;
|
|
131
|
+
if (/:\s*[A-Za-z_$][\w$]*(?:<[^>\n]+>)?(?:\[\])?(?=\s*[,)=;{])/m.test(code)) tsScore += 1;
|
|
132
|
+
if (/\b(?:const|let|var)\s+[A-Za-z_$][\w$]*\s*:\s*/.test(code)) tsScore += 1;
|
|
133
|
+
if (/\)\s*:\s*[A-Za-z_$][\w$]*(?:<[^>\n]+>)?(?:\[\])?\s*(?:=>|\{)/.test(code)) tsScore += 1;
|
|
134
|
+
return tsScore >= 2;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Detects `<T, U = ...>(` style generic parameter lists so they are not
|
|
138
|
+
* treated as JSX tags.
|
|
139
|
+
* @param {string} code
|
|
140
|
+
* @param {number} startIndex
|
|
141
|
+
* @returns {boolean}
|
|
142
|
+
*/
|
|
143
|
+
function isTypeParameterListStart(code, startIndex) {
|
|
144
|
+
if (code[startIndex] !== "<") return false;
|
|
145
|
+
let depth = 0;
|
|
146
|
+
let sawIdentifierStart = false;
|
|
147
|
+
for (let i = startIndex; i < code.length; i++) {
|
|
148
|
+
const ch = code[i];
|
|
149
|
+
if (ch === "<") {
|
|
150
|
+
depth++;
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
if (ch === ">") {
|
|
154
|
+
depth--;
|
|
155
|
+
if (depth === 0) {
|
|
156
|
+
let next = i + 1;
|
|
157
|
+
while (next < code.length && /\s/.test(code[next])) next++;
|
|
158
|
+
if (!(sawIdentifierStart && code[next] === "(")) return false;
|
|
159
|
+
const tail = code.slice(next, next + 320);
|
|
160
|
+
return /\)\s*(?::[\s\S]{0,120}?)?=>/.test(tail);
|
|
161
|
+
}
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
if (depth === 0) continue;
|
|
165
|
+
if (/[$A-Za-z_]/.test(ch)) {
|
|
166
|
+
sawIdentifierStart = true;
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if (/[\s,\.\=\?\:\|\&\[\]]/.test(ch)) continue;
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* 0 - identifier
|
|
177
|
+
* 1 - keyword
|
|
178
|
+
* 2 - string
|
|
179
|
+
* 3 - Class, number and null
|
|
180
|
+
* 4 - property
|
|
181
|
+
* 5 - entity
|
|
182
|
+
* 6 - jsx literals
|
|
183
|
+
* 7 - sign
|
|
184
|
+
* 8 - comment
|
|
185
|
+
* 9 - break
|
|
186
|
+
* 10 - space
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
var TokenTypes = [
|
|
190
|
+
"identifier",
|
|
191
|
+
"keyword",
|
|
192
|
+
"string",
|
|
193
|
+
"class",
|
|
194
|
+
"property",
|
|
195
|
+
"entity",
|
|
196
|
+
"jsxliterals",
|
|
197
|
+
"sign",
|
|
198
|
+
"comment",
|
|
199
|
+
"break",
|
|
200
|
+
"space"
|
|
201
|
+
];
|
|
202
|
+
var [T_IDENTIFIER, T_KEYWORD, T_STRING, T_CLS_NUMBER, T_PROPERTY, T_ENTITY, T_JSX_LITERALS, T_SIGN, T_COMMENT, T_BREAK, T_SPACE] = TokenTypes.map((_, i) => i);
|
|
203
|
+
function isSpaces(str) {
|
|
204
|
+
return /^[^\S\r\n]+$/g.test(str);
|
|
205
|
+
}
|
|
206
|
+
function isSign(ch) {
|
|
207
|
+
return Signs.has(ch);
|
|
208
|
+
}
|
|
209
|
+
function encode(str) {
|
|
210
|
+
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
211
|
+
}
|
|
212
|
+
function isWord(chr) {
|
|
213
|
+
return /^[\w_]+$/.test(chr) || hasUnicode(chr);
|
|
214
|
+
}
|
|
215
|
+
function isCls(str) {
|
|
216
|
+
const chr0 = str[0];
|
|
217
|
+
return isWord(chr0) && chr0 === chr0.toUpperCase() || str === "null";
|
|
218
|
+
}
|
|
219
|
+
function hasUnicode(s) {
|
|
220
|
+
return /[^\u0000-\u007f]/.test(s);
|
|
221
|
+
}
|
|
222
|
+
function isAlpha(chr) {
|
|
223
|
+
return /^[a-zA-Z]$/.test(chr);
|
|
224
|
+
}
|
|
225
|
+
function isIdentifierChar(chr) {
|
|
226
|
+
return isAlpha(chr) || hasUnicode(chr);
|
|
227
|
+
}
|
|
228
|
+
function isIdentifier(str) {
|
|
229
|
+
return isIdentifierChar(str[0]) && (str.length === 1 || isWord(str.slice(1)));
|
|
230
|
+
}
|
|
231
|
+
function isStrTemplateChr(chr) {
|
|
232
|
+
return chr === "`";
|
|
233
|
+
}
|
|
234
|
+
function isSingleQuotes(chr) {
|
|
235
|
+
return chr === "\"" || chr === "'";
|
|
236
|
+
}
|
|
237
|
+
function isStringQuotation(chr) {
|
|
238
|
+
return isSingleQuotes(chr) || isStrTemplateChr(chr);
|
|
239
|
+
}
|
|
240
|
+
/** @returns {0|1|2} */
|
|
241
|
+
function isCommentStart_Js(curr, next) {
|
|
242
|
+
const str = curr + next;
|
|
243
|
+
if (str === "/*") return 2;
|
|
244
|
+
return str === "//" ? 1 : 0;
|
|
245
|
+
}
|
|
246
|
+
/** @returns {0|1|2} */
|
|
247
|
+
function isCommentEnd_Js(prev, curr) {
|
|
248
|
+
return prev + curr === "*/" ? 2 : curr === "\n" ? 1 : 0;
|
|
249
|
+
}
|
|
250
|
+
function isRegexStart(str) {
|
|
251
|
+
return str[0] === "/" && !isCommentStart_Js(str[0], str[1]);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @param {string} code
|
|
255
|
+
* @param {{
|
|
256
|
+
* keywords?: Set<string>
|
|
257
|
+
* typeKeywords?: Set<string>
|
|
258
|
+
* onCommentStart?: (curr: string, next: string) => number | boolean
|
|
259
|
+
* onCommentEnd?: (prev: string, curr: string) => number | boolean
|
|
260
|
+
* onQuote?: (curr: string, i: number, code: string) => number | null | undefined
|
|
261
|
+
* } | undefined} options
|
|
262
|
+
* Optional `onQuote(curr, i, code)` at `code[i] === "'"`: return length to consume from `i` (>= 1),
|
|
263
|
+
* or null/undefined/below 1 for default JS single-quoted strings. No substring allocation.
|
|
264
|
+
* @return {Array<[number, string]>}
|
|
265
|
+
*/
|
|
266
|
+
function tokenize(code, options) {
|
|
267
|
+
const mergedOptions = {
|
|
268
|
+
...DefaultOptions,
|
|
269
|
+
...options
|
|
270
|
+
};
|
|
271
|
+
const hasCustomKeywords = !!(options && options.keywords instanceof Set);
|
|
272
|
+
const isTs = isLikelyTypeScript(code);
|
|
273
|
+
const resolvedKeywords = hasCustomKeywords ? mergedOptions.keywords : isTs ? Keywords_Ts : Keywords_Js;
|
|
274
|
+
const { onCommentStart, onCommentEnd } = mergedOptions;
|
|
275
|
+
const resolvedTypeKeywords = mergedOptions.typeKeywords instanceof Set ? mergedOptions.typeKeywords : null;
|
|
276
|
+
let current = "";
|
|
277
|
+
let type = -1;
|
|
278
|
+
/** @type {[number, string]} */
|
|
279
|
+
let last = [-1, ""];
|
|
280
|
+
/** @type {[number, string]} */
|
|
281
|
+
let beforeLast = [-2, ""];
|
|
282
|
+
/** @type {Array<[number, string]>} */
|
|
283
|
+
const tokens = [];
|
|
284
|
+
/**
|
|
285
|
+
* TS generics (`Map<string>`) and JSX (`<div>`) share the same `<Name …>` lexical shape. We use
|
|
286
|
+
* one tag-lexer mode (__jsxTag + __jsxStack) for both when we enter it; isTsTypeArgStart and
|
|
287
|
+
* isTypeParameterListStart only decide when *not* to enter (e.g. `foo<T>`, `<T>(x)=>`).
|
|
288
|
+
* __jsxEnter gates that mode so a latched __jsxTag (from `<` in `"a<b"`) does not run the tag
|
|
289
|
+
* lexer until we are in real JSX/TSX surface (not inside strings).
|
|
290
|
+
* @type {boolean}
|
|
291
|
+
*/
|
|
292
|
+
let __jsxEnter = false;
|
|
293
|
+
/** @type {0 | 1 | 2} 0 = none; 1 = inside `<open`; 2 = inside `</close` */
|
|
294
|
+
let __jsxTag = 0;
|
|
295
|
+
let __jsxExpr = false;
|
|
296
|
+
/** Nested `<open>…</open>` depth (content between tags, including nested elements). */
|
|
297
|
+
let __jsxStack = 0;
|
|
298
|
+
const __jsxChild = () => __jsxEnter && !__jsxExpr && !__jsxTag;
|
|
299
|
+
const inJsxTag = () => __jsxTag && !__jsxChild();
|
|
300
|
+
const inJsxLiterals = () => !__jsxTag && __jsxChild() && !__jsxExpr && __jsxStack > 0;
|
|
301
|
+
/** @type {string | null} */
|
|
302
|
+
let __strQuote = null;
|
|
303
|
+
let __regexQuoteStart = false;
|
|
304
|
+
let __strTemplateExprStack = 0;
|
|
305
|
+
let __strTemplateQuoteStack = 0;
|
|
306
|
+
const inStringQuotes = () => __strQuote !== null;
|
|
307
|
+
const inRegexQuotes = () => __regexQuoteStart;
|
|
308
|
+
const inStrTemplateLiterals = () => __strTemplateQuoteStack > __strTemplateExprStack;
|
|
309
|
+
const inStrTemplateExpr = () => __strTemplateQuoteStack > 0 && __strTemplateQuoteStack === __strTemplateExprStack;
|
|
310
|
+
const inStringContent = () => inStringQuotes() || inStrTemplateLiterals();
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @param {string} token
|
|
314
|
+
* @returns {number}
|
|
315
|
+
*/
|
|
316
|
+
function classify(token) {
|
|
317
|
+
const isLineBreak = token === "\n";
|
|
318
|
+
if (inJsxTag()) {
|
|
319
|
+
if (inStringQuotes()) return T_STRING;
|
|
320
|
+
const [, lastToken] = last;
|
|
321
|
+
if (isIdentifier(token)) {
|
|
322
|
+
if (lastToken === "<" || lastToken === "</") return T_ENTITY;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (inJsxLiterals()) return T_JSX_LITERALS;
|
|
326
|
+
if (inStringQuotes() || inStrTemplateLiterals()) return T_STRING;
|
|
327
|
+
else if (resolvedTypeKeywords && resolvedTypeKeywords.has(token)) return last[1] === "." ? T_IDENTIFIER : T_CLS_NUMBER;
|
|
328
|
+
else if (resolvedKeywords.has(token)) return last[1] === "." ? T_IDENTIFIER : T_KEYWORD;
|
|
329
|
+
else if (isLineBreak) return T_BREAK;
|
|
330
|
+
else if (isSpaces(token)) return T_SPACE;
|
|
331
|
+
else if (token.split("").every(isSign)) return T_SIGN;
|
|
332
|
+
else if (isCls(token)) return inJsxTag() ? T_IDENTIFIER : T_CLS_NUMBER;
|
|
333
|
+
else {
|
|
334
|
+
if (isIdentifier(token)) {
|
|
335
|
+
const isLastPropDot = last[1] === "." && isIdentifier(beforeLast[1]);
|
|
336
|
+
if (!inStringContent() && !isLastPropDot) return T_IDENTIFIER;
|
|
337
|
+
if (isLastPropDot) return T_PROPERTY;
|
|
338
|
+
}
|
|
339
|
+
return T_STRING;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @param {number | undefined} [type_]
|
|
345
|
+
* @param {string | undefined} [token_]
|
|
346
|
+
*/
|
|
347
|
+
const append = (type_, token_) => {
|
|
348
|
+
if (token_) current = token_;
|
|
349
|
+
if (current) {
|
|
350
|
+
type = typeof type_ === "number" ? type_ : classify(current);
|
|
351
|
+
/** @type [number, string] */
|
|
352
|
+
const pair = [type, current];
|
|
353
|
+
if (type !== T_SPACE && type !== T_BREAK) {
|
|
354
|
+
beforeLast = last;
|
|
355
|
+
last = pair;
|
|
356
|
+
}
|
|
357
|
+
tokens.push(pair);
|
|
358
|
+
}
|
|
359
|
+
current = "";
|
|
360
|
+
};
|
|
361
|
+
for (let i = 0; i < code.length; i++) {
|
|
362
|
+
const curr = code[i];
|
|
363
|
+
const prev = code[i - 1];
|
|
364
|
+
const next = code[i + 1];
|
|
365
|
+
const p_c = prev + curr;
|
|
366
|
+
const c_n = curr + next;
|
|
367
|
+
if (typeof mergedOptions.onQuote === "function" && curr === "'" && !inStringQuotes() && !inJsxLiterals() && !inStrTemplateLiterals()) {
|
|
368
|
+
const rawLen = mergedOptions.onQuote(curr, i, code);
|
|
369
|
+
if (typeof rawLen === "number" && rawLen >= 1 && !Number.isNaN(rawLen)) {
|
|
370
|
+
const len = Math.min(rawLen, code.length - i);
|
|
371
|
+
const end = i + len;
|
|
372
|
+
append();
|
|
373
|
+
current = code.slice(i, end);
|
|
374
|
+
append(T_IDENTIFIER);
|
|
375
|
+
i = end - 1;
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
if (isSingleQuotes(curr) && !inJsxLiterals() && !inStrTemplateLiterals()) {
|
|
380
|
+
append();
|
|
381
|
+
if (prev !== `\\`) {
|
|
382
|
+
if (__strQuote && curr === __strQuote) __strQuote = null;
|
|
383
|
+
else if (!__strQuote) __strQuote = curr;
|
|
384
|
+
}
|
|
385
|
+
append(T_STRING, curr);
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
if (!inStrTemplateLiterals()) {
|
|
389
|
+
if (prev !== "\\n" && isStrTemplateChr(curr)) {
|
|
390
|
+
append();
|
|
391
|
+
append(T_STRING, curr);
|
|
392
|
+
__strTemplateQuoteStack++;
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
if (inStrTemplateLiterals()) {
|
|
397
|
+
if (prev !== "\\n" && isStrTemplateChr(curr)) {
|
|
398
|
+
if (__strTemplateQuoteStack > 0) {
|
|
399
|
+
append();
|
|
400
|
+
__strTemplateQuoteStack--;
|
|
401
|
+
append(T_STRING, curr);
|
|
402
|
+
continue;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
if (c_n === "${") {
|
|
406
|
+
__strTemplateExprStack++;
|
|
407
|
+
append(T_STRING);
|
|
408
|
+
append(T_SIGN, c_n);
|
|
409
|
+
i++;
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
if (inStrTemplateExpr() && curr === "}") {
|
|
414
|
+
append();
|
|
415
|
+
__strTemplateExprStack--;
|
|
416
|
+
append(T_SIGN, curr);
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
if (__jsxChild()) {
|
|
420
|
+
if (curr === "{") {
|
|
421
|
+
append();
|
|
422
|
+
append(T_SIGN, curr);
|
|
423
|
+
__jsxExpr = true;
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
if (__jsxEnter) {
|
|
428
|
+
if (!__jsxTag && curr === "<") {
|
|
429
|
+
append();
|
|
430
|
+
if (next === "/") {
|
|
431
|
+
__jsxTag = 2;
|
|
432
|
+
current = c_n;
|
|
433
|
+
i++;
|
|
434
|
+
} else {
|
|
435
|
+
__jsxTag = 1;
|
|
436
|
+
current = curr;
|
|
437
|
+
}
|
|
438
|
+
append(T_SIGN);
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
if (__jsxTag) {
|
|
442
|
+
if (curr === ">" && !"/=".includes(prev)) {
|
|
443
|
+
append();
|
|
444
|
+
if (__jsxTag === 1) {
|
|
445
|
+
__jsxTag = 0;
|
|
446
|
+
__jsxStack++;
|
|
447
|
+
} else {
|
|
448
|
+
__jsxTag = 0;
|
|
449
|
+
__jsxEnter = false;
|
|
450
|
+
}
|
|
451
|
+
append(T_SIGN, curr);
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
if (c_n === "/>" || c_n === "</") {
|
|
455
|
+
if (current !== "<" && current !== "/") append();
|
|
456
|
+
if (c_n === "/>") __jsxTag = 0;
|
|
457
|
+
else __jsxStack--;
|
|
458
|
+
if (!__jsxStack) __jsxEnter = false;
|
|
459
|
+
current = c_n;
|
|
460
|
+
i++;
|
|
461
|
+
append(T_SIGN);
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
464
|
+
if (curr === "<") {
|
|
465
|
+
append();
|
|
466
|
+
current = curr;
|
|
467
|
+
append(T_SIGN);
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
if (next === "-" && !inStringContent() && !inJsxLiterals()) {
|
|
471
|
+
if (current) {
|
|
472
|
+
append(T_PROPERTY, current + curr + next);
|
|
473
|
+
i++;
|
|
474
|
+
continue;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
if (next === "=" && !inStringContent()) {
|
|
478
|
+
if (!isSpaces(curr)) {
|
|
479
|
+
if (isSpaces(current)) append();
|
|
480
|
+
const prop = current + curr;
|
|
481
|
+
if (isIdentifier(prop)) {
|
|
482
|
+
append(T_PROPERTY, prop);
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
if (!__jsxTag && (curr === "<" && isIdentifierChar(next) || c_n === "</")) {
|
|
490
|
+
let prevNonSpace = i - 1;
|
|
491
|
+
while (prevNonSpace >= 0 && /\s/.test(code[prevNonSpace])) prevNonSpace--;
|
|
492
|
+
const prevChar = prevNonSpace >= 0 ? code[prevNonSpace] : "";
|
|
493
|
+
const [lastType, lastTok] = last;
|
|
494
|
+
let typeArgFromPending = false;
|
|
495
|
+
let jsxFromPending = false;
|
|
496
|
+
if (current && !isSpaces(current)) {
|
|
497
|
+
const w = current;
|
|
498
|
+
if (isCls(w) || w === "true" || w === "false") typeArgFromPending = true;
|
|
499
|
+
else if (resolvedKeywords.has(w) && isIdentifier(w)) jsxFromPending = true;
|
|
500
|
+
else if (isIdentifier(w)) typeArgFromPending = true;
|
|
501
|
+
}
|
|
502
|
+
const isTsTypeArgStart = curr === "<" && /[$\w\]\)]/.test(prevChar) && (typeArgFromPending || !jsxFromPending && (lastType === T_IDENTIFIER || lastType === T_CLS_NUMBER || lastType === T_SIGN && (lastTok === ")" || lastTok === "]")));
|
|
503
|
+
const isTsGenericStart = curr === "<" && isTypeParameterListStart(code, i);
|
|
504
|
+
if (!isTsTypeArgStart && !isTsGenericStart) __jsxTag = next === "/" ? 2 : 1;
|
|
505
|
+
if (curr === "<" && (next === "/" || isAlpha(next))) {
|
|
506
|
+
if (!isTsTypeArgStart && !isTsGenericStart && !inStringContent() && !inJsxLiterals() && !inRegexQuotes()) __jsxEnter = true;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
const isQuotationChar = isStringQuotation(curr);
|
|
510
|
+
const isStringTemplateLiterals = inStrTemplateLiterals();
|
|
511
|
+
const isRegexChar = !__jsxEnter && isRegexStart(c_n);
|
|
512
|
+
const isJsxLiterals = inJsxLiterals();
|
|
513
|
+
if (isQuotationChar || isStringTemplateLiterals || isSingleQuotes(__strQuote)) current += curr;
|
|
514
|
+
else if (isRegexChar) {
|
|
515
|
+
append();
|
|
516
|
+
const [lastType, lastToken] = last;
|
|
517
|
+
if (isRegexChar && lastType !== -1 && !(lastType === T_SIGN && ")" !== lastToken || lastType === T_COMMENT)) {
|
|
518
|
+
current = curr;
|
|
519
|
+
append();
|
|
520
|
+
continue;
|
|
521
|
+
}
|
|
522
|
+
__regexQuoteStart = true;
|
|
523
|
+
const start = i++;
|
|
524
|
+
const isEof = () => i >= code.length;
|
|
525
|
+
const isEol = () => isEof() || code[i] === "\n";
|
|
526
|
+
let foundClose = false;
|
|
527
|
+
for (; !isEol(); i++) if (code[i] === "/" && code[i - 1] !== "\\") {
|
|
528
|
+
foundClose = true;
|
|
529
|
+
while (start !== i && /^[a-z]$/.test(code[i + 1]) && !isEol()) i++;
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
__regexQuoteStart = false;
|
|
533
|
+
if (start !== i && foundClose) {
|
|
534
|
+
current = code.slice(start, i + 1);
|
|
535
|
+
append(T_STRING);
|
|
536
|
+
} else {
|
|
537
|
+
current = curr;
|
|
538
|
+
append();
|
|
539
|
+
i = start;
|
|
540
|
+
}
|
|
541
|
+
} else if (onCommentStart(curr, next)) {
|
|
542
|
+
append();
|
|
543
|
+
const start = i;
|
|
544
|
+
const startCommentType = onCommentStart(curr, next);
|
|
545
|
+
if (startCommentType) {
|
|
546
|
+
for (; i < code.length; i++) if (onCommentEnd(code[i - 1], code[i]) == startCommentType) break;
|
|
547
|
+
}
|
|
548
|
+
current = code.slice(start, i + 1);
|
|
549
|
+
append(T_COMMENT);
|
|
550
|
+
} else if (curr === " " || curr === "\n") if (curr === " " && (isSpaces(current) || !current || isJsxLiterals)) {
|
|
551
|
+
current += curr;
|
|
552
|
+
if (next === "<") append();
|
|
553
|
+
} else {
|
|
554
|
+
append();
|
|
555
|
+
current = curr;
|
|
556
|
+
append();
|
|
557
|
+
}
|
|
558
|
+
else if (__jsxExpr && curr === "}") {
|
|
559
|
+
append();
|
|
560
|
+
current = curr;
|
|
561
|
+
append();
|
|
562
|
+
__jsxExpr = false;
|
|
563
|
+
} else if (isJsxLiterals && !JSXBrackets.has(curr) || inStrTemplateLiterals() || (isWord(curr) === isWord(current[current.length - 1]) || __jsxChild()) && !Signs.has(curr)) current += curr;
|
|
564
|
+
else {
|
|
565
|
+
if (p_c === "</") current = p_c;
|
|
566
|
+
append();
|
|
567
|
+
if (p_c !== "</") current = curr;
|
|
568
|
+
if (c_n === "</" || c_n === "/>") {
|
|
569
|
+
current = c_n;
|
|
570
|
+
append();
|
|
571
|
+
i++;
|
|
572
|
+
} else if (JSXBrackets.has(curr)) append();
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
append();
|
|
576
|
+
return tokens;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* @param {Array<[number, string]>} tokens
|
|
580
|
+
* @return {Array<{type: string, tagName: string, children: any[], properties: Record<string, string>}>}
|
|
581
|
+
*/
|
|
582
|
+
function generate(tokens) {
|
|
583
|
+
const lines = [];
|
|
584
|
+
/**
|
|
585
|
+
* @param {any} children
|
|
586
|
+
* @return {{type: string, tagName: string, children: any[], properties: Record<string, string>}}
|
|
587
|
+
*/
|
|
588
|
+
const createLine = (children) => ({
|
|
589
|
+
type: "element",
|
|
590
|
+
tagName: "span",
|
|
591
|
+
children,
|
|
592
|
+
properties: { className: "sh__line" }
|
|
593
|
+
});
|
|
594
|
+
/**
|
|
595
|
+
* @param {Array<[number, string]>} tokens
|
|
596
|
+
* @returns {void}
|
|
597
|
+
*/
|
|
598
|
+
function flushLine(tokens) {
|
|
599
|
+
/** @type {Array<any>} */
|
|
600
|
+
const lineTokens = tokens.map(([type, value]) => {
|
|
601
|
+
const tokenType = TokenTypes[type];
|
|
602
|
+
return {
|
|
603
|
+
type: "element",
|
|
604
|
+
tagName: "span",
|
|
605
|
+
children: [{
|
|
606
|
+
type: "text",
|
|
607
|
+
value
|
|
608
|
+
}],
|
|
609
|
+
properties: {
|
|
610
|
+
className: `sh__token--${tokenType}`,
|
|
611
|
+
style: { color: `var(--sh-${tokenType})` }
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
});
|
|
615
|
+
lines.push(createLine(lineTokens));
|
|
616
|
+
}
|
|
617
|
+
/** @type {Array<[number, string]>} */
|
|
618
|
+
const lineTokens = [];
|
|
619
|
+
let lastWasBreak = false;
|
|
620
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
621
|
+
const token = tokens[i];
|
|
622
|
+
const [type, value] = token;
|
|
623
|
+
const isLastToken = i === tokens.length - 1;
|
|
624
|
+
if (type !== T_BREAK) {
|
|
625
|
+
if (value.includes("\n")) {
|
|
626
|
+
const lines = value.split("\n");
|
|
627
|
+
for (let j = 0; j < lines.length; j++) {
|
|
628
|
+
lineTokens.push([type, lines[j]]);
|
|
629
|
+
if (j < lines.length - 1) {
|
|
630
|
+
flushLine(lineTokens);
|
|
631
|
+
lineTokens.length = 0;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
} else lineTokens.push(token);
|
|
635
|
+
lastWasBreak = false;
|
|
636
|
+
} else {
|
|
637
|
+
if (lastWasBreak) flushLine([]);
|
|
638
|
+
else {
|
|
639
|
+
flushLine(lineTokens);
|
|
640
|
+
lineTokens.length = 0;
|
|
641
|
+
}
|
|
642
|
+
if (isLastToken) flushLine([]);
|
|
643
|
+
lastWasBreak = true;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
if (lineTokens.length) flushLine(lineTokens);
|
|
647
|
+
return lines;
|
|
648
|
+
}
|
|
649
|
+
/** @param {{ className: string, style?: Record<string, string> }} props */
|
|
650
|
+
var propsToString = (props) => {
|
|
651
|
+
let str = `class="${props.className}"`;
|
|
652
|
+
if (props.style) {
|
|
653
|
+
const style = Object.entries(props.style).map(([key, value]) => `${key}:${value}`).join(";");
|
|
654
|
+
str += ` style="${style}"`;
|
|
655
|
+
}
|
|
656
|
+
return str;
|
|
657
|
+
};
|
|
658
|
+
function toHtml(lines) {
|
|
659
|
+
return lines.map((line) => {
|
|
660
|
+
const { tagName: lineTag } = line;
|
|
661
|
+
const tokens = line.children.map((child) => {
|
|
662
|
+
const { tagName, children, properties } = child;
|
|
663
|
+
return `<${tagName} ${propsToString(properties)}>${encode(children[0].value)}</${tagName}>`;
|
|
664
|
+
}).join("");
|
|
665
|
+
return `<${lineTag} class="${line.properties.className}">${tokens}</${lineTag}>`;
|
|
666
|
+
}).join("\n");
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @param {string} code
|
|
671
|
+
* @param {{
|
|
672
|
+
* keywords?: Set<string>
|
|
673
|
+
* typeKeywords?: Set<string>
|
|
674
|
+
* onCommentStart?: (curr: string, next: string) => number | boolean
|
|
675
|
+
* onCommentEnd?: (curr: string, prev: string) => number | boolean
|
|
676
|
+
* onQuote?: (curr: string, i: number, code: string) => number | null | undefined
|
|
677
|
+
* } | undefined} options
|
|
678
|
+
* `onQuote` same as `tokenize`.
|
|
679
|
+
* @returns {string}
|
|
680
|
+
*/
|
|
681
|
+
function highlight(code, options) {
|
|
682
|
+
return toHtml(generate(tokenize(code, options)));
|
|
683
|
+
}
|
|
684
|
+
/** @type {const} */ new Map(TokenTypes.map((type, i) => [type, i]));
|
|
685
|
+
//#endregion
|
|
686
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/css.js
|
|
687
|
+
var css_exports = /* @__PURE__ */ __exportAll({
|
|
688
|
+
keywords: () => keywords$5,
|
|
689
|
+
onCommentEnd: () => onCommentEnd$2,
|
|
690
|
+
onCommentStart: () => onCommentStart$2
|
|
691
|
+
});
|
|
692
|
+
var keywords$5 = new Set([
|
|
693
|
+
"@media",
|
|
694
|
+
"@import",
|
|
695
|
+
"@keyframes",
|
|
696
|
+
"@font-face",
|
|
697
|
+
"@supports",
|
|
698
|
+
"@page",
|
|
699
|
+
"@counter-style",
|
|
700
|
+
"@font-feature-values",
|
|
701
|
+
"@viewport",
|
|
702
|
+
"@counter-style",
|
|
703
|
+
"@font-feature-values",
|
|
704
|
+
"@document"
|
|
705
|
+
]);
|
|
706
|
+
var onCommentStart$2 = (currentChar, nextChar) => {
|
|
707
|
+
return "/*" === currentChar + nextChar ? 1 : 0;
|
|
708
|
+
};
|
|
709
|
+
var onCommentEnd$2 = (prevChar, currChar) => {
|
|
710
|
+
return "*/" === prevChar + currChar ? 1 : 0;
|
|
711
|
+
};
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/rust.js
|
|
714
|
+
var rust_exports = /* @__PURE__ */ __exportAll({
|
|
715
|
+
keywords: () => keywords$4,
|
|
716
|
+
onQuote: () => onQuote
|
|
717
|
+
});
|
|
718
|
+
var keywords$4 = new Set([
|
|
719
|
+
"as",
|
|
720
|
+
"break",
|
|
721
|
+
"const",
|
|
722
|
+
"continue",
|
|
723
|
+
"crate",
|
|
724
|
+
"else",
|
|
725
|
+
"enum",
|
|
726
|
+
"extern",
|
|
727
|
+
"false",
|
|
728
|
+
"fn",
|
|
729
|
+
"for",
|
|
730
|
+
"if",
|
|
731
|
+
"impl",
|
|
732
|
+
"in",
|
|
733
|
+
"let",
|
|
734
|
+
"loop",
|
|
735
|
+
"match",
|
|
736
|
+
"mod",
|
|
737
|
+
"move",
|
|
738
|
+
"mut",
|
|
739
|
+
"pub",
|
|
740
|
+
"ref",
|
|
741
|
+
"return",
|
|
742
|
+
"self",
|
|
743
|
+
"Self",
|
|
744
|
+
"static",
|
|
745
|
+
"struct",
|
|
746
|
+
"super",
|
|
747
|
+
"trait",
|
|
748
|
+
"true",
|
|
749
|
+
"type",
|
|
750
|
+
"unsafe",
|
|
751
|
+
"use",
|
|
752
|
+
"where",
|
|
753
|
+
"while",
|
|
754
|
+
"async",
|
|
755
|
+
"await",
|
|
756
|
+
"dyn",
|
|
757
|
+
"abstract",
|
|
758
|
+
"become",
|
|
759
|
+
"box",
|
|
760
|
+
"do",
|
|
761
|
+
"final",
|
|
762
|
+
"macro",
|
|
763
|
+
"override",
|
|
764
|
+
"priv",
|
|
765
|
+
"typeof",
|
|
766
|
+
"unsized",
|
|
767
|
+
"virtual",
|
|
768
|
+
"yield",
|
|
769
|
+
"try"
|
|
770
|
+
]);
|
|
771
|
+
/**
|
|
772
|
+
* @param {string} curr `code[i]` (apostrophe)
|
|
773
|
+
* @param {number} i
|
|
774
|
+
* @param {string} code
|
|
775
|
+
* @returns {number} code units to consume from `i`
|
|
776
|
+
*/
|
|
777
|
+
function onQuote(curr, i, code) {
|
|
778
|
+
if (curr !== "'" || i + 1 >= code.length) return 1;
|
|
779
|
+
const n1 = code[i + 1];
|
|
780
|
+
if (n1 === "\\") {
|
|
781
|
+
let j = i + 2;
|
|
782
|
+
while (j < code.length) {
|
|
783
|
+
if (code[j] === "\\") {
|
|
784
|
+
j += 2;
|
|
785
|
+
continue;
|
|
786
|
+
}
|
|
787
|
+
if (code[j] === "'") return j - i + 1;
|
|
788
|
+
j++;
|
|
789
|
+
}
|
|
790
|
+
return code.length - i;
|
|
791
|
+
}
|
|
792
|
+
if (n1 === "_") return 2;
|
|
793
|
+
if (/[a-zA-Z]/.test(n1)) {
|
|
794
|
+
let j = i + 2;
|
|
795
|
+
while (j < code.length && /[a-zA-Z0-9_]/.test(code[j])) j++;
|
|
796
|
+
if (j < code.length && code[j] === "'") return j - i + 1;
|
|
797
|
+
return j - i;
|
|
798
|
+
}
|
|
799
|
+
return 1;
|
|
800
|
+
}
|
|
801
|
+
//#endregion
|
|
802
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/python.js
|
|
803
|
+
var python_exports = /* @__PURE__ */ __exportAll({
|
|
804
|
+
keywords: () => keywords$3,
|
|
805
|
+
onCommentEnd: () => onCommentEnd$1,
|
|
806
|
+
onCommentStart: () => onCommentStart$1
|
|
807
|
+
});
|
|
808
|
+
var keywords$3 = new Set([
|
|
809
|
+
"and",
|
|
810
|
+
"as",
|
|
811
|
+
"assert",
|
|
812
|
+
"async",
|
|
813
|
+
"await",
|
|
814
|
+
"break",
|
|
815
|
+
"class",
|
|
816
|
+
"continue",
|
|
817
|
+
"def",
|
|
818
|
+
"del",
|
|
819
|
+
"elif",
|
|
820
|
+
"else",
|
|
821
|
+
"except",
|
|
822
|
+
"finally",
|
|
823
|
+
"for",
|
|
824
|
+
"from",
|
|
825
|
+
"global",
|
|
826
|
+
"if",
|
|
827
|
+
"import",
|
|
828
|
+
"in",
|
|
829
|
+
"is",
|
|
830
|
+
"lambda",
|
|
831
|
+
"nonlocal",
|
|
832
|
+
"not",
|
|
833
|
+
"or",
|
|
834
|
+
"pass",
|
|
835
|
+
"raise",
|
|
836
|
+
"return",
|
|
837
|
+
"try",
|
|
838
|
+
"while",
|
|
839
|
+
"with",
|
|
840
|
+
"yield"
|
|
841
|
+
]);
|
|
842
|
+
var onCommentStart$1 = (currentChar, _nextChar) => {
|
|
843
|
+
return currentChar === "#" ? 1 : 0;
|
|
844
|
+
};
|
|
845
|
+
var onCommentEnd$1 = (_prevChar, currChar) => {
|
|
846
|
+
return currChar === "\n" ? 1 : 0;
|
|
847
|
+
};
|
|
848
|
+
//#endregion
|
|
849
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/clike-base.js
|
|
850
|
+
var onCommentStart = (currentChar, nextChar) => {
|
|
851
|
+
const pair = currentChar + nextChar;
|
|
852
|
+
if (pair === "//") return 1;
|
|
853
|
+
if (pair === "/*") return 1;
|
|
854
|
+
return 0;
|
|
855
|
+
};
|
|
856
|
+
var onCommentEnd = (prevChar, currChar) => {
|
|
857
|
+
if (currChar === "\n") return 1;
|
|
858
|
+
return prevChar + currChar === "*/" ? 1 : 0;
|
|
859
|
+
};
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/c.js
|
|
862
|
+
var c_exports = /* @__PURE__ */ __exportAll({
|
|
863
|
+
keywords: () => keywords$2,
|
|
864
|
+
onCommentEnd: () => onCommentEnd,
|
|
865
|
+
onCommentStart: () => onCommentStart,
|
|
866
|
+
typeKeywords: () => typeKeywords$2
|
|
867
|
+
});
|
|
868
|
+
var typeKeywords$2 = new Set([
|
|
869
|
+
"void",
|
|
870
|
+
"char",
|
|
871
|
+
"short",
|
|
872
|
+
"int",
|
|
873
|
+
"long",
|
|
874
|
+
"float",
|
|
875
|
+
"double",
|
|
876
|
+
"signed",
|
|
877
|
+
"unsigned",
|
|
878
|
+
"_Bool",
|
|
879
|
+
"_Complex",
|
|
880
|
+
"_Imaginary"
|
|
881
|
+
]);
|
|
882
|
+
var keywords$2 = new Set([
|
|
883
|
+
"auto",
|
|
884
|
+
"break",
|
|
885
|
+
"case",
|
|
886
|
+
"const",
|
|
887
|
+
"continue",
|
|
888
|
+
"default",
|
|
889
|
+
"do",
|
|
890
|
+
"else",
|
|
891
|
+
"enum",
|
|
892
|
+
"extern",
|
|
893
|
+
"for",
|
|
894
|
+
"goto",
|
|
895
|
+
"if",
|
|
896
|
+
"inline",
|
|
897
|
+
"register",
|
|
898
|
+
"restrict",
|
|
899
|
+
"return",
|
|
900
|
+
"sizeof",
|
|
901
|
+
"static",
|
|
902
|
+
"struct",
|
|
903
|
+
"switch",
|
|
904
|
+
"typedef",
|
|
905
|
+
"union",
|
|
906
|
+
"volatile",
|
|
907
|
+
"while",
|
|
908
|
+
"_Alignas",
|
|
909
|
+
"_Alignof",
|
|
910
|
+
"_Atomic",
|
|
911
|
+
"_Generic",
|
|
912
|
+
"_Noreturn",
|
|
913
|
+
"_Static_assert",
|
|
914
|
+
"_Thread_local"
|
|
915
|
+
]);
|
|
916
|
+
//#endregion
|
|
917
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/go.js
|
|
918
|
+
var go_exports = /* @__PURE__ */ __exportAll({
|
|
919
|
+
keywords: () => keywords$1,
|
|
920
|
+
onCommentEnd: () => onCommentEnd,
|
|
921
|
+
onCommentStart: () => onCommentStart,
|
|
922
|
+
typeKeywords: () => typeKeywords$1
|
|
923
|
+
});
|
|
924
|
+
var typeKeywords$1 = new Set([
|
|
925
|
+
"bool",
|
|
926
|
+
"byte",
|
|
927
|
+
"complex64",
|
|
928
|
+
"complex128",
|
|
929
|
+
"error",
|
|
930
|
+
"float32",
|
|
931
|
+
"float64",
|
|
932
|
+
"int",
|
|
933
|
+
"int8",
|
|
934
|
+
"int16",
|
|
935
|
+
"int32",
|
|
936
|
+
"int64",
|
|
937
|
+
"rune",
|
|
938
|
+
"string",
|
|
939
|
+
"uint",
|
|
940
|
+
"uint8",
|
|
941
|
+
"uint16",
|
|
942
|
+
"uint32",
|
|
943
|
+
"uint64",
|
|
944
|
+
"uintptr"
|
|
945
|
+
]);
|
|
946
|
+
var keywords$1 = new Set([
|
|
947
|
+
"break",
|
|
948
|
+
"case",
|
|
949
|
+
"chan",
|
|
950
|
+
"const",
|
|
951
|
+
"continue",
|
|
952
|
+
"default",
|
|
953
|
+
"defer",
|
|
954
|
+
"else",
|
|
955
|
+
"fallthrough",
|
|
956
|
+
"for",
|
|
957
|
+
"func",
|
|
958
|
+
"go",
|
|
959
|
+
"goto",
|
|
960
|
+
"if",
|
|
961
|
+
"import",
|
|
962
|
+
"interface",
|
|
963
|
+
"map",
|
|
964
|
+
"package",
|
|
965
|
+
"range",
|
|
966
|
+
"return",
|
|
967
|
+
"select",
|
|
968
|
+
"struct",
|
|
969
|
+
"switch",
|
|
970
|
+
"type",
|
|
971
|
+
"var"
|
|
972
|
+
]);
|
|
973
|
+
//#endregion
|
|
974
|
+
//#region node_modules/.pnpm/sugar-high@1.1.0/node_modules/sugar-high/lib/presets/lang/java.js
|
|
975
|
+
var java_exports = /* @__PURE__ */ __exportAll({
|
|
976
|
+
keywords: () => keywords,
|
|
977
|
+
onCommentEnd: () => onCommentEnd,
|
|
978
|
+
onCommentStart: () => onCommentStart,
|
|
979
|
+
typeKeywords: () => typeKeywords
|
|
980
|
+
});
|
|
981
|
+
var typeKeywords = new Set([
|
|
982
|
+
"boolean",
|
|
983
|
+
"byte",
|
|
984
|
+
"char",
|
|
985
|
+
"double",
|
|
986
|
+
"float",
|
|
987
|
+
"int",
|
|
988
|
+
"long",
|
|
989
|
+
"short",
|
|
990
|
+
"void"
|
|
991
|
+
]);
|
|
992
|
+
var keywords = new Set([
|
|
993
|
+
"abstract",
|
|
994
|
+
"assert",
|
|
995
|
+
"break",
|
|
996
|
+
"case",
|
|
997
|
+
"catch",
|
|
998
|
+
"class",
|
|
999
|
+
"const",
|
|
1000
|
+
"continue",
|
|
1001
|
+
"default",
|
|
1002
|
+
"do",
|
|
1003
|
+
"else",
|
|
1004
|
+
"enum",
|
|
1005
|
+
"extends",
|
|
1006
|
+
"final",
|
|
1007
|
+
"finally",
|
|
1008
|
+
"for",
|
|
1009
|
+
"goto",
|
|
1010
|
+
"if",
|
|
1011
|
+
"implements",
|
|
1012
|
+
"import",
|
|
1013
|
+
"instanceof",
|
|
1014
|
+
"interface",
|
|
1015
|
+
"native",
|
|
1016
|
+
"new",
|
|
1017
|
+
"package",
|
|
1018
|
+
"private",
|
|
1019
|
+
"protected",
|
|
1020
|
+
"public",
|
|
1021
|
+
"return",
|
|
1022
|
+
"static",
|
|
1023
|
+
"strictfp",
|
|
1024
|
+
"super",
|
|
1025
|
+
"switch",
|
|
1026
|
+
"synchronized",
|
|
1027
|
+
"this",
|
|
1028
|
+
"throw",
|
|
1029
|
+
"throws",
|
|
1030
|
+
"transient",
|
|
1031
|
+
"try",
|
|
1032
|
+
"volatile",
|
|
1033
|
+
"while"
|
|
1034
|
+
]);
|
|
1035
|
+
//#endregion
|
|
1036
|
+
export { rust_exports as a, python_exports as i, go_exports as n, css_exports as o, c_exports as r, highlight as s, java_exports as t };
|