@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,1244 @@
|
|
|
1
|
+
import { i as __toESM, t as __commonJSMin } from "../_runtime.mjs";
|
|
2
|
+
import { a as stringify, c as svg, i as stringify$1, l as find, r as whitespace, s as html, u as hastToReact } from "./@pierre/diffs+[...].mjs";
|
|
3
|
+
import "./devlop.mjs";
|
|
4
|
+
import { t as name } from "./estree-util-is-identifier-name.mjs";
|
|
5
|
+
//#region node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js
|
|
6
|
+
var require_cjs$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
+
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
8
|
+
var NEWLINE_REGEX = /\n/g;
|
|
9
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
10
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
11
|
+
var COLON_REGEX = /^:\s*/;
|
|
12
|
+
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
13
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
14
|
+
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
15
|
+
var NEWLINE = "\n";
|
|
16
|
+
var FORWARD_SLASH = "/";
|
|
17
|
+
var ASTERISK = "*";
|
|
18
|
+
var EMPTY_STRING = "";
|
|
19
|
+
var TYPE_COMMENT = "comment";
|
|
20
|
+
var TYPE_DECLARATION = "declaration";
|
|
21
|
+
/**
|
|
22
|
+
* @param {String} style
|
|
23
|
+
* @param {Object} [options]
|
|
24
|
+
* @return {Object[]}
|
|
25
|
+
* @throws {TypeError}
|
|
26
|
+
* @throws {Error}
|
|
27
|
+
*/
|
|
28
|
+
function index(style, options) {
|
|
29
|
+
if (typeof style !== "string") throw new TypeError("First argument must be a string");
|
|
30
|
+
if (!style) return [];
|
|
31
|
+
options = options || {};
|
|
32
|
+
/**
|
|
33
|
+
* Positional.
|
|
34
|
+
*/
|
|
35
|
+
var lineno = 1;
|
|
36
|
+
var column = 1;
|
|
37
|
+
/**
|
|
38
|
+
* Update lineno and column based on `str`.
|
|
39
|
+
*
|
|
40
|
+
* @param {String} str
|
|
41
|
+
*/
|
|
42
|
+
function updatePosition(str) {
|
|
43
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
44
|
+
if (lines) lineno += lines.length;
|
|
45
|
+
var i = str.lastIndexOf(NEWLINE);
|
|
46
|
+
column = ~i ? str.length - i : column + str.length;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Mark position and patch `node.position`.
|
|
50
|
+
*
|
|
51
|
+
* @return {Function}
|
|
52
|
+
*/
|
|
53
|
+
function position() {
|
|
54
|
+
var start = {
|
|
55
|
+
line: lineno,
|
|
56
|
+
column
|
|
57
|
+
};
|
|
58
|
+
return function(node) {
|
|
59
|
+
node.position = new Position(start);
|
|
60
|
+
whitespace();
|
|
61
|
+
return node;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Store position information for a node.
|
|
66
|
+
*
|
|
67
|
+
* @constructor
|
|
68
|
+
* @property {Object} start
|
|
69
|
+
* @property {Object} end
|
|
70
|
+
* @property {undefined|String} source
|
|
71
|
+
*/
|
|
72
|
+
function Position(start) {
|
|
73
|
+
this.start = start;
|
|
74
|
+
this.end = {
|
|
75
|
+
line: lineno,
|
|
76
|
+
column
|
|
77
|
+
};
|
|
78
|
+
this.source = options.source;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Non-enumerable source string.
|
|
82
|
+
*/
|
|
83
|
+
Position.prototype.content = style;
|
|
84
|
+
/**
|
|
85
|
+
* Error `msg`.
|
|
86
|
+
*
|
|
87
|
+
* @param {String} msg
|
|
88
|
+
* @throws {Error}
|
|
89
|
+
*/
|
|
90
|
+
function error(msg) {
|
|
91
|
+
var err = /* @__PURE__ */ new Error(options.source + ":" + lineno + ":" + column + ": " + msg);
|
|
92
|
+
err.reason = msg;
|
|
93
|
+
err.filename = options.source;
|
|
94
|
+
err.line = lineno;
|
|
95
|
+
err.column = column;
|
|
96
|
+
err.source = style;
|
|
97
|
+
if (options.silent);
|
|
98
|
+
else throw err;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Match `re` and return captures.
|
|
102
|
+
*
|
|
103
|
+
* @param {RegExp} re
|
|
104
|
+
* @return {undefined|Array}
|
|
105
|
+
*/
|
|
106
|
+
function match(re) {
|
|
107
|
+
var m = re.exec(style);
|
|
108
|
+
if (!m) return;
|
|
109
|
+
var str = m[0];
|
|
110
|
+
updatePosition(str);
|
|
111
|
+
style = style.slice(str.length);
|
|
112
|
+
return m;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Parse whitespace.
|
|
116
|
+
*/
|
|
117
|
+
function whitespace() {
|
|
118
|
+
match(WHITESPACE_REGEX);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Parse comments.
|
|
122
|
+
*
|
|
123
|
+
* @param {Object[]} [rules]
|
|
124
|
+
* @return {Object[]}
|
|
125
|
+
*/
|
|
126
|
+
function comments(rules) {
|
|
127
|
+
var c;
|
|
128
|
+
rules = rules || [];
|
|
129
|
+
while (c = comment()) if (c !== false) rules.push(c);
|
|
130
|
+
return rules;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Parse comment.
|
|
134
|
+
*
|
|
135
|
+
* @return {Object}
|
|
136
|
+
* @throws {Error}
|
|
137
|
+
*/
|
|
138
|
+
function comment() {
|
|
139
|
+
var pos = position();
|
|
140
|
+
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
|
|
141
|
+
var i = 2;
|
|
142
|
+
while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) ++i;
|
|
143
|
+
i += 2;
|
|
144
|
+
if (EMPTY_STRING === style.charAt(i - 1)) return error("End of comment missing");
|
|
145
|
+
var str = style.slice(2, i - 2);
|
|
146
|
+
column += 2;
|
|
147
|
+
updatePosition(str);
|
|
148
|
+
style = style.slice(i);
|
|
149
|
+
column += 2;
|
|
150
|
+
return pos({
|
|
151
|
+
type: TYPE_COMMENT,
|
|
152
|
+
comment: str
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Parse declaration.
|
|
157
|
+
*
|
|
158
|
+
* @return {Object}
|
|
159
|
+
* @throws {Error}
|
|
160
|
+
*/
|
|
161
|
+
function declaration() {
|
|
162
|
+
var pos = position();
|
|
163
|
+
var prop = match(PROPERTY_REGEX);
|
|
164
|
+
if (!prop) return;
|
|
165
|
+
comment();
|
|
166
|
+
if (!match(COLON_REGEX)) return error("property missing ':'");
|
|
167
|
+
var val = match(VALUE_REGEX);
|
|
168
|
+
var ret = pos({
|
|
169
|
+
type: TYPE_DECLARATION,
|
|
170
|
+
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
171
|
+
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
172
|
+
});
|
|
173
|
+
match(SEMICOLON_REGEX);
|
|
174
|
+
return ret;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Parse declarations.
|
|
178
|
+
*
|
|
179
|
+
* @return {Object[]}
|
|
180
|
+
*/
|
|
181
|
+
function declarations() {
|
|
182
|
+
var decls = [];
|
|
183
|
+
comments(decls);
|
|
184
|
+
var decl;
|
|
185
|
+
while (decl = declaration()) if (decl !== false) {
|
|
186
|
+
decls.push(decl);
|
|
187
|
+
comments(decls);
|
|
188
|
+
}
|
|
189
|
+
return decls;
|
|
190
|
+
}
|
|
191
|
+
whitespace();
|
|
192
|
+
return declarations();
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Trim `str`.
|
|
196
|
+
*
|
|
197
|
+
* @param {String} str
|
|
198
|
+
* @return {String}
|
|
199
|
+
*/
|
|
200
|
+
function trim(str) {
|
|
201
|
+
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
202
|
+
}
|
|
203
|
+
module.exports = index;
|
|
204
|
+
}));
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js
|
|
207
|
+
var require_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
208
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
209
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
210
|
+
};
|
|
211
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
212
|
+
exports.default = StyleToObject;
|
|
213
|
+
var inline_style_parser_1 = __importDefault(require_cjs$2());
|
|
214
|
+
/**
|
|
215
|
+
* Parses inline style to object.
|
|
216
|
+
*
|
|
217
|
+
* @param style - Inline style.
|
|
218
|
+
* @param iterator - Iterator.
|
|
219
|
+
* @returns - Style object or null.
|
|
220
|
+
*
|
|
221
|
+
* @example Parsing inline style to object:
|
|
222
|
+
*
|
|
223
|
+
* ```js
|
|
224
|
+
* import parse from 'style-to-object';
|
|
225
|
+
* parse('line-height: 42;'); // { 'line-height': '42' }
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
function StyleToObject(style, iterator) {
|
|
229
|
+
let styleObject = null;
|
|
230
|
+
if (!style || typeof style !== "string") return styleObject;
|
|
231
|
+
const declarations = (0, inline_style_parser_1.default)(style);
|
|
232
|
+
const hasIterator = typeof iterator === "function";
|
|
233
|
+
declarations.forEach((declaration) => {
|
|
234
|
+
if (declaration.type !== "declaration") return;
|
|
235
|
+
const { property, value } = declaration;
|
|
236
|
+
if (hasIterator) iterator(property, value, declaration);
|
|
237
|
+
else if (value) {
|
|
238
|
+
styleObject = styleObject || {};
|
|
239
|
+
styleObject[property] = value;
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
return styleObject;
|
|
243
|
+
}
|
|
244
|
+
}));
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js
|
|
247
|
+
var require_utilities = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
248
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
|
+
exports.camelCase = void 0;
|
|
250
|
+
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
|
|
251
|
+
var HYPHEN_REGEX = /-([a-z])/g;
|
|
252
|
+
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
253
|
+
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
254
|
+
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
255
|
+
/**
|
|
256
|
+
* Checks whether to skip camelCase.
|
|
257
|
+
*/
|
|
258
|
+
var skipCamelCase = function(property) {
|
|
259
|
+
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Replacer that capitalizes first character.
|
|
263
|
+
*/
|
|
264
|
+
var capitalize = function(match, character) {
|
|
265
|
+
return character.toUpperCase();
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Replacer that removes beginning hyphen of vendor prefix property.
|
|
269
|
+
*/
|
|
270
|
+
var trimHyphen = function(match, prefix) {
|
|
271
|
+
return "".concat(prefix, "-");
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* CamelCases a CSS property.
|
|
275
|
+
*/
|
|
276
|
+
var camelCase = function(property, options) {
|
|
277
|
+
if (options === void 0) options = {};
|
|
278
|
+
if (skipCamelCase(property)) return property;
|
|
279
|
+
property = property.toLowerCase();
|
|
280
|
+
if (options.reactCompat) property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
281
|
+
else property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
282
|
+
return property.replace(HYPHEN_REGEX, capitalize);
|
|
283
|
+
};
|
|
284
|
+
exports.camelCase = camelCase;
|
|
285
|
+
}));
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js
|
|
288
|
+
var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
289
|
+
var style_to_object_1 = (exports && exports.__importDefault || function(mod) {
|
|
290
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
291
|
+
})(require_cjs$1());
|
|
292
|
+
var utilities_1 = require_utilities();
|
|
293
|
+
/**
|
|
294
|
+
* Parses CSS inline style to JavaScript object (camelCased).
|
|
295
|
+
*/
|
|
296
|
+
function StyleToJS(style, options) {
|
|
297
|
+
var output = {};
|
|
298
|
+
if (!style || typeof style !== "string") return output;
|
|
299
|
+
(0, style_to_object_1.default)(style, function(property, value) {
|
|
300
|
+
if (property && value) output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
301
|
+
});
|
|
302
|
+
return output;
|
|
303
|
+
}
|
|
304
|
+
StyleToJS.default = StyleToJS;
|
|
305
|
+
module.exports = StyleToJS;
|
|
306
|
+
}));
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
|
|
309
|
+
/**
|
|
310
|
+
* @typedef {import('unist').Node} Node
|
|
311
|
+
* @typedef {import('unist').Point} Point
|
|
312
|
+
* @typedef {import('unist').Position} Position
|
|
313
|
+
*/
|
|
314
|
+
/**
|
|
315
|
+
* @typedef NodeLike
|
|
316
|
+
* @property {string} type
|
|
317
|
+
* @property {PositionLike | null | undefined} [position]
|
|
318
|
+
*
|
|
319
|
+
* @typedef PositionLike
|
|
320
|
+
* @property {PointLike | null | undefined} [start]
|
|
321
|
+
* @property {PointLike | null | undefined} [end]
|
|
322
|
+
*
|
|
323
|
+
* @typedef PointLike
|
|
324
|
+
* @property {number | null | undefined} [line]
|
|
325
|
+
* @property {number | null | undefined} [column]
|
|
326
|
+
* @property {number | null | undefined} [offset]
|
|
327
|
+
*/
|
|
328
|
+
/**
|
|
329
|
+
* Get the ending point of `node`.
|
|
330
|
+
*
|
|
331
|
+
* @param node
|
|
332
|
+
* Node.
|
|
333
|
+
* @returns
|
|
334
|
+
* Point.
|
|
335
|
+
*/
|
|
336
|
+
var pointEnd = point$1("end");
|
|
337
|
+
/**
|
|
338
|
+
* Get the starting point of `node`.
|
|
339
|
+
*
|
|
340
|
+
* @param node
|
|
341
|
+
* Node.
|
|
342
|
+
* @returns
|
|
343
|
+
* Point.
|
|
344
|
+
*/
|
|
345
|
+
var pointStart = point$1("start");
|
|
346
|
+
/**
|
|
347
|
+
* Get the positional info of `node`.
|
|
348
|
+
*
|
|
349
|
+
* @param {'end' | 'start'} type
|
|
350
|
+
* Side.
|
|
351
|
+
* @returns
|
|
352
|
+
* Getter.
|
|
353
|
+
*/
|
|
354
|
+
function point$1(type) {
|
|
355
|
+
return point;
|
|
356
|
+
/**
|
|
357
|
+
* Get the point info of `node` at a bound side.
|
|
358
|
+
*
|
|
359
|
+
* @param {Node | NodeLike | null | undefined} [node]
|
|
360
|
+
* @returns {Point | undefined}
|
|
361
|
+
*/
|
|
362
|
+
function point(node) {
|
|
363
|
+
const point = node && node.position && node.position[type] || {};
|
|
364
|
+
if (typeof point.line === "number" && point.line > 0 && typeof point.column === "number" && point.column > 0) return {
|
|
365
|
+
line: point.line,
|
|
366
|
+
column: point.column,
|
|
367
|
+
offset: typeof point.offset === "number" && point.offset > -1 ? point.offset : void 0
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Get the positional info of `node`.
|
|
373
|
+
*
|
|
374
|
+
* @param {Node | NodeLike | null | undefined} [node]
|
|
375
|
+
* Node.
|
|
376
|
+
* @returns {Position | undefined}
|
|
377
|
+
* Position.
|
|
378
|
+
*/
|
|
379
|
+
function position$1(node) {
|
|
380
|
+
const start = pointStart(node);
|
|
381
|
+
const end = pointEnd(node);
|
|
382
|
+
if (start && end) return {
|
|
383
|
+
start,
|
|
384
|
+
end
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js
|
|
389
|
+
/**
|
|
390
|
+
* @typedef {import('unist').Node} Node
|
|
391
|
+
* @typedef {import('unist').Point} Point
|
|
392
|
+
* @typedef {import('unist').Position} Position
|
|
393
|
+
*/
|
|
394
|
+
/**
|
|
395
|
+
* @typedef NodeLike
|
|
396
|
+
* @property {string} type
|
|
397
|
+
* @property {PositionLike | null | undefined} [position]
|
|
398
|
+
*
|
|
399
|
+
* @typedef PointLike
|
|
400
|
+
* @property {number | null | undefined} [line]
|
|
401
|
+
* @property {number | null | undefined} [column]
|
|
402
|
+
* @property {number | null | undefined} [offset]
|
|
403
|
+
*
|
|
404
|
+
* @typedef PositionLike
|
|
405
|
+
* @property {PointLike | null | undefined} [start]
|
|
406
|
+
* @property {PointLike | null | undefined} [end]
|
|
407
|
+
*/
|
|
408
|
+
/**
|
|
409
|
+
* Serialize the positional info of a point, position (start and end points),
|
|
410
|
+
* or node.
|
|
411
|
+
*
|
|
412
|
+
* @param {Node | NodeLike | Point | PointLike | Position | PositionLike | null | undefined} [value]
|
|
413
|
+
* Node, position, or point.
|
|
414
|
+
* @returns {string}
|
|
415
|
+
* Pretty printed positional info of a node (`string`).
|
|
416
|
+
*
|
|
417
|
+
* In the format of a range `ls:cs-le:ce` (when given `node` or `position`)
|
|
418
|
+
* or a point `l:c` (when given `point`), where `l` stands for line, `c` for
|
|
419
|
+
* column, `s` for `start`, and `e` for end.
|
|
420
|
+
* An empty string (`''`) is returned if the given value is neither `node`,
|
|
421
|
+
* `position`, nor `point`.
|
|
422
|
+
*/
|
|
423
|
+
function stringifyPosition(value) {
|
|
424
|
+
if (!value || typeof value !== "object") return "";
|
|
425
|
+
if ("position" in value || "type" in value) return position(value.position);
|
|
426
|
+
if ("start" in value || "end" in value) return position(value);
|
|
427
|
+
if ("line" in value || "column" in value) return point(value);
|
|
428
|
+
return "";
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @param {Point | PointLike | null | undefined} point
|
|
432
|
+
* @returns {string}
|
|
433
|
+
*/
|
|
434
|
+
function point(point) {
|
|
435
|
+
return index(point && point.line) + ":" + index(point && point.column);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @param {Position | PositionLike | null | undefined} pos
|
|
439
|
+
* @returns {string}
|
|
440
|
+
*/
|
|
441
|
+
function position(pos) {
|
|
442
|
+
return point(pos && pos.start) + "-" + point(pos && pos.end);
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @param {number | null | undefined} value
|
|
446
|
+
* @returns {number}
|
|
447
|
+
*/
|
|
448
|
+
function index(value) {
|
|
449
|
+
return value && typeof value === "number" ? value : 1;
|
|
450
|
+
}
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js
|
|
453
|
+
/**
|
|
454
|
+
* @import {Node, Point, Position} from 'unist'
|
|
455
|
+
*/
|
|
456
|
+
/**
|
|
457
|
+
* @typedef {object & {type: string, position?: Position | undefined}} NodeLike
|
|
458
|
+
*
|
|
459
|
+
* @typedef Options
|
|
460
|
+
* Configuration.
|
|
461
|
+
* @property {Array<Node> | null | undefined} [ancestors]
|
|
462
|
+
* Stack of (inclusive) ancestor nodes surrounding the message (optional).
|
|
463
|
+
* @property {Error | null | undefined} [cause]
|
|
464
|
+
* Original error cause of the message (optional).
|
|
465
|
+
* @property {Point | Position | null | undefined} [place]
|
|
466
|
+
* Place of message (optional).
|
|
467
|
+
* @property {string | null | undefined} [ruleId]
|
|
468
|
+
* Category of message (optional, example: `'my-rule'`).
|
|
469
|
+
* @property {string | null | undefined} [source]
|
|
470
|
+
* Namespace of who sent the message (optional, example: `'my-package'`).
|
|
471
|
+
*/
|
|
472
|
+
/**
|
|
473
|
+
* Message.
|
|
474
|
+
*/
|
|
475
|
+
var VFileMessage = class extends Error {
|
|
476
|
+
/**
|
|
477
|
+
* Create a message for `reason`.
|
|
478
|
+
*
|
|
479
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
480
|
+
*
|
|
481
|
+
* @overload
|
|
482
|
+
* @param {string} reason
|
|
483
|
+
* @param {Options | null | undefined} [options]
|
|
484
|
+
* @returns
|
|
485
|
+
*
|
|
486
|
+
* @overload
|
|
487
|
+
* @param {string} reason
|
|
488
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
489
|
+
* @param {string | null | undefined} [origin]
|
|
490
|
+
* @returns
|
|
491
|
+
*
|
|
492
|
+
* @overload
|
|
493
|
+
* @param {string} reason
|
|
494
|
+
* @param {Point | Position | null | undefined} place
|
|
495
|
+
* @param {string | null | undefined} [origin]
|
|
496
|
+
* @returns
|
|
497
|
+
*
|
|
498
|
+
* @overload
|
|
499
|
+
* @param {string} reason
|
|
500
|
+
* @param {string | null | undefined} [origin]
|
|
501
|
+
* @returns
|
|
502
|
+
*
|
|
503
|
+
* @overload
|
|
504
|
+
* @param {Error | VFileMessage} cause
|
|
505
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
506
|
+
* @param {string | null | undefined} [origin]
|
|
507
|
+
* @returns
|
|
508
|
+
*
|
|
509
|
+
* @overload
|
|
510
|
+
* @param {Error | VFileMessage} cause
|
|
511
|
+
* @param {Point | Position | null | undefined} place
|
|
512
|
+
* @param {string | null | undefined} [origin]
|
|
513
|
+
* @returns
|
|
514
|
+
*
|
|
515
|
+
* @overload
|
|
516
|
+
* @param {Error | VFileMessage} cause
|
|
517
|
+
* @param {string | null | undefined} [origin]
|
|
518
|
+
* @returns
|
|
519
|
+
*
|
|
520
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
521
|
+
* Reason for message, should use markdown.
|
|
522
|
+
* @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
523
|
+
* Configuration (optional).
|
|
524
|
+
* @param {string | null | undefined} [origin]
|
|
525
|
+
* Place in code where the message originates (example:
|
|
526
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
527
|
+
* @returns
|
|
528
|
+
* Instance of `VFileMessage`.
|
|
529
|
+
*/
|
|
530
|
+
constructor(causeOrReason, optionsOrParentOrPlace, origin) {
|
|
531
|
+
super();
|
|
532
|
+
if (typeof optionsOrParentOrPlace === "string") {
|
|
533
|
+
origin = optionsOrParentOrPlace;
|
|
534
|
+
optionsOrParentOrPlace = void 0;
|
|
535
|
+
}
|
|
536
|
+
/** @type {string} */
|
|
537
|
+
let reason = "";
|
|
538
|
+
/** @type {Options} */
|
|
539
|
+
let options = {};
|
|
540
|
+
let legacyCause = false;
|
|
541
|
+
if (optionsOrParentOrPlace) if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
542
|
+
else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
543
|
+
else if ("type" in optionsOrParentOrPlace) options = {
|
|
544
|
+
ancestors: [optionsOrParentOrPlace],
|
|
545
|
+
place: optionsOrParentOrPlace.position
|
|
546
|
+
};
|
|
547
|
+
else options = { ...optionsOrParentOrPlace };
|
|
548
|
+
if (typeof causeOrReason === "string") reason = causeOrReason;
|
|
549
|
+
else if (!options.cause && causeOrReason) {
|
|
550
|
+
legacyCause = true;
|
|
551
|
+
reason = causeOrReason.message;
|
|
552
|
+
options.cause = causeOrReason;
|
|
553
|
+
}
|
|
554
|
+
if (!options.ruleId && !options.source && typeof origin === "string") {
|
|
555
|
+
const index = origin.indexOf(":");
|
|
556
|
+
if (index === -1) options.ruleId = origin;
|
|
557
|
+
else {
|
|
558
|
+
options.source = origin.slice(0, index);
|
|
559
|
+
options.ruleId = origin.slice(index + 1);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
if (!options.place && options.ancestors && options.ancestors) {
|
|
563
|
+
const parent = options.ancestors[options.ancestors.length - 1];
|
|
564
|
+
if (parent) options.place = parent.position;
|
|
565
|
+
}
|
|
566
|
+
const start = options.place && "start" in options.place ? options.place.start : options.place;
|
|
567
|
+
/**
|
|
568
|
+
* Stack of ancestor nodes surrounding the message.
|
|
569
|
+
*
|
|
570
|
+
* @type {Array<Node> | undefined}
|
|
571
|
+
*/
|
|
572
|
+
this.ancestors = options.ancestors || void 0;
|
|
573
|
+
/**
|
|
574
|
+
* Original error cause of the message.
|
|
575
|
+
*
|
|
576
|
+
* @type {Error | undefined}
|
|
577
|
+
*/
|
|
578
|
+
this.cause = options.cause || void 0;
|
|
579
|
+
/**
|
|
580
|
+
* Starting column of message.
|
|
581
|
+
*
|
|
582
|
+
* @type {number | undefined}
|
|
583
|
+
*/
|
|
584
|
+
this.column = start ? start.column : void 0;
|
|
585
|
+
/**
|
|
586
|
+
* State of problem.
|
|
587
|
+
*
|
|
588
|
+
* * `true` — error, file not usable
|
|
589
|
+
* * `false` — warning, change may be needed
|
|
590
|
+
* * `undefined` — change likely not needed
|
|
591
|
+
*
|
|
592
|
+
* @type {boolean | null | undefined}
|
|
593
|
+
*/
|
|
594
|
+
this.fatal = void 0;
|
|
595
|
+
/**
|
|
596
|
+
* Path of a file (used throughout the `VFile` ecosystem).
|
|
597
|
+
*
|
|
598
|
+
* @type {string | undefined}
|
|
599
|
+
*/
|
|
600
|
+
this.file = "";
|
|
601
|
+
/**
|
|
602
|
+
* Reason for message.
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
*/
|
|
606
|
+
this.message = reason;
|
|
607
|
+
/**
|
|
608
|
+
* Starting line of error.
|
|
609
|
+
*
|
|
610
|
+
* @type {number | undefined}
|
|
611
|
+
*/
|
|
612
|
+
this.line = start ? start.line : void 0;
|
|
613
|
+
/**
|
|
614
|
+
* Serialized positional info of message.
|
|
615
|
+
*
|
|
616
|
+
* On normal errors, this would be something like `ParseError`, buit in
|
|
617
|
+
* `VFile` messages we use this space to show where an error happened.
|
|
618
|
+
*/
|
|
619
|
+
this.name = stringifyPosition(options.place) || "1:1";
|
|
620
|
+
/**
|
|
621
|
+
* Place of message.
|
|
622
|
+
*
|
|
623
|
+
* @type {Point | Position | undefined}
|
|
624
|
+
*/
|
|
625
|
+
this.place = options.place || void 0;
|
|
626
|
+
/**
|
|
627
|
+
* Reason for message, should use markdown.
|
|
628
|
+
*
|
|
629
|
+
* @type {string}
|
|
630
|
+
*/
|
|
631
|
+
this.reason = this.message;
|
|
632
|
+
/**
|
|
633
|
+
* Category of message (example: `'my-rule'`).
|
|
634
|
+
*
|
|
635
|
+
* @type {string | undefined}
|
|
636
|
+
*/
|
|
637
|
+
this.ruleId = options.ruleId || void 0;
|
|
638
|
+
/**
|
|
639
|
+
* Namespace of message (example: `'my-package'`).
|
|
640
|
+
*
|
|
641
|
+
* @type {string | undefined}
|
|
642
|
+
*/
|
|
643
|
+
this.source = options.source || void 0;
|
|
644
|
+
/**
|
|
645
|
+
* Stack of message.
|
|
646
|
+
*
|
|
647
|
+
* This is used by normal errors to show where something happened in
|
|
648
|
+
* programming code, irrelevant for `VFile` messages,
|
|
649
|
+
*
|
|
650
|
+
* @type {string}
|
|
651
|
+
*/
|
|
652
|
+
this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
|
|
653
|
+
/**
|
|
654
|
+
* Specify the source value that’s being reported, which is deemed
|
|
655
|
+
* incorrect.
|
|
656
|
+
*
|
|
657
|
+
* @type {string | undefined}
|
|
658
|
+
*/
|
|
659
|
+
this.actual = void 0;
|
|
660
|
+
/**
|
|
661
|
+
* Suggest acceptable values that can be used instead of `actual`.
|
|
662
|
+
*
|
|
663
|
+
* @type {Array<string> | undefined}
|
|
664
|
+
*/
|
|
665
|
+
this.expected = void 0;
|
|
666
|
+
/**
|
|
667
|
+
* Long form description of the message (you should use markdown).
|
|
668
|
+
*
|
|
669
|
+
* @type {string | undefined}
|
|
670
|
+
*/
|
|
671
|
+
this.note = void 0;
|
|
672
|
+
/**
|
|
673
|
+
* Link to docs for the message.
|
|
674
|
+
*
|
|
675
|
+
* > 👉 **Note**: this must be an absolute URL that can be passed as `x`
|
|
676
|
+
* > to `new URL(x)`.
|
|
677
|
+
*
|
|
678
|
+
* @type {string | undefined}
|
|
679
|
+
*/
|
|
680
|
+
this.url = void 0;
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
VFileMessage.prototype.file = "";
|
|
684
|
+
VFileMessage.prototype.name = "";
|
|
685
|
+
VFileMessage.prototype.reason = "";
|
|
686
|
+
VFileMessage.prototype.message = "";
|
|
687
|
+
VFileMessage.prototype.stack = "";
|
|
688
|
+
VFileMessage.prototype.column = void 0;
|
|
689
|
+
VFileMessage.prototype.line = void 0;
|
|
690
|
+
VFileMessage.prototype.ancestors = void 0;
|
|
691
|
+
VFileMessage.prototype.cause = void 0;
|
|
692
|
+
VFileMessage.prototype.fatal = void 0;
|
|
693
|
+
VFileMessage.prototype.place = void 0;
|
|
694
|
+
VFileMessage.prototype.ruleId = void 0;
|
|
695
|
+
VFileMessage.prototype.source = void 0;
|
|
696
|
+
//#endregion
|
|
697
|
+
//#region node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
698
|
+
/**
|
|
699
|
+
* @import {Identifier, Literal, MemberExpression} from 'estree'
|
|
700
|
+
* @import {Jsx, JsxDev, Options, Props} from 'hast-util-to-jsx-runtime'
|
|
701
|
+
* @import {Element, Nodes, Parents, Root, Text} from 'hast'
|
|
702
|
+
* @import {MdxFlowExpressionHast, MdxTextExpressionHast} from 'mdast-util-mdx-expression'
|
|
703
|
+
* @import {MdxJsxFlowElementHast, MdxJsxTextElementHast} from 'mdast-util-mdx-jsx'
|
|
704
|
+
* @import {MdxjsEsmHast} from 'mdast-util-mdxjs-esm'
|
|
705
|
+
* @import {Position} from 'unist'
|
|
706
|
+
* @import {Child, Create, Field, JsxElement, State, Style} from './types.js'
|
|
707
|
+
*/
|
|
708
|
+
var import_cjs = /* @__PURE__ */ __toESM(require_cjs(), 1);
|
|
709
|
+
var own = {}.hasOwnProperty;
|
|
710
|
+
/** @type {Map<string, number>} */
|
|
711
|
+
var emptyMap = /* @__PURE__ */ new Map();
|
|
712
|
+
var cap = /[A-Z]/g;
|
|
713
|
+
var tableElements = new Set([
|
|
714
|
+
"table",
|
|
715
|
+
"tbody",
|
|
716
|
+
"thead",
|
|
717
|
+
"tfoot",
|
|
718
|
+
"tr"
|
|
719
|
+
]);
|
|
720
|
+
var tableCellElement = new Set(["td", "th"]);
|
|
721
|
+
var docs = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
722
|
+
/**
|
|
723
|
+
* Transform a hast tree to preact, react, solid, svelte, vue, etc.,
|
|
724
|
+
* with an automatic JSX runtime.
|
|
725
|
+
*
|
|
726
|
+
* @param {Nodes} tree
|
|
727
|
+
* Tree to transform.
|
|
728
|
+
* @param {Options} options
|
|
729
|
+
* Configuration (required).
|
|
730
|
+
* @returns {JsxElement}
|
|
731
|
+
* JSX element.
|
|
732
|
+
*/
|
|
733
|
+
function toJsxRuntime(tree, options) {
|
|
734
|
+
if (!options || options.Fragment === void 0) throw new TypeError("Expected `Fragment` in options");
|
|
735
|
+
const filePath = options.filePath || void 0;
|
|
736
|
+
/** @type {Create} */
|
|
737
|
+
let create;
|
|
738
|
+
if (options.development) {
|
|
739
|
+
if (typeof options.jsxDEV !== "function") throw new TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
740
|
+
create = developmentCreate(filePath, options.jsxDEV);
|
|
741
|
+
} else {
|
|
742
|
+
if (typeof options.jsx !== "function") throw new TypeError("Expected `jsx` in production options");
|
|
743
|
+
if (typeof options.jsxs !== "function") throw new TypeError("Expected `jsxs` in production options");
|
|
744
|
+
create = productionCreate(filePath, options.jsx, options.jsxs);
|
|
745
|
+
}
|
|
746
|
+
/** @type {State} */
|
|
747
|
+
const state = {
|
|
748
|
+
Fragment: options.Fragment,
|
|
749
|
+
ancestors: [],
|
|
750
|
+
components: options.components || {},
|
|
751
|
+
create,
|
|
752
|
+
elementAttributeNameCase: options.elementAttributeNameCase || "react",
|
|
753
|
+
evaluater: options.createEvaluater ? options.createEvaluater() : void 0,
|
|
754
|
+
filePath,
|
|
755
|
+
ignoreInvalidStyle: options.ignoreInvalidStyle || false,
|
|
756
|
+
passKeys: options.passKeys !== false,
|
|
757
|
+
passNode: options.passNode || false,
|
|
758
|
+
schema: options.space === "svg" ? svg : html,
|
|
759
|
+
stylePropertyNameCase: options.stylePropertyNameCase || "dom",
|
|
760
|
+
tableCellAlignToStyle: options.tableCellAlignToStyle !== false
|
|
761
|
+
};
|
|
762
|
+
const result = one(state, tree, void 0);
|
|
763
|
+
if (result && typeof result !== "string") return result;
|
|
764
|
+
return state.create(tree, state.Fragment, { children: result || void 0 }, void 0);
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Transform a node.
|
|
768
|
+
*
|
|
769
|
+
* @param {State} state
|
|
770
|
+
* Info passed around.
|
|
771
|
+
* @param {Nodes} node
|
|
772
|
+
* Current node.
|
|
773
|
+
* @param {string | undefined} key
|
|
774
|
+
* Key.
|
|
775
|
+
* @returns {Child | undefined}
|
|
776
|
+
* Child, optional.
|
|
777
|
+
*/
|
|
778
|
+
function one(state, node, key) {
|
|
779
|
+
if (node.type === "element") return element(state, node, key);
|
|
780
|
+
if (node.type === "mdxFlowExpression" || node.type === "mdxTextExpression") return mdxExpression(state, node);
|
|
781
|
+
if (node.type === "mdxJsxFlowElement" || node.type === "mdxJsxTextElement") return mdxJsxElement(state, node, key);
|
|
782
|
+
if (node.type === "mdxjsEsm") return mdxEsm(state, node);
|
|
783
|
+
if (node.type === "root") return root(state, node, key);
|
|
784
|
+
if (node.type === "text") return text(state, node);
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Handle element.
|
|
788
|
+
*
|
|
789
|
+
* @param {State} state
|
|
790
|
+
* Info passed around.
|
|
791
|
+
* @param {Element} node
|
|
792
|
+
* Current node.
|
|
793
|
+
* @param {string | undefined} key
|
|
794
|
+
* Key.
|
|
795
|
+
* @returns {Child | undefined}
|
|
796
|
+
* Child, optional.
|
|
797
|
+
*/
|
|
798
|
+
function element(state, node, key) {
|
|
799
|
+
const parentSchema = state.schema;
|
|
800
|
+
let schema = parentSchema;
|
|
801
|
+
if (node.tagName.toLowerCase() === "svg" && parentSchema.space === "html") {
|
|
802
|
+
schema = svg;
|
|
803
|
+
state.schema = schema;
|
|
804
|
+
}
|
|
805
|
+
state.ancestors.push(node);
|
|
806
|
+
const type = findComponentFromName(state, node.tagName, false);
|
|
807
|
+
const props = createElementProps(state, node);
|
|
808
|
+
let children = createChildren(state, node);
|
|
809
|
+
if (tableElements.has(node.tagName)) children = children.filter(function(child) {
|
|
810
|
+
return typeof child === "string" ? !whitespace(child) : true;
|
|
811
|
+
});
|
|
812
|
+
addNode(state, props, type, node);
|
|
813
|
+
addChildren(props, children);
|
|
814
|
+
state.ancestors.pop();
|
|
815
|
+
state.schema = parentSchema;
|
|
816
|
+
return state.create(node, type, props, key);
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Handle MDX expression.
|
|
820
|
+
*
|
|
821
|
+
* @param {State} state
|
|
822
|
+
* Info passed around.
|
|
823
|
+
* @param {MdxFlowExpressionHast | MdxTextExpressionHast} node
|
|
824
|
+
* Current node.
|
|
825
|
+
* @returns {Child | undefined}
|
|
826
|
+
* Child, optional.
|
|
827
|
+
*/
|
|
828
|
+
function mdxExpression(state, node) {
|
|
829
|
+
if (node.data && node.data.estree && state.evaluater) {
|
|
830
|
+
const expression = node.data.estree.body[0];
|
|
831
|
+
expression.type;
|
|
832
|
+
return state.evaluater.evaluateExpression(expression.expression);
|
|
833
|
+
}
|
|
834
|
+
crashEstree(state, node.position);
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Handle MDX ESM.
|
|
838
|
+
*
|
|
839
|
+
* @param {State} state
|
|
840
|
+
* Info passed around.
|
|
841
|
+
* @param {MdxjsEsmHast} node
|
|
842
|
+
* Current node.
|
|
843
|
+
* @returns {Child | undefined}
|
|
844
|
+
* Child, optional.
|
|
845
|
+
*/
|
|
846
|
+
function mdxEsm(state, node) {
|
|
847
|
+
if (node.data && node.data.estree && state.evaluater) return state.evaluater.evaluateProgram(node.data.estree);
|
|
848
|
+
crashEstree(state, node.position);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Handle MDX JSX.
|
|
852
|
+
*
|
|
853
|
+
* @param {State} state
|
|
854
|
+
* Info passed around.
|
|
855
|
+
* @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node
|
|
856
|
+
* Current node.
|
|
857
|
+
* @param {string | undefined} key
|
|
858
|
+
* Key.
|
|
859
|
+
* @returns {Child | undefined}
|
|
860
|
+
* Child, optional.
|
|
861
|
+
*/
|
|
862
|
+
function mdxJsxElement(state, node, key) {
|
|
863
|
+
const parentSchema = state.schema;
|
|
864
|
+
let schema = parentSchema;
|
|
865
|
+
if (node.name === "svg" && parentSchema.space === "html") {
|
|
866
|
+
schema = svg;
|
|
867
|
+
state.schema = schema;
|
|
868
|
+
}
|
|
869
|
+
state.ancestors.push(node);
|
|
870
|
+
const type = node.name === null ? state.Fragment : findComponentFromName(state, node.name, true);
|
|
871
|
+
const props = createJsxElementProps(state, node);
|
|
872
|
+
const children = createChildren(state, node);
|
|
873
|
+
addNode(state, props, type, node);
|
|
874
|
+
addChildren(props, children);
|
|
875
|
+
state.ancestors.pop();
|
|
876
|
+
state.schema = parentSchema;
|
|
877
|
+
return state.create(node, type, props, key);
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Handle root.
|
|
881
|
+
*
|
|
882
|
+
* @param {State} state
|
|
883
|
+
* Info passed around.
|
|
884
|
+
* @param {Root} node
|
|
885
|
+
* Current node.
|
|
886
|
+
* @param {string | undefined} key
|
|
887
|
+
* Key.
|
|
888
|
+
* @returns {Child | undefined}
|
|
889
|
+
* Child, optional.
|
|
890
|
+
*/
|
|
891
|
+
function root(state, node, key) {
|
|
892
|
+
/** @type {Props} */
|
|
893
|
+
const props = {};
|
|
894
|
+
addChildren(props, createChildren(state, node));
|
|
895
|
+
return state.create(node, state.Fragment, props, key);
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Handle text.
|
|
899
|
+
*
|
|
900
|
+
* @param {State} _
|
|
901
|
+
* Info passed around.
|
|
902
|
+
* @param {Text} node
|
|
903
|
+
* Current node.
|
|
904
|
+
* @returns {Child | undefined}
|
|
905
|
+
* Child, optional.
|
|
906
|
+
*/
|
|
907
|
+
function text(_, node) {
|
|
908
|
+
return node.value;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Add `node` to props.
|
|
912
|
+
*
|
|
913
|
+
* @param {State} state
|
|
914
|
+
* Info passed around.
|
|
915
|
+
* @param {Props} props
|
|
916
|
+
* Props.
|
|
917
|
+
* @param {unknown} type
|
|
918
|
+
* Type.
|
|
919
|
+
* @param {Element | MdxJsxFlowElementHast | MdxJsxTextElementHast} node
|
|
920
|
+
* Node.
|
|
921
|
+
* @returns {undefined}
|
|
922
|
+
* Nothing.
|
|
923
|
+
*/
|
|
924
|
+
function addNode(state, props, type, node) {
|
|
925
|
+
if (typeof type !== "string" && type !== state.Fragment && state.passNode) props.node = node;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Add children to props.
|
|
929
|
+
*
|
|
930
|
+
* @param {Props} props
|
|
931
|
+
* Props.
|
|
932
|
+
* @param {Array<Child>} children
|
|
933
|
+
* Children.
|
|
934
|
+
* @returns {undefined}
|
|
935
|
+
* Nothing.
|
|
936
|
+
*/
|
|
937
|
+
function addChildren(props, children) {
|
|
938
|
+
if (children.length > 0) {
|
|
939
|
+
const value = children.length > 1 ? children : children[0];
|
|
940
|
+
if (value) props.children = value;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* @param {string | undefined} _
|
|
945
|
+
* Path to file.
|
|
946
|
+
* @param {Jsx} jsx
|
|
947
|
+
* Dynamic.
|
|
948
|
+
* @param {Jsx} jsxs
|
|
949
|
+
* Static.
|
|
950
|
+
* @returns {Create}
|
|
951
|
+
* Create a production element.
|
|
952
|
+
*/
|
|
953
|
+
function productionCreate(_, jsx, jsxs) {
|
|
954
|
+
return create;
|
|
955
|
+
/** @type {Create} */
|
|
956
|
+
function create(_, type, props, key) {
|
|
957
|
+
const fn = Array.isArray(props.children) ? jsxs : jsx;
|
|
958
|
+
return key ? fn(type, props, key) : fn(type, props);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* @param {string | undefined} filePath
|
|
963
|
+
* Path to file.
|
|
964
|
+
* @param {JsxDev} jsxDEV
|
|
965
|
+
* Development.
|
|
966
|
+
* @returns {Create}
|
|
967
|
+
* Create a development element.
|
|
968
|
+
*/
|
|
969
|
+
function developmentCreate(filePath, jsxDEV) {
|
|
970
|
+
return create;
|
|
971
|
+
/** @type {Create} */
|
|
972
|
+
function create(node, type, props, key) {
|
|
973
|
+
const isStaticChildren = Array.isArray(props.children);
|
|
974
|
+
const point = pointStart(node);
|
|
975
|
+
return jsxDEV(type, props, key, isStaticChildren, {
|
|
976
|
+
columnNumber: point ? point.column - 1 : void 0,
|
|
977
|
+
fileName: filePath,
|
|
978
|
+
lineNumber: point ? point.line : void 0
|
|
979
|
+
}, void 0);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* Create props from an element.
|
|
984
|
+
*
|
|
985
|
+
* @param {State} state
|
|
986
|
+
* Info passed around.
|
|
987
|
+
* @param {Element} node
|
|
988
|
+
* Current element.
|
|
989
|
+
* @returns {Props}
|
|
990
|
+
* Props.
|
|
991
|
+
*/
|
|
992
|
+
function createElementProps(state, node) {
|
|
993
|
+
/** @type {Props} */
|
|
994
|
+
const props = {};
|
|
995
|
+
/** @type {string | undefined} */
|
|
996
|
+
let alignValue;
|
|
997
|
+
/** @type {string} */
|
|
998
|
+
let prop;
|
|
999
|
+
for (prop in node.properties) if (prop !== "children" && own.call(node.properties, prop)) {
|
|
1000
|
+
const result = createProperty(state, prop, node.properties[prop]);
|
|
1001
|
+
if (result) {
|
|
1002
|
+
const [key, value] = result;
|
|
1003
|
+
if (state.tableCellAlignToStyle && key === "align" && typeof value === "string" && tableCellElement.has(node.tagName)) alignValue = value;
|
|
1004
|
+
else props[key] = value;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
if (alignValue) {
|
|
1008
|
+
const style = props.style || (props.style = {});
|
|
1009
|
+
style[state.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = alignValue;
|
|
1010
|
+
}
|
|
1011
|
+
return props;
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Create props from a JSX element.
|
|
1015
|
+
*
|
|
1016
|
+
* @param {State} state
|
|
1017
|
+
* Info passed around.
|
|
1018
|
+
* @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node
|
|
1019
|
+
* Current JSX element.
|
|
1020
|
+
* @returns {Props}
|
|
1021
|
+
* Props.
|
|
1022
|
+
*/
|
|
1023
|
+
function createJsxElementProps(state, node) {
|
|
1024
|
+
/** @type {Props} */
|
|
1025
|
+
const props = {};
|
|
1026
|
+
for (const attribute of node.attributes) if (attribute.type === "mdxJsxExpressionAttribute") if (attribute.data && attribute.data.estree && state.evaluater) {
|
|
1027
|
+
const expression = attribute.data.estree.body[0];
|
|
1028
|
+
expression.type;
|
|
1029
|
+
const objectExpression = expression.expression;
|
|
1030
|
+
objectExpression.type;
|
|
1031
|
+
const property = objectExpression.properties[0];
|
|
1032
|
+
property.type;
|
|
1033
|
+
Object.assign(props, state.evaluater.evaluateExpression(property.argument));
|
|
1034
|
+
} else crashEstree(state, node.position);
|
|
1035
|
+
else {
|
|
1036
|
+
const name = attribute.name;
|
|
1037
|
+
/** @type {unknown} */
|
|
1038
|
+
let value;
|
|
1039
|
+
if (attribute.value && typeof attribute.value === "object") if (attribute.value.data && attribute.value.data.estree && state.evaluater) {
|
|
1040
|
+
const expression = attribute.value.data.estree.body[0];
|
|
1041
|
+
expression.type;
|
|
1042
|
+
value = state.evaluater.evaluateExpression(expression.expression);
|
|
1043
|
+
} else crashEstree(state, node.position);
|
|
1044
|
+
else value = attribute.value === null ? true : attribute.value;
|
|
1045
|
+
props[name] = value;
|
|
1046
|
+
}
|
|
1047
|
+
return props;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Create children.
|
|
1051
|
+
*
|
|
1052
|
+
* @param {State} state
|
|
1053
|
+
* Info passed around.
|
|
1054
|
+
* @param {Parents} node
|
|
1055
|
+
* Current element.
|
|
1056
|
+
* @returns {Array<Child>}
|
|
1057
|
+
* Children.
|
|
1058
|
+
*/
|
|
1059
|
+
function createChildren(state, node) {
|
|
1060
|
+
/** @type {Array<Child>} */
|
|
1061
|
+
const children = [];
|
|
1062
|
+
let index = -1;
|
|
1063
|
+
/** @type {Map<string, number>} */
|
|
1064
|
+
/* c8 ignore next */
|
|
1065
|
+
const countsByName = state.passKeys ? /* @__PURE__ */ new Map() : emptyMap;
|
|
1066
|
+
while (++index < node.children.length) {
|
|
1067
|
+
const child = node.children[index];
|
|
1068
|
+
/** @type {string | undefined} */
|
|
1069
|
+
let key;
|
|
1070
|
+
if (state.passKeys) {
|
|
1071
|
+
const name = child.type === "element" ? child.tagName : child.type === "mdxJsxFlowElement" || child.type === "mdxJsxTextElement" ? child.name : void 0;
|
|
1072
|
+
if (name) {
|
|
1073
|
+
const count = countsByName.get(name) || 0;
|
|
1074
|
+
key = name + "-" + count;
|
|
1075
|
+
countsByName.set(name, count + 1);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
const result = one(state, child, key);
|
|
1079
|
+
if (result !== void 0) children.push(result);
|
|
1080
|
+
}
|
|
1081
|
+
return children;
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Handle a property.
|
|
1085
|
+
*
|
|
1086
|
+
* @param {State} state
|
|
1087
|
+
* Info passed around.
|
|
1088
|
+
* @param {string} prop
|
|
1089
|
+
* Key.
|
|
1090
|
+
* @param {Array<number | string> | boolean | number | string | null | undefined} value
|
|
1091
|
+
* hast property value.
|
|
1092
|
+
* @returns {Field | undefined}
|
|
1093
|
+
* Field for runtime, optional.
|
|
1094
|
+
*/
|
|
1095
|
+
function createProperty(state, prop, value) {
|
|
1096
|
+
const info = find(state.schema, prop);
|
|
1097
|
+
if (value === null || value === void 0 || typeof value === "number" && Number.isNaN(value)) return;
|
|
1098
|
+
if (Array.isArray(value)) value = info.commaSeparated ? stringify(value) : stringify$1(value);
|
|
1099
|
+
if (info.property === "style") {
|
|
1100
|
+
let styleObject = typeof value === "object" ? value : parseStyle(state, String(value));
|
|
1101
|
+
if (state.stylePropertyNameCase === "css") styleObject = transformStylesToCssCasing(styleObject);
|
|
1102
|
+
return ["style", styleObject];
|
|
1103
|
+
}
|
|
1104
|
+
return [state.elementAttributeNameCase === "react" && info.space ? hastToReact[info.property] || info.property : info.attribute, value];
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Parse a CSS declaration to an object.
|
|
1108
|
+
*
|
|
1109
|
+
* @param {State} state
|
|
1110
|
+
* Info passed around.
|
|
1111
|
+
* @param {string} value
|
|
1112
|
+
* CSS declarations.
|
|
1113
|
+
* @returns {Style}
|
|
1114
|
+
* Properties.
|
|
1115
|
+
* @throws
|
|
1116
|
+
* Throws `VFileMessage` when CSS cannot be parsed.
|
|
1117
|
+
*/
|
|
1118
|
+
function parseStyle(state, value) {
|
|
1119
|
+
try {
|
|
1120
|
+
return (0, import_cjs.default)(value, { reactCompat: true });
|
|
1121
|
+
} catch (error) {
|
|
1122
|
+
if (state.ignoreInvalidStyle) return {};
|
|
1123
|
+
const cause = error;
|
|
1124
|
+
const message = new VFileMessage("Cannot parse `style` attribute", {
|
|
1125
|
+
ancestors: state.ancestors,
|
|
1126
|
+
cause,
|
|
1127
|
+
ruleId: "style",
|
|
1128
|
+
source: "hast-util-to-jsx-runtime"
|
|
1129
|
+
});
|
|
1130
|
+
message.file = state.filePath || void 0;
|
|
1131
|
+
message.url = docs + "#cannot-parse-style-attribute";
|
|
1132
|
+
throw message;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* Create a JSX name from a string.
|
|
1137
|
+
*
|
|
1138
|
+
* @param {State} state
|
|
1139
|
+
* To do.
|
|
1140
|
+
* @param {string} name
|
|
1141
|
+
* Name.
|
|
1142
|
+
* @param {boolean} allowExpression
|
|
1143
|
+
* Allow member expressions and identifiers.
|
|
1144
|
+
* @returns {unknown}
|
|
1145
|
+
* To do.
|
|
1146
|
+
*/
|
|
1147
|
+
function findComponentFromName(state, name$1, allowExpression) {
|
|
1148
|
+
/** @type {Identifier | Literal | MemberExpression} */
|
|
1149
|
+
let result;
|
|
1150
|
+
if (!allowExpression) result = {
|
|
1151
|
+
type: "Literal",
|
|
1152
|
+
value: name$1
|
|
1153
|
+
};
|
|
1154
|
+
else if (name$1.includes(".")) {
|
|
1155
|
+
const identifiers = name$1.split(".");
|
|
1156
|
+
let index = -1;
|
|
1157
|
+
/** @type {Identifier | Literal | MemberExpression | undefined} */
|
|
1158
|
+
let node;
|
|
1159
|
+
while (++index < identifiers.length) {
|
|
1160
|
+
/** @type {Identifier | Literal} */
|
|
1161
|
+
const prop = name(identifiers[index]) ? {
|
|
1162
|
+
type: "Identifier",
|
|
1163
|
+
name: identifiers[index]
|
|
1164
|
+
} : {
|
|
1165
|
+
type: "Literal",
|
|
1166
|
+
value: identifiers[index]
|
|
1167
|
+
};
|
|
1168
|
+
node = node ? {
|
|
1169
|
+
type: "MemberExpression",
|
|
1170
|
+
object: node,
|
|
1171
|
+
property: prop,
|
|
1172
|
+
computed: Boolean(index && prop.type === "Literal"),
|
|
1173
|
+
optional: false
|
|
1174
|
+
} : prop;
|
|
1175
|
+
}
|
|
1176
|
+
result = node;
|
|
1177
|
+
} else result = name(name$1) && !/^[a-z]/.test(name$1) ? {
|
|
1178
|
+
type: "Identifier",
|
|
1179
|
+
name: name$1
|
|
1180
|
+
} : {
|
|
1181
|
+
type: "Literal",
|
|
1182
|
+
value: name$1
|
|
1183
|
+
};
|
|
1184
|
+
if (result.type === "Literal") {
|
|
1185
|
+
const name = result.value;
|
|
1186
|
+
return own.call(state.components, name) ? state.components[name] : name;
|
|
1187
|
+
}
|
|
1188
|
+
if (state.evaluater) return state.evaluater.evaluateExpression(result);
|
|
1189
|
+
crashEstree(state);
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* @param {State} state
|
|
1193
|
+
* @param {Position | undefined} [place]
|
|
1194
|
+
* @returns {never}
|
|
1195
|
+
*/
|
|
1196
|
+
function crashEstree(state, place) {
|
|
1197
|
+
const message = new VFileMessage("Cannot handle MDX estrees without `createEvaluater`", {
|
|
1198
|
+
ancestors: state.ancestors,
|
|
1199
|
+
place,
|
|
1200
|
+
ruleId: "mdx-estree",
|
|
1201
|
+
source: "hast-util-to-jsx-runtime"
|
|
1202
|
+
});
|
|
1203
|
+
message.file = state.filePath || void 0;
|
|
1204
|
+
message.url = docs + "#cannot-handle-mdx-estrees-without-createevaluater";
|
|
1205
|
+
throw message;
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Transform a DOM casing style object to a CSS casing style object.
|
|
1209
|
+
*
|
|
1210
|
+
* @param {Style} domCasing
|
|
1211
|
+
* @returns {Style}
|
|
1212
|
+
*/
|
|
1213
|
+
function transformStylesToCssCasing(domCasing) {
|
|
1214
|
+
/** @type {Style} */
|
|
1215
|
+
const cssCasing = {};
|
|
1216
|
+
/** @type {string} */
|
|
1217
|
+
let from;
|
|
1218
|
+
for (from in domCasing) if (own.call(domCasing, from)) cssCasing[transformStyleToCssCasing(from)] = domCasing[from];
|
|
1219
|
+
return cssCasing;
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Transform a DOM casing style field to a CSS casing style field.
|
|
1223
|
+
*
|
|
1224
|
+
* @param {string} from
|
|
1225
|
+
* @returns {string}
|
|
1226
|
+
*/
|
|
1227
|
+
function transformStyleToCssCasing(from) {
|
|
1228
|
+
let to = from.replace(cap, toDash);
|
|
1229
|
+
if (to.slice(0, 3) === "ms-") to = "-" + to;
|
|
1230
|
+
return to;
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Make `$0` dash cased.
|
|
1234
|
+
*
|
|
1235
|
+
* @param {string} $0
|
|
1236
|
+
* Capitalized ASCII leter.
|
|
1237
|
+
* @returns {string}
|
|
1238
|
+
* Dash and lower letter.
|
|
1239
|
+
*/
|
|
1240
|
+
function toDash($0) {
|
|
1241
|
+
return "-" + $0.toLowerCase();
|
|
1242
|
+
}
|
|
1243
|
+
//#endregion
|
|
1244
|
+
export { pointStart as a, pointEnd as i, VFileMessage as n, position$1 as o, stringifyPosition as r, toJsxRuntime as t };
|