@alivault/pico 0.14.0 → 0.16.1
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/public/_shell.html +19 -0
- package/.output/public/assets/PatchDiff-SN-mXa3p.js +343 -0
- package/.output/public/assets/{angular-html-BZNntD0J.js → angular-html-B9LEBPKs.js} +1 -1
- package/.output/public/assets/{angular-ts-SQQMYL2C.js → angular-ts-CD6u-Ij9.js} +1 -1
- package/.output/public/assets/{apl-D5V6uPDr.js → apl-VeDHIFIx.js} +1 -1
- package/.output/public/assets/app-shell-common-0xa28gDm.js +1 -0
- package/.output/public/assets/{astro-DeXKSaFP.js → astro-Dd8L1z6M.js} +1 -1
- package/.output/public/assets/{blade-Bu5re0Vg.js → blade-BNxrbiva.js} +1 -1
- package/.output/public/assets/{bsl-B1qbqNES.js → bsl-B0twaj2j.js} +1 -1
- package/.output/public/assets/{cairo-BDj8wWhy.js → cairo-DASKFAWI.js} +1 -1
- package/.output/public/assets/{cobol-nvZDS9LT.js → cobol-D_qN8j4K.js} +1 -1
- package/.output/public/assets/{coffee-BKLOTq4e.js → coffee-60nIQewd.js} +1 -1
- package/.output/public/assets/{cpp-D6g1DVNt.js → cpp-e1j1tDCV.js} +1 -1
- package/.output/public/assets/{crystal-DfoZI57w.js → crystal-brDfRjQ_.js} +1 -1
- package/.output/public/assets/{edge-DwocGnOF.js → edge-DadfRK3Q.js} +1 -1
- package/.output/public/assets/{elixir-Dtbfds1r.js → elixir-CsoHPmz3.js} +1 -1
- package/.output/public/assets/{elm-CpPtm471.js → elm-BLTa0sZG.js} +1 -1
- package/.output/public/assets/{erb--z3IM9Cb.js → erb-DIR2QRkp.js} +1 -1
- package/.output/public/assets/{erlang-Bc4hQuqa.js → erlang-DnbJbitJ.js} +1 -1
- package/.output/public/assets/{fortran-fixed-form-B02FOYI-.js → fortran-fixed-form-Bse4XUyD.js} +1 -1
- package/.output/public/assets/{fsharp-DhdR18vN.js → fsharp-Dy8OnZ0O.js} +1 -1
- package/.output/public/assets/{gdresource-DgnrMPIx.js → gdresource-BD_7yRHA.js} +1 -1
- package/.output/public/assets/{git-commit-DGJi7qBD.js → git-commit-CIMjlyHf.js} +1 -1
- package/.output/public/assets/{git-rebase-Ce47xoa6.js → git-rebase-DV2DyQK7.js} +1 -1
- package/.output/public/assets/{glimmer-js-C0BuzxQC.js → glimmer-js-DVG5pFvd.js} +1 -1
- package/.output/public/assets/{glimmer-ts-irOZ-cAQ.js → glimmer-ts-BeWaLARz.js} +1 -1
- package/.output/public/assets/{glsl-JAhLUe0P.js → glsl-BrOWUUEh.js} +1 -1
- package/.output/public/assets/{graphql-D2ba3BkR.js → graphql-B_3o81z5.js} +1 -1
- package/.output/public/assets/{hack-CgzUpY8l.js → hack-BW-0PxQy.js} +1 -1
- package/.output/public/assets/{haml-C-oIZcDo.js → haml-DnNXiHAO.js} +1 -1
- package/.output/public/assets/{handlebars-CbP-Mhzf.js → handlebars-CftcPtku.js} +1 -1
- package/.output/public/assets/{html-ddqpqPg0.js → html-D5IqfVuz.js} +1 -1
- package/.output/public/assets/{html-derivative-DWGxf_At.js → html-derivative-QNqmMkaY.js} +1 -1
- package/.output/public/assets/{http-Bg1nG1nG.js → http-Dd7eRKUa.js} +1 -1
- package/.output/public/assets/{hurl-zm47Pi1n.js → hurl-kBs5Ibg1.js} +1 -1
- package/.output/public/assets/{hxml-adC65L_J.js → hxml-CGx66ebi.js} +1 -1
- package/.output/public/assets/index-C-mxWGZ5.css +2 -0
- package/.output/public/assets/index-FOqZaR4L.js +48 -0
- package/.output/public/assets/{jinja-Bnj4awH5.js → jinja-BPoCSjyd.js} +1 -1
- package/.output/public/assets/{jison-CuCNs9Q3.js → jison-WHPVy3Jl.js} +1 -1
- package/.output/public/assets/{julia-DNYHzXlE.js → julia-BaKiQMPf.js} +1 -1
- package/.output/public/assets/{just-BlWkkmf2.js → just-BKMc7tVT.js} +1 -1
- package/.output/public/assets/{latex-DqPzjMIt.js → latex-Cczzu1HI.js} +1 -1
- package/.output/public/assets/{liquid-BURJK16h.js → liquid-DrJZrMEf.js} +1 -1
- package/.output/public/assets/{lua-31hdJClp.js → lua-CFIwCMnP.js} +1 -1
- package/.output/public/assets/{marko-C2ZcdSLh.js → marko-BreagErn.js} +1 -1
- package/.output/public/assets/{mdc-N1ii9pk5.js → mdc-CBcMHZUq.js} +1 -1
- package/.output/public/assets/{nextflow-JEyYUlIq.js → nextflow-CZbrTmS2.js} +1 -1
- package/.output/public/assets/{nginx-BuomO0W8.js → nginx-CMOi8dTH.js} +1 -1
- package/.output/public/assets/{nim-hKoEPsYL.js → nim-DbDZ9Wa-.js} +1 -1
- package/.output/public/assets/{perl-CAGVW6Ra.js → perl-DyRCGnKu.js} +1 -1
- package/.output/public/assets/{php-BycclmzS.js → php-Ciarv7b4.js} +1 -1
- package/.output/public/assets/plus-B1rJPgNv.js +1 -0
- package/.output/public/assets/preload-helper-Csz9R64u.js +5 -0
- package/.output/public/assets/{pug-4maJHz9G.js → pug-CVCqbfEm.js} +1 -1
- package/.output/public/assets/{qml-JLIQfzyb.js → qml-DechmdFA.js} +1 -1
- package/.output/public/assets/query-keys-C9jMaRnO.js +1 -0
- package/.output/public/assets/{razor-P8rbooCh.js → razor-bgzHke67.js} +1 -1
- package/.output/public/assets/right-sidebar-CWvXcZzC.js +1831 -0
- package/.output/public/assets/routes-CXlaorp4.js +23 -0
- package/.output/public/assets/{rst-C6GHyL-N.js → rst-Ce6_XwFd.js} +1 -1
- package/.output/public/assets/{ruby-Cl8PVkbY.js → ruby-BtLKlt8E.js} +1 -1
- package/.output/public/assets/{sas-CXoVwlZN.js → sas-Bco5tnse.js} +1 -1
- package/.output/public/assets/{scss-DNczJ95n.js → scss-KPCA05M8.js} +1 -1
- package/.output/public/assets/{shaderlab-DZ3Lsiak.js → shaderlab-uUHiM5Mm.js} +1 -1
- package/.output/public/assets/{shellsession-COm1V40U.js → shellsession-BnUZVYXU.js} +1 -1
- package/.output/public/assets/{soy-DwewhJ_3.js → soy-Dsrg4bVI.js} +1 -1
- package/.output/public/assets/{sparql-B9c85a_o.js → sparql-D5zsvcbT.js} +1 -1
- package/.output/public/assets/{stata-Bl--TAbZ.js → stata-BdK5CFUf.js} +1 -1
- package/.output/public/assets/{surrealql-BW79EE-U.js → surrealql-Blm5wp47.js} +1 -1
- package/.output/public/assets/{svelte-ziMErdPi.js → svelte-DZrj_gMz.js} +1 -1
- package/.output/public/assets/{templ-C_9I6ncv.js → templ-CJ7sDrtu.js} +1 -1
- package/.output/public/assets/terminal-panel-YGR6v-ZH.js +1 -0
- package/.output/public/assets/{tex-D8LVuLf5.js → tex-CvSRdXZA.js} +1 -1
- package/.output/public/assets/{ts-tags-DKuFCGsc.js → ts-tags-DgGFCSef.js} +1 -1
- package/.output/public/assets/{twig-Bs1kcsO6.js → twig-D8_PS89g.js} +1 -1
- package/.output/public/assets/{vue-Dnf0y5RU.js → vue-KvGEuYod.js} +1 -1
- package/.output/public/assets/{vue-html-CRtKS76J.js → vue-html-qAt9D-IF.js} +1 -1
- package/.output/public/assets/{vue-vine-BxjPqU7T.js → vue-vine-j1nOqxMu.js} +1 -1
- package/.output/public/assets/{xml-eU7M3iZJ.js → xml-BrFkMwfd.js} +1 -1
- package/.output/public/assets/{xsl-DSqe4nTO.js → xsl-OmCo2PyZ.js} +1 -1
- package/.output/public/index.html +19 -0
- package/README.md +171 -46
- package/bin/native-runtime.mjs +265 -0
- package/bin/pico.mjs +289 -222
- package/package.json +34 -31
- package/.output/nitro.json +0 -17
- package/.output/public/assets/index-DBVxXDtw.js +0 -54
- package/.output/public/assets/routes-yUxD2q-l.js +0 -2194
- package/.output/public/assets/styles-CUVz7jV9.css +0 -2
- package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +0 -5
- package/.output/server/_chunks/ssr-renderer.mjs +0 -15
- package/.output/server/_libs/@base-ui/react+[...].mjs +0 -14512
- package/.output/server/_libs/@dnd-kit/core+[...].mjs +0 -2748
- package/.output/server/_libs/@pierre/diffs+[...].mjs +0 -19314
- package/.output/server/_libs/@pierre/trees+[...].mjs +0 -9236
- package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +0 -1789
- package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +0 -136
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
- package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +0 -1607
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +0 -13950
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +0 -90
- package/.output/server/_libs/bail.mjs +0 -13
- package/.output/server/_libs/character-entities.mjs +0 -2135
- package/.output/server/_libs/class-variance-authority+clsx.mjs +0 -69
- package/.output/server/_libs/cmdk.mjs +0 -473
- package/.output/server/_libs/crossws.mjs +0 -2929
- package/.output/server/_libs/decode-named-character-reference+[...].mjs +0 -19
- package/.output/server/_libs/devlop.mjs +0 -5
- package/.output/server/_libs/diff.mjs +0 -732
- package/.output/server/_libs/dnd-kit__accessibility.mjs +0 -46
- package/.output/server/_libs/dnd-kit__sortable.mjs +0 -400
- package/.output/server/_libs/entities.mjs +0 -372
- package/.output/server/_libs/escape-string-regexp.mjs +0 -7
- package/.output/server/_libs/estree-util-is-identifier-name.mjs +0 -20
- package/.output/server/_libs/extend.mjs +0 -75
- package/.output/server/_libs/h3+rou3+srvx.mjs +0 -1216
- package/.output/server/_libs/hast-util-from-parse5+[...].mjs +0 -741
- package/.output/server/_libs/hast-util-raw+[...].mjs +0 -7897
- package/.output/server/_libs/hast-util-sanitize.mjs +0 -780
- package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +0 -1165
- package/.output/server/_libs/hookable.mjs +0 -41
- package/.output/server/_libs/html-url-attributes.mjs +0 -44
- package/.output/server/_libs/is-plain-obj.mjs +0 -8
- package/.output/server/_libs/longest-streak.mjs +0 -29
- package/.output/server/_libs/lucide-react.mjs +0 -788
- package/.output/server/_libs/markdown-table.mjs +0 -289
- package/.output/server/_libs/mdast-util-find-and-replace.mjs +0 -198
- package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +0 -8409
- package/.output/server/_libs/mdast-util-gfm+[...].mjs +0 -2062
- package/.output/server/_libs/mdast-util-to-hast+[...].mjs +0 -1771
- package/.output/server/_libs/micromark-extension-gfm+[...].mjs +0 -2234
- package/.output/server/_libs/next-themes.mjs +0 -124
- package/.output/server/_libs/pierre__theme.mjs +0 -10
- package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
- package/.output/server/_libs/radix-ui__react-compose-refs.mjs +0 -30
- package/.output/server/_libs/radix-ui__react-context.mjs +0 -88
- package/.output/server/_libs/react-markdown+[...].mjs +0 -2316
- package/.output/server/_libs/rehype-raw.mjs +0 -37
- package/.output/server/_libs/rehype-sanitize.mjs +0 -27
- package/.output/server/_libs/remark-gfm.mjs +0 -34
- package/.output/server/_libs/shiki.mjs +0 -16
- package/.output/server/_libs/shikijs__langs.mjs +0 -1355
- package/.output/server/_libs/shikijs__themes.mjs +0 -262
- package/.output/server/_libs/sonner.mjs +0 -908
- package/.output/server/_libs/tailwind-merge.mjs +0 -1962
- package/.output/server/_libs/tanstack__history.mjs +0 -342
- package/.output/server/_libs/tanstack__pacer.mjs +0 -1111
- package/.output/server/_libs/tanstack__query-core.mjs +0 -2202
- package/.output/server/_libs/tanstack__react-hotkeys.mjs +0 -152
- package/.output/server/_libs/tanstack__react-query.mjs +0 -180
- package/.output/server/_libs/tanstack__react-store.mjs +0 -39
- package/.output/server/_libs/tanstack__router-core.mjs +0 -6
- package/.output/server/_libs/tanstack__store.mjs +0 -28
- package/.output/server/_libs/ufo.mjs +0 -64
- package/.output/server/_libs/unctx.mjs +0 -82
- package/.output/server/_libs/ungap__structured-clone.mjs +0 -197
- package/.output/server/_libs/vaul.mjs +0 -1250
- package/.output/server/_libs/xterm__addon-fit.mjs +0 -44
- package/.output/server/_libs/xterm__xterm.mjs +0 -10234
- package/.output/server/_libs/zod.mjs +0 -3341
- package/.output/server/_routes/api/terminal/[id]/ws.mjs +0 -8874
- package/.output/server/_runtime.mjs +0 -35
- package/.output/server/_ssr/router-CN4JMm2A.mjs +0 -9733
- package/.output/server/_ssr/routes-BsQ26pbY.mjs +0 -29306
- package/.output/server/_ssr/routes-DbjuMLFI.mjs +0 -3400
- package/.output/server/_ssr/ssr.mjs +0 -5176
- package/.output/server/_ssr/start-jIczsXlR.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-Bs4g_j1_.mjs +0 -77
- package/.output/server/index.mjs +0 -2670
- package/.output/server/node_modules/node-pty/LICENSE +0 -69
- package/.output/server/node_modules/node-pty/README.md +0 -165
- package/.output/server/node_modules/node-pty/binding.gyp +0 -111
- package/.output/server/node_modules/node-pty/build/Makefile +0 -369
- package/.output/server/node_modules/node-pty/build/Release/pty.node +0 -0
- package/.output/server/node_modules/node-pty/build/binding.Makefile +0 -6
- package/.output/server/node_modules/node-pty/build/pty.target.mk +0 -168
- package/.output/server/node_modules/node-pty/deps/.editorconfig +0 -2
- package/.output/server/node_modules/node-pty/deps/winpty/.drone.yml +0 -17
- package/.output/server/node_modules/node-pty/deps/winpty/.gitattributes +0 -19
- package/.output/server/node_modules/node-pty/deps/winpty/LICENSE +0 -21
- package/.output/server/node_modules/node-pty/deps/winpty/Makefile +0 -166
- package/.output/server/node_modules/node-pty/deps/winpty/README.md +0 -151
- package/.output/server/node_modules/node-pty/deps/winpty/RELEASES.md +0 -280
- package/.output/server/node_modules/node-pty/deps/winpty/VERSION.txt +0 -1
- package/.output/server/node_modules/node-pty/deps/winpty/configure +0 -167
- package/.output/server/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +0 -90
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +0 -53
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +0 -72
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +0 -117
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +0 -113
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugClient.py +0 -42
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugServer.py +0 -63
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DumpLines.py +0 -5
- package/.output/server/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +0 -528
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +0 -633
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +0 -16
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +0 -4
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +0 -144
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +0 -100
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FormatChar.h +0 -21
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +0 -62
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetCh.cc +0 -20
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetFont.cc +0 -261
- package/.output/server/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
- package/.output/server/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +0 -87
- package/.output/server/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +0 -90
- package/.output/server/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +0 -34
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Notes.txt +0 -219
- package/.output/server/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +0 -27
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +0 -101
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +0 -671
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +0 -151
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +0 -45
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +0 -32
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +0 -10
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetFont.cc +0 -145
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +0 -12
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +0 -40
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Spew.py +0 -5
- package/.output/server/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +0 -172
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +0 -102
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +0 -246
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +0 -130
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +0 -89
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +0 -122
- package/.output/server/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +0 -56
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +0 -52
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +0 -57
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +0 -30
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +0 -26
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +0 -19
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +0 -70
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +0 -78
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +0 -44
- package/.output/server/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +0 -27
- package/.output/server/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +0 -106
- package/.output/server/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
- package/.output/server/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
- package/.output/server/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
- package/.output/server/node_modules/node-pty/deps/winpty/misc/font-notes.txt +0 -300
- package/.output/server/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +0 -201
- package/.output/server/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/ship/common_ship.py +0 -53
- package/.output/server/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +0 -165
- package/.output/server/node_modules/node-pty/deps/winpty/ship/ship.py +0 -108
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +0 -613
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.h +0 -103
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +0 -84
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +0 -632
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +0 -852
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +0 -109
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +0 -121
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +0 -152
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Coord.h +0 -87
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +0 -239
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +0 -32
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +0 -422
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +0 -30
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +0 -99
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +0 -47
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +0 -246
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +0 -71
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +0 -68
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +0 -378
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +0 -125
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +0 -699
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +0 -103
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +0 -75
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +0 -143
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +0 -535
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +0 -69
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +0 -157
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +0 -189
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +0 -107
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +0 -67
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +0 -193
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +0 -99
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/main.cc +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +0 -61
- package/.output/server/node_modules/node-pty/deps/winpty/src/configurations.gypi +0 -60
- package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +0 -117
- package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty.h +0 -242
- package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +0 -131
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +0 -75
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +0 -54
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +0 -72
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +0 -970
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +0 -38
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +0 -122
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +0 -73
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +0 -103
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +0 -102
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +0 -187
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +0 -38
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +0 -138
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +0 -55
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +0 -54
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +0 -63
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +0 -45
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +0 -43
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +0 -227
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +0 -55
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +0 -80
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +0 -63
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +0 -45
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +0 -460
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +0 -104
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +0 -252
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +0 -29
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +0 -55
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +0 -64
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +0 -57
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +0 -43
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +0 -42
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +0 -27
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +0 -99
- package/.output/server/node_modules/node-pty/deps/winpty/src/subdir.mk +0 -5
- package/.output/server/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +0 -158
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +0 -56
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +0 -80
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +0 -53
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +0 -86
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +0 -31
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +0 -70
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +0 -42
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +0 -729
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/src/winpty.gyp +0 -234
- package/.output/server/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
- package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js +0 -16
- package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.js +0 -47
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/index.js +0 -52
- package/.output/server/node_modules/node-pty/lib/index.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/interfaces.js +0 -7
- package/.output/server/node_modules/node-pty/lib/interfaces.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/shared/conout.js +0 -11
- package/.output/server/node_modules/node-pty/lib/shared/conout.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/terminal.js +0 -190
- package/.output/server/node_modules/node-pty/lib/terminal.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/terminal.test.js +0 -139
- package/.output/server/node_modules/node-pty/lib/terminal.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/testUtils.test.js +0 -28
- package/.output/server/node_modules/node-pty/lib/testUtils.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/types.js +0 -7
- package/.output/server/node_modules/node-pty/lib/types.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/unixTerminal.js +0 -346
- package/.output/server/node_modules/node-pty/lib/unixTerminal.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
- package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/utils.js +0 -39
- package/.output/server/node_modules/node-pty/lib/utils.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js +0 -125
- package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js +0 -320
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.js +0 -199
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js +0 -22
- package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +0 -1
- package/.output/server/node_modules/node-pty/package.json +0 -64
- package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
- package/.output/server/node_modules/node-pty/scripts/increment-version.js +0 -54
- package/.output/server/node_modules/node-pty/scripts/post-install.js +0 -80
- package/.output/server/node_modules/node-pty/scripts/prebuild.js +0 -34
- package/.output/server/node_modules/node-pty/src/conpty_console_list_agent.ts +0 -15
- package/.output/server/node_modules/node-pty/src/eventEmitter2.test.ts +0 -30
- package/.output/server/node_modules/node-pty/src/eventEmitter2.ts +0 -48
- package/.output/server/node_modules/node-pty/src/index.ts +0 -52
- package/.output/server/node_modules/node-pty/src/interfaces.ts +0 -130
- package/.output/server/node_modules/node-pty/src/native.d.ts +0 -54
- package/.output/server/node_modules/node-pty/src/shared/conout.ts +0 -15
- package/.output/server/node_modules/node-pty/src/terminal.test.ts +0 -119
- package/.output/server/node_modules/node-pty/src/terminal.ts +0 -211
- package/.output/server/node_modules/node-pty/src/testUtils.test.ts +0 -23
- package/.output/server/node_modules/node-pty/src/tsconfig.json +0 -22
- package/.output/server/node_modules/node-pty/src/types.ts +0 -15
- package/.output/server/node_modules/node-pty/src/unix/pty.cc +0 -799
- package/.output/server/node_modules/node-pty/src/unix/spawn-helper.cc +0 -23
- package/.output/server/node_modules/node-pty/src/unixTerminal.test.ts +0 -367
- package/.output/server/node_modules/node-pty/src/unixTerminal.ts +0 -388
- package/.output/server/node_modules/node-pty/src/utils.ts +0 -29
- package/.output/server/node_modules/node-pty/src/win/conpty.cc +0 -583
- package/.output/server/node_modules/node-pty/src/win/conpty.h +0 -41
- package/.output/server/node_modules/node-pty/src/win/conpty_console_list.cc +0 -44
- package/.output/server/node_modules/node-pty/src/win/path_util.cc +0 -95
- package/.output/server/node_modules/node-pty/src/win/path_util.h +0 -26
- package/.output/server/node_modules/node-pty/src/win/winpty.cc +0 -333
- package/.output/server/node_modules/node-pty/src/windowsConoutConnection.ts +0 -82
- package/.output/server/node_modules/node-pty/src/windowsPtyAgent.test.ts +0 -94
- package/.output/server/node_modules/node-pty/src/windowsPtyAgent.ts +0 -321
- package/.output/server/node_modules/node-pty/src/windowsTerminal.test.ts +0 -229
- package/.output/server/node_modules/node-pty/src/windowsTerminal.ts +0 -203
- package/.output/server/node_modules/node-pty/src/worker/conoutSocketWorker.ts +0 -22
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/typings/node-pty.d.ts +0 -211
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -10
- package/scripts/release.mjs +0 -173
- package/vendor/node-domexception/index.js +0 -3
- package/vendor/node-domexception/package.json +0 -10
- /package/.output/public/assets/{abap-smLpETzL.js → abap-CglpPUUh.js} +0 -0
- /package/.output/public/assets/{actionscript-3-o-aRvjY5.js → actionscript-3-CGv72Q9E.js} +0 -0
- /package/.output/public/assets/{ada-D5RRX1i4.js → ada-CfxXaXwr.js} +0 -0
- /package/.output/public/assets/{addon-fit-CMMXLNsg.js → addon-fit-C9RD8ot3.js} +0 -0
- /package/.output/public/assets/{andromeeda-N4z3YzmR.js → andromeeda-DXsn6mTE.js} +0 -0
- /package/.output/public/assets/{apache-DttKlSqg.js → apache-D5xAQKSB.js} +0 -0
- /package/.output/public/assets/{apex-DL7j-a2n.js → apex-qgfedJV2.js} +0 -0
- /package/.output/public/assets/{applescript-DCbL_2FX.js → applescript-DqumQxTt.js} +0 -0
- /package/.output/public/assets/{ara-DqheWJCe.js → ara-Ditv3ow6.js} +0 -0
- /package/.output/public/assets/{asciidoc-BH2sf2K4.js → asciidoc-DL8QwiT7.js} +0 -0
- /package/.output/public/assets/{asm-rfjOMz3U.js → asm-K6TMxl3o.js} +0 -0
- /package/.output/public/assets/{aurora-x-CND-FqEb.js → aurora-x-DGv-xZaa.js} +0 -0
- /package/.output/public/assets/{awk-CMV5n9Z7.js → awk-CYSfQSDT.js} +0 -0
- /package/.output/public/assets/{ayu-dark-on7xzq_B.js → ayu-dark-DGBaJbpH.js} +0 -0
- /package/.output/public/assets/{ayu-light-DnGeGGc2.js → ayu-light-BQrGPVs2.js} +0 -0
- /package/.output/public/assets/{ayu-mirage-DG3LlYC_.js → ayu-mirage-Do-5o2VL.js} +0 -0
- /package/.output/public/assets/{ballerina-BjMqJjlr.js → ballerina-BE-8n54s.js} +0 -0
- /package/.output/public/assets/{bat-BaVbo_qw.js → bat-B1zTc1QZ.js} +0 -0
- /package/.output/public/assets/{beancount-DBt5Mbc_.js → beancount-DhObrvif.js} +0 -0
- /package/.output/public/assets/{berry-Cyjuxiss.js → berry-Cnbvthv1.js} +0 -0
- /package/.output/public/assets/{bibtex-BV_0nsPq.js → bibtex-pp5SrwZy.js} +0 -0
- /package/.output/public/assets/{bicep-C2gEwu4J.js → bicep-BL6eYxbs.js} +0 -0
- /package/.output/public/assets/{bird2-BRyaEJd0.js → bird2-BQaXYY9n.js} +0 -0
- /package/.output/public/assets/{c-Nc9zJT78.js → c-BHFJ4Jk3.js} +0 -0
- /package/.output/public/assets/{c3-DTTbp5N2.js → c3-BHTco5Hb.js} +0 -0
- /package/.output/public/assets/{cadence-CPz83cmI.js → cadence-CoPxW0qb.js} +0 -0
- /package/.output/public/assets/{catppuccin-frappe-Dr22sraq.js → catppuccin-frappe-9fYwMJCf.js} +0 -0
- /package/.output/public/assets/{catppuccin-latte-C57EeX8c.js → catppuccin-latte-BUiKH1yZ.js} +0 -0
- /package/.output/public/assets/{catppuccin-macchiato-CpheI4uD.js → catppuccin-macchiato-ZmO2e0M_.js} +0 -0
- /package/.output/public/assets/{catppuccin-mocha-D8Lmdks_.js → catppuccin-mocha-CFwbXQfO.js} +0 -0
- /package/.output/public/assets/{clarity-CFJ2Yc3q.js → clarity-DVUGm1xP.js} +0 -0
- /package/.output/public/assets/{clojure-6R01QgJC.js → clojure-BgXJG6FG.js} +0 -0
- /package/.output/public/assets/{cmake-D5rSbMir.js → cmake-CZndsvm6.js} +0 -0
- /package/.output/public/assets/{codeowners-_3A-ClkN.js → codeowners-Dd7a447M.js} +0 -0
- /package/.output/public/assets/{codeql-DlIhJTR7.js → codeql-XJR6llG-.js} +0 -0
- /package/.output/public/assets/{common-lisp-BvQzz173.js → common-lisp-BOMbLvgT.js} +0 -0
- /package/.output/public/assets/{coq-DTNXReIC.js → coq-DnhmQYDa.js} +0 -0
- /package/.output/public/assets/{csharp-BDKQY1K9.js → csharp-BdEyRqBm.js} +0 -0
- /package/.output/public/assets/{css-DRmnABqB.js → css-CsTDDTLq.js} +0 -0
- /package/.output/public/assets/{csv-DNUpVBxl.js → csv-CXchYFbz.js} +0 -0
- /package/.output/public/assets/{cue-DDdBc2s3.js → cue-D7YpBZvd.js} +0 -0
- /package/.output/public/assets/{cypher-CguaznO2.js → cypher-XIm1N8YJ.js} +0 -0
- /package/.output/public/assets/{d-CHcoyjv3.js → d-DvB0pbZH.js} +0 -0
- /package/.output/public/assets/{dark-plus-CqeW_0kH.js → dark-plus-BUdpMFIA.js} +0 -0
- /package/.output/public/assets/{dart-RM3aRphk.js → dart-CwpSKTMB.js} +0 -0
- /package/.output/public/assets/{dax-nbnY1d79.js → dax-CEynWJsU.js} +0 -0
- /package/.output/public/assets/{desktop-BD76cvxT.js → desktop-Dk-YiYS_.js} +0 -0
- /package/.output/public/assets/{diff-CdkWtnkL.js → diff-abLZ-xM1.js} +0 -0
- /package/.output/public/assets/{docker-ZyPHc6zB.js → docker-BT48KsRJ.js} +0 -0
- /package/.output/public/assets/{dotenv-BdJZEwA6.js → dotenv-NOMQQbM0.js} +0 -0
- /package/.output/public/assets/{dracula-CtqCPLGa.js → dracula-BUW0ZyNO.js} +0 -0
- /package/.output/public/assets/{dracula-soft-DmBpwRAy.js → dracula-soft-BMjAt1_u.js} +0 -0
- /package/.output/public/assets/{dream-maker-BJL4qlg3.js → dream-maker-D26TP1Q3.js} +0 -0
- /package/.output/public/assets/{emacs-lisp-_LyYa2Ky.js → emacs-lisp-C2EvfotR.js} +0 -0
- /package/.output/public/assets/{everforest-dark-CrbyKk4n.js → everforest-dark-hC6a272f.js} +0 -0
- /package/.output/public/assets/{everforest-light-DRbSh8Tm.js → everforest-light-BTpbYY5G.js} +0 -0
- /package/.output/public/assets/{fennel-CC2BkRsS.js → fennel-DWOL-Ewx.js} +0 -0
- /package/.output/public/assets/{fish-D2ZCzqcE.js → fish-CQPQq0pQ.js} +0 -0
- /package/.output/public/assets/{fluent-DKAm3m7q.js → fluent-BYdsr2M8.js} +0 -0
- /package/.output/public/assets/{fortran-free-form-BPTf0lbT.js → fortran-free-form-C_EtY4F9.js} +0 -0
- /package/.output/public/assets/{gdscript-CsadCSaZ.js → gdscript-CH_tD-VB.js} +0 -0
- /package/.output/public/assets/{gdshader-PfnN_8tR.js → gdshader-BemFblFP.js} +0 -0
- /package/.output/public/assets/{genie-Bj-orPAV.js → genie-hCPg_eq7.js} +0 -0
- /package/.output/public/assets/{gherkin-COVWpJ-Q.js → gherkin-CO0ypD1P.js} +0 -0
- /package/.output/public/assets/{github-dark-ipGuFGYC.js → github-dark-cA72fqmI.js} +0 -0
- /package/.output/public/assets/{github-dark-default-DX3IG_X0.js → github-dark-default-DiYTFvY5.js} +0 -0
- /package/.output/public/assets/{github-dark-dimmed-CH6p_7ez.js → github-dark-dimmed-D-uBHzyG.js} +0 -0
- /package/.output/public/assets/{github-dark-high-contrast-Bg2sSao5.js → github-dark-high-contrast-BrUSkckI.js} +0 -0
- /package/.output/public/assets/{github-light-default-DwpDd1IQ.js → github-light-default-BT-6Vf7C.js} +0 -0
- /package/.output/public/assets/{github-light-high-contrast-C0QeixPf.js → github-light-high-contrast-DqmEyTTc.js} +0 -0
- /package/.output/public/assets/{github-light-BxjqOQl0.js → github-light-piFPqU8R.js} +0 -0
- /package/.output/public/assets/{gleam-BF2NigGj.js → gleam-CWJA_H5i.js} +0 -0
- /package/.output/public/assets/{gn-CMIt9roj.js → gn-nlTwLSjP.js} +0 -0
- /package/.output/public/assets/{gnuplot-DgWlRTEj.js → gnuplot-wYV0MbPl.js} +0 -0
- /package/.output/public/assets/{go-DLnOLj8q.js → go-BUPBDRDo.js} +0 -0
- /package/.output/public/assets/{groovy-B9qLWIkE.js → groovy-BusafOA8.js} +0 -0
- /package/.output/public/assets/{gruvbox-dark-hard-BIMX9ePb.js → gruvbox-dark-hard-BrrZYoPF.js} +0 -0
- /package/.output/public/assets/{gruvbox-dark-medium-DxuwyVzM.js → gruvbox-dark-medium-DsxcLuUs.js} +0 -0
- /package/.output/public/assets/{gruvbox-dark-soft-ba2fjht0.js → gruvbox-dark-soft-DQXOs_GH.js} +0 -0
- /package/.output/public/assets/{gruvbox-light-hard-DAJK2PqC.js → gruvbox-light-hard-CtHwj_cB.js} +0 -0
- /package/.output/public/assets/{gruvbox-light-medium-WRifDAJD.js → gruvbox-light-medium-CPJMdgXQ.js} +0 -0
- /package/.output/public/assets/{gruvbox-light-soft-B0dBOoVB.js → gruvbox-light-soft-C4Xh9Hc-.js} +0 -0
- /package/.output/public/assets/{haskell-BaGpmm_c.js → haskell-CaDqJkn4.js} +0 -0
- /package/.output/public/assets/{haxe-DfXTCEOz.js → haxe-Dxg-8_J7.js} +0 -0
- /package/.output/public/assets/{hcl-CbCtpSbi.js → hcl-Bjg-rMJ0.js} +0 -0
- /package/.output/public/assets/{hjson-_4-w-pHU.js → hjson-BMbeOOMg.js} +0 -0
- /package/.output/public/assets/{hlsl-DpuYn7pp.js → hlsl-D-cuwCFV.js} +0 -0
- /package/.output/public/assets/{horizon-C5RtD1fY.js → horizon-BofYY9of.js} +0 -0
- /package/.output/public/assets/{horizon-bright-pEOice34.js → horizon-bright-CFOVQsf2.js} +0 -0
- /package/.output/public/assets/{houston-A0zg9vNP.js → houston-BIBYxFpQ.js} +0 -0
- /package/.output/public/assets/{hy-t9zDXBje.js → hy-Cye3Jt7O.js} +0 -0
- /package/.output/public/assets/{imba-Bxu-TDfw.js → imba-CjkQtgD2.js} +0 -0
- /package/.output/public/assets/{ini-D-v34c8N.js → ini-BvMtfDNl.js} +0 -0
- /package/.output/public/assets/{java-DVLnIrqC.js → java-BYO3uQJZ.js} +0 -0
- /package/.output/public/assets/{javascript-Cop1kpy_.js → javascript-BsdGTPv_.js} +0 -0
- /package/.output/public/assets/{json-CTw4n7kn.js → json-Kp2u6f_f.js} +0 -0
- /package/.output/public/assets/{json5-D0XL1D5m.js → json5-BCxDPjxU.js} +0 -0
- /package/.output/public/assets/{jsonc-BBgf3TX3.js → jsonc-BV8VFjqO.js} +0 -0
- /package/.output/public/assets/{jsonl-KrKLbtB7.js → jsonl-DHrr7c-M.js} +0 -0
- /package/.output/public/assets/{jsonnet-B2ZwWMOt.js → jsonnet-xURar8mu.js} +0 -0
- /package/.output/public/assets/{jssm-ByRpI9-B.js → jssm-DtoLUQAt.js} +0 -0
- /package/.output/public/assets/{jsx-0oMUGqZj.js → jsx-CyrO086S.js} +0 -0
- /package/.output/public/assets/{kanagawa-dragon-CtPmcCMp.js → kanagawa-dragon-COwlYgQB.js} +0 -0
- /package/.output/public/assets/{kanagawa-lotus-DpOXEGCa.js → kanagawa-lotus-GZWqyq_E.js} +0 -0
- /package/.output/public/assets/{kanagawa-wave-CLVCyc-n.js → kanagawa-wave-CP4uw3DX.js} +0 -0
- /package/.output/public/assets/{kdl-6FPPEH4H.js → kdl-DGo2N7N5.js} +0 -0
- /package/.output/public/assets/{kotlin-D4L3Nd2D.js → kotlin-Cm4W8Bbs.js} +0 -0
- /package/.output/public/assets/{kusto-D-mmc07O.js → kusto-DQ22_tcT.js} +0 -0
- /package/.output/public/assets/{laserwave-7fEj4XGb.js → laserwave-DfABGYsD.js} +0 -0
- /package/.output/public/assets/{lean-BMVMuP2E.js → lean-D-8a6Wwv.js} +0 -0
- /package/.output/public/assets/{less-C95PyOu0.js → less-B-qZzFKw.js} +0 -0
- /package/.output/public/assets/{light-plus-DHI2dh3p.js → light-plus-DS_rmE1N.js} +0 -0
- /package/.output/public/assets/{llvm-Dy3qORTl.js → llvm-Ch-k6TUk.js} +0 -0
- /package/.output/public/assets/{log-BQop7fzg.js → log-BGwbCG2S.js} +0 -0
- /package/.output/public/assets/{logo-DKtnYmrp.js → logo-DHGHbFWy.js} +0 -0
- /package/.output/public/assets/{luau-Dha4KG0q.js → luau-qsvm_nYh.js} +0 -0
- /package/.output/public/assets/{make-DfmS6buu.js → make-Dlfjp_Q8.js} +0 -0
- /package/.output/public/assets/{markdown-BaI9LyM4.js → markdown-COh4ruD_.js} +0 -0
- /package/.output/public/assets/{material-theme-Dm6ETY8i.js → material-theme-Ccrl1jie.js} +0 -0
- /package/.output/public/assets/{material-theme-darker-BeyjmM5Z.js → material-theme-darker-CcOH0iHe.js} +0 -0
- /package/.output/public/assets/{material-theme-lighter-CCOYYzKL.js → material-theme-lighter-DoKpC7NM.js} +0 -0
- /package/.output/public/assets/{material-theme-ocean-CUtPiiX3.js → material-theme-ocean-BcvBZHgH.js} +0 -0
- /package/.output/public/assets/{material-theme-palenight-2L4zMwIM.js → material-theme-palenight-DIL4EAzl.js} +0 -0
- /package/.output/public/assets/{matlab-BT79Cq_j.js → matlab-CBqMuw7w.js} +0 -0
- /package/.output/public/assets/{mdx-CxGBwLNt.js → mdx-BjoJxHxW.js} +0 -0
- /package/.output/public/assets/{mermaid-DLf3axBN.js → mermaid-DjAh2yR5.js} +0 -0
- /package/.output/public/assets/{min-dark-B8TUPGHg.js → min-dark-CbwghdE5.js} +0 -0
- /package/.output/public/assets/{min-light-BDOoBxcA.js → min-light-_F39d_94.js} +0 -0
- /package/.output/public/assets/{mipsasm-DXuU_0cI.js → mipsasm-DA1H0O78.js} +0 -0
- /package/.output/public/assets/{mojo-1Omp2pIo.js → mojo-BVgjRjTn.js} +0 -0
- /package/.output/public/assets/{monokai-E_VBmXGZ.js → monokai-CxgvaWkX.js} +0 -0
- /package/.output/public/assets/{moonbit-DZzq699o.js → moonbit-tKY94ZOM.js} +0 -0
- /package/.output/public/assets/{move-DxDAOJVd.js → move-B5WspEjG.js} +0 -0
- /package/.output/public/assets/{narrat-CxDcPPb9.js → narrat-CDPRStf_.js} +0 -0
- /package/.output/public/assets/{nextflow-groovy-wvmJO4hi.js → nextflow-groovy-1GYTZoD5.js} +0 -0
- /package/.output/public/assets/{night-owl-DefhalNX.js → night-owl-CCydx7ZR.js} +0 -0
- /package/.output/public/assets/{night-owl-light-byb3AbEn.js → night-owl-light-CLM7UUPY.js} +0 -0
- /package/.output/public/assets/{nix-DsFTDHWT.js → nix-DXFN4IwW.js} +0 -0
- /package/.output/public/assets/{nord-D5rQzHT-.js → nord-CiCWZ1de.js} +0 -0
- /package/.output/public/assets/{nushell-BQ_rO0AM.js → nushell-Ck9o2qOx.js} +0 -0
- /package/.output/public/assets/{objective-c-BMq6JT_m.js → objective-c-4koxci9E.js} +0 -0
- /package/.output/public/assets/{objective-cpp-DRwojuGv.js → objective-cpp-BPFAgSN9.js} +0 -0
- /package/.output/public/assets/{ocaml-e4_gKO6E.js → ocaml-BdlBLhZV.js} +0 -0
- /package/.output/public/assets/{odin-mdTPwYOg.js → odin-BcGOLCqZ.js} +0 -0
- /package/.output/public/assets/{one-dark-pro-DxXww9jg.js → one-dark-pro-DEMdTgiO.js} +0 -0
- /package/.output/public/assets/{one-light-D9c03w7t.js → one-light-Cmpe9X1u.js} +0 -0
- /package/.output/public/assets/{openscad-D2aTdNfr.js → openscad-DBveSHYE.js} +0 -0
- /package/.output/public/assets/{pascal-D4n_G8vj.js → pascal-DxOVE99u.js} +0 -0
- /package/.output/public/assets/{pierre-dark-CizZ1Z5z.js → pierre-dark-DIUCKU6U.js} +0 -0
- /package/.output/public/assets/{pierre-light-CHMWfAMe.js → pierre-light-DVO2KPlh.js} +0 -0
- /package/.output/public/assets/{pkl-DcjhAp0L.js → pkl-pIvtf7Vu.js} +0 -0
- /package/.output/public/assets/{plastic-uOsw7z1x.js → plastic-Dvdf8qVN.js} +0 -0
- /package/.output/public/assets/{plsql-BSy3Ag0J.js → plsql-d50MFTFK.js} +0 -0
- /package/.output/public/assets/{po-Be96RYkA.js → po-CboxWwYg.js} +0 -0
- /package/.output/public/assets/{poimandres-CyO4HORD.js → poimandres-DHgQGH4M.js} +0 -0
- /package/.output/public/assets/{polar-BmhMKWum.js → polar-DNp7Oek8.js} +0 -0
- /package/.output/public/assets/{postcss-BTQso3H9.js → postcss-LpmI6XQv.js} +0 -0
- /package/.output/public/assets/{powerquery-DVyQv3M2.js → powerquery-BNCl8Uwz.js} +0 -0
- /package/.output/public/assets/{powershell-BmtCGJVD.js → powershell-CZ9J0XuS.js} +0 -0
- /package/.output/public/assets/{prisma-CCFA9rEj.js → prisma-AELUiJCl.js} +0 -0
- /package/.output/public/assets/{prolog-DWGEEo78.js → prolog-BlqwejRD.js} +0 -0
- /package/.output/public/assets/{proto-C3eop1kM.js → proto-DRQC3swD.js} +0 -0
- /package/.output/public/assets/{puppet-C0_7Nv5A.js → puppet-DBKR8MlH.js} +0 -0
- /package/.output/public/assets/{purescript-Bv-B8yRw.js → purescript-DItLzxZS.js} +0 -0
- /package/.output/public/assets/{python-CKg5r0C3.js → python-D9t_ETu8.js} +0 -0
- /package/.output/public/assets/{qmldir-Cqfb4Lox.js → qmldir-DP_KD1nk.js} +0 -0
- /package/.output/public/assets/{qss-Csho9BH8.js → qss-CL02opOd.js} +0 -0
- /package/.output/public/assets/{r-UcxRcvcA.js → r-DmmrCFmB.js} +0 -0
- /package/.output/public/assets/{racket-D8-uWeQH.js → racket-K0frLTWj.js} +0 -0
- /package/.output/public/assets/{raku-Cj4JSa8p.js → raku-DwgLlPg9.js} +0 -0
- /package/.output/public/assets/{red-z4H4llUY.js → red-DzDu-aXc.js} +0 -0
- /package/.output/public/assets/{reg-DXGFiJSl.js → reg-B_y3c7di.js} +0 -0
- /package/.output/public/assets/{regexp-3-A0406L.js → regexp--eMB47Xx.js} +0 -0
- /package/.output/public/assets/{rel-CunnVTBK.js → rel-CT65ywJp.js} +0 -0
- /package/.output/public/assets/{riscv-C8BcOCkS.js → riscv-Qv5W2vIg.js} +0 -0
- /package/.output/public/assets/{ron-DiDyR9oa.js → ron-cRHu9zPp.js} +0 -0
- /package/.output/public/assets/{rose-pine-BADquuIH.js → rose-pine-DFmTJHIJ.js} +0 -0
- /package/.output/public/assets/{rose-pine-dawn-BLcEeBoh.js → rose-pine-dawn-YIuK9wUm.js} +0 -0
- /package/.output/public/assets/{rose-pine-moon-BK_tLY1Y.js → rose-pine-moon-BYEHfkUB.js} +0 -0
- /package/.output/public/assets/{rosmsg-CHmL1Uyj.js → rosmsg-_L1z4wrx.js} +0 -0
- /package/.output/public/assets/{rust-DjJFInu3.js → rust-BA5wQ_EY.js} +0 -0
- /package/.output/public/assets/{sass-D3xZ5o-v.js → sass-sd__ov8V.js} +0 -0
- /package/.output/public/assets/{scala-B0IRml5w.js → scala--cVG4U7H.js} +0 -0
- /package/.output/public/assets/{scheme-BhwcV3Av.js → scheme-D6Q1O-kY.js} +0 -0
- /package/.output/public/assets/{sdbl-BmWYR-pI.js → sdbl-jB0DUrL_.js} +0 -0
- /package/.output/public/assets/{shellscript-DaVPunOM.js → shellscript-DyWRuzkj.js} +0 -0
- /package/.output/public/assets/{slack-dark-DOnVms5P.js → slack-dark-DHhAlQBa.js} +0 -0
- /package/.output/public/assets/{slack-ochin-DcRTft4q.js → slack-ochin-PZXbcZaN.js} +0 -0
- /package/.output/public/assets/{smalltalk-DVQuUMII.js → smalltalk-C7VkdTlv.js} +0 -0
- /package/.output/public/assets/{snazzy-light-x9CLJ1W9.js → snazzy-light-CPc_Qts9.js} +0 -0
- /package/.output/public/assets/{solarized-dark-BB1sh-pe.js → solarized-dark-DCCfKtTh.js} +0 -0
- /package/.output/public/assets/{solarized-light-9-RPS998.js → solarized-light-B84T-R9X.js} +0 -0
- /package/.output/public/assets/{solidity-gQ4WXILB.js → solidity-DVsDPpDS.js} +0 -0
- /package/.output/public/assets/{splunk-OB48_RcD.js → splunk-A-BwP6Va.js} +0 -0
- /package/.output/public/assets/{sql-CrTmZCMa.js → sql-CRzu7iKx.js} +0 -0
- /package/.output/public/assets/{ssh-config-DA9YMRGV.js → ssh-config-CFPv6mTy.js} +0 -0
- /package/.output/public/assets/{stylus-sKwvsUaC.js → stylus-CUf3IESt.js} +0 -0
- /package/.output/public/assets/{swift-C72NbAtg.js → swift-CSiiYB_Q.js} +0 -0
- /package/.output/public/assets/{synthwave-84-eJ9uRN_S.js → synthwave-84-uJp1j2Jd.js} +0 -0
- /package/.output/public/assets/{system-verilog-CnWMF7Nq.js → system-verilog-rMjKy-O9.js} +0 -0
- /package/.output/public/assets/{systemd-DMzItW5N.js → systemd-R-KDM4-t.js} +0 -0
- /package/.output/public/assets/{talonscript-DopQCWDL.js → talonscript-D666vCtm.js} +0 -0
- /package/.output/public/assets/{tasl-C28SYKbq.js → tasl-68cbBocU.js} +0 -0
- /package/.output/public/assets/{tcl-DHq7zmoF.js → tcl-Y39dJ_pX.js} +0 -0
- /package/.output/public/assets/{terraform-CogS1YKX.js → terraform-BF7wAo-b.js} +0 -0
- /package/.output/public/assets/{tokyo-night-B9N7LyrF.js → tokyo-night-EeABtN82.js} +0 -0
- /package/.output/public/assets/{toml-BH_iPsgK.js → toml-BrMFN1JF.js} +0 -0
- /package/.output/public/assets/{tsv-BIkdBZX1.js → tsv-Dp2l5v7f.js} +0 -0
- /package/.output/public/assets/{tsx-BjkCKOtw.js → tsx-CQqypS0k.js} +0 -0
- /package/.output/public/assets/{turtle-CqNXyJWZ.js → turtle-_N1aDtpV.js} +0 -0
- /package/.output/public/assets/{typescript-BoHeP9q1.js → typescript-CPmDkqmE.js} +0 -0
- /package/.output/public/assets/{typespec-CQ9LYD_e.js → typespec-ghgF2GAI.js} +0 -0
- /package/.output/public/assets/{typst-T-Fsk-Sv.js → typst-DP_izaNK.js} +0 -0
- /package/.output/public/assets/{v-BhMEOw9x.js → v-CdNC_Wok.js} +0 -0
- /package/.output/public/assets/{vala-DzajMnwt.js → vala-Bu4pYkLC.js} +0 -0
- /package/.output/public/assets/{vb-7Xr8dEYW.js → vb-u84IyWSS.js} +0 -0
- /package/.output/public/assets/{verilog-AvXtwZir.js → verilog-BC33pi7Z.js} +0 -0
- /package/.output/public/assets/{vesper-CtgQQ2sf.js → vesper-7-XtS0Kg.js} +0 -0
- /package/.output/public/assets/{vhdl-BHu0zg1P.js → vhdl-BBxTOQe0.js} +0 -0
- /package/.output/public/assets/{viml-Di0QpLfC.js → viml-X_r-ivXA.js} +0 -0
- /package/.output/public/assets/{vitesse-black-jXdfyqgD.js → vitesse-black-DRdlY-cW.js} +0 -0
- /package/.output/public/assets/{vitesse-dark-B88PxG1r.js → vitesse-dark-Bz0hOFHJ.js} +0 -0
- /package/.output/public/assets/{vitesse-light-BXxZh2iV.js → vitesse-light-7kCLd0yn.js} +0 -0
- /package/.output/public/assets/{vyper-C3R5yXgx.js → vyper-E7qIwMXy.js} +0 -0
- /package/.output/public/assets/{wasm-D_MQmneJ.js → wasm-BqG9CUph.js} +0 -0
- /package/.output/public/assets/{wasm-Chsuwt1A.js → wasm-C18OEcCL.js} +0 -0
- /package/.output/public/assets/{wenyan-BonVcr2i.js → wenyan-siXAC4el.js} +0 -0
- /package/.output/public/assets/{wgsl-D59WYmNq.js → wgsl-BJQt8Uld.js} +0 -0
- /package/.output/public/assets/{wikitext-ariTI2Wk.js → wikitext-Ci0ePJmf.js} +0 -0
- /package/.output/public/assets/{wit-EA4fa3Dt.js → wit-BdDJ7geN.js} +0 -0
- /package/.output/public/assets/{wolfram-DDp7LhyU.js → wolfram-Bi-O1IUM.js} +0 -0
- /package/.output/public/assets/{xterm-CCMwI7sy.js → xterm-TTe2Bv9Z.js} +0 -0
- /package/.output/public/assets/{yaml-BTD1XHJG.js → yaml-DgkO7CC2.js} +0 -0
- /package/.output/public/assets/{zenscript-4WaROUyc.js → zenscript-CnkrxCBw.js} +0 -0
- /package/.output/public/assets/{zig-CJoLJGwV.js → zig-CgMsxF9-.js} +0 -0
|
@@ -1,2062 +0,0 @@
|
|
|
1
|
-
import { g as ccount } from "./@pierre/diffs+[...].mjs";
|
|
2
|
-
import "./devlop.mjs";
|
|
3
|
-
import { i as convert, n as visit } from "./hast-util-raw+[...].mjs";
|
|
4
|
-
import { _ as toString, f as unicodePunctuation, i as classifyCharacter, m as normalizeIdentifier, p as unicodeWhitespace } from "./mdast-util-from-markdown+[...].mjs";
|
|
5
|
-
import { t as findAndReplace } from "./mdast-util-find-and-replace.mjs";
|
|
6
|
-
import { t as markdownTable } from "./markdown-table.mjs";
|
|
7
|
-
import { t as longestStreak } from "./longest-streak.mjs";
|
|
8
|
-
//#region node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
9
|
-
/**
|
|
10
|
-
* @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'
|
|
11
|
-
* @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'
|
|
12
|
-
* @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
|
|
13
|
-
* @import {Link, PhrasingContent} from 'mdast'
|
|
14
|
-
*/
|
|
15
|
-
/** @type {ConstructName} */
|
|
16
|
-
var inConstruct = "phrasing";
|
|
17
|
-
/** @type {Array<ConstructName>} */
|
|
18
|
-
var notInConstruct = [
|
|
19
|
-
"autolink",
|
|
20
|
-
"link",
|
|
21
|
-
"image",
|
|
22
|
-
"label"
|
|
23
|
-
];
|
|
24
|
-
/**
|
|
25
|
-
* Create an extension for `mdast-util-from-markdown` to enable GFM autolink
|
|
26
|
-
* literals in markdown.
|
|
27
|
-
*
|
|
28
|
-
* @returns {FromMarkdownExtension}
|
|
29
|
-
* Extension for `mdast-util-to-markdown` to enable GFM autolink literals.
|
|
30
|
-
*/
|
|
31
|
-
function gfmAutolinkLiteralFromMarkdown() {
|
|
32
|
-
return {
|
|
33
|
-
transforms: [transformGfmAutolinkLiterals],
|
|
34
|
-
enter: {
|
|
35
|
-
literalAutolink: enterLiteralAutolink,
|
|
36
|
-
literalAutolinkEmail: enterLiteralAutolinkValue,
|
|
37
|
-
literalAutolinkHttp: enterLiteralAutolinkValue,
|
|
38
|
-
literalAutolinkWww: enterLiteralAutolinkValue
|
|
39
|
-
},
|
|
40
|
-
exit: {
|
|
41
|
-
literalAutolink: exitLiteralAutolink,
|
|
42
|
-
literalAutolinkEmail: exitLiteralAutolinkEmail,
|
|
43
|
-
literalAutolinkHttp: exitLiteralAutolinkHttp,
|
|
44
|
-
literalAutolinkWww: exitLiteralAutolinkWww
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Create an extension for `mdast-util-to-markdown` to enable GFM autolink
|
|
50
|
-
* literals in markdown.
|
|
51
|
-
*
|
|
52
|
-
* @returns {ToMarkdownExtension}
|
|
53
|
-
* Extension for `mdast-util-to-markdown` to enable GFM autolink literals.
|
|
54
|
-
*/
|
|
55
|
-
function gfmAutolinkLiteralToMarkdown() {
|
|
56
|
-
return { unsafe: [
|
|
57
|
-
{
|
|
58
|
-
character: "@",
|
|
59
|
-
before: "[+\\-.\\w]",
|
|
60
|
-
after: "[\\-.\\w]",
|
|
61
|
-
inConstruct,
|
|
62
|
-
notInConstruct
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
character: ".",
|
|
66
|
-
before: "[Ww]",
|
|
67
|
-
after: "[\\-.\\w]",
|
|
68
|
-
inConstruct,
|
|
69
|
-
notInConstruct
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
character: ":",
|
|
73
|
-
before: "[ps]",
|
|
74
|
-
after: "\\/",
|
|
75
|
-
inConstruct,
|
|
76
|
-
notInConstruct
|
|
77
|
-
}
|
|
78
|
-
] };
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @this {CompileContext}
|
|
82
|
-
* @type {FromMarkdownHandle}
|
|
83
|
-
*/
|
|
84
|
-
function enterLiteralAutolink(token) {
|
|
85
|
-
this.enter({
|
|
86
|
-
type: "link",
|
|
87
|
-
title: null,
|
|
88
|
-
url: "",
|
|
89
|
-
children: []
|
|
90
|
-
}, token);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @this {CompileContext}
|
|
94
|
-
* @type {FromMarkdownHandle}
|
|
95
|
-
*/
|
|
96
|
-
function enterLiteralAutolinkValue(token) {
|
|
97
|
-
this.config.enter.autolinkProtocol.call(this, token);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @this {CompileContext}
|
|
101
|
-
* @type {FromMarkdownHandle}
|
|
102
|
-
*/
|
|
103
|
-
function exitLiteralAutolinkHttp(token) {
|
|
104
|
-
this.config.exit.autolinkProtocol.call(this, token);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @this {CompileContext}
|
|
108
|
-
* @type {FromMarkdownHandle}
|
|
109
|
-
*/
|
|
110
|
-
function exitLiteralAutolinkWww(token) {
|
|
111
|
-
this.config.exit.data.call(this, token);
|
|
112
|
-
const node = this.stack[this.stack.length - 1];
|
|
113
|
-
node.type;
|
|
114
|
-
node.url = "http://" + this.sliceSerialize(token);
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @this {CompileContext}
|
|
118
|
-
* @type {FromMarkdownHandle}
|
|
119
|
-
*/
|
|
120
|
-
function exitLiteralAutolinkEmail(token) {
|
|
121
|
-
this.config.exit.autolinkEmail.call(this, token);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @this {CompileContext}
|
|
125
|
-
* @type {FromMarkdownHandle}
|
|
126
|
-
*/
|
|
127
|
-
function exitLiteralAutolink(token) {
|
|
128
|
-
this.exit(token);
|
|
129
|
-
}
|
|
130
|
-
/** @type {FromMarkdownTransform} */
|
|
131
|
-
function transformGfmAutolinkLiterals(tree) {
|
|
132
|
-
findAndReplace(tree, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl], [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]], { ignore: ["link", "linkReference"] });
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* @type {ReplaceFunction}
|
|
136
|
-
* @param {string} _
|
|
137
|
-
* @param {string} protocol
|
|
138
|
-
* @param {string} domain
|
|
139
|
-
* @param {string} path
|
|
140
|
-
* @param {RegExpMatchObject} match
|
|
141
|
-
* @returns {Array<PhrasingContent> | Link | false}
|
|
142
|
-
*/
|
|
143
|
-
function findUrl(_, protocol, domain, path, match) {
|
|
144
|
-
let prefix = "";
|
|
145
|
-
if (!previous(match)) return false;
|
|
146
|
-
if (/^w/i.test(protocol)) {
|
|
147
|
-
domain = protocol + domain;
|
|
148
|
-
protocol = "";
|
|
149
|
-
prefix = "http://";
|
|
150
|
-
}
|
|
151
|
-
if (!isCorrectDomain(domain)) return false;
|
|
152
|
-
const parts = splitUrl(domain + path);
|
|
153
|
-
if (!parts[0]) return false;
|
|
154
|
-
/** @type {Link} */
|
|
155
|
-
const result = {
|
|
156
|
-
type: "link",
|
|
157
|
-
title: null,
|
|
158
|
-
url: prefix + protocol + parts[0],
|
|
159
|
-
children: [{
|
|
160
|
-
type: "text",
|
|
161
|
-
value: protocol + parts[0]
|
|
162
|
-
}]
|
|
163
|
-
};
|
|
164
|
-
if (parts[1]) return [result, {
|
|
165
|
-
type: "text",
|
|
166
|
-
value: parts[1]
|
|
167
|
-
}];
|
|
168
|
-
return result;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* @type {ReplaceFunction}
|
|
172
|
-
* @param {string} _
|
|
173
|
-
* @param {string} atext
|
|
174
|
-
* @param {string} label
|
|
175
|
-
* @param {RegExpMatchObject} match
|
|
176
|
-
* @returns {Link | false}
|
|
177
|
-
*/
|
|
178
|
-
function findEmail(_, atext, label, match) {
|
|
179
|
-
if (!previous(match, true) || /[-\d_]$/.test(label)) return false;
|
|
180
|
-
return {
|
|
181
|
-
type: "link",
|
|
182
|
-
title: null,
|
|
183
|
-
url: "mailto:" + atext + "@" + label,
|
|
184
|
-
children: [{
|
|
185
|
-
type: "text",
|
|
186
|
-
value: atext + "@" + label
|
|
187
|
-
}]
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* @param {string} domain
|
|
192
|
-
* @returns {boolean}
|
|
193
|
-
*/
|
|
194
|
-
function isCorrectDomain(domain) {
|
|
195
|
-
const parts = domain.split(".");
|
|
196
|
-
if (parts.length < 2 || parts[parts.length - 1] && (/_/.test(parts[parts.length - 1]) || !/[a-zA-Z\d]/.test(parts[parts.length - 1])) || parts[parts.length - 2] && (/_/.test(parts[parts.length - 2]) || !/[a-zA-Z\d]/.test(parts[parts.length - 2]))) return false;
|
|
197
|
-
return true;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* @param {string} url
|
|
201
|
-
* @returns {[string, string | undefined]}
|
|
202
|
-
*/
|
|
203
|
-
function splitUrl(url) {
|
|
204
|
-
const trailExec = /[!"&'),.:;<>?\]}]+$/.exec(url);
|
|
205
|
-
if (!trailExec) return [url, void 0];
|
|
206
|
-
url = url.slice(0, trailExec.index);
|
|
207
|
-
let trail = trailExec[0];
|
|
208
|
-
let closingParenIndex = trail.indexOf(")");
|
|
209
|
-
const openingParens = ccount(url, "(");
|
|
210
|
-
let closingParens = ccount(url, ")");
|
|
211
|
-
while (closingParenIndex !== -1 && openingParens > closingParens) {
|
|
212
|
-
url += trail.slice(0, closingParenIndex + 1);
|
|
213
|
-
trail = trail.slice(closingParenIndex + 1);
|
|
214
|
-
closingParenIndex = trail.indexOf(")");
|
|
215
|
-
closingParens++;
|
|
216
|
-
}
|
|
217
|
-
return [url, trail];
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* @param {RegExpMatchObject} match
|
|
221
|
-
* @param {boolean | null | undefined} [email=false]
|
|
222
|
-
* @returns {boolean}
|
|
223
|
-
*/
|
|
224
|
-
function previous(match, email) {
|
|
225
|
-
const code = match.input.charCodeAt(match.index - 1);
|
|
226
|
-
return (match.index === 0 || unicodeWhitespace(code) || unicodePunctuation(code)) && (!email || code !== 47);
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
|
-
//#region node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
230
|
-
/**
|
|
231
|
-
* @import {
|
|
232
|
-
* CompileContext,
|
|
233
|
-
* Extension as FromMarkdownExtension,
|
|
234
|
-
* Handle as FromMarkdownHandle
|
|
235
|
-
* } from 'mdast-util-from-markdown'
|
|
236
|
-
* @import {ToMarkdownOptions} from 'mdast-util-gfm-footnote'
|
|
237
|
-
* @import {
|
|
238
|
-
* Handle as ToMarkdownHandle,
|
|
239
|
-
* Map,
|
|
240
|
-
* Options as ToMarkdownExtension
|
|
241
|
-
* } from 'mdast-util-to-markdown'
|
|
242
|
-
* @import {FootnoteDefinition, FootnoteReference} from 'mdast'
|
|
243
|
-
*/
|
|
244
|
-
footnoteReference.peek = footnoteReferencePeek;
|
|
245
|
-
/**
|
|
246
|
-
* @this {CompileContext}
|
|
247
|
-
* @type {FromMarkdownHandle}
|
|
248
|
-
*/
|
|
249
|
-
function enterFootnoteCallString() {
|
|
250
|
-
this.buffer();
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* @this {CompileContext}
|
|
254
|
-
* @type {FromMarkdownHandle}
|
|
255
|
-
*/
|
|
256
|
-
function enterFootnoteCall(token) {
|
|
257
|
-
this.enter({
|
|
258
|
-
type: "footnoteReference",
|
|
259
|
-
identifier: "",
|
|
260
|
-
label: ""
|
|
261
|
-
}, token);
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* @this {CompileContext}
|
|
265
|
-
* @type {FromMarkdownHandle}
|
|
266
|
-
*/
|
|
267
|
-
function enterFootnoteDefinitionLabelString() {
|
|
268
|
-
this.buffer();
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* @this {CompileContext}
|
|
272
|
-
* @type {FromMarkdownHandle}
|
|
273
|
-
*/
|
|
274
|
-
function enterFootnoteDefinition(token) {
|
|
275
|
-
this.enter({
|
|
276
|
-
type: "footnoteDefinition",
|
|
277
|
-
identifier: "",
|
|
278
|
-
label: "",
|
|
279
|
-
children: []
|
|
280
|
-
}, token);
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* @this {CompileContext}
|
|
284
|
-
* @type {FromMarkdownHandle}
|
|
285
|
-
*/
|
|
286
|
-
function exitFootnoteCallString(token) {
|
|
287
|
-
const label = this.resume();
|
|
288
|
-
const node = this.stack[this.stack.length - 1];
|
|
289
|
-
node.type;
|
|
290
|
-
node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
291
|
-
node.label = label;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* @this {CompileContext}
|
|
295
|
-
* @type {FromMarkdownHandle}
|
|
296
|
-
*/
|
|
297
|
-
function exitFootnoteCall(token) {
|
|
298
|
-
this.exit(token);
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* @this {CompileContext}
|
|
302
|
-
* @type {FromMarkdownHandle}
|
|
303
|
-
*/
|
|
304
|
-
function exitFootnoteDefinitionLabelString(token) {
|
|
305
|
-
const label = this.resume();
|
|
306
|
-
const node = this.stack[this.stack.length - 1];
|
|
307
|
-
node.type;
|
|
308
|
-
node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
309
|
-
node.label = label;
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* @this {CompileContext}
|
|
313
|
-
* @type {FromMarkdownHandle}
|
|
314
|
-
*/
|
|
315
|
-
function exitFootnoteDefinition(token) {
|
|
316
|
-
this.exit(token);
|
|
317
|
-
}
|
|
318
|
-
/** @type {ToMarkdownHandle} */
|
|
319
|
-
function footnoteReferencePeek() {
|
|
320
|
-
return "[";
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @type {ToMarkdownHandle}
|
|
324
|
-
* @param {FootnoteReference} node
|
|
325
|
-
*/
|
|
326
|
-
function footnoteReference(node, _, state, info) {
|
|
327
|
-
const tracker = state.createTracker(info);
|
|
328
|
-
let value = tracker.move("[^");
|
|
329
|
-
const exit = state.enter("footnoteReference");
|
|
330
|
-
const subexit = state.enter("reference");
|
|
331
|
-
value += tracker.move(state.safe(state.associationId(node), {
|
|
332
|
-
after: "]",
|
|
333
|
-
before: value
|
|
334
|
-
}));
|
|
335
|
-
subexit();
|
|
336
|
-
exit();
|
|
337
|
-
value += tracker.move("]");
|
|
338
|
-
return value;
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Create an extension for `mdast-util-from-markdown` to enable GFM footnotes
|
|
342
|
-
* in markdown.
|
|
343
|
-
*
|
|
344
|
-
* @returns {FromMarkdownExtension}
|
|
345
|
-
* Extension for `mdast-util-from-markdown`.
|
|
346
|
-
*/
|
|
347
|
-
function gfmFootnoteFromMarkdown() {
|
|
348
|
-
return {
|
|
349
|
-
enter: {
|
|
350
|
-
gfmFootnoteCallString: enterFootnoteCallString,
|
|
351
|
-
gfmFootnoteCall: enterFootnoteCall,
|
|
352
|
-
gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
|
|
353
|
-
gfmFootnoteDefinition: enterFootnoteDefinition
|
|
354
|
-
},
|
|
355
|
-
exit: {
|
|
356
|
-
gfmFootnoteCallString: exitFootnoteCallString,
|
|
357
|
-
gfmFootnoteCall: exitFootnoteCall,
|
|
358
|
-
gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
|
|
359
|
-
gfmFootnoteDefinition: exitFootnoteDefinition
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* Create an extension for `mdast-util-to-markdown` to enable GFM footnotes
|
|
365
|
-
* in markdown.
|
|
366
|
-
*
|
|
367
|
-
* @param {ToMarkdownOptions | null | undefined} [options]
|
|
368
|
-
* Configuration (optional).
|
|
369
|
-
* @returns {ToMarkdownExtension}
|
|
370
|
-
* Extension for `mdast-util-to-markdown`.
|
|
371
|
-
*/
|
|
372
|
-
function gfmFootnoteToMarkdown(options) {
|
|
373
|
-
let firstLineBlank = false;
|
|
374
|
-
if (options && options.firstLineBlank) firstLineBlank = true;
|
|
375
|
-
return {
|
|
376
|
-
handlers: {
|
|
377
|
-
footnoteDefinition,
|
|
378
|
-
footnoteReference
|
|
379
|
-
},
|
|
380
|
-
unsafe: [{
|
|
381
|
-
character: "[",
|
|
382
|
-
inConstruct: [
|
|
383
|
-
"label",
|
|
384
|
-
"phrasing",
|
|
385
|
-
"reference"
|
|
386
|
-
]
|
|
387
|
-
}]
|
|
388
|
-
};
|
|
389
|
-
/**
|
|
390
|
-
* @type {ToMarkdownHandle}
|
|
391
|
-
* @param {FootnoteDefinition} node
|
|
392
|
-
*/
|
|
393
|
-
function footnoteDefinition(node, _, state, info) {
|
|
394
|
-
const tracker = state.createTracker(info);
|
|
395
|
-
let value = tracker.move("[^");
|
|
396
|
-
const exit = state.enter("footnoteDefinition");
|
|
397
|
-
const subexit = state.enter("label");
|
|
398
|
-
value += tracker.move(state.safe(state.associationId(node), {
|
|
399
|
-
before: value,
|
|
400
|
-
after: "]"
|
|
401
|
-
}));
|
|
402
|
-
subexit();
|
|
403
|
-
value += tracker.move("]:");
|
|
404
|
-
if (node.children && node.children.length > 0) {
|
|
405
|
-
tracker.shift(4);
|
|
406
|
-
value += tracker.move((firstLineBlank ? "\n" : " ") + state.indentLines(state.containerFlow(node, tracker.current()), firstLineBlank ? mapAll : mapExceptFirst));
|
|
407
|
-
}
|
|
408
|
-
exit();
|
|
409
|
-
return value;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
/** @type {Map} */
|
|
413
|
-
function mapExceptFirst(line, index, blank) {
|
|
414
|
-
return index === 0 ? line : mapAll(line, index, blank);
|
|
415
|
-
}
|
|
416
|
-
/** @type {Map} */
|
|
417
|
-
function mapAll(line, index, blank) {
|
|
418
|
-
return (blank ? "" : " ") + line;
|
|
419
|
-
}
|
|
420
|
-
//#endregion
|
|
421
|
-
//#region node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
422
|
-
/**
|
|
423
|
-
* @typedef {import('mdast').Delete} Delete
|
|
424
|
-
*
|
|
425
|
-
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
|
|
426
|
-
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
|
|
427
|
-
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
|
|
428
|
-
*
|
|
429
|
-
* @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName
|
|
430
|
-
* @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
|
|
431
|
-
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
|
|
432
|
-
*/
|
|
433
|
-
/**
|
|
434
|
-
* List of constructs that occur in phrasing (paragraphs, headings), but cannot
|
|
435
|
-
* contain strikethrough.
|
|
436
|
-
* So they sort of cancel each other out.
|
|
437
|
-
* Note: could use a better name.
|
|
438
|
-
*
|
|
439
|
-
* Note: keep in sync with: <https://github.com/syntax-tree/mdast-util-to-markdown/blob/8ce8dbf/lib/unsafe.js#L14>
|
|
440
|
-
*
|
|
441
|
-
* @type {Array<ConstructName>}
|
|
442
|
-
*/
|
|
443
|
-
var constructsWithoutStrikethrough = [
|
|
444
|
-
"autolink",
|
|
445
|
-
"destinationLiteral",
|
|
446
|
-
"destinationRaw",
|
|
447
|
-
"reference",
|
|
448
|
-
"titleQuote",
|
|
449
|
-
"titleApostrophe"
|
|
450
|
-
];
|
|
451
|
-
handleDelete.peek = peekDelete;
|
|
452
|
-
/**
|
|
453
|
-
* Create an extension for `mdast-util-from-markdown` to enable GFM
|
|
454
|
-
* strikethrough in markdown.
|
|
455
|
-
*
|
|
456
|
-
* @returns {FromMarkdownExtension}
|
|
457
|
-
* Extension for `mdast-util-from-markdown` to enable GFM strikethrough.
|
|
458
|
-
*/
|
|
459
|
-
function gfmStrikethroughFromMarkdown() {
|
|
460
|
-
return {
|
|
461
|
-
canContainEols: ["delete"],
|
|
462
|
-
enter: { strikethrough: enterStrikethrough },
|
|
463
|
-
exit: { strikethrough: exitStrikethrough }
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Create an extension for `mdast-util-to-markdown` to enable GFM
|
|
468
|
-
* strikethrough in markdown.
|
|
469
|
-
*
|
|
470
|
-
* @returns {ToMarkdownExtension}
|
|
471
|
-
* Extension for `mdast-util-to-markdown` to enable GFM strikethrough.
|
|
472
|
-
*/
|
|
473
|
-
function gfmStrikethroughToMarkdown() {
|
|
474
|
-
return {
|
|
475
|
-
unsafe: [{
|
|
476
|
-
character: "~",
|
|
477
|
-
inConstruct: "phrasing",
|
|
478
|
-
notInConstruct: constructsWithoutStrikethrough
|
|
479
|
-
}],
|
|
480
|
-
handlers: { delete: handleDelete }
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* @this {CompileContext}
|
|
485
|
-
* @type {FromMarkdownHandle}
|
|
486
|
-
*/
|
|
487
|
-
function enterStrikethrough(token) {
|
|
488
|
-
this.enter({
|
|
489
|
-
type: "delete",
|
|
490
|
-
children: []
|
|
491
|
-
}, token);
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* @this {CompileContext}
|
|
495
|
-
* @type {FromMarkdownHandle}
|
|
496
|
-
*/
|
|
497
|
-
function exitStrikethrough(token) {
|
|
498
|
-
this.exit(token);
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* @type {ToMarkdownHandle}
|
|
502
|
-
* @param {Delete} node
|
|
503
|
-
*/
|
|
504
|
-
function handleDelete(node, _, state, info) {
|
|
505
|
-
const tracker = state.createTracker(info);
|
|
506
|
-
const exit = state.enter("strikethrough");
|
|
507
|
-
let value = tracker.move("~~");
|
|
508
|
-
value += state.containerPhrasing(node, {
|
|
509
|
-
...tracker.current(),
|
|
510
|
-
before: value,
|
|
511
|
-
after: "~"
|
|
512
|
-
});
|
|
513
|
-
value += tracker.move("~~");
|
|
514
|
-
exit();
|
|
515
|
-
return value;
|
|
516
|
-
}
|
|
517
|
-
/** @type {ToMarkdownHandle} */
|
|
518
|
-
function peekDelete() {
|
|
519
|
-
return "~";
|
|
520
|
-
}
|
|
521
|
-
//#endregion
|
|
522
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
|
|
523
|
-
/**
|
|
524
|
-
* @import {Blockquote, Parents} from 'mdast'
|
|
525
|
-
* @import {Info, Map, State} from 'mdast-util-to-markdown'
|
|
526
|
-
*/
|
|
527
|
-
/**
|
|
528
|
-
* @param {Blockquote} node
|
|
529
|
-
* @param {Parents | undefined} _
|
|
530
|
-
* @param {State} state
|
|
531
|
-
* @param {Info} info
|
|
532
|
-
* @returns {string}
|
|
533
|
-
*/
|
|
534
|
-
function blockquote(node, _, state, info) {
|
|
535
|
-
const exit = state.enter("blockquote");
|
|
536
|
-
const tracker = state.createTracker(info);
|
|
537
|
-
tracker.move("> ");
|
|
538
|
-
tracker.shift(2);
|
|
539
|
-
const value = state.indentLines(state.containerFlow(node, tracker.current()), map$1);
|
|
540
|
-
exit();
|
|
541
|
-
return value;
|
|
542
|
-
}
|
|
543
|
-
/** @type {Map} */
|
|
544
|
-
function map$1(line, _, blank) {
|
|
545
|
-
return ">" + (blank ? "" : " ") + line;
|
|
546
|
-
}
|
|
547
|
-
//#endregion
|
|
548
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
|
|
549
|
-
/**
|
|
550
|
-
* @import {ConstructName, Unsafe} from 'mdast-util-to-markdown'
|
|
551
|
-
*/
|
|
552
|
-
/**
|
|
553
|
-
* @param {Array<ConstructName>} stack
|
|
554
|
-
* @param {Unsafe} pattern
|
|
555
|
-
* @returns {boolean}
|
|
556
|
-
*/
|
|
557
|
-
function patternInScope(stack, pattern) {
|
|
558
|
-
return listInScope(stack, pattern.inConstruct, true) && !listInScope(stack, pattern.notInConstruct, false);
|
|
559
|
-
}
|
|
560
|
-
/**
|
|
561
|
-
* @param {Array<ConstructName>} stack
|
|
562
|
-
* @param {Unsafe['inConstruct']} list
|
|
563
|
-
* @param {boolean} none
|
|
564
|
-
* @returns {boolean}
|
|
565
|
-
*/
|
|
566
|
-
function listInScope(stack, list, none) {
|
|
567
|
-
if (typeof list === "string") list = [list];
|
|
568
|
-
if (!list || list.length === 0) return none;
|
|
569
|
-
let index = -1;
|
|
570
|
-
while (++index < list.length) if (stack.includes(list[index])) return true;
|
|
571
|
-
return false;
|
|
572
|
-
}
|
|
573
|
-
//#endregion
|
|
574
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
575
|
-
/**
|
|
576
|
-
* @import {Break, Parents} from 'mdast'
|
|
577
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
578
|
-
*/
|
|
579
|
-
/**
|
|
580
|
-
* @param {Break} _
|
|
581
|
-
* @param {Parents | undefined} _1
|
|
582
|
-
* @param {State} state
|
|
583
|
-
* @param {Info} info
|
|
584
|
-
* @returns {string}
|
|
585
|
-
*/
|
|
586
|
-
function hardBreak(_, _1, state, info) {
|
|
587
|
-
let index = -1;
|
|
588
|
-
while (++index < state.unsafe.length) if (state.unsafe[index].character === "\n" && patternInScope(state.stack, state.unsafe[index])) return /[ \t]/.test(info.before) ? "" : " ";
|
|
589
|
-
return "\\\n";
|
|
590
|
-
}
|
|
591
|
-
//#endregion
|
|
592
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
|
|
593
|
-
/**
|
|
594
|
-
* @import {State} from 'mdast-util-to-markdown'
|
|
595
|
-
* @import {Code} from 'mdast'
|
|
596
|
-
*/
|
|
597
|
-
/**
|
|
598
|
-
* @param {Code} node
|
|
599
|
-
* @param {State} state
|
|
600
|
-
* @returns {boolean}
|
|
601
|
-
*/
|
|
602
|
-
function formatCodeAsIndented(node, state) {
|
|
603
|
-
return Boolean(state.options.fences === false && node.value && !node.lang && /[^ \r\n]/.test(node.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value));
|
|
604
|
-
}
|
|
605
|
-
//#endregion
|
|
606
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js
|
|
607
|
-
/**
|
|
608
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
609
|
-
*/
|
|
610
|
-
/**
|
|
611
|
-
* @param {State} state
|
|
612
|
-
* @returns {Exclude<Options['fence'], null | undefined>}
|
|
613
|
-
*/
|
|
614
|
-
function checkFence(state) {
|
|
615
|
-
const marker = state.options.fence || "`";
|
|
616
|
-
if (marker !== "`" && marker !== "~") throw new Error("Cannot serialize code with `" + marker + "` for `options.fence`, expected `` ` `` or `~`");
|
|
617
|
-
return marker;
|
|
618
|
-
}
|
|
619
|
-
//#endregion
|
|
620
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js
|
|
621
|
-
/**
|
|
622
|
-
* @import {Info, Map, State} from 'mdast-util-to-markdown'
|
|
623
|
-
* @import {Code, Parents} from 'mdast'
|
|
624
|
-
*/
|
|
625
|
-
/**
|
|
626
|
-
* @param {Code} node
|
|
627
|
-
* @param {Parents | undefined} _
|
|
628
|
-
* @param {State} state
|
|
629
|
-
* @param {Info} info
|
|
630
|
-
* @returns {string}
|
|
631
|
-
*/
|
|
632
|
-
function code(node, _, state, info) {
|
|
633
|
-
const marker = checkFence(state);
|
|
634
|
-
const raw = node.value || "";
|
|
635
|
-
const suffix = marker === "`" ? "GraveAccent" : "Tilde";
|
|
636
|
-
if (formatCodeAsIndented(node, state)) {
|
|
637
|
-
const exit = state.enter("codeIndented");
|
|
638
|
-
const value = state.indentLines(raw, map);
|
|
639
|
-
exit();
|
|
640
|
-
return value;
|
|
641
|
-
}
|
|
642
|
-
const tracker = state.createTracker(info);
|
|
643
|
-
const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
|
|
644
|
-
const exit = state.enter("codeFenced");
|
|
645
|
-
let value = tracker.move(sequence);
|
|
646
|
-
if (node.lang) {
|
|
647
|
-
const subexit = state.enter(`codeFencedLang${suffix}`);
|
|
648
|
-
value += tracker.move(state.safe(node.lang, {
|
|
649
|
-
before: value,
|
|
650
|
-
after: " ",
|
|
651
|
-
encode: ["`"],
|
|
652
|
-
...tracker.current()
|
|
653
|
-
}));
|
|
654
|
-
subexit();
|
|
655
|
-
}
|
|
656
|
-
if (node.lang && node.meta) {
|
|
657
|
-
const subexit = state.enter(`codeFencedMeta${suffix}`);
|
|
658
|
-
value += tracker.move(" ");
|
|
659
|
-
value += tracker.move(state.safe(node.meta, {
|
|
660
|
-
before: value,
|
|
661
|
-
after: "\n",
|
|
662
|
-
encode: ["`"],
|
|
663
|
-
...tracker.current()
|
|
664
|
-
}));
|
|
665
|
-
subexit();
|
|
666
|
-
}
|
|
667
|
-
value += tracker.move("\n");
|
|
668
|
-
if (raw) value += tracker.move(raw + "\n");
|
|
669
|
-
value += tracker.move(sequence);
|
|
670
|
-
exit();
|
|
671
|
-
return value;
|
|
672
|
-
}
|
|
673
|
-
/** @type {Map} */
|
|
674
|
-
function map(line, _, blank) {
|
|
675
|
-
return (blank ? "" : " ") + line;
|
|
676
|
-
}
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
|
|
679
|
-
/**
|
|
680
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
681
|
-
*/
|
|
682
|
-
/**
|
|
683
|
-
* @param {State} state
|
|
684
|
-
* @returns {Exclude<Options['quote'], null | undefined>}
|
|
685
|
-
*/
|
|
686
|
-
function checkQuote(state) {
|
|
687
|
-
const marker = state.options.quote || "\"";
|
|
688
|
-
if (marker !== "\"" && marker !== "'") throw new Error("Cannot serialize title with `" + marker + "` for `options.quote`, expected `\"`, or `'`");
|
|
689
|
-
return marker;
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js
|
|
693
|
-
/**
|
|
694
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
695
|
-
* @import {Definition, Parents} from 'mdast'
|
|
696
|
-
*/
|
|
697
|
-
/**
|
|
698
|
-
* @param {Definition} node
|
|
699
|
-
* @param {Parents | undefined} _
|
|
700
|
-
* @param {State} state
|
|
701
|
-
* @param {Info} info
|
|
702
|
-
* @returns {string}
|
|
703
|
-
*/
|
|
704
|
-
function definition(node, _, state, info) {
|
|
705
|
-
const quote = checkQuote(state);
|
|
706
|
-
const suffix = quote === "\"" ? "Quote" : "Apostrophe";
|
|
707
|
-
const exit = state.enter("definition");
|
|
708
|
-
let subexit = state.enter("label");
|
|
709
|
-
const tracker = state.createTracker(info);
|
|
710
|
-
let value = tracker.move("[");
|
|
711
|
-
value += tracker.move(state.safe(state.associationId(node), {
|
|
712
|
-
before: value,
|
|
713
|
-
after: "]",
|
|
714
|
-
...tracker.current()
|
|
715
|
-
}));
|
|
716
|
-
value += tracker.move("]: ");
|
|
717
|
-
subexit();
|
|
718
|
-
if (!node.url || /[\0- \u007F]/.test(node.url)) {
|
|
719
|
-
subexit = state.enter("destinationLiteral");
|
|
720
|
-
value += tracker.move("<");
|
|
721
|
-
value += tracker.move(state.safe(node.url, {
|
|
722
|
-
before: value,
|
|
723
|
-
after: ">",
|
|
724
|
-
...tracker.current()
|
|
725
|
-
}));
|
|
726
|
-
value += tracker.move(">");
|
|
727
|
-
} else {
|
|
728
|
-
subexit = state.enter("destinationRaw");
|
|
729
|
-
value += tracker.move(state.safe(node.url, {
|
|
730
|
-
before: value,
|
|
731
|
-
after: node.title ? " " : "\n",
|
|
732
|
-
...tracker.current()
|
|
733
|
-
}));
|
|
734
|
-
}
|
|
735
|
-
subexit();
|
|
736
|
-
if (node.title) {
|
|
737
|
-
subexit = state.enter(`title${suffix}`);
|
|
738
|
-
value += tracker.move(" " + quote);
|
|
739
|
-
value += tracker.move(state.safe(node.title, {
|
|
740
|
-
before: value,
|
|
741
|
-
after: quote,
|
|
742
|
-
...tracker.current()
|
|
743
|
-
}));
|
|
744
|
-
value += tracker.move(quote);
|
|
745
|
-
subexit();
|
|
746
|
-
}
|
|
747
|
-
exit();
|
|
748
|
-
return value;
|
|
749
|
-
}
|
|
750
|
-
//#endregion
|
|
751
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
|
|
752
|
-
/**
|
|
753
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
754
|
-
*/
|
|
755
|
-
/**
|
|
756
|
-
* @param {State} state
|
|
757
|
-
* @returns {Exclude<Options['emphasis'], null | undefined>}
|
|
758
|
-
*/
|
|
759
|
-
function checkEmphasis(state) {
|
|
760
|
-
const marker = state.options.emphasis || "*";
|
|
761
|
-
if (marker !== "*" && marker !== "_") throw new Error("Cannot serialize emphasis with `" + marker + "` for `options.emphasis`, expected `*`, or `_`");
|
|
762
|
-
return marker;
|
|
763
|
-
}
|
|
764
|
-
//#endregion
|
|
765
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
766
|
-
/**
|
|
767
|
-
* Encode a code point as a character reference.
|
|
768
|
-
*
|
|
769
|
-
* @param {number} code
|
|
770
|
-
* Code point to encode.
|
|
771
|
-
* @returns {string}
|
|
772
|
-
* Encoded character reference.
|
|
773
|
-
*/
|
|
774
|
-
function encodeCharacterReference(code) {
|
|
775
|
-
return "&#x" + code.toString(16).toUpperCase() + ";";
|
|
776
|
-
}
|
|
777
|
-
//#endregion
|
|
778
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
779
|
-
/**
|
|
780
|
-
* @import {EncodeSides} from '../types.js'
|
|
781
|
-
*/
|
|
782
|
-
/**
|
|
783
|
-
* Check whether to encode (as a character reference) the characters
|
|
784
|
-
* surrounding an attention run.
|
|
785
|
-
*
|
|
786
|
-
* Which characters are around an attention run influence whether it works or
|
|
787
|
-
* not.
|
|
788
|
-
*
|
|
789
|
-
* See <https://github.com/orgs/syntax-tree/discussions/60> for more info.
|
|
790
|
-
* See this markdown in a particular renderer to see what works:
|
|
791
|
-
*
|
|
792
|
-
* ```markdown
|
|
793
|
-
* | | A (letter inside) | B (punctuation inside) | C (whitespace inside) | D (nothing inside) |
|
|
794
|
-
* | ----------------------- | ----------------- | ---------------------- | --------------------- | ------------------ |
|
|
795
|
-
* | 1 (letter outside) | x*y*z | x*.*z | x* *z | x**z |
|
|
796
|
-
* | 2 (punctuation outside) | .*y*. | .*.*. | .* *. | .**. |
|
|
797
|
-
* | 3 (whitespace outside) | x *y* z | x *.* z | x * * z | x ** z |
|
|
798
|
-
* | 4 (nothing outside) | *x* | *.* | * * | ** |
|
|
799
|
-
* ```
|
|
800
|
-
*
|
|
801
|
-
* @param {number} outside
|
|
802
|
-
* Code point on the outer side of the run.
|
|
803
|
-
* @param {number} inside
|
|
804
|
-
* Code point on the inner side of the run.
|
|
805
|
-
* @param {'*' | '_'} marker
|
|
806
|
-
* Marker of the run.
|
|
807
|
-
* Underscores are handled more strictly (they form less often) than
|
|
808
|
-
* asterisks.
|
|
809
|
-
* @returns {EncodeSides}
|
|
810
|
-
* Whether to encode characters.
|
|
811
|
-
*/
|
|
812
|
-
function encodeInfo(outside, inside, marker) {
|
|
813
|
-
const outsideKind = classifyCharacter(outside);
|
|
814
|
-
const insideKind = classifyCharacter(inside);
|
|
815
|
-
if (outsideKind === void 0) return insideKind === void 0 ? marker === "_" ? {
|
|
816
|
-
inside: true,
|
|
817
|
-
outside: true
|
|
818
|
-
} : {
|
|
819
|
-
inside: false,
|
|
820
|
-
outside: false
|
|
821
|
-
} : insideKind === 1 ? {
|
|
822
|
-
inside: true,
|
|
823
|
-
outside: true
|
|
824
|
-
} : {
|
|
825
|
-
inside: false,
|
|
826
|
-
outside: true
|
|
827
|
-
};
|
|
828
|
-
if (outsideKind === 1) return insideKind === void 0 ? {
|
|
829
|
-
inside: false,
|
|
830
|
-
outside: false
|
|
831
|
-
} : insideKind === 1 ? {
|
|
832
|
-
inside: true,
|
|
833
|
-
outside: true
|
|
834
|
-
} : {
|
|
835
|
-
inside: false,
|
|
836
|
-
outside: false
|
|
837
|
-
};
|
|
838
|
-
return insideKind === void 0 ? {
|
|
839
|
-
inside: false,
|
|
840
|
-
outside: false
|
|
841
|
-
} : insideKind === 1 ? {
|
|
842
|
-
inside: true,
|
|
843
|
-
outside: false
|
|
844
|
-
} : {
|
|
845
|
-
inside: false,
|
|
846
|
-
outside: false
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
//#endregion
|
|
850
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
|
|
851
|
-
/**
|
|
852
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
853
|
-
* @import {Emphasis, Parents} from 'mdast'
|
|
854
|
-
*/
|
|
855
|
-
emphasis.peek = emphasisPeek;
|
|
856
|
-
/**
|
|
857
|
-
* @param {Emphasis} node
|
|
858
|
-
* @param {Parents | undefined} _
|
|
859
|
-
* @param {State} state
|
|
860
|
-
* @param {Info} info
|
|
861
|
-
* @returns {string}
|
|
862
|
-
*/
|
|
863
|
-
function emphasis(node, _, state, info) {
|
|
864
|
-
const marker = checkEmphasis(state);
|
|
865
|
-
const exit = state.enter("emphasis");
|
|
866
|
-
const tracker = state.createTracker(info);
|
|
867
|
-
const before = tracker.move(marker);
|
|
868
|
-
let between = tracker.move(state.containerPhrasing(node, {
|
|
869
|
-
after: marker,
|
|
870
|
-
before,
|
|
871
|
-
...tracker.current()
|
|
872
|
-
}));
|
|
873
|
-
const betweenHead = between.charCodeAt(0);
|
|
874
|
-
const open = encodeInfo(info.before.charCodeAt(info.before.length - 1), betweenHead, marker);
|
|
875
|
-
if (open.inside) between = encodeCharacterReference(betweenHead) + between.slice(1);
|
|
876
|
-
const betweenTail = between.charCodeAt(between.length - 1);
|
|
877
|
-
const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
|
|
878
|
-
if (close.inside) between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
|
|
879
|
-
const after = tracker.move(marker);
|
|
880
|
-
exit();
|
|
881
|
-
state.attentionEncodeSurroundingInfo = {
|
|
882
|
-
after: close.outside,
|
|
883
|
-
before: open.outside
|
|
884
|
-
};
|
|
885
|
-
return before + between + after;
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* @param {Emphasis} _
|
|
889
|
-
* @param {Parents | undefined} _1
|
|
890
|
-
* @param {State} state
|
|
891
|
-
* @returns {string}
|
|
892
|
-
*/
|
|
893
|
-
function emphasisPeek(_, _1, state) {
|
|
894
|
-
return state.options.emphasis || "*";
|
|
895
|
-
}
|
|
896
|
-
//#endregion
|
|
897
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
898
|
-
/**
|
|
899
|
-
* @import {State} from 'mdast-util-to-markdown'
|
|
900
|
-
* @import {Heading} from 'mdast'
|
|
901
|
-
*/
|
|
902
|
-
/**
|
|
903
|
-
* @param {Heading} node
|
|
904
|
-
* @param {State} state
|
|
905
|
-
* @returns {boolean}
|
|
906
|
-
*/
|
|
907
|
-
function formatHeadingAsSetext(node, state) {
|
|
908
|
-
let literalWithBreak = false;
|
|
909
|
-
visit(node, function(node) {
|
|
910
|
-
if ("value" in node && /\r?\n|\r/.test(node.value) || node.type === "break") {
|
|
911
|
-
literalWithBreak = true;
|
|
912
|
-
return false;
|
|
913
|
-
}
|
|
914
|
-
});
|
|
915
|
-
return Boolean((!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak));
|
|
916
|
-
}
|
|
917
|
-
//#endregion
|
|
918
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
919
|
-
/**
|
|
920
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
921
|
-
* @import {Heading, Parents} from 'mdast'
|
|
922
|
-
*/
|
|
923
|
-
/**
|
|
924
|
-
* @param {Heading} node
|
|
925
|
-
* @param {Parents | undefined} _
|
|
926
|
-
* @param {State} state
|
|
927
|
-
* @param {Info} info
|
|
928
|
-
* @returns {string}
|
|
929
|
-
*/
|
|
930
|
-
function heading(node, _, state, info) {
|
|
931
|
-
const rank = Math.max(Math.min(6, node.depth || 1), 1);
|
|
932
|
-
const tracker = state.createTracker(info);
|
|
933
|
-
if (formatHeadingAsSetext(node, state)) {
|
|
934
|
-
const exit = state.enter("headingSetext");
|
|
935
|
-
const subexit = state.enter("phrasing");
|
|
936
|
-
const value = state.containerPhrasing(node, {
|
|
937
|
-
...tracker.current(),
|
|
938
|
-
before: "\n",
|
|
939
|
-
after: "\n"
|
|
940
|
-
});
|
|
941
|
-
subexit();
|
|
942
|
-
exit();
|
|
943
|
-
return value + "\n" + (rank === 1 ? "=" : "-").repeat(value.length - (Math.max(value.lastIndexOf("\r"), value.lastIndexOf("\n")) + 1));
|
|
944
|
-
}
|
|
945
|
-
const sequence = "#".repeat(rank);
|
|
946
|
-
const exit = state.enter("headingAtx");
|
|
947
|
-
const subexit = state.enter("phrasing");
|
|
948
|
-
tracker.move(sequence + " ");
|
|
949
|
-
let value = state.containerPhrasing(node, {
|
|
950
|
-
before: "# ",
|
|
951
|
-
after: "\n",
|
|
952
|
-
...tracker.current()
|
|
953
|
-
});
|
|
954
|
-
if (/^[\t ]/.test(value)) value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1);
|
|
955
|
-
value = value ? sequence + " " + value : sequence;
|
|
956
|
-
if (state.options.closeAtx) value += " " + sequence;
|
|
957
|
-
subexit();
|
|
958
|
-
exit();
|
|
959
|
-
return value;
|
|
960
|
-
}
|
|
961
|
-
//#endregion
|
|
962
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js
|
|
963
|
-
/**
|
|
964
|
-
* @import {Html} from 'mdast'
|
|
965
|
-
*/
|
|
966
|
-
html.peek = htmlPeek;
|
|
967
|
-
/**
|
|
968
|
-
* @param {Html} node
|
|
969
|
-
* @returns {string}
|
|
970
|
-
*/
|
|
971
|
-
function html(node) {
|
|
972
|
-
return node.value || "";
|
|
973
|
-
}
|
|
974
|
-
/**
|
|
975
|
-
* @returns {string}
|
|
976
|
-
*/
|
|
977
|
-
function htmlPeek() {
|
|
978
|
-
return "<";
|
|
979
|
-
}
|
|
980
|
-
//#endregion
|
|
981
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js
|
|
982
|
-
/**
|
|
983
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
984
|
-
* @import {Image, Parents} from 'mdast'
|
|
985
|
-
*/
|
|
986
|
-
image.peek = imagePeek;
|
|
987
|
-
/**
|
|
988
|
-
* @param {Image} node
|
|
989
|
-
* @param {Parents | undefined} _
|
|
990
|
-
* @param {State} state
|
|
991
|
-
* @param {Info} info
|
|
992
|
-
* @returns {string}
|
|
993
|
-
*/
|
|
994
|
-
function image(node, _, state, info) {
|
|
995
|
-
const quote = checkQuote(state);
|
|
996
|
-
const suffix = quote === "\"" ? "Quote" : "Apostrophe";
|
|
997
|
-
const exit = state.enter("image");
|
|
998
|
-
let subexit = state.enter("label");
|
|
999
|
-
const tracker = state.createTracker(info);
|
|
1000
|
-
let value = tracker.move("![");
|
|
1001
|
-
value += tracker.move(state.safe(node.alt, {
|
|
1002
|
-
before: value,
|
|
1003
|
-
after: "]",
|
|
1004
|
-
...tracker.current()
|
|
1005
|
-
}));
|
|
1006
|
-
value += tracker.move("](");
|
|
1007
|
-
subexit();
|
|
1008
|
-
if (!node.url && node.title || /[\0- \u007F]/.test(node.url)) {
|
|
1009
|
-
subexit = state.enter("destinationLiteral");
|
|
1010
|
-
value += tracker.move("<");
|
|
1011
|
-
value += tracker.move(state.safe(node.url, {
|
|
1012
|
-
before: value,
|
|
1013
|
-
after: ">",
|
|
1014
|
-
...tracker.current()
|
|
1015
|
-
}));
|
|
1016
|
-
value += tracker.move(">");
|
|
1017
|
-
} else {
|
|
1018
|
-
subexit = state.enter("destinationRaw");
|
|
1019
|
-
value += tracker.move(state.safe(node.url, {
|
|
1020
|
-
before: value,
|
|
1021
|
-
after: node.title ? " " : ")",
|
|
1022
|
-
...tracker.current()
|
|
1023
|
-
}));
|
|
1024
|
-
}
|
|
1025
|
-
subexit();
|
|
1026
|
-
if (node.title) {
|
|
1027
|
-
subexit = state.enter(`title${suffix}`);
|
|
1028
|
-
value += tracker.move(" " + quote);
|
|
1029
|
-
value += tracker.move(state.safe(node.title, {
|
|
1030
|
-
before: value,
|
|
1031
|
-
after: quote,
|
|
1032
|
-
...tracker.current()
|
|
1033
|
-
}));
|
|
1034
|
-
value += tracker.move(quote);
|
|
1035
|
-
subexit();
|
|
1036
|
-
}
|
|
1037
|
-
value += tracker.move(")");
|
|
1038
|
-
exit();
|
|
1039
|
-
return value;
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* @returns {string}
|
|
1043
|
-
*/
|
|
1044
|
-
function imagePeek() {
|
|
1045
|
-
return "!";
|
|
1046
|
-
}
|
|
1047
|
-
//#endregion
|
|
1048
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
|
|
1049
|
-
/**
|
|
1050
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1051
|
-
* @import {ImageReference, Parents} from 'mdast'
|
|
1052
|
-
*/
|
|
1053
|
-
imageReference.peek = imageReferencePeek;
|
|
1054
|
-
/**
|
|
1055
|
-
* @param {ImageReference} node
|
|
1056
|
-
* @param {Parents | undefined} _
|
|
1057
|
-
* @param {State} state
|
|
1058
|
-
* @param {Info} info
|
|
1059
|
-
* @returns {string}
|
|
1060
|
-
*/
|
|
1061
|
-
function imageReference(node, _, state, info) {
|
|
1062
|
-
const type = node.referenceType;
|
|
1063
|
-
const exit = state.enter("imageReference");
|
|
1064
|
-
let subexit = state.enter("label");
|
|
1065
|
-
const tracker = state.createTracker(info);
|
|
1066
|
-
let value = tracker.move("![");
|
|
1067
|
-
const alt = state.safe(node.alt, {
|
|
1068
|
-
before: value,
|
|
1069
|
-
after: "]",
|
|
1070
|
-
...tracker.current()
|
|
1071
|
-
});
|
|
1072
|
-
value += tracker.move(alt + "][");
|
|
1073
|
-
subexit();
|
|
1074
|
-
const stack = state.stack;
|
|
1075
|
-
state.stack = [];
|
|
1076
|
-
subexit = state.enter("reference");
|
|
1077
|
-
const reference = state.safe(state.associationId(node), {
|
|
1078
|
-
before: value,
|
|
1079
|
-
after: "]",
|
|
1080
|
-
...tracker.current()
|
|
1081
|
-
});
|
|
1082
|
-
subexit();
|
|
1083
|
-
state.stack = stack;
|
|
1084
|
-
exit();
|
|
1085
|
-
if (type === "full" || !alt || alt !== reference) value += tracker.move(reference + "]");
|
|
1086
|
-
else if (type === "shortcut") value = value.slice(0, -1);
|
|
1087
|
-
else value += tracker.move("]");
|
|
1088
|
-
return value;
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* @returns {string}
|
|
1092
|
-
*/
|
|
1093
|
-
function imageReferencePeek() {
|
|
1094
|
-
return "!";
|
|
1095
|
-
}
|
|
1096
|
-
//#endregion
|
|
1097
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
|
|
1098
|
-
/**
|
|
1099
|
-
* @import {State} from 'mdast-util-to-markdown'
|
|
1100
|
-
* @import {InlineCode, Parents} from 'mdast'
|
|
1101
|
-
*/
|
|
1102
|
-
inlineCode.peek = inlineCodePeek;
|
|
1103
|
-
/**
|
|
1104
|
-
* @param {InlineCode} node
|
|
1105
|
-
* @param {Parents | undefined} _
|
|
1106
|
-
* @param {State} state
|
|
1107
|
-
* @returns {string}
|
|
1108
|
-
*/
|
|
1109
|
-
function inlineCode(node, _, state) {
|
|
1110
|
-
let value = node.value || "";
|
|
1111
|
-
let sequence = "`";
|
|
1112
|
-
let index = -1;
|
|
1113
|
-
while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) sequence += "`";
|
|
1114
|
-
if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) value = " " + value + " ";
|
|
1115
|
-
while (++index < state.unsafe.length) {
|
|
1116
|
-
const pattern = state.unsafe[index];
|
|
1117
|
-
const expression = state.compilePattern(pattern);
|
|
1118
|
-
/** @type {RegExpExecArray | null} */
|
|
1119
|
-
let match;
|
|
1120
|
-
if (!pattern.atBreak) continue;
|
|
1121
|
-
while (match = expression.exec(value)) {
|
|
1122
|
-
let position = match.index;
|
|
1123
|
-
if (value.charCodeAt(position) === 10 && value.charCodeAt(position - 1) === 13) position--;
|
|
1124
|
-
value = value.slice(0, position) + " " + value.slice(match.index + 1);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
return sequence + value + sequence;
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
* @returns {string}
|
|
1131
|
-
*/
|
|
1132
|
-
function inlineCodePeek() {
|
|
1133
|
-
return "`";
|
|
1134
|
-
}
|
|
1135
|
-
//#endregion
|
|
1136
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
1137
|
-
/**
|
|
1138
|
-
* @import {State} from 'mdast-util-to-markdown'
|
|
1139
|
-
* @import {Link} from 'mdast'
|
|
1140
|
-
*/
|
|
1141
|
-
/**
|
|
1142
|
-
* @param {Link} node
|
|
1143
|
-
* @param {State} state
|
|
1144
|
-
* @returns {boolean}
|
|
1145
|
-
*/
|
|
1146
|
-
function formatLinkAsAutolink(node, state) {
|
|
1147
|
-
const raw = toString(node);
|
|
1148
|
-
return Boolean(!state.options.resourceLink && node.url && !node.title && node.children && node.children.length === 1 && node.children[0].type === "text" && (raw === node.url || "mailto:" + raw === node.url) && /^[a-z][a-z+.-]+:/i.test(node.url) && !/[\0- <>\u007F]/.test(node.url));
|
|
1149
|
-
}
|
|
1150
|
-
//#endregion
|
|
1151
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
1152
|
-
/**
|
|
1153
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1154
|
-
* @import {Link, Parents} from 'mdast'
|
|
1155
|
-
* @import {Exit} from '../types.js'
|
|
1156
|
-
*/
|
|
1157
|
-
link.peek = linkPeek;
|
|
1158
|
-
/**
|
|
1159
|
-
* @param {Link} node
|
|
1160
|
-
* @param {Parents | undefined} _
|
|
1161
|
-
* @param {State} state
|
|
1162
|
-
* @param {Info} info
|
|
1163
|
-
* @returns {string}
|
|
1164
|
-
*/
|
|
1165
|
-
function link(node, _, state, info) {
|
|
1166
|
-
const quote = checkQuote(state);
|
|
1167
|
-
const suffix = quote === "\"" ? "Quote" : "Apostrophe";
|
|
1168
|
-
const tracker = state.createTracker(info);
|
|
1169
|
-
/** @type {Exit} */
|
|
1170
|
-
let exit;
|
|
1171
|
-
/** @type {Exit} */
|
|
1172
|
-
let subexit;
|
|
1173
|
-
if (formatLinkAsAutolink(node, state)) {
|
|
1174
|
-
const stack = state.stack;
|
|
1175
|
-
state.stack = [];
|
|
1176
|
-
exit = state.enter("autolink");
|
|
1177
|
-
let value = tracker.move("<");
|
|
1178
|
-
value += tracker.move(state.containerPhrasing(node, {
|
|
1179
|
-
before: value,
|
|
1180
|
-
after: ">",
|
|
1181
|
-
...tracker.current()
|
|
1182
|
-
}));
|
|
1183
|
-
value += tracker.move(">");
|
|
1184
|
-
exit();
|
|
1185
|
-
state.stack = stack;
|
|
1186
|
-
return value;
|
|
1187
|
-
}
|
|
1188
|
-
exit = state.enter("link");
|
|
1189
|
-
subexit = state.enter("label");
|
|
1190
|
-
let value = tracker.move("[");
|
|
1191
|
-
value += tracker.move(state.containerPhrasing(node, {
|
|
1192
|
-
before: value,
|
|
1193
|
-
after: "](",
|
|
1194
|
-
...tracker.current()
|
|
1195
|
-
}));
|
|
1196
|
-
value += tracker.move("](");
|
|
1197
|
-
subexit();
|
|
1198
|
-
if (!node.url && node.title || /[\0- \u007F]/.test(node.url)) {
|
|
1199
|
-
subexit = state.enter("destinationLiteral");
|
|
1200
|
-
value += tracker.move("<");
|
|
1201
|
-
value += tracker.move(state.safe(node.url, {
|
|
1202
|
-
before: value,
|
|
1203
|
-
after: ">",
|
|
1204
|
-
...tracker.current()
|
|
1205
|
-
}));
|
|
1206
|
-
value += tracker.move(">");
|
|
1207
|
-
} else {
|
|
1208
|
-
subexit = state.enter("destinationRaw");
|
|
1209
|
-
value += tracker.move(state.safe(node.url, {
|
|
1210
|
-
before: value,
|
|
1211
|
-
after: node.title ? " " : ")",
|
|
1212
|
-
...tracker.current()
|
|
1213
|
-
}));
|
|
1214
|
-
}
|
|
1215
|
-
subexit();
|
|
1216
|
-
if (node.title) {
|
|
1217
|
-
subexit = state.enter(`title${suffix}`);
|
|
1218
|
-
value += tracker.move(" " + quote);
|
|
1219
|
-
value += tracker.move(state.safe(node.title, {
|
|
1220
|
-
before: value,
|
|
1221
|
-
after: quote,
|
|
1222
|
-
...tracker.current()
|
|
1223
|
-
}));
|
|
1224
|
-
value += tracker.move(quote);
|
|
1225
|
-
subexit();
|
|
1226
|
-
}
|
|
1227
|
-
value += tracker.move(")");
|
|
1228
|
-
exit();
|
|
1229
|
-
return value;
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* @param {Link} node
|
|
1233
|
-
* @param {Parents | undefined} _
|
|
1234
|
-
* @param {State} state
|
|
1235
|
-
* @returns {string}
|
|
1236
|
-
*/
|
|
1237
|
-
function linkPeek(node, _, state) {
|
|
1238
|
-
return formatLinkAsAutolink(node, state) ? "<" : "[";
|
|
1239
|
-
}
|
|
1240
|
-
//#endregion
|
|
1241
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
|
|
1242
|
-
/**
|
|
1243
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1244
|
-
* @import {LinkReference, Parents} from 'mdast'
|
|
1245
|
-
*/
|
|
1246
|
-
linkReference.peek = linkReferencePeek;
|
|
1247
|
-
/**
|
|
1248
|
-
* @param {LinkReference} node
|
|
1249
|
-
* @param {Parents | undefined} _
|
|
1250
|
-
* @param {State} state
|
|
1251
|
-
* @param {Info} info
|
|
1252
|
-
* @returns {string}
|
|
1253
|
-
*/
|
|
1254
|
-
function linkReference(node, _, state, info) {
|
|
1255
|
-
const type = node.referenceType;
|
|
1256
|
-
const exit = state.enter("linkReference");
|
|
1257
|
-
let subexit = state.enter("label");
|
|
1258
|
-
const tracker = state.createTracker(info);
|
|
1259
|
-
let value = tracker.move("[");
|
|
1260
|
-
const text = state.containerPhrasing(node, {
|
|
1261
|
-
before: value,
|
|
1262
|
-
after: "]",
|
|
1263
|
-
...tracker.current()
|
|
1264
|
-
});
|
|
1265
|
-
value += tracker.move(text + "][");
|
|
1266
|
-
subexit();
|
|
1267
|
-
const stack = state.stack;
|
|
1268
|
-
state.stack = [];
|
|
1269
|
-
subexit = state.enter("reference");
|
|
1270
|
-
const reference = state.safe(state.associationId(node), {
|
|
1271
|
-
before: value,
|
|
1272
|
-
after: "]",
|
|
1273
|
-
...tracker.current()
|
|
1274
|
-
});
|
|
1275
|
-
subexit();
|
|
1276
|
-
state.stack = stack;
|
|
1277
|
-
exit();
|
|
1278
|
-
if (type === "full" || !text || text !== reference) value += tracker.move(reference + "]");
|
|
1279
|
-
else if (type === "shortcut") value = value.slice(0, -1);
|
|
1280
|
-
else value += tracker.move("]");
|
|
1281
|
-
return value;
|
|
1282
|
-
}
|
|
1283
|
-
/**
|
|
1284
|
-
* @returns {string}
|
|
1285
|
-
*/
|
|
1286
|
-
function linkReferencePeek() {
|
|
1287
|
-
return "[";
|
|
1288
|
-
}
|
|
1289
|
-
//#endregion
|
|
1290
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
|
|
1291
|
-
/**
|
|
1292
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1293
|
-
*/
|
|
1294
|
-
/**
|
|
1295
|
-
* @param {State} state
|
|
1296
|
-
* @returns {Exclude<Options['bullet'], null | undefined>}
|
|
1297
|
-
*/
|
|
1298
|
-
function checkBullet(state) {
|
|
1299
|
-
const marker = state.options.bullet || "*";
|
|
1300
|
-
if (marker !== "*" && marker !== "+" && marker !== "-") throw new Error("Cannot serialize items with `" + marker + "` for `options.bullet`, expected `*`, `+`, or `-`");
|
|
1301
|
-
return marker;
|
|
1302
|
-
}
|
|
1303
|
-
//#endregion
|
|
1304
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
|
|
1305
|
-
/**
|
|
1306
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1307
|
-
*/
|
|
1308
|
-
/**
|
|
1309
|
-
* @param {State} state
|
|
1310
|
-
* @returns {Exclude<Options['bullet'], null | undefined>}
|
|
1311
|
-
*/
|
|
1312
|
-
function checkBulletOther(state) {
|
|
1313
|
-
const bullet = checkBullet(state);
|
|
1314
|
-
const bulletOther = state.options.bulletOther;
|
|
1315
|
-
if (!bulletOther) return bullet === "*" ? "-" : "*";
|
|
1316
|
-
if (bulletOther !== "*" && bulletOther !== "+" && bulletOther !== "-") throw new Error("Cannot serialize items with `" + bulletOther + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
|
|
1317
|
-
if (bulletOther === bullet) throw new Error("Expected `bullet` (`" + bullet + "`) and `bulletOther` (`" + bulletOther + "`) to be different");
|
|
1318
|
-
return bulletOther;
|
|
1319
|
-
}
|
|
1320
|
-
//#endregion
|
|
1321
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
|
|
1322
|
-
/**
|
|
1323
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1324
|
-
*/
|
|
1325
|
-
/**
|
|
1326
|
-
* @param {State} state
|
|
1327
|
-
* @returns {Exclude<Options['bulletOrdered'], null | undefined>}
|
|
1328
|
-
*/
|
|
1329
|
-
function checkBulletOrdered(state) {
|
|
1330
|
-
const marker = state.options.bulletOrdered || ".";
|
|
1331
|
-
if (marker !== "." && marker !== ")") throw new Error("Cannot serialize items with `" + marker + "` for `options.bulletOrdered`, expected `.` or `)`");
|
|
1332
|
-
return marker;
|
|
1333
|
-
}
|
|
1334
|
-
//#endregion
|
|
1335
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.js
|
|
1336
|
-
/**
|
|
1337
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1338
|
-
*/
|
|
1339
|
-
/**
|
|
1340
|
-
* @param {State} state
|
|
1341
|
-
* @returns {Exclude<Options['rule'], null | undefined>}
|
|
1342
|
-
*/
|
|
1343
|
-
function checkRule(state) {
|
|
1344
|
-
const marker = state.options.rule || "*";
|
|
1345
|
-
if (marker !== "*" && marker !== "-" && marker !== "_") throw new Error("Cannot serialize rules with `" + marker + "` for `options.rule`, expected `*`, `-`, or `_`");
|
|
1346
|
-
return marker;
|
|
1347
|
-
}
|
|
1348
|
-
//#endregion
|
|
1349
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js
|
|
1350
|
-
/**
|
|
1351
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1352
|
-
* @import {List, Parents} from 'mdast'
|
|
1353
|
-
*/
|
|
1354
|
-
/**
|
|
1355
|
-
* @param {List} node
|
|
1356
|
-
* @param {Parents | undefined} parent
|
|
1357
|
-
* @param {State} state
|
|
1358
|
-
* @param {Info} info
|
|
1359
|
-
* @returns {string}
|
|
1360
|
-
*/
|
|
1361
|
-
function list(node, parent, state, info) {
|
|
1362
|
-
const exit = state.enter("list");
|
|
1363
|
-
const bulletCurrent = state.bulletCurrent;
|
|
1364
|
-
/** @type {string} */
|
|
1365
|
-
let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
|
|
1366
|
-
/** @type {string} */
|
|
1367
|
-
const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
|
|
1368
|
-
let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
|
|
1369
|
-
if (!node.ordered) {
|
|
1370
|
-
const firstListItem = node.children ? node.children[0] : void 0;
|
|
1371
|
-
if ((bullet === "*" || bullet === "-") && firstListItem && (!firstListItem.children || !firstListItem.children[0]) && state.stack[state.stack.length - 1] === "list" && state.stack[state.stack.length - 2] === "listItem" && state.stack[state.stack.length - 3] === "list" && state.stack[state.stack.length - 4] === "listItem" && state.indexStack[state.indexStack.length - 1] === 0 && state.indexStack[state.indexStack.length - 2] === 0 && state.indexStack[state.indexStack.length - 3] === 0) useDifferentMarker = true;
|
|
1372
|
-
if (checkRule(state) === bullet && firstListItem) {
|
|
1373
|
-
let index = -1;
|
|
1374
|
-
while (++index < node.children.length) {
|
|
1375
|
-
const item = node.children[index];
|
|
1376
|
-
if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
|
|
1377
|
-
useDifferentMarker = true;
|
|
1378
|
-
break;
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
if (useDifferentMarker) bullet = bulletOther;
|
|
1384
|
-
state.bulletCurrent = bullet;
|
|
1385
|
-
const value = state.containerFlow(node, info);
|
|
1386
|
-
state.bulletLastUsed = bullet;
|
|
1387
|
-
state.bulletCurrent = bulletCurrent;
|
|
1388
|
-
exit();
|
|
1389
|
-
return value;
|
|
1390
|
-
}
|
|
1391
|
-
//#endregion
|
|
1392
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
|
|
1393
|
-
/**
|
|
1394
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1395
|
-
*/
|
|
1396
|
-
/**
|
|
1397
|
-
* @param {State} state
|
|
1398
|
-
* @returns {Exclude<Options['listItemIndent'], null | undefined>}
|
|
1399
|
-
*/
|
|
1400
|
-
function checkListItemIndent(state) {
|
|
1401
|
-
const style = state.options.listItemIndent || "one";
|
|
1402
|
-
if (style !== "tab" && style !== "one" && style !== "mixed") throw new Error("Cannot serialize items with `" + style + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
|
|
1403
|
-
return style;
|
|
1404
|
-
}
|
|
1405
|
-
//#endregion
|
|
1406
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
|
|
1407
|
-
/**
|
|
1408
|
-
* @import {Info, Map, State} from 'mdast-util-to-markdown'
|
|
1409
|
-
* @import {ListItem, Parents} from 'mdast'
|
|
1410
|
-
*/
|
|
1411
|
-
/**
|
|
1412
|
-
* @param {ListItem} node
|
|
1413
|
-
* @param {Parents | undefined} parent
|
|
1414
|
-
* @param {State} state
|
|
1415
|
-
* @param {Info} info
|
|
1416
|
-
* @returns {string}
|
|
1417
|
-
*/
|
|
1418
|
-
function listItem(node, parent, state, info) {
|
|
1419
|
-
const listItemIndent = checkListItemIndent(state);
|
|
1420
|
-
let bullet = state.bulletCurrent || checkBullet(state);
|
|
1421
|
-
if (parent && parent.type === "list" && parent.ordered) bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
|
|
1422
|
-
let size = bullet.length + 1;
|
|
1423
|
-
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) size = Math.ceil(size / 4) * 4;
|
|
1424
|
-
const tracker = state.createTracker(info);
|
|
1425
|
-
tracker.move(bullet + " ".repeat(size - bullet.length));
|
|
1426
|
-
tracker.shift(size);
|
|
1427
|
-
const exit = state.enter("listItem");
|
|
1428
|
-
const value = state.indentLines(state.containerFlow(node, tracker.current()), map);
|
|
1429
|
-
exit();
|
|
1430
|
-
return value;
|
|
1431
|
-
/** @type {Map} */
|
|
1432
|
-
function map(line, index, blank) {
|
|
1433
|
-
if (index) return (blank ? "" : " ".repeat(size)) + line;
|
|
1434
|
-
return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
//#endregion
|
|
1438
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
|
|
1439
|
-
/**
|
|
1440
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1441
|
-
* @import {Paragraph, Parents} from 'mdast'
|
|
1442
|
-
*/
|
|
1443
|
-
/**
|
|
1444
|
-
* @param {Paragraph} node
|
|
1445
|
-
* @param {Parents | undefined} _
|
|
1446
|
-
* @param {State} state
|
|
1447
|
-
* @param {Info} info
|
|
1448
|
-
* @returns {string}
|
|
1449
|
-
*/
|
|
1450
|
-
function paragraph(node, _, state, info) {
|
|
1451
|
-
const exit = state.enter("paragraph");
|
|
1452
|
-
const subexit = state.enter("phrasing");
|
|
1453
|
-
const value = state.containerPhrasing(node, info);
|
|
1454
|
-
subexit();
|
|
1455
|
-
exit();
|
|
1456
|
-
return value;
|
|
1457
|
-
}
|
|
1458
|
-
//#endregion
|
|
1459
|
-
//#region node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
|
|
1460
|
-
/**
|
|
1461
|
-
* @typedef {import('mdast').Html} Html
|
|
1462
|
-
* @typedef {import('mdast').PhrasingContent} PhrasingContent
|
|
1463
|
-
*/
|
|
1464
|
-
/**
|
|
1465
|
-
* Check if the given value is *phrasing content*.
|
|
1466
|
-
*
|
|
1467
|
-
* > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.
|
|
1468
|
-
*
|
|
1469
|
-
* @param node
|
|
1470
|
-
* Thing to check, typically `Node`.
|
|
1471
|
-
* @returns
|
|
1472
|
-
* Whether `value` is phrasing content.
|
|
1473
|
-
*/
|
|
1474
|
-
var phrasing = convert([
|
|
1475
|
-
"break",
|
|
1476
|
-
"delete",
|
|
1477
|
-
"emphasis",
|
|
1478
|
-
"footnote",
|
|
1479
|
-
"footnoteReference",
|
|
1480
|
-
"image",
|
|
1481
|
-
"imageReference",
|
|
1482
|
-
"inlineCode",
|
|
1483
|
-
"inlineMath",
|
|
1484
|
-
"link",
|
|
1485
|
-
"linkReference",
|
|
1486
|
-
"mdxJsxTextElement",
|
|
1487
|
-
"mdxTextExpression",
|
|
1488
|
-
"strong",
|
|
1489
|
-
"text",
|
|
1490
|
-
"textDirective"
|
|
1491
|
-
]);
|
|
1492
|
-
//#endregion
|
|
1493
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js
|
|
1494
|
-
/**
|
|
1495
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1496
|
-
* @import {Parents, Root} from 'mdast'
|
|
1497
|
-
*/
|
|
1498
|
-
/**
|
|
1499
|
-
* @param {Root} node
|
|
1500
|
-
* @param {Parents | undefined} _
|
|
1501
|
-
* @param {State} state
|
|
1502
|
-
* @param {Info} info
|
|
1503
|
-
* @returns {string}
|
|
1504
|
-
*/
|
|
1505
|
-
function root(node, _, state, info) {
|
|
1506
|
-
return (node.children.some(function(d) {
|
|
1507
|
-
return phrasing(d);
|
|
1508
|
-
}) ? state.containerPhrasing : state.containerFlow).call(state, node, info);
|
|
1509
|
-
}
|
|
1510
|
-
//#endregion
|
|
1511
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js
|
|
1512
|
-
/**
|
|
1513
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1514
|
-
*/
|
|
1515
|
-
/**
|
|
1516
|
-
* @param {State} state
|
|
1517
|
-
* @returns {Exclude<Options['strong'], null | undefined>}
|
|
1518
|
-
*/
|
|
1519
|
-
function checkStrong(state) {
|
|
1520
|
-
const marker = state.options.strong || "*";
|
|
1521
|
-
if (marker !== "*" && marker !== "_") throw new Error("Cannot serialize strong with `" + marker + "` for `options.strong`, expected `*`, or `_`");
|
|
1522
|
-
return marker;
|
|
1523
|
-
}
|
|
1524
|
-
//#endregion
|
|
1525
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js
|
|
1526
|
-
/**
|
|
1527
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1528
|
-
* @import {Parents, Strong} from 'mdast'
|
|
1529
|
-
*/
|
|
1530
|
-
strong.peek = strongPeek;
|
|
1531
|
-
/**
|
|
1532
|
-
* @param {Strong} node
|
|
1533
|
-
* @param {Parents | undefined} _
|
|
1534
|
-
* @param {State} state
|
|
1535
|
-
* @param {Info} info
|
|
1536
|
-
* @returns {string}
|
|
1537
|
-
*/
|
|
1538
|
-
function strong(node, _, state, info) {
|
|
1539
|
-
const marker = checkStrong(state);
|
|
1540
|
-
const exit = state.enter("strong");
|
|
1541
|
-
const tracker = state.createTracker(info);
|
|
1542
|
-
const before = tracker.move(marker + marker);
|
|
1543
|
-
let between = tracker.move(state.containerPhrasing(node, {
|
|
1544
|
-
after: marker,
|
|
1545
|
-
before,
|
|
1546
|
-
...tracker.current()
|
|
1547
|
-
}));
|
|
1548
|
-
const betweenHead = between.charCodeAt(0);
|
|
1549
|
-
const open = encodeInfo(info.before.charCodeAt(info.before.length - 1), betweenHead, marker);
|
|
1550
|
-
if (open.inside) between = encodeCharacterReference(betweenHead) + between.slice(1);
|
|
1551
|
-
const betweenTail = between.charCodeAt(between.length - 1);
|
|
1552
|
-
const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
|
|
1553
|
-
if (close.inside) between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
|
|
1554
|
-
const after = tracker.move(marker + marker);
|
|
1555
|
-
exit();
|
|
1556
|
-
state.attentionEncodeSurroundingInfo = {
|
|
1557
|
-
after: close.outside,
|
|
1558
|
-
before: open.outside
|
|
1559
|
-
};
|
|
1560
|
-
return before + between + after;
|
|
1561
|
-
}
|
|
1562
|
-
/**
|
|
1563
|
-
* @param {Strong} _
|
|
1564
|
-
* @param {Parents | undefined} _1
|
|
1565
|
-
* @param {State} state
|
|
1566
|
-
* @returns {string}
|
|
1567
|
-
*/
|
|
1568
|
-
function strongPeek(_, _1, state) {
|
|
1569
|
-
return state.options.strong || "*";
|
|
1570
|
-
}
|
|
1571
|
-
//#endregion
|
|
1572
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js
|
|
1573
|
-
/**
|
|
1574
|
-
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
1575
|
-
* @import {Parents, Text} from 'mdast'
|
|
1576
|
-
*/
|
|
1577
|
-
/**
|
|
1578
|
-
* @param {Text} node
|
|
1579
|
-
* @param {Parents | undefined} _
|
|
1580
|
-
* @param {State} state
|
|
1581
|
-
* @param {Info} info
|
|
1582
|
-
* @returns {string}
|
|
1583
|
-
*/
|
|
1584
|
-
function text(node, _, state, info) {
|
|
1585
|
-
return state.safe(node.value, info);
|
|
1586
|
-
}
|
|
1587
|
-
//#endregion
|
|
1588
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
|
|
1589
|
-
/**
|
|
1590
|
-
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
1591
|
-
*/
|
|
1592
|
-
/**
|
|
1593
|
-
* @param {State} state
|
|
1594
|
-
* @returns {Exclude<Options['ruleRepetition'], null | undefined>}
|
|
1595
|
-
*/
|
|
1596
|
-
function checkRuleRepetition(state) {
|
|
1597
|
-
const repetition = state.options.ruleRepetition || 3;
|
|
1598
|
-
if (repetition < 3) throw new Error("Cannot serialize rules with repetition `" + repetition + "` for `options.ruleRepetition`, expected `3` or more");
|
|
1599
|
-
return repetition;
|
|
1600
|
-
}
|
|
1601
|
-
//#endregion
|
|
1602
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
|
|
1603
|
-
/**
|
|
1604
|
-
* @import {State} from 'mdast-util-to-markdown'
|
|
1605
|
-
* @import {Parents, ThematicBreak} from 'mdast'
|
|
1606
|
-
*/
|
|
1607
|
-
/**
|
|
1608
|
-
* @param {ThematicBreak} _
|
|
1609
|
-
* @param {Parents | undefined} _1
|
|
1610
|
-
* @param {State} state
|
|
1611
|
-
* @returns {string}
|
|
1612
|
-
*/
|
|
1613
|
-
function thematicBreak(_, _1, state) {
|
|
1614
|
-
const value = (checkRule(state) + (state.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(state));
|
|
1615
|
-
return state.options.ruleSpaces ? value.slice(0, -1) : value;
|
|
1616
|
-
}
|
|
1617
|
-
//#endregion
|
|
1618
|
-
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js
|
|
1619
|
-
/**
|
|
1620
|
-
* Default (CommonMark) handlers.
|
|
1621
|
-
*/
|
|
1622
|
-
var handle = {
|
|
1623
|
-
blockquote,
|
|
1624
|
-
break: hardBreak,
|
|
1625
|
-
code,
|
|
1626
|
-
definition,
|
|
1627
|
-
emphasis,
|
|
1628
|
-
hardBreak,
|
|
1629
|
-
heading,
|
|
1630
|
-
html,
|
|
1631
|
-
image,
|
|
1632
|
-
imageReference,
|
|
1633
|
-
inlineCode,
|
|
1634
|
-
link,
|
|
1635
|
-
linkReference,
|
|
1636
|
-
list,
|
|
1637
|
-
listItem,
|
|
1638
|
-
paragraph,
|
|
1639
|
-
root,
|
|
1640
|
-
strong,
|
|
1641
|
-
text,
|
|
1642
|
-
thematicBreak
|
|
1643
|
-
};
|
|
1644
|
-
//#endregion
|
|
1645
|
-
//#region node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js
|
|
1646
|
-
/**
|
|
1647
|
-
* @typedef {import('mdast').InlineCode} InlineCode
|
|
1648
|
-
* @typedef {import('mdast').Table} Table
|
|
1649
|
-
* @typedef {import('mdast').TableCell} TableCell
|
|
1650
|
-
* @typedef {import('mdast').TableRow} TableRow
|
|
1651
|
-
*
|
|
1652
|
-
* @typedef {import('markdown-table').Options} MarkdownTableOptions
|
|
1653
|
-
*
|
|
1654
|
-
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
|
|
1655
|
-
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
|
|
1656
|
-
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
|
|
1657
|
-
*
|
|
1658
|
-
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
|
|
1659
|
-
* @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
|
|
1660
|
-
* @typedef {import('mdast-util-to-markdown').State} State
|
|
1661
|
-
* @typedef {import('mdast-util-to-markdown').Info} Info
|
|
1662
|
-
*/
|
|
1663
|
-
/**
|
|
1664
|
-
* @typedef Options
|
|
1665
|
-
* Configuration.
|
|
1666
|
-
* @property {boolean | null | undefined} [tableCellPadding=true]
|
|
1667
|
-
* Whether to add a space of padding between delimiters and cells (default:
|
|
1668
|
-
* `true`).
|
|
1669
|
-
* @property {boolean | null | undefined} [tablePipeAlign=true]
|
|
1670
|
-
* Whether to align the delimiters (default: `true`).
|
|
1671
|
-
* @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]
|
|
1672
|
-
* Function to detect the length of table cell content, used when aligning
|
|
1673
|
-
* the delimiters between cells (optional).
|
|
1674
|
-
*/
|
|
1675
|
-
/**
|
|
1676
|
-
* Create an extension for `mdast-util-from-markdown` to enable GFM tables in
|
|
1677
|
-
* markdown.
|
|
1678
|
-
*
|
|
1679
|
-
* @returns {FromMarkdownExtension}
|
|
1680
|
-
* Extension for `mdast-util-from-markdown` to enable GFM tables.
|
|
1681
|
-
*/
|
|
1682
|
-
function gfmTableFromMarkdown() {
|
|
1683
|
-
return {
|
|
1684
|
-
enter: {
|
|
1685
|
-
table: enterTable,
|
|
1686
|
-
tableData: enterCell,
|
|
1687
|
-
tableHeader: enterCell,
|
|
1688
|
-
tableRow: enterRow
|
|
1689
|
-
},
|
|
1690
|
-
exit: {
|
|
1691
|
-
codeText: exitCodeText,
|
|
1692
|
-
table: exitTable,
|
|
1693
|
-
tableData: exit,
|
|
1694
|
-
tableHeader: exit,
|
|
1695
|
-
tableRow: exit
|
|
1696
|
-
}
|
|
1697
|
-
};
|
|
1698
|
-
}
|
|
1699
|
-
/**
|
|
1700
|
-
* @this {CompileContext}
|
|
1701
|
-
* @type {FromMarkdownHandle}
|
|
1702
|
-
*/
|
|
1703
|
-
function enterTable(token) {
|
|
1704
|
-
const align = token._align;
|
|
1705
|
-
this.enter({
|
|
1706
|
-
type: "table",
|
|
1707
|
-
align: align.map(function(d) {
|
|
1708
|
-
return d === "none" ? null : d;
|
|
1709
|
-
}),
|
|
1710
|
-
children: []
|
|
1711
|
-
}, token);
|
|
1712
|
-
this.data.inTable = true;
|
|
1713
|
-
}
|
|
1714
|
-
/**
|
|
1715
|
-
* @this {CompileContext}
|
|
1716
|
-
* @type {FromMarkdownHandle}
|
|
1717
|
-
*/
|
|
1718
|
-
function exitTable(token) {
|
|
1719
|
-
this.exit(token);
|
|
1720
|
-
this.data.inTable = void 0;
|
|
1721
|
-
}
|
|
1722
|
-
/**
|
|
1723
|
-
* @this {CompileContext}
|
|
1724
|
-
* @type {FromMarkdownHandle}
|
|
1725
|
-
*/
|
|
1726
|
-
function enterRow(token) {
|
|
1727
|
-
this.enter({
|
|
1728
|
-
type: "tableRow",
|
|
1729
|
-
children: []
|
|
1730
|
-
}, token);
|
|
1731
|
-
}
|
|
1732
|
-
/**
|
|
1733
|
-
* @this {CompileContext}
|
|
1734
|
-
* @type {FromMarkdownHandle}
|
|
1735
|
-
*/
|
|
1736
|
-
function exit(token) {
|
|
1737
|
-
this.exit(token);
|
|
1738
|
-
}
|
|
1739
|
-
/**
|
|
1740
|
-
* @this {CompileContext}
|
|
1741
|
-
* @type {FromMarkdownHandle}
|
|
1742
|
-
*/
|
|
1743
|
-
function enterCell(token) {
|
|
1744
|
-
this.enter({
|
|
1745
|
-
type: "tableCell",
|
|
1746
|
-
children: []
|
|
1747
|
-
}, token);
|
|
1748
|
-
}
|
|
1749
|
-
/**
|
|
1750
|
-
* @this {CompileContext}
|
|
1751
|
-
* @type {FromMarkdownHandle}
|
|
1752
|
-
*/
|
|
1753
|
-
function exitCodeText(token) {
|
|
1754
|
-
let value = this.resume();
|
|
1755
|
-
if (this.data.inTable) value = value.replace(/\\([\\|])/g, replace);
|
|
1756
|
-
const node = this.stack[this.stack.length - 1];
|
|
1757
|
-
node.type;
|
|
1758
|
-
node.value = value;
|
|
1759
|
-
this.exit(token);
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* @param {string} $0
|
|
1763
|
-
* @param {string} $1
|
|
1764
|
-
* @returns {string}
|
|
1765
|
-
*/
|
|
1766
|
-
function replace($0, $1) {
|
|
1767
|
-
return $1 === "|" ? $1 : $0;
|
|
1768
|
-
}
|
|
1769
|
-
/**
|
|
1770
|
-
* Create an extension for `mdast-util-to-markdown` to enable GFM tables in
|
|
1771
|
-
* markdown.
|
|
1772
|
-
*
|
|
1773
|
-
* @param {Options | null | undefined} [options]
|
|
1774
|
-
* Configuration.
|
|
1775
|
-
* @returns {ToMarkdownExtension}
|
|
1776
|
-
* Extension for `mdast-util-to-markdown` to enable GFM tables.
|
|
1777
|
-
*/
|
|
1778
|
-
function gfmTableToMarkdown(options) {
|
|
1779
|
-
const settings = options || {};
|
|
1780
|
-
const padding = settings.tableCellPadding;
|
|
1781
|
-
const alignDelimiters = settings.tablePipeAlign;
|
|
1782
|
-
const stringLength = settings.stringLength;
|
|
1783
|
-
const around = padding ? " " : "|";
|
|
1784
|
-
return {
|
|
1785
|
-
unsafe: [
|
|
1786
|
-
{
|
|
1787
|
-
character: "\r",
|
|
1788
|
-
inConstruct: "tableCell"
|
|
1789
|
-
},
|
|
1790
|
-
{
|
|
1791
|
-
character: "\n",
|
|
1792
|
-
inConstruct: "tableCell"
|
|
1793
|
-
},
|
|
1794
|
-
{
|
|
1795
|
-
atBreak: true,
|
|
1796
|
-
character: "|",
|
|
1797
|
-
after: "[ :-]"
|
|
1798
|
-
},
|
|
1799
|
-
{
|
|
1800
|
-
character: "|",
|
|
1801
|
-
inConstruct: "tableCell"
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
atBreak: true,
|
|
1805
|
-
character: ":",
|
|
1806
|
-
after: "-"
|
|
1807
|
-
},
|
|
1808
|
-
{
|
|
1809
|
-
atBreak: true,
|
|
1810
|
-
character: "-",
|
|
1811
|
-
after: "[:|-]"
|
|
1812
|
-
}
|
|
1813
|
-
],
|
|
1814
|
-
handlers: {
|
|
1815
|
-
inlineCode: inlineCodeWithTable,
|
|
1816
|
-
table: handleTable,
|
|
1817
|
-
tableCell: handleTableCell,
|
|
1818
|
-
tableRow: handleTableRow
|
|
1819
|
-
}
|
|
1820
|
-
};
|
|
1821
|
-
/**
|
|
1822
|
-
* @type {ToMarkdownHandle}
|
|
1823
|
-
* @param {Table} node
|
|
1824
|
-
*/
|
|
1825
|
-
function handleTable(node, _, state, info) {
|
|
1826
|
-
return serializeData(handleTableAsData(node, state, info), node.align);
|
|
1827
|
-
}
|
|
1828
|
-
/**
|
|
1829
|
-
* This function isn’t really used normally, because we handle rows at the
|
|
1830
|
-
* table level.
|
|
1831
|
-
* But, if someone passes in a table row, this ensures we make somewhat sense.
|
|
1832
|
-
*
|
|
1833
|
-
* @type {ToMarkdownHandle}
|
|
1834
|
-
* @param {TableRow} node
|
|
1835
|
-
*/
|
|
1836
|
-
function handleTableRow(node, _, state, info) {
|
|
1837
|
-
const value = serializeData([handleTableRowAsData(node, state, info)]);
|
|
1838
|
-
return value.slice(0, value.indexOf("\n"));
|
|
1839
|
-
}
|
|
1840
|
-
/**
|
|
1841
|
-
* @type {ToMarkdownHandle}
|
|
1842
|
-
* @param {TableCell} node
|
|
1843
|
-
*/
|
|
1844
|
-
function handleTableCell(node, _, state, info) {
|
|
1845
|
-
const exit = state.enter("tableCell");
|
|
1846
|
-
const subexit = state.enter("phrasing");
|
|
1847
|
-
const value = state.containerPhrasing(node, {
|
|
1848
|
-
...info,
|
|
1849
|
-
before: around,
|
|
1850
|
-
after: around
|
|
1851
|
-
});
|
|
1852
|
-
subexit();
|
|
1853
|
-
exit();
|
|
1854
|
-
return value;
|
|
1855
|
-
}
|
|
1856
|
-
/**
|
|
1857
|
-
* @param {Array<Array<string>>} matrix
|
|
1858
|
-
* @param {Array<string | null | undefined> | null | undefined} [align]
|
|
1859
|
-
*/
|
|
1860
|
-
function serializeData(matrix, align) {
|
|
1861
|
-
return markdownTable(matrix, {
|
|
1862
|
-
align,
|
|
1863
|
-
alignDelimiters,
|
|
1864
|
-
padding,
|
|
1865
|
-
stringLength
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
/**
|
|
1869
|
-
* @param {Table} node
|
|
1870
|
-
* @param {State} state
|
|
1871
|
-
* @param {Info} info
|
|
1872
|
-
*/
|
|
1873
|
-
function handleTableAsData(node, state, info) {
|
|
1874
|
-
const children = node.children;
|
|
1875
|
-
let index = -1;
|
|
1876
|
-
/** @type {Array<Array<string>>} */
|
|
1877
|
-
const result = [];
|
|
1878
|
-
const subexit = state.enter("table");
|
|
1879
|
-
while (++index < children.length) result[index] = handleTableRowAsData(children[index], state, info);
|
|
1880
|
-
subexit();
|
|
1881
|
-
return result;
|
|
1882
|
-
}
|
|
1883
|
-
/**
|
|
1884
|
-
* @param {TableRow} node
|
|
1885
|
-
* @param {State} state
|
|
1886
|
-
* @param {Info} info
|
|
1887
|
-
*/
|
|
1888
|
-
function handleTableRowAsData(node, state, info) {
|
|
1889
|
-
const children = node.children;
|
|
1890
|
-
let index = -1;
|
|
1891
|
-
/** @type {Array<string>} */
|
|
1892
|
-
const result = [];
|
|
1893
|
-
const subexit = state.enter("tableRow");
|
|
1894
|
-
while (++index < children.length) result[index] = handleTableCell(children[index], node, state, info);
|
|
1895
|
-
subexit();
|
|
1896
|
-
return result;
|
|
1897
|
-
}
|
|
1898
|
-
/**
|
|
1899
|
-
* @type {ToMarkdownHandle}
|
|
1900
|
-
* @param {InlineCode} node
|
|
1901
|
-
*/
|
|
1902
|
-
function inlineCodeWithTable(node, parent, state) {
|
|
1903
|
-
let value = handle.inlineCode(node, parent, state);
|
|
1904
|
-
if (state.stack.includes("tableCell")) value = value.replace(/\|/g, "\\$&");
|
|
1905
|
-
return value;
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
//#endregion
|
|
1909
|
-
//#region node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
1910
|
-
/**
|
|
1911
|
-
* @typedef {import('mdast').ListItem} ListItem
|
|
1912
|
-
* @typedef {import('mdast').Paragraph} Paragraph
|
|
1913
|
-
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
|
|
1914
|
-
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
|
|
1915
|
-
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
|
|
1916
|
-
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
|
|
1917
|
-
* @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
|
|
1918
|
-
*/
|
|
1919
|
-
/**
|
|
1920
|
-
* Create an extension for `mdast-util-from-markdown` to enable GFM task
|
|
1921
|
-
* list items in markdown.
|
|
1922
|
-
*
|
|
1923
|
-
* @returns {FromMarkdownExtension}
|
|
1924
|
-
* Extension for `mdast-util-from-markdown` to enable GFM task list items.
|
|
1925
|
-
*/
|
|
1926
|
-
function gfmTaskListItemFromMarkdown() {
|
|
1927
|
-
return { exit: {
|
|
1928
|
-
taskListCheckValueChecked: exitCheck,
|
|
1929
|
-
taskListCheckValueUnchecked: exitCheck,
|
|
1930
|
-
paragraph: exitParagraphWithTaskListItem
|
|
1931
|
-
} };
|
|
1932
|
-
}
|
|
1933
|
-
/**
|
|
1934
|
-
* Create an extension for `mdast-util-to-markdown` to enable GFM task list
|
|
1935
|
-
* items in markdown.
|
|
1936
|
-
*
|
|
1937
|
-
* @returns {ToMarkdownExtension}
|
|
1938
|
-
* Extension for `mdast-util-to-markdown` to enable GFM task list items.
|
|
1939
|
-
*/
|
|
1940
|
-
function gfmTaskListItemToMarkdown() {
|
|
1941
|
-
return {
|
|
1942
|
-
unsafe: [{
|
|
1943
|
-
atBreak: true,
|
|
1944
|
-
character: "-",
|
|
1945
|
-
after: "[:|-]"
|
|
1946
|
-
}],
|
|
1947
|
-
handlers: { listItem: listItemWithTaskListItem }
|
|
1948
|
-
};
|
|
1949
|
-
}
|
|
1950
|
-
/**
|
|
1951
|
-
* @this {CompileContext}
|
|
1952
|
-
* @type {FromMarkdownHandle}
|
|
1953
|
-
*/
|
|
1954
|
-
function exitCheck(token) {
|
|
1955
|
-
const node = this.stack[this.stack.length - 2];
|
|
1956
|
-
node.type;
|
|
1957
|
-
node.checked = token.type === "taskListCheckValueChecked";
|
|
1958
|
-
}
|
|
1959
|
-
/**
|
|
1960
|
-
* @this {CompileContext}
|
|
1961
|
-
* @type {FromMarkdownHandle}
|
|
1962
|
-
*/
|
|
1963
|
-
function exitParagraphWithTaskListItem(token) {
|
|
1964
|
-
const parent = this.stack[this.stack.length - 2];
|
|
1965
|
-
if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
|
|
1966
|
-
const node = this.stack[this.stack.length - 1];
|
|
1967
|
-
node.type;
|
|
1968
|
-
const head = node.children[0];
|
|
1969
|
-
if (head && head.type === "text") {
|
|
1970
|
-
const siblings = parent.children;
|
|
1971
|
-
let index = -1;
|
|
1972
|
-
/** @type {Paragraph | undefined} */
|
|
1973
|
-
let firstParaghraph;
|
|
1974
|
-
while (++index < siblings.length) {
|
|
1975
|
-
const sibling = siblings[index];
|
|
1976
|
-
if (sibling.type === "paragraph") {
|
|
1977
|
-
firstParaghraph = sibling;
|
|
1978
|
-
break;
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
if (firstParaghraph === node) {
|
|
1982
|
-
head.value = head.value.slice(1);
|
|
1983
|
-
if (head.value.length === 0) node.children.shift();
|
|
1984
|
-
else if (node.position && head.position && typeof head.position.start.offset === "number") {
|
|
1985
|
-
head.position.start.column++;
|
|
1986
|
-
head.position.start.offset++;
|
|
1987
|
-
node.position.start = Object.assign({}, head.position.start);
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
this.exit(token);
|
|
1993
|
-
}
|
|
1994
|
-
/**
|
|
1995
|
-
* @type {ToMarkdownHandle}
|
|
1996
|
-
* @param {ListItem} node
|
|
1997
|
-
*/
|
|
1998
|
-
function listItemWithTaskListItem(node, parent, state, info) {
|
|
1999
|
-
const head = node.children[0];
|
|
2000
|
-
const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
|
|
2001
|
-
const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
|
|
2002
|
-
const tracker = state.createTracker(info);
|
|
2003
|
-
if (checkable) tracker.move(checkbox);
|
|
2004
|
-
let value = handle.listItem(node, parent, state, {
|
|
2005
|
-
...info,
|
|
2006
|
-
...tracker.current()
|
|
2007
|
-
});
|
|
2008
|
-
if (checkable) value = value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, check);
|
|
2009
|
-
return value;
|
|
2010
|
-
/**
|
|
2011
|
-
* @param {string} $0
|
|
2012
|
-
* @returns {string}
|
|
2013
|
-
*/
|
|
2014
|
-
function check($0) {
|
|
2015
|
-
return $0 + checkbox;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
//#endregion
|
|
2019
|
-
//#region node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js
|
|
2020
|
-
/**
|
|
2021
|
-
* @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
|
|
2022
|
-
* @import {Options} from 'mdast-util-gfm'
|
|
2023
|
-
* @import {Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
|
|
2024
|
-
*/
|
|
2025
|
-
/**
|
|
2026
|
-
* Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
|
|
2027
|
-
* literals, footnotes, strikethrough, tables, tasklists).
|
|
2028
|
-
*
|
|
2029
|
-
* @returns {Array<FromMarkdownExtension>}
|
|
2030
|
-
* Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,
|
|
2031
|
-
* footnotes, strikethrough, tables, tasklists).
|
|
2032
|
-
*/
|
|
2033
|
-
function gfmFromMarkdown() {
|
|
2034
|
-
return [
|
|
2035
|
-
gfmAutolinkLiteralFromMarkdown(),
|
|
2036
|
-
gfmFootnoteFromMarkdown(),
|
|
2037
|
-
gfmStrikethroughFromMarkdown(),
|
|
2038
|
-
gfmTableFromMarkdown(),
|
|
2039
|
-
gfmTaskListItemFromMarkdown()
|
|
2040
|
-
];
|
|
2041
|
-
}
|
|
2042
|
-
/**
|
|
2043
|
-
* Create an extension for `mdast-util-to-markdown` to enable GFM (autolink
|
|
2044
|
-
* literals, footnotes, strikethrough, tables, tasklists).
|
|
2045
|
-
*
|
|
2046
|
-
* @param {Options | null | undefined} [options]
|
|
2047
|
-
* Configuration (optional).
|
|
2048
|
-
* @returns {ToMarkdownExtension}
|
|
2049
|
-
* Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,
|
|
2050
|
-
* footnotes, strikethrough, tables, tasklists).
|
|
2051
|
-
*/
|
|
2052
|
-
function gfmToMarkdown(options) {
|
|
2053
|
-
return { extensions: [
|
|
2054
|
-
gfmAutolinkLiteralToMarkdown(),
|
|
2055
|
-
gfmFootnoteToMarkdown(options),
|
|
2056
|
-
gfmStrikethroughToMarkdown(),
|
|
2057
|
-
gfmTableToMarkdown(options),
|
|
2058
|
-
gfmTaskListItemToMarkdown()
|
|
2059
|
-
] };
|
|
2060
|
-
}
|
|
2061
|
-
//#endregion
|
|
2062
|
-
export { gfmToMarkdown as n, gfmFromMarkdown as t };
|