markstream-react 0.0.54 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Tooltip-DRyaxB2U.js → Tooltip-Bx_S1cbE.js} +136 -136
- package/dist/{codeBlockExtraProps-bURhH5ZJ.js → codeBlockExtraProps-RaPzFq78.js} +1 -1
- package/dist/{index-BfHYFUlj.js → index-D0DspXy9.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/next.js +1 -1
- package/dist/server.js +1 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +1 -1
- package/dist/types/hooks/useSmoothMarkdownStream.d.ts +1 -18
- package/package.json +2 -2
- package/dist/abap-DnJxzdy9.js +0 -1
- package/dist/actionscript-3-DKotD2Vd.js +0 -1
- package/dist/ada-iG1FnIvR.js +0 -1
- package/dist/andromeeda-C4gqWexZ.js +0 -1
- package/dist/angular-html-C5GGT2tR.js +0 -1
- package/dist/angular-ts-Qqqp7JE0.js +0 -1
- package/dist/apache-CdTKWnKT.js +0 -1
- package/dist/apex-BtozVX6V.js +0 -1
- package/dist/apl-BkgZWazH.js +0 -1
- package/dist/applescript-BlLNmGTp.js +0 -1
- package/dist/ara-Ba3fhlsS.js +0 -1
- package/dist/asciidoc-AY8u9WWM.js +0 -1
- package/dist/asm-CHX6lpGW.js +0 -1
- package/dist/astro-BxFA88J7.js +0 -1
- package/dist/aurora-x-D-2ljcwZ.js +0 -1
- package/dist/awk-XRrwoikR.js +0 -1
- package/dist/ayu-dark-DYE7WIF3.js +0 -1
- package/dist/ayu-light-BA47KaF1.js +0 -1
- package/dist/ayu-mirage-32ctXXKs.js +0 -1
- package/dist/ballerina-Dh0JsEtz.js +0 -1
- package/dist/bat-BVu0TwaT.js +0 -1
- package/dist/beancount-CJl0njO0.js +0 -1
- package/dist/berry-Bmu6i3Vs.js +0 -1
- package/dist/bibtex-CGjxJ4Zd.js +0 -1
- package/dist/bicep-DSW96mAt.js +0 -1
- package/dist/bird2-DxzquW1t.js +0 -1
- package/dist/blade-B0Yy4jmA.js +0 -1
- package/dist/bsl-DGicdwC0.js +0 -1
- package/dist/c-BmJt9k-y.js +0 -1
- package/dist/c3-BP_4uRj3.js +0 -1
- package/dist/cadence-DbDq8SCj.js +0 -1
- package/dist/cairo-Dz8fl918.js +0 -1
- package/dist/catppuccin-frappe-DFWUc33u.js +0 -1
- package/dist/catppuccin-latte-C9dUb6Cb.js +0 -1
- package/dist/catppuccin-macchiato-DQyhUUbL.js +0 -1
- package/dist/catppuccin-mocha-D87Tk5Gz.js +0 -1
- package/dist/clarity-Bb40UnPS.js +0 -1
- package/dist/clojure-BjI0Knrv.js +0 -1
- package/dist/cmake-BYiqpiH1.js +0 -1
- package/dist/cobol-B1Bs9cCy.js +0 -1
- package/dist/codeowners-L91meNbn.js +0 -1
- package/dist/codeql-Cd-JFsJB.js +0 -1
- package/dist/coffee-BDkVV41o.js +0 -1
- package/dist/common-lisp-DOi1njVG.js +0 -1
- package/dist/coq-BfbrVLCY.js +0 -1
- package/dist/cpp-oXxK9OCk.js +0 -1
- package/dist/crystal-2eHiXEKD.js +0 -1
- package/dist/csharp-DhuT4xSQ.js +0 -1
- package/dist/css-C6sBVIXB.js +0 -1
- package/dist/csv-DXKU4rRd.js +0 -1
- package/dist/cue-zmT78Agv.js +0 -1
- package/dist/cypher-bkHSskm3.js +0 -1
- package/dist/d-vs9xsbRV.js +0 -1
- package/dist/dark-plus-C3mMm8J8.js +0 -1
- package/dist/dart-ATbvIoNW.js +0 -1
- package/dist/dax-D135z3aS.js +0 -1
- package/dist/desktop-CigPEpQ5.js +0 -1
- package/dist/diff-Beq1YlA8.js +0 -1
- package/dist/docker-V5Al5bpF.js +0 -1
- package/dist/dotenv-D9G8sA2m.js +0 -1
- package/dist/dracula-BzJJZx-M.js +0 -1
- package/dist/dracula-soft-BXkSAIEj.js +0 -1
- package/dist/dream-maker-BsoKROiO.js +0 -1
- package/dist/edge-BUP_aW-j.js +0 -1
- package/dist/elixir-CV6JUqYA.js +0 -1
- package/dist/elm-5NnWpb8Q.js +0 -1
- package/dist/emacs-lisp-C4732ieo.js +0 -1
- package/dist/erb-DzuXK2qx.js +0 -1
- package/dist/erlang-DAw79KxH.js +0 -1
- package/dist/everforest-dark-BgDCqdQA.js +0 -1
- package/dist/everforest-light-C8M2exoo.js +0 -1
- package/dist/fennel-qzPJJAAI.js +0 -1
- package/dist/fish-Cx6My9pS.js +0 -1
- package/dist/fluent-BsukS3Co.js +0 -1
- package/dist/fortran-fixed-form-BiRvzwyR.js +0 -1
- package/dist/fortran-free-form-CakU9R0a.js +0 -1
- package/dist/fsharp-BmLNaTNL.js +0 -1
- package/dist/gdresource-pHyHNgx5.js +0 -1
- package/dist/gdscript-BpxQpKjR.js +0 -1
- package/dist/gdshader-BC7WJXp9.js +0 -1
- package/dist/genie-IZOju1hG.js +0 -1
- package/dist/gherkin-DUpgZfGr.js +0 -1
- package/dist/git-commit-Bptnmh-c.js +0 -1
- package/dist/git-rebase-CqNhyBhE.js +0 -1
- package/dist/github-dark-DHJKELXO.js +0 -1
- package/dist/github-dark-default-Cuk6v7N8.js +0 -1
- package/dist/github-dark-dimmed-DH5Ifo-i.js +0 -1
- package/dist/github-dark-high-contrast-E3gJ1_iC.js +0 -1
- package/dist/github-light-DAi9KRSo.js +0 -1
- package/dist/github-light-default-D7oLnXFd.js +0 -1
- package/dist/github-light-high-contrast-BfjtVDDH.js +0 -1
- package/dist/gleam-CCCEh_av.js +0 -1
- package/dist/glimmer-js-C8NS61CI.js +0 -1
- package/dist/glimmer-ts-B-RapyDB.js +0 -1
- package/dist/glsl-BDbjGBhJ.js +0 -1
- package/dist/gn-BNGDdMfm.js +0 -1
- package/dist/gnuplot-D0FoiB-W.js +0 -1
- package/dist/go-D4Ovm2g9.js +0 -1
- package/dist/graphql-DTlHKpVh.js +0 -1
- package/dist/groovy-D9sPn4Z-.js +0 -1
- package/dist/gruvbox-dark-hard-CFHQjOhq.js +0 -1
- package/dist/gruvbox-dark-medium-GsRaNv29.js +0 -1
- package/dist/gruvbox-dark-soft-CVdnzihN.js +0 -1
- package/dist/gruvbox-light-hard-CH1njM8p.js +0 -1
- package/dist/gruvbox-light-medium-DRw_LuNl.js +0 -1
- package/dist/gruvbox-light-soft-hJgmCMqR.js +0 -1
- package/dist/hack-BxpNoYuc.js +0 -1
- package/dist/haml-B9roiRDW.js +0 -1
- package/dist/handlebars-Bal7dEre.js +0 -1
- package/dist/haskell-Cp0NQEkn.js +0 -1
- package/dist/haxe-D-PmAGDa.js +0 -1
- package/dist/hcl-DRMo6eis.js +0 -1
- package/dist/hjson-BPEpXUFQ.js +0 -1
- package/dist/hlsl-B-PjNM4a.js +0 -1
- package/dist/horizon-BUw7H-hv.js +0 -1
- package/dist/horizon-bright-CUuTKBJd.js +0 -1
- package/dist/houston-DnULxvSX.js +0 -1
- package/dist/html-B3ILK6fm.js +0 -1
- package/dist/html-derivative-CfZez7eO.js +0 -1
- package/dist/http-Dh7mhfAc.js +0 -1
- package/dist/hurl-DvxDWHzM.js +0 -1
- package/dist/hxml-DB3_nACV.js +0 -1
- package/dist/hy-CLIvbAhW.js +0 -1
- package/dist/imba-B-tO30Ge.js +0 -1
- package/dist/index-70BGc65F.js +0 -1
- package/dist/index-Bsx2m-LR.js +0 -47
- package/dist/ini-Bpxu4Zsc.js +0 -1
- package/dist/java-DtRXFtDl.js +0 -1
- package/dist/javascript-DFyEbC5y.js +0 -1
- package/dist/jinja-CVIIYihW.js +0 -1
- package/dist/jison-rKmQmF2-.js +0 -1
- package/dist/json-LWN7Ml79.js +0 -1
- package/dist/json5-CgCB487x.js +0 -1
- package/dist/jsonc-BXrjvC_e.js +0 -1
- package/dist/jsonl-D5dm1SHP.js +0 -1
- package/dist/jsonnet-B60UklUs.js +0 -1
- package/dist/jssm-CsqlGknB.js +0 -1
- package/dist/jsx-g2NrEQII.js +0 -1
- package/dist/julia-3RKjS8FQ.js +0 -1
- package/dist/just-CVCZ9vRQ.js +0 -1
- package/dist/kanagawa-dragon-CkXjmgJE.js +0 -1
- package/dist/kanagawa-lotus-CfQXZHmo.js +0 -1
- package/dist/kanagawa-wave-DWedfzmr.js +0 -1
- package/dist/kdl-DWIPcypl.js +0 -1
- package/dist/kotlin-DiV2Dt9D.js +0 -1
- package/dist/kusto-Bjy7G7j4.js +0 -1
- package/dist/laserwave-DUszq2jm.js +0 -1
- package/dist/latex-Bs1X87VY.js +0 -1
- package/dist/lean-BpZurxeZ.js +0 -1
- package/dist/less-DKKxO4Pm.js +0 -1
- package/dist/light-plus-B7mTdjB0.js +0 -1
- package/dist/liquid-DhgCFC9B.js +0 -1
- package/dist/llvm-w4szIS5k.js +0 -1
- package/dist/log-CnKjEmrw.js +0 -1
- package/dist/logo-BmG1tMr6.js +0 -1
- package/dist/lua-DlAioYQl.js +0 -1
- package/dist/luau-CDzI2T2B.js +0 -1
- package/dist/make-Ccm3NI5i.js +0 -1
- package/dist/markdown-DY93LJPj.js +0 -1
- package/dist/marko-DcK8dvuy.js +0 -1
- package/dist/material-theme-D5KoaKCx.js +0 -1
- package/dist/material-theme-darker-BfHTSMKl.js +0 -1
- package/dist/material-theme-lighter-B0m2ddpp.js +0 -1
- package/dist/material-theme-ocean-CyktbL80.js +0 -1
- package/dist/material-theme-palenight-Csfq5Kiy.js +0 -1
- package/dist/matlab-nYX3zffi.js +0 -1
- package/dist/mdc-DQafIqD6.js +0 -1
- package/dist/mdx-C8C9IGe9.js +0 -1
- package/dist/mermaid--Jyu4oWd.js +0 -1
- package/dist/min-dark-CafNBF8u.js +0 -1
- package/dist/min-light-CTRr51gU.js +0 -1
- package/dist/mipsasm-BjAqecqh.js +0 -1
- package/dist/mojo-C2cxD0aZ.js +0 -1
- package/dist/monokai-D4h5O-jR.js +0 -1
- package/dist/moonbit-B4gpyPjt.js +0 -1
- package/dist/move-Dg7rFHVC.js +0 -1
- package/dist/narrat-BTSicUR-.js +0 -1
- package/dist/nextflow-CRfcQpDI.js +0 -1
- package/dist/nextflow-groovy-DuWVVkaq.js +0 -1
- package/dist/nginx-B2z8CTeP.js +0 -1
- package/dist/night-owl-C39BiMTA.js +0 -1
- package/dist/night-owl-light-CMTm3GFP.js +0 -1
- package/dist/nim-DP_Ekwra.js +0 -1
- package/dist/nix-_0LqsLde.js +0 -1
- package/dist/nord-Ddv68eIx.js +0 -1
- package/dist/nushell-Mk45ZIMx.js +0 -1
- package/dist/objective-c-DLT9zZoE.js +0 -1
- package/dist/objective-cpp-DKXr-AK_.js +0 -1
- package/dist/ocaml-DP9q6K5L.js +0 -1
- package/dist/odin-BINPiy40.js +0 -1
- package/dist/one-dark-pro-DVMEJ2y_.js +0 -1
- package/dist/one-light-C3Wv6jpd.js +0 -1
- package/dist/openscad-CVq2HK1T.js +0 -1
- package/dist/pascal-DjTTLVNS.js +0 -1
- package/dist/perl-CmsZP_P9.js +0 -1
- package/dist/php-vdga8FKK.js +0 -1
- package/dist/pierre-dark-CyvmCCZW.js +0 -1
- package/dist/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +0 -1
- package/dist/pierre-dark-soft-BHGpRqa4.js +0 -1
- package/dist/pierre-dark-tritanopia-Beq2gCRQ.js +0 -1
- package/dist/pierre-dark-vibrant-BWBVywrn.js +0 -1
- package/dist/pierre-light-480U9XYS.js +0 -1
- package/dist/pierre-light-protanopia-deuteranopia-CaVOBURG.js +0 -1
- package/dist/pierre-light-soft-CVdyfjmI.js +0 -1
- package/dist/pierre-light-tritanopia-B4_gpKOM.js +0 -1
- package/dist/pierre-light-vibrant-DdTDNdfJ.js +0 -1
- package/dist/pkl-0Sl31KKD.js +0 -1
- package/dist/plastic-3e1v2bzS.js +0 -1
- package/dist/plsql-CJrHCTnj.js +0 -1
- package/dist/po-y5MdiEbo.js +0 -1
- package/dist/poimandres-CS3Unz2-.js +0 -1
- package/dist/polar-Bsx6RkUC.js +0 -1
- package/dist/postcss-CeUBPB2S.js +0 -1
- package/dist/powerquery-CW27I574.js +0 -1
- package/dist/powershell-DSYJ6xcj.js +0 -1
- package/dist/prisma-CLoN-gBj.js +0 -1
- package/dist/prolog-Bgt5DHUA.js +0 -1
- package/dist/proto-C194Edqz.js +0 -1
- package/dist/pug-KXbBtQiy.js +0 -1
- package/dist/puppet-TSkl_nn0.js +0 -1
- package/dist/purescript-BrDje9qL.js +0 -1
- package/dist/python-DlV7vnVD.js +0 -1
- package/dist/qml-DTv-54bL.js +0 -1
- package/dist/qmldir-CSZk7E48.js +0 -1
- package/dist/qss-DACx-k9g.js +0 -1
- package/dist/r-EOoB7omE.js +0 -1
- package/dist/racket-D1nq-KeH.js +0 -1
- package/dist/raku-DocPDKZq.js +0 -1
- package/dist/razor-B-tk-wsx.js +0 -1
- package/dist/red-bN70gL4F.js +0 -1
- package/dist/reg-5ydmJHEw.js +0 -1
- package/dist/regexp-CpyjTnFF.js +0 -1
- package/dist/rel-D68lwU-3.js +0 -1
- package/dist/riscv-Cl4WfXj6.js +0 -1
- package/dist/ron-DIZViclS.js +0 -1
- package/dist/rose-pine-dawn-DHQR4-dF.js +0 -1
- package/dist/rose-pine-moon-D4_iv3hh.js +0 -1
- package/dist/rose-pine-qdsjHGoJ.js +0 -1
- package/dist/rosmsg-sf_0D22S.js +0 -1
- package/dist/rst-BG5pn2qR.js +0 -1
- package/dist/ruby-DcH2yJAk.js +0 -1
- package/dist/rust-DpWcZSqc.js +0 -1
- package/dist/sas-B5HzFFRM.js +0 -1
- package/dist/sass-DY_rGA2-.js +0 -1
- package/dist/scala-CYRsmRER.js +0 -1
- package/dist/scheme-C45fPb3F.js +0 -1
- package/dist/scss-BV51UrMN.js +0 -1
- package/dist/sdbl-BpucmfEo.js +0 -1
- package/dist/shaderlab-DNyPh2Q6.js +0 -1
- package/dist/shellscript-B8OHlvmy.js +0 -1
- package/dist/shellsession-OATBsyRD.js +0 -1
- package/dist/slack-dark-BthQWCQV.js +0 -1
- package/dist/slack-ochin-DqwNpetd.js +0 -1
- package/dist/smalltalk-CKvddXL8.js +0 -1
- package/dist/snazzy-light-Bw305WKR.js +0 -1
- package/dist/solarized-dark-DXbdFlpD.js +0 -1
- package/dist/solarized-light-L9t79GZl.js +0 -1
- package/dist/solidity-XfXaqt9k.js +0 -1
- package/dist/soy-B8YA9JrK.js +0 -1
- package/dist/sparql-CLNNOQQI.js +0 -1
- package/dist/splunk-CFtInczE.js +0 -1
- package/dist/sql-Q2iGWUi5.js +0 -1
- package/dist/ssh-config-Dqsr-I88.js +0 -1
- package/dist/stata-BR_XK0X0.js +0 -1
- package/dist/stylus-BeJftkpb.js +0 -1
- package/dist/surrealql-C_6seBBi.js +0 -1
- package/dist/svelte-0br9ZpFT.js +0 -1
- package/dist/swift-0qv2hBXI.js +0 -1
- package/dist/synthwave-84-ChtBzv_y.js +0 -1
- package/dist/system-verilog-B3nElewZ.js +0 -1
- package/dist/systemd-B7SlkmfE.js +0 -1
- package/dist/talonscript-BrsbXmRy.js +0 -1
- package/dist/tasl-CMkPZNj1.js +0 -1
- package/dist/tcl-CiyEbZSK.js +0 -1
- package/dist/templ-B0JhIwv9.js +0 -1
- package/dist/terraform-BUB-_BlF.js +0 -1
- package/dist/tex-ByCZWQmN.js +0 -1
- package/dist/tokyo-night-hegEt444.js +0 -1
- package/dist/toml-VldhK7iW.js +0 -1
- package/dist/ts-tags-BWP4nPgY.js +0 -1
- package/dist/tsv-BQ9ptESM.js +0 -1
- package/dist/tsx-DYwE5ssU.js +0 -1
- package/dist/turtle-BVy4HXn4.js +0 -1
- package/dist/twig-z8zdyiH9.js +0 -1
- package/dist/typescript-DI7mmMRd.js +0 -1
- package/dist/typespec-BAzX0Tk7.js +0 -1
- package/dist/typst-JIZTSUoJ.js +0 -1
- package/dist/v-B66J5FdL.js +0 -1
- package/dist/vala-p2PL1w-1.js +0 -1
- package/dist/vb-Dv-GCw1m.js +0 -1
- package/dist/verilog-DKP7kpC6.js +0 -1
- package/dist/vesper-DRje8inN.js +0 -1
- package/dist/vhdl-Cog-DhcW.js +0 -1
- package/dist/viml-0AN1aqkP.js +0 -1
- package/dist/vitesse-black-Bkuqu6BP.js +0 -1
- package/dist/vitesse-dark-D0r3Knsf.js +0 -1
- package/dist/vitesse-light-CVO1_9PV.js +0 -1
- package/dist/vue-DqsE_lDH.js +0 -1
- package/dist/vue-html-a8uCr53v.js +0 -1
- package/dist/vue-vine-CVmLzYuL.js +0 -1
- package/dist/vyper-sB2l1MOO.js +0 -1
- package/dist/wasm--yL7jHw-.js +0 -1
- package/dist/wasm-CSAWeJiV.js +0 -1
- package/dist/wenyan-CLHHXU5e.js +0 -1
- package/dist/wgsl-DiTcYanS.js +0 -1
- package/dist/wikitext-DT8E9qe0.js +0 -1
- package/dist/wit-CtjT-RdY.js +0 -1
- package/dist/wolfram-1xJNnwe2.js +0 -1
- package/dist/xml-BsgRw6d1.js +0 -1
- package/dist/xsl-CNIkWbJg.js +0 -1
- package/dist/yaml-c2-Vhxho.js +0 -1
- package/dist/zenscript-ChP1MlQf.js +0 -1
- package/dist/zig-rivS3YQG.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{jsx as t,Fragment as n}from"react/jsx-runtime";import e from"react";import{normalizeCustomHtmlTagName as o,hasCustomHtmlComponents as r,tokenizeHtml as s,BLOCKED_HTML_TAGS as a,isHtmlTagHardBlocked as l,isHtmlTagBlocked as i,sanitizeHtmlAttrs as c,isCustomHtmlComponentTag as u,convertHtmlAttrsToProps as h,getHtmlTagFromContent as p}from"stream-markdown-parser";const d=/* @__PURE__ */new Set(["table","code_block","html_block","blockquote","list","list_item","definition_list","footnote","footnote_reference","footnote_anchor","admonition","thematic_break","math_block","thinking","vmr_container"]);function g(t){if(Array.isArray(t)&&0!==t.length)return t.reduce((t,[n,e])=>n?(t["for"===n?"htmlFor":"class"===n?"className":n]=null==e||e,t):t,{})}function m(n,e,o,r){if(!Array.isArray(n)||0===n.length)return null;const s=[];for(let a=0;a<n.length;a++){const l=n[a];if(l){if("label_open"===l.type){const i=[];for(a++;a<n.length;){const t=n[a];if("label_close"===(null==t?void 0:t.type))break;t&&i.push(t),a++}const c=`${o}-label-${a}`;s.push(
|
|
2
2
|
/* @__PURE__ */t("label",{...g(l.attrs),children:m(i,e,`${c}-child`,r)},c));continue}"label_close"!==l.type&&s.push(r(l,`${o}-${a}`,e))}}return s}function f(e,o,r,s){/* @__PURE__ */
|
|
3
|
-
return t(n,{children:m(e,o,`${r}-inline`,s)})}const v=!1;function w(){return v}const k="__global__",y="__MARKSTREAM_REACT_CUSTOM_COMPONENTS_STORE__",x=(()=>{const t=globalThis;if(t[y])return t[y];const n={scopedComponents:{},revision:0,listeners:/* @__PURE__ */new Set};return t[y]=n,n})();function C(){x.revision++;for(const t of Array.from(x.listeners))try{t()}catch{}}function b(t){return x.listeners.add(t),()=>{x.listeners.delete(t)}}function N(){return x.revision}function j(t,n){"string"==typeof t?x.scopedComponents[t]={...n||{}}:x.scopedComponents[k]={...t},C()}function M(t){const n=x.scopedComponents[k]||{};if(!t)return n;const e=x.scopedComponents[t]||{};return n&&0!==Object.keys(n).length?e&&0!==Object.keys(e).length?{...n,...e}:n:e}function $(t){if(t===k)throw new Error("removeCustomComponents: cannot delete global mapping; call clearGlobalCustomComponents instead.");delete x.scopedComponents[t],C()}function _(){delete x.scopedComponents[k],C()}function B(t){return null==t?void 0:t.markstreamDisplay}function S(t,n){return t.markstreamDisplay=n,t}function L(t){return t}function O(t){return t}function A(t){if(!t)return{};const n={};for(const[e,r]of Object.entries(t)){const t=o(e);t&&(n[t]=r)}return n}function E(t,n,e){if(w())for(const o of Object.keys(t))n[o]&&!e.has(o)&&(e.add(o),console.warn(`[markstream-react] "${o}" was provided in both streamingComponents and htmlComponents. The streamingComponents entry will be used for parser-backed rendering.`))}const H='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">\n <path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />\n <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />\n </g>\n</svg>\n\n';let P=null,V=null,T=null;const z=/* @__PURE__ */new Set;function D(t){P=null!=t?t:null}const F={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",d2lang:"d2",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"},W={"":H,plain:H,text:H,javascript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />\n <path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />\n </g>\n</svg>\n\n',typescript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />\n <path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />\n </g>\n</svg>\n\n',jsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />\n <path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />\n <path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />\n <path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n\n',tsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />\n <path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />\n <path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />\n <path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n\n',html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />\n <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />\n </g>\n</svg>\n\n',css:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">\n <path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />\n <path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />\n </g>\n</svg>\n\n',json:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />\n</svg>\n\n',python:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />\n <path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />\n <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />\n <path stroke="#e5c890" d="m 8.5,12.5 v 0" />\n </g>\n</svg>\n\n',shell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />\n <path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />\n </g>\n</svg>\n\n',markdown:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />\n</svg>\n\n',mermaid:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />\n</svg>\n\n'};function G(t){var n;const e=function(t){if(!t)return"";const n=t.trim();if(!n)return"";const[e]=n.split(/\s+/),[o]=e.split(":");return o.toLowerCase()}(t);return null!=(n=F[e])?n:e}function I(t){const n=G(t);if(!n)return"plaintext";switch(n){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return n}}async function J(){return V||(T||(T=import("./languageIconExtended-B1nZmPQn.js").then(t=>(V=t.EXTENDED_LANGUAGE_ICON_MAP,function(){for(const t of z)try{t()}catch{}}(),V)).catch(()=>null)),T)}async function R(){await J()}function X(t){return z.add(t),()=>{z.delete(t)}}function q(t){if(P){const n=P(t);if(null!=n&&""!==n)return n}const n=G(t),e=W[n];if(e)return e;return(null==V?void 0:V[n])||(J(),'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16">\x3c!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --\x3e<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>\n\n')}const K={javascript:"JavaScript",typescript:"TypeScript",jsx:"JSX",tsx:"TSX",shell:"Shell",plain:"Text",text:"Text",markdown:"Markdown",json:"JSON",python:"Python",cpp:"C++",csharp:"C#",vue:"Vue",html:"HTML",css:"CSS",svg:"SVG",mermaid:"Mermaid",d2:"D2"};function U(t){return t.startsWith("--")?t:t.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Z(t){const n={...t};if(Object.prototype.hasOwnProperty.call(n,"class")&&(n.className=n.class,delete n.class),Object.prototype.hasOwnProperty.call(n,"for")&&(n.htmlFor=n.for,delete n.for),"string"==typeof n.style){const t=function(t){const n=t.trim();if(!n)return;const e={};for(const o of n.split(";")){const t=o.trim();if(!t)continue;const n=t.indexOf(":");if(-1===n)continue;const r=U(t.slice(0,n).trim()),s=t.slice(n+1).trim();r&&(e[r]=s)}return Object.keys(e).length?e:void 0}(n.style);t?n.style=t:delete n.style}return n}const Q=s,Y=c;function tt(t,n){return u(t,n)}function nt(t,n){return r(t,n)}function et(t,n,e=!1){const o=Object.entries(null!=n?n:{}),r=o.length>0?o.map(([t,n])=>""===n?` ${t}`:` ${t}="${n}"`).join(""):"";return e?`<${t}${r} />`:`<${t}${r}>`}function ot(t,n){Array.isArray(n)?t.push(...n):null!=n&&t.push(n)}function rt(t,n){var e,o;return(null==(e=n.nodeComponents)?void 0:e[t])||(null==(o=n.nodeComponents)?void 0:o[t.toLowerCase()])}function st(t){if(null==t||"boolean"==typeof t)return"";if("string"==typeof t||"number"==typeof t)return String(t);if(Array.isArray(t))return t.map(st).join("");if(!e.isValidElement(t))return"";const n=t;if("string"!=typeof n.type)return st(n.props.children);const o=Object.entries(n.props).filter(([t,n])=>"children"!==t&&"key"!==t&&"ref"!==t&&null!=n&&"boolean"!=typeof n).map(([t,n])=>` ${"className"===t?"class":t}="${String(n)}"`).join("");return`<${n.type}${o}>${st(n.props.children)}</${n.type}>`}function at(t){return Object.entries(t).map(([t,n])=>[t,""===n?null:n])}function lt(t){var n,e;const o=t.sourceNode,r=!0!==(null==(n=t.ctx)?void 0:n.final)&&(!1===(null==(e=t.ctx)?void 0:e.final)||Boolean(null==o?void 0:o.loading));return{loading:r,autoClosed:r||Boolean(null==o?void 0:o.autoClosed)}}function it(t,n,e){return function(t,n){var e,o;return Boolean((null==(e=n.propComponents)?void 0:e[t])||(null==(o=n.propComponents)?void 0:o[t.toLowerCase()]))}(t,e)?h(n):n}function ct(t,n,r,s,a,l,i,c=lt(a)){const u=o(t),h=null!=l?l:function(t){return t.map(st).join("")}(r),p={type:u,tag:u,attrs:at(n),content:h,raw:null!=i?i:`${et(t,n)}${h}</${t}>`,loading:c.loading,autoClosed:c.autoClosed};if(a.ctx&&a.renderNode)return a.renderNode(p,s,a.ctx);const d=rt(t,a);return d?e.createElement(d,{key:s,node:p}):null}function ut(t,n,o="safe",r={}){var s,c,u;if(!t)return[];if("escape"===o)return[t];try{const h=Q(t);let p=0;const d=null!=(s=r.keyPrefix)?s:"ms-html",g=[],m=[];for(const t of h){if("text"===t.type){if(g.length>0&&g[g.length-1].hardBlocked)continue;(g.length>0?g[g.length-1].children:m).push(null!=(c=t.content)?c:""),g.length>0&&g[g.length-1].sourceParts.push(null!=(u=t.content)?u:"");continue}if("self_closing"===t.type){const s=t.attrs||{},c=et(t.tagName,s,!0),u=tt(t.tagName,n),h=Boolean(rt(t.tagName,r));if(a.has(t.tagName.toLowerCase())||!u&&!h&&l(t.tagName,o))continue;if(!u&&!h&&i(t.tagName,o)){(g.length>0?g[g.length-1].children:m).push(c),g.length>0&&g[g.length-1].sourceParts.push(c);continue}const f=Y(s,o,t.tagName),v=f.key,w=null!=v&&""!==v?v:`${d}-${p++}`,k=u?n[t.tagName]||n[t.tagName.toLowerCase()]:void 0,y=g.length>0?g[g.length-1].children:m;if(h)y.push(ct(t.tagName,s,[],w,r,"",c,{loading:!1,autoClosed:!1}));else if(k){const n=it(t.tagName,f,r);y.push(e.createElement(k,{...n,key:w}))}else y.push(e.createElement(t.tagName,{...Z(f),key:w,suppressHydrationWarning:!0}));g.length>0&&g[g.length-1].sourceParts.push(c);continue}if("tag_open"===t.type){const e=g.length>0&&g[g.length-1].hardBlocked,s=tt(t.tagName,n),c=Boolean(rt(t.tagName,r));g.push({tagName:t.tagName,children:[],attrs:t.attrs,sourceParts:[],customComponent:s||c,hardBlocked:e||a.has(t.tagName.toLowerCase())||!s&&!c&&l(t.tagName,o),softBlocked:!e&&!s&&!c&&i(t.tagName,o)});continue}const s=t.tagName.toLowerCase();let h=-1;for(let t=g.length-1;t>=0;t--)if(g[t].tagName.toLowerCase()===s){h=t;break}if(-1!==h)for(;g.length>h;){const t=g.pop();if(!t)continue;const a=t.sourceParts.join(""),l=`${et(t.tagName,t.attrs)}${a}</${t.tagName}>`;let i;if(t.hardBlocked)i=null;else if(t.softBlocked)i=[et(t.tagName,t.attrs),...t.children,`</${t.tagName}>`];else{const c=Y(t.attrs||{},o,t.tagName),u=c.key,h=null!=u&&""!==u?u:`${d}-${p++}`,g=t.customComponent?n[t.tagName]||n[t.tagName.toLowerCase()]:void 0;if(Boolean(rt(t.tagName,r))){const n=t.tagName.toLowerCase()===s?{loading:!1,autoClosed:!1}:lt(r);i=ct(t.tagName,t.attrs||{},t.children,h,r,a,l,n)}else i=g?e.createElement(g,{...it(t.tagName,c,r),key:h},...t.children):e.createElement(t.tagName,{...Z(c),key:h,suppressHydrationWarning:!0},...t.children)}g.length>0?ot(g[g.length-1].children,i):ot(m,i),g.length>0&&!t.hardBlocked&&g[g.length-1].sourceParts.push(l)}}for(;g.length>0;){const t=g.pop();if(!t||t.hardBlocked)continue;const s=t.sourceParts.join(""),a=`${et(t.tagName,t.attrs)}${s}`;if(t.softBlocked){ot(m,[et(t.tagName,t.attrs),...t.children,`</${t.tagName}>`]),g.length>0&&g[g.length-1].sourceParts.push(a);continue}const l=Y(t.attrs||{},o,t.tagName),i=l.key,c=null!=i&&""!==i?i:`${d}-${p++}`,u=t.customComponent?n[t.tagName]||n[t.tagName.toLowerCase()]:void 0;let h;h=Boolean(rt(t.tagName,r))?ct(t.tagName,t.attrs||{},t.children,c,r,s,a,lt(r)):u?e.createElement(u,{...it(t.tagName,l,r),key:c},...t.children):e.createElement(t.tagName,{...Z(l),key:c,suppressHydrationWarning:!0},...t.children),m.push(h),g.length>0&&g[g.length-1].sourceParts.push(a)}return m}catch{return null}}function ht(t){const n="number"==typeof t?t:Number.parseFloat(String(null!=t?t:""));return Number.isFinite(n)&&n>0?n:null}function pt(t){const n=t.split(/\r?\n/).filter(t=>/^\s*-\s+/.test(t)).length;return n>=3?500:n>0?280+60*n:360}function dt(t,n=360,e=500){return null==e?Math.max(n,t):Math.min(Math.max(n,t),e)}function gt(t){return t?t.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}function mt(t){const n="number"==typeof t?t:Number.parseFloat(String(null!=t?t:""));return Number.isFinite(n)&&n>0?n:null}function ft(t){const n=t.split(/\r?\n/).map(t=>t.trim()).filter(t=>t&&!t.startsWith("%%")),e=Math.max(1,n.length),o=function(t){var n;for(const e of t.split(/\r?\n/)){const t=e.trim();if(!t||t.startsWith("%%"))continue;const o=t.match(/^([A-Z][\w-]*)\b/i);return(null==(n=null==o?void 0:o[1])?void 0:n.toLowerCase())||""}return""}(t);return"gantt"===o?220+28*e:"sequencediagram"===o?180+26*e:"classdiagram"===o||"statediagram"===o||"erdiagram"===o?180+24*e:"flowchart"===o||"graph"===o?170+28*e:200+22*e}function vt(t,n=360,e=500){return null==e?Math.max(n,t):Math.min(Math.max(n,t),e)}function wt(t,n,e){var r,s;const a=o(t.type),l=(null!=e?e:[]).map(t=>o(t)).filter(Boolean),i="html_inline"===a||"html_block"===a;if(!i&&!l.includes(a))return null;const c=i?o(t.tag)||p(t.content):o(t.tag)||a;if(!c)return null;const u=l.includes(c),h=null!=(s=null!=(r=n[c])?r:n[a])?s:null,d=u||i?h:null;return{tag:c,isWhitelisted:u,component:d,display:B(d)}}function kt(t,n,e){var o;return"block"===(null==(o=wt(t,n,e))?void 0:o.display)}const yt=/* @__PURE__ */new Set(["node","key","ref","ctx","renderNode","indexKey","__proto__","prototype","constructor"]);function xt(t,n={}){var e;const o={},r=new Set(null!=(e=n.omit)?e:[]);if(!t||"object"!=typeof t)return o;const s=Object.getOwnPropertyDescriptors(t);for(const[a,l]of Object.entries(s))yt.has(a)||r.has(a)||l.enumerable&&"value"in l&&(o[a]=l.value);return o}export{f as A,d as B,m as C,wt as D,I as E,Y as F,j as G,D as H,b as I,X as J,g as K,Q as L,E as M,S as N,vt as a,_ as b,dt as c,O as d,L as e,pt as f,ft as g,xt as h,B as i,N as j,M as k,q as l,nt as m,tt as n,w as o,kt as p,K as q,A as r,Z as s,gt as t,G as u,ut as v,mt as w,ht as x,R as y,$ as z};
|
|
3
|
+
return t(n,{children:m(e,o,`${r}-inline`,s)})}const v=!1;function w(){return v}const k="__global__",y="__MARKSTREAM_REACT_CUSTOM_COMPONENTS_STORE__",x=(()=>{const t=globalThis;if(t[y])return t[y];const n={scopedComponents:{},revision:0,listeners:/* @__PURE__ */new Set};return t[y]=n,n})();function C(){x.revision++;for(const t of Array.from(x.listeners))try{t()}catch{}}function b(t){return x.listeners.add(t),()=>{x.listeners.delete(t)}}function N(){return x.revision}function j(t,n){"string"==typeof t?x.scopedComponents[t]={...n||{}}:x.scopedComponents[k]={...t},C()}function M(t){const n=x.scopedComponents[k]||{};if(!t)return n;const e=x.scopedComponents[t]||{};return n&&0!==Object.keys(n).length?e&&0!==Object.keys(e).length?{...n,...e}:n:e}function $(t){if(t===k)throw new Error("removeCustomComponents: cannot delete global mapping; call clearGlobalCustomComponents instead.");delete x.scopedComponents[t],C()}function _(){delete x.scopedComponents[k],C()}function B(t){return null==t?void 0:t.markstreamDisplay}function S(t,n){return t.markstreamDisplay=n,t}function L(t){return t}function O(t){return t}function A(t){if(!t)return{};const n={};for(const[e,r]of Object.entries(t)){const t=o(e);t&&(n[t]=r)}return n}function E(t,n,e){if(w())for(const o of Object.keys(t))n[o]&&!e.has(o)&&(e.add(o),console.warn(`[markstream-react] "${o}" was provided in both streamingComponents and htmlComponents. The streamingComponents entry will be used for parser-backed rendering.`))}const H='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">\n <path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />\n <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />\n </g>\n</svg>\n\n';let P=null,V=null,T=null;const z=/* @__PURE__ */new Set;function D(t){P=null!=t?t:null}const F={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",d2lang:"d2",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"},W={"":H,plain:H,text:H,javascript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />\n <path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />\n </g>\n</svg>\n\n',typescript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />\n <path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />\n </g>\n</svg>\n\n',jsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />\n <path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />\n <path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />\n <path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n\n',tsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />\n <path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />\n <path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />\n <path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n\n',html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />\n <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />\n </g>\n</svg>\n\n',css:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">\n <path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />\n <path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />\n </g>\n</svg>\n\n',json:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />\n</svg>\n\n',python:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />\n <path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />\n <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />\n <path stroke="#e5c890" d="m 8.5,12.5 v 0" />\n </g>\n</svg>\n\n',shell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />\n <path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />\n </g>\n</svg>\n\n',markdown:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />\n</svg>\n\n',mermaid:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />\n</svg>\n\n'};function G(t){var n;const e=function(t){if(!t)return"";const n=t.trim();if(!n)return"";const[e]=n.split(/\s+/),[o]=e.split(":");return o.toLowerCase()}(t);return null!=(n=F[e])?n:e}function I(t){const n=G(t);if(!n)return"plaintext";switch(n){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return n}}async function J(){return V||(T||(T=import("./languageIconExtended-B1nZmPQn.js").then(t=>(V=t.EXTENDED_LANGUAGE_ICON_MAP,function(){for(const t of z)try{t()}catch{}}(),V)).catch(()=>null)),T)}async function R(){await J()}function q(t){return z.add(t),()=>{z.delete(t)}}function K(t){if(P){const n=P(t);if(null!=n&&""!==n)return n}const n=G(t),e=W[n];if(e)return e;return(null==V?void 0:V[n])||(J(),'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16">\x3c!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --\x3e<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>\n\n')}const U={javascript:"JavaScript",typescript:"TypeScript",jsx:"JSX",tsx:"TSX",shell:"Shell",plain:"Text",text:"Text",markdown:"Markdown",json:"JSON",python:"Python",cpp:"C++",csharp:"C#",vue:"Vue",html:"HTML",css:"CSS",svg:"SVG",mermaid:"Mermaid",d2:"D2"};function X(t){return t.startsWith("--")?t:t.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Z(t){const n={...t};if(Object.prototype.hasOwnProperty.call(n,"class")&&(n.className=n.class,delete n.class),Object.prototype.hasOwnProperty.call(n,"for")&&(n.htmlFor=n.for,delete n.for),"string"==typeof n.style){const t=function(t){const n=t.trim();if(!n)return;const e={};for(const o of n.split(";")){const t=o.trim();if(!t)continue;const n=t.indexOf(":");if(-1===n)continue;const r=X(t.slice(0,n).trim()),s=t.slice(n+1).trim();r&&(e[r]=s)}return Object.keys(e).length?e:void 0}(n.style);t?n.style=t:delete n.style}return n}const Q=s,Y=c;function tt(t,n){return u(t,n)}function nt(t,n){return r(t,n)}function et(t,n,e=!1){const o=Object.entries(null!=n?n:{}),r=o.length>0?o.map(([t,n])=>""===n?` ${t}`:` ${t}="${n}"`).join(""):"";return e?`<${t}${r} />`:`<${t}${r}>`}function ot(t,n){Array.isArray(n)?t.push(...n):null!=n&&t.push(n)}function rt(t,n){var e,o;return(null==(e=n.nodeComponents)?void 0:e[t])||(null==(o=n.nodeComponents)?void 0:o[t.toLowerCase()])}function st(t){if(null==t||"boolean"==typeof t)return"";if("string"==typeof t||"number"==typeof t)return String(t);if(Array.isArray(t))return t.map(st).join("");if(!e.isValidElement(t))return"";const n=t;if("string"!=typeof n.type)return st(n.props.children);const o=Object.entries(n.props).filter(([t,n])=>"children"!==t&&"key"!==t&&"ref"!==t&&null!=n&&"boolean"!=typeof n).map(([t,n])=>` ${"className"===t?"class":t}="${String(n)}"`).join("");return`<${n.type}${o}>${st(n.props.children)}</${n.type}>`}function at(t){return Object.entries(t).map(([t,n])=>[t,""===n?null:n])}function lt(t){var n,e;const o=t.sourceNode,r=!0!==(null==(n=t.ctx)?void 0:n.final)&&(!1===(null==(e=t.ctx)?void 0:e.final)||Boolean(null==o?void 0:o.loading));return{loading:r,autoClosed:r||Boolean(null==o?void 0:o.autoClosed)}}function it(t,n,e){return function(t,n){var e,o;return Boolean((null==(e=n.propComponents)?void 0:e[t])||(null==(o=n.propComponents)?void 0:o[t.toLowerCase()]))}(t,e)?h(n):n}function ct(t,n,r,s,a,l,i,c=lt(a)){const u=o(t),h=null!=l?l:function(t){return t.map(st).join("")}(r),p={type:u,tag:u,attrs:at(n),content:h,raw:null!=i?i:`${et(t,n)}${h}</${t}>`,loading:c.loading,autoClosed:c.autoClosed};if(a.ctx&&a.renderNode)return a.renderNode(p,s,a.ctx);const d=rt(t,a);return d?e.createElement(d,{key:s,node:p}):null}function ut(t,n,o="safe",r={}){var s,c,u;if(!t)return[];if("escape"===o)return[t];try{const h=Q(t);let p=0;const d=null!=(s=r.keyPrefix)?s:"ms-html",g=[],m=[];for(const t of h){if("text"===t.type){if(g.length>0&&g[g.length-1].hardBlocked)continue;(g.length>0?g[g.length-1].children:m).push(null!=(c=t.content)?c:""),g.length>0&&g[g.length-1].sourceParts.push(null!=(u=t.content)?u:"");continue}if("self_closing"===t.type){const s=t.attrs||{},c=et(t.tagName,s,!0),u=tt(t.tagName,n),h=Boolean(rt(t.tagName,r));if(a.has(t.tagName.toLowerCase())||!u&&!h&&l(t.tagName,o))continue;if(!u&&!h&&i(t.tagName,o)){(g.length>0?g[g.length-1].children:m).push(c),g.length>0&&g[g.length-1].sourceParts.push(c);continue}const f=Y(s,o,t.tagName),v=f.key,w=null!=v&&""!==v?v:`${d}-${p++}`,k=u?n[t.tagName]||n[t.tagName.toLowerCase()]:void 0,y=g.length>0?g[g.length-1].children:m;if(h)y.push(ct(t.tagName,s,[],w,r,"",c,{loading:!1,autoClosed:!1}));else if(k){const n=it(t.tagName,f,r);y.push(e.createElement(k,{...n,key:w}))}else y.push(e.createElement(t.tagName,{...Z(f),key:w,suppressHydrationWarning:!0}));g.length>0&&g[g.length-1].sourceParts.push(c);continue}if("tag_open"===t.type){const e=g.length>0&&g[g.length-1].hardBlocked,s=tt(t.tagName,n),c=Boolean(rt(t.tagName,r));g.push({tagName:t.tagName,children:[],attrs:t.attrs,sourceParts:[],customComponent:s||c,hardBlocked:e||a.has(t.tagName.toLowerCase())||!s&&!c&&l(t.tagName,o),softBlocked:!e&&!s&&!c&&i(t.tagName,o)});continue}const s=t.tagName.toLowerCase();let h=-1;for(let t=g.length-1;t>=0;t--)if(g[t].tagName.toLowerCase()===s){h=t;break}if(-1!==h)for(;g.length>h;){const t=g.pop();if(!t)continue;const a=t.sourceParts.join(""),l=`${et(t.tagName,t.attrs)}${a}</${t.tagName}>`;let i;if(t.hardBlocked)i=null;else if(t.softBlocked)i=[et(t.tagName,t.attrs),...t.children,`</${t.tagName}>`];else{const c=Y(t.attrs||{},o,t.tagName),u=c.key,h=null!=u&&""!==u?u:`${d}-${p++}`,g=t.customComponent?n[t.tagName]||n[t.tagName.toLowerCase()]:void 0;if(Boolean(rt(t.tagName,r))){const n=t.tagName.toLowerCase()===s?{loading:!1,autoClosed:!1}:lt(r);i=ct(t.tagName,t.attrs||{},t.children,h,r,a,l,n)}else i=g?e.createElement(g,{...it(t.tagName,c,r),key:h},...t.children):e.createElement(t.tagName,{...Z(c),key:h,suppressHydrationWarning:!0},...t.children)}g.length>0?ot(g[g.length-1].children,i):ot(m,i),g.length>0&&!t.hardBlocked&&g[g.length-1].sourceParts.push(l)}}for(;g.length>0;){const t=g.pop();if(!t||t.hardBlocked)continue;const s=t.sourceParts.join(""),a=`${et(t.tagName,t.attrs)}${s}`;if(t.softBlocked){ot(m,[et(t.tagName,t.attrs),...t.children,`</${t.tagName}>`]),g.length>0&&g[g.length-1].sourceParts.push(a);continue}const l=Y(t.attrs||{},o,t.tagName),i=l.key,c=null!=i&&""!==i?i:`${d}-${p++}`,u=t.customComponent?n[t.tagName]||n[t.tagName.toLowerCase()]:void 0;let h;h=Boolean(rt(t.tagName,r))?ct(t.tagName,t.attrs||{},t.children,c,r,s,a,lt(r)):u?e.createElement(u,{...it(t.tagName,l,r),key:c},...t.children):e.createElement(t.tagName,{...Z(l),key:c,suppressHydrationWarning:!0},...t.children),m.push(h),g.length>0&&g[g.length-1].sourceParts.push(a)}return m}catch{return null}}function ht(t){const n="number"==typeof t?t:Number.parseFloat(String(null!=t?t:""));return Number.isFinite(n)&&n>0?n:null}function pt(t){const n=t.split(/\r?\n/).filter(t=>/^\s*-\s+/.test(t)).length;return n>=3?500:n>0?280+60*n:360}function dt(t,n=360,e=500){return null==e?Math.max(n,t):Math.min(Math.max(n,t),e)}function gt(t){return t?t.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}function mt(t){const n="number"==typeof t?t:Number.parseFloat(String(null!=t?t:""));return Number.isFinite(n)&&n>0?n:null}function ft(t){const n=t.split(/\r?\n/).map(t=>t.trim()).filter(t=>t&&!t.startsWith("%%")),e=Math.max(1,n.length),o=function(t){var n;for(const e of t.split(/\r?\n/)){const t=e.trim();if(!t||t.startsWith("%%"))continue;const o=t.match(/^([A-Z][\w-]*)\b/i);return(null==(n=null==o?void 0:o[1])?void 0:n.toLowerCase())||""}return""}(t);return"gantt"===o?220+28*e:"sequencediagram"===o?180+26*e:"classdiagram"===o||"statediagram"===o||"erdiagram"===o?180+24*e:"flowchart"===o||"graph"===o?170+28*e:200+22*e}function vt(t,n=360,e=500){return null==e?Math.max(n,t):Math.min(Math.max(n,t),e)}function wt(t,n,e){var r,s;const a=o(t.type),l=(null!=e?e:[]).map(t=>o(t)).filter(Boolean),i="html_inline"===a||"html_block"===a;if(!i&&!l.includes(a))return null;const c=i?o(t.tag)||p(t.content):o(t.tag)||a;if(!c)return null;const u=l.includes(c),h=null!=(s=null!=(r=n[c])?r:n[a])?s:null,d=u||i?h:null;return{tag:c,isWhitelisted:u,component:d,display:B(d)}}function kt(t,n,e){var o;return"block"===(null==(o=wt(t,n,e))?void 0:o.display)}const yt=/* @__PURE__ */new Set(["node","key","ref","ctx","renderNode","indexKey","__proto__","prototype","constructor"]);function xt(t,n={}){var e;const o={},r=new Set(null!=(e=n.omit)?e:[]);if(!t||"object"!=typeof t)return o;const s=Object.getOwnPropertyDescriptors(t);for(const[a,l]of Object.entries(s))yt.has(a)||r.has(a)||l.enumerable&&"value"in l&&(o[a]=l.value);return o}export{f as A,d as B,m as C,wt as D,I as E,Y as F,j as G,D as H,b as I,q as J,g as K,Q as L,E as M,S as N,vt as a,_ as b,dt as c,O as d,L as e,pt as f,ft as g,xt as h,B as i,N as j,M as k,K as l,nt as m,tt as n,w as o,kt as p,U as q,A as r,Z as s,gt as t,G as u,ut as v,mt as w,ht as x,R as y,$ as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import{normalizeShikiLanguage as r}from"markstream-core";import l from"react";import{normalizeCustomHtmlTagName as o,NON_STRUCTURING_HTML_TAGS as i,isHtmlTagBlocked as a,sanitizeHtmlTokenAttrs as d,convertHtmlAttrsToProps as c,tokenAttrsToRecord as s,sanitizeImageSrc as u,sanitizeHtmlAttrs as m,shouldOpenLinkInNewTab as h,mergeCustomHtmlTags as p,getMarkdown as g,parseMarkdownToStructure as y,stripCustomHtmlWrapper as f,shouldRenderUnknownHtmlTagAsText as x}from"stream-markdown-parser";import{t as k,C as v,A as w,k as b,v as N,r as $,M as S,B as K,p as _,K as B,D as C,s as T,u as P,h as I,w as A,a as D,g as H,x as M,c as E,f as W}from"./codeBlockExtraProps-
|
|
1
|
+
import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import{normalizeShikiLanguage as r}from"markstream-core";import l from"react";import{normalizeCustomHtmlTagName as o,NON_STRUCTURING_HTML_TAGS as i,isHtmlTagBlocked as a,sanitizeHtmlTokenAttrs as d,convertHtmlAttrsToProps as c,tokenAttrsToRecord as s,sanitizeImageSrc as u,sanitizeHtmlAttrs as m,shouldOpenLinkInNewTab as h,mergeCustomHtmlTags as p,getMarkdown as g,parseMarkdownToStructure as y,stripCustomHtmlWrapper as f,shouldRenderUnknownHtmlTagAsText as x}from"stream-markdown-parser";import{t as k,C as v,A as w,k as b,v as N,r as $,M as S,B as K,p as _,K as B,D as C,s as T,u as P,h as I,w as A,a as D,g as H,x as M,c as E,f as W}from"./codeBlockExtraProps-RaPzFq78.js";let L,O=!1;function j(e,n,t){const r=k(e);if(!r)return null;if(globalThis.__MARKSTREAM_REACT_DISABLE_SYNC_KATEX__)return null;const l=function(){if(L)return L;if(O)return null;O=!0;try{const e=function(){try{const e=Reflect.get(globalThis,"process"),n="function"==typeof(null==e?void 0:e.getBuiltinModule)?e.getBuiltinModule("module"):null;return"function"==typeof(null==n?void 0:n.createRequire)?n.createRequire(import.meta.url):null}catch{return null}}();if(!e)return null;const n=e("katex");try{e("katex/contrib/mhchem")}catch{}return L=n,L}catch{return null}}();if(!l)return null;try{return l.renderToString(r,{displayMode:n,throwOnError:t})}catch{return null}}const q=g();function R(e){var n;return String(null!=(n=String(null!=e?e:"").split(/\s+/g)[0])?n:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}function F(t,r,l){var o,i;const a=R(r.language),d=String(null!=(i=null!=(o=r.code)?o:r.raw)?i:""),c=function(e){const n=P(String(null!=e?e:""));return n&&"plaintext"!==n?n.charAt(0).toUpperCase()+n.slice(1):"Text"}(r.language);/* @__PURE__ */
|
|
2
2
|
return e("div",{className:`${t} ${t}--ssr`,"data-ssr-fallback":l.fallback,children:[!1!==l.showHeader&&/* @__PURE__ */n("div",{className:`${t}__header`,children:/* @__PURE__ */n("span",{className:`${t}__language`,children:c})}),
|
|
3
3
|
/* @__PURE__ */n("div",{className:`${t}__body`,children:/* @__PURE__ */n("pre",{className:`language-${a}`,"aria-busy":!0===r.loading,"aria-label":`Code block: ${a}`,"data-language":a,tabIndex:0,children:/* @__PURE__ */n("code",{translate:"no",children:d})})})]})}function z(e,n,t,r,o={}){var i,a,d,c,s,u;const m=I(r.codeBlockProps);return l.createElement(e,{key:t,node:n,loading:Boolean(n.loading),stream:r.codeBlockStream,customId:r.customId,isDark:r.isDark,darkTheme:null==(i=r.codeBlockThemes)?void 0:i.darkTheme,lightTheme:null==(a=r.codeBlockThemes)?void 0:a.lightTheme,themes:null==(d=r.codeBlockThemes)?void 0:d.themes,langs:null==(c=r.codeBlockThemes)?void 0:c.langs,minWidth:null==(s=r.codeBlockThemes)?void 0:s.minWidth,maxWidth:null==(u=r.codeBlockThemes)?void 0:u.maxWidth,onCopy:r.events.onCopy,...m,...o,ctx:r,renderNode:Me,indexKey:t,typewriter:r.typewriter,fade:r.fade})}function U(e,n,t,r,o={}){return l.createElement(e,{key:t,node:n,isDark:r.isDark,...o})}function G(e){const{node:t,children:r}=e;/* @__PURE__ */
|
|
4
4
|
return n("span",{className:"text-node whitespace-pre-wrap break-words"+(t.center?" text-node-center":""),children:null!=r?r:t.content})}function V(e){var n;return"text"===(null==e?void 0:e.type)&&""===String(null!=(n=null==e?void 0:e.content)?n:"").trim()}function X(e,t,r,o){const i=e.filter(e=>!V(e)),a=i.length>0&&i.every(e=>"image"===e.type||function(e){var n;const t=function(e){return"link"===(null==e?void 0:e.type)&&Array.isArray(null==e?void 0:e.children)?e.children.filter(e=>!V(e)):[]}(e);return 1===t.length&&"image"===(null==(n=t[0])?void 0:n.type)}(e));if(!a||i.length<=1)return v(e,r,o,t);const d=[];for(let n=0;n<e.length;n++){const t=e[n];if(!V(t)){d.push(t);continue}const r=d.length>0,l=e.slice(n+1).some(e=>!V(e));r&&l&&d.push({...t,content:" ",raw:" "})}return d.map((e,i)=>{var d;return a&&V(e)?/* @__PURE__ */n(l.Fragment,{children:String(null!=(d=null==e?void 0:e.content)?d:"")},`${o}-${i}`):t(e,`${o}-${i}`,r)})}function Y(e){var r,o,i,a;const{node:d,ctx:c,renderNode:s,indexKey:u,children:m}=e;if(!c||!s)/* @__PURE__ */
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,B as a,C as s,a as o,D as r,b as t,E as d,c as n,F as i,d as l,e as m,f as N,H as c,g as k,h as u,i as g,j as p,k as C,I as f,l as h,m as B,n as I,L as M,o as D,p as T,M as W,q as b,r as K,s as L,t as E,N as R,P as S,u as X,a as H,R as x,S as F,v as O,w as P,x as v,T as w,y,z as _,G as j,V as A,W as q,J as z,K as G,O as U,Q as Y,N as J,U as V,X as Q,Y as Z,_ as $,$ as ee,a0 as ae,a1 as se,a2 as oe,a3 as re,a4 as te,a5 as de,a6 as ne,a7 as ie,a8 as le,a9 as me,aa as Ne,ab as ce,ac as ke,ad as ue,ae as ge,af as pe,ag as Ce,ah as fe}from"./Tooltip-
|
|
1
|
+
import{A as e,B as a,C as s,a as o,D as r,b as t,E as d,c as n,F as i,d as l,e as m,f as N,H as c,g as k,h as u,i as g,j as p,k as C,I as f,l as h,m as B,n as I,L as M,o as D,p as T,M as W,q as b,r as K,s as L,t as E,N as R,P as S,u as X,a as H,R as x,S as F,v as O,w as P,x as v,T as w,y,z as _,G as j,V as A,W as q,J as z,K as G,O as U,Q as Y,N as J,U as V,X as Q,Y as Z,_ as $,$ as ee,a0 as ae,a1 as se,a2 as oe,a3 as re,a4 as te,a5 as de,a6 as ne,a7 as ie,a8 as le,a9 as me,aa as Ne,ab as ce,ac as ke,ad as ue,ae as ge,af as pe,ag as Ce,ah as fe}from"./Tooltip-Bx_S1cbE.js";import{b as he,d as Be,e as Ie,i as Me,k as De,l as Te,q as We,u as be,y as Ke,z as Le,E as Ee,G as Re,H as Se,J as Xe,N as He}from"./codeBlockExtraProps-RaPzFq78.js";export{e as AdmonitionNode,a as BlockquoteNode,s as CheckboxNode,o as CodeBlockNode,r as D2BlockNode,t as DefinitionListNode,d as EmojiNode,n as EmphasisNode,i as FallbackComponent,l as FootnoteAnchorNode,m as FootnoteNode,N as FootnoteReferenceNode,c as HardBreakNode,k as HeadingNode,u as HighlightNode,g as HtmlBlockNode,p as HtmlInlineNode,C as HtmlPreviewFrame,f as ImageNode,h as InfographicBlockNode,B as InlineCodeNode,I as InsertNode,M as LinkNode,D as ListItemNode,T as ListNode,W as MERMAID_WORKER_BUSY_CODE,b as MarkdownCodeBlockNode,K as MathBlockNode,L as MathInlineNode,E as MermaidBlockNode,R as NodeRenderer,S as ParagraphNode,X as PreCodeNode,H as ReactCodeBlockNode,x as ReferenceNode,F as StrikethroughNode,O as StrongNode,P as SubscriptNode,v as SuperscriptNode,w as TableNode,y as TextNode,_ as ThematicBreakNode,j as Tooltip,A as VmrContainerNode,q as WORKER_BUSY_CODE,z as canParseOffthread,he as clearGlobalCustomComponents,G as clearKaTeXCache,U as clearKaTeXWorker,Y as clearMermaidWorker,J as default,Be as defineHtmlComponents,Ie as defineStreamingComponents,V as disableD2,Q as enableD2,Z as findPrefixOffthread,Me as getCustomComponentDisplay,De as getCustomNodeComponents,$ as getKaTeXBackpressureDefaults,Te as getLanguageIcon,ee as getMermaidWorkerLoad,ae as isD2Enabled,We as languageMap,be as normalizeLanguageIdentifier,Ke as preloadExtendedLanguageIcons,Le as removeCustomComponents,se as renderKaTeXInWorker,oe as renderKaTeXWithBackpressure,re as renderNode,Ee as resolveMonacoLanguageId,Re as setCustomComponents,te as setD2Loader,de as setDefaultI18nMap,ne as setKaTeXBackpressureDefaults,ie as setKaTeXCache,le as setKaTeXConcurrencyLimit,me as setKaTeXWorker,Ne as setKaTeXWorkerDebug,Se as setLanguageIconResolver,ce as setMermaidWorker,ke as setMermaidWorkerClientDebug,ue as setMermaidWorkerMaxConcurrency,Xe as subscribeLanguageIconsRevision,ge as terminateWorker,pe as useSafeI18n,Ce as useSmoothMarkdownStream,fe as waitForKaTeXWorkerSlot,He as withMarkstreamComponentDisplay};
|
package/dist/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import a,{useState as s,useEffect as e}from"react";import{A as r,B as o,C as t,a as n,D as i,b as m,E as l,c as d,F as c,d as u,e as p,f,H as g,g as C,h as T,i as k,j as D,k as E,I as K,l as M,m as W,n as I,L as _,o as L,p as R,q as X,r as b,s as S,t as x,N as y,P as B,u as h,R as A,S as N,v,w as j,x as O,T as P,y as w,z,G as F,V as H}from"./Tooltip-
|
|
2
|
+
import a,{useState as s,useEffect as e}from"react";import{A as r,B as o,C as t,a as n,D as i,b as m,E as l,c as d,F as c,d as u,e as p,f,H as g,g as C,h as T,i as k,j as D,k as E,I as K,l as M,m as W,n as I,L as _,o as L,p as R,q as X,r as b,s as S,t as x,N as y,P as B,u as h,R as A,S as N,v,w as j,x as O,T as P,y as w,z,G as F,V as H}from"./Tooltip-Bx_S1cbE.js";import{M as Y,W as q,J as G,K as U,O as V,Q as J,U as $,X as Q,Y as Z,Z as aa,_ as sa,$ as ea,a0 as ra,a1 as oa,a2 as ta,a3 as na,a4 as ia,a5 as ma,a6 as la,a7 as da,a8 as ca,a9 as ua,aa as pa,ab as fa,ac as ga,ad as Ca,ae as Ta,af as ka,ah as Da}from"./Tooltip-Bx_S1cbE.js";import{b as Ea,d as Ka,e as Ma,k as Wa,l as Ia,q as _a,u as La,y as Ra,z as Xa,E as ba,G as Sa,H as xa,J as ya}from"./codeBlockExtraProps-RaPzFq78.js";import{A as Ba,B as ha,C as Aa,a as Na,D as va,b as ja,E as Oa,c as Pa,F as wa,d as za,e as Fa,f as Ha,H as Ya,g as qa,h as Ga,i as Ua,j as Va,k as Ja,I as $a,l as Qa,m as Za,n as as,L as ss,o as es,p as rs,M as os,q as ts,r as ns,s as is,N as ms,P as ls,t as ds,R as cs,S as us,u as ps,v as fs,w as gs,T as Cs,x as Ts,y as ks,z as Ds,V as Es}from"./index-D0DspXy9.js";function Ks(r,o){function t(t){const[n,i]=s(!1);return e(()=>{i(!0)},[]),n?a.createElement(r,t):function(a){const s="__MARKSTREAM_REACT_DISABLE_SYNC_KATEX__",e=globalThis,r=e[s];e[s]=!0;try{return o(a)}finally{void 0===r?delete e[s]:e[s]=r}}(t)}return t.displayName=`MarkstreamNextEntry(${r.displayName||r.name||"Component"})`,t}const Ms=Ks(r,Ba),Ws=Ks(o,ha),Is=Ks(t,Aa),_s=Ks(n,Na),Ls=_s,Rs=Ks(E,Ja),Xs=Ks(i,va),bs=Ks(m,ja),Ss=Ks(l,Oa),xs=Ks(d,Pa),ys=Ks(u,za),Bs=Ks(p,Fa),hs=Ks(f,Ha),As=Ks(g,Ya),Ns=Ks(C,qa),vs=Ks(T,Ga),js=Ks(k,Ua),Os=Ks(D,Va),Ps=Ks(K,$a),ws=Ks(M,Qa),zs=Ks(W,Za),Fs=Ks(I,as),Hs=Ks(_,ss),Ys=Ks(L,es),qs=Ks(R,rs),Gs=Ks(X,os),Us=Ks(b,ts),Vs=Ks(S,ns),Js=Ks(x,is),$s=Ks(y,ms),Qs=Ks(c,wa),Zs=Ks(B,ls),ae=Ks(h,ds),se=Ks(A,cs),ee=Ks(N,us),re=Ks(v,ps),oe=Ks(j,fs),te=Ks(O,gs),ne=Ks(P,Cs),ie=Ks(w,Ts),me=Ks(z,ks),le=Ks(F,Ds),de=Ks(H,Es);export{Ms as AdmonitionNode,Ws as BlockquoteNode,Is as CheckboxNode,_s as CodeBlockNode,Xs as D2BlockNode,bs as DefinitionListNode,Ss as EmojiNode,xs as EmphasisNode,Qs as FallbackComponent,ys as FootnoteAnchorNode,Bs as FootnoteNode,hs as FootnoteReferenceNode,As as HardBreakNode,Ns as HeadingNode,vs as HighlightNode,js as HtmlBlockNode,Os as HtmlInlineNode,Rs as HtmlPreviewFrame,Ps as ImageNode,ws as InfographicBlockNode,zs as InlineCodeNode,Fs as InsertNode,Hs as LinkNode,Ys as ListItemNode,qs as ListNode,Y as MERMAID_WORKER_BUSY_CODE,Gs as MarkdownCodeBlockNode,Us as MathBlockNode,Vs as MathInlineNode,Js as MermaidBlockNode,$s as NodeRenderer,Zs as ParagraphNode,ae as PreCodeNode,Ls as ReactCodeBlockNode,se as ReferenceNode,ee as StrikethroughNode,re as StrongNode,oe as SubscriptNode,te as SuperscriptNode,ne as TableNode,ie as TextNode,me as ThematicBreakNode,le as Tooltip,de as VmrContainerNode,q as WORKER_BUSY_CODE,G as canParseOffthread,Ea as clearGlobalCustomComponents,U as clearKaTeXCache,V as clearKaTeXWorker,J as clearMermaidWorker,$s as default,Ka as defineHtmlComponents,Ma as defineStreamingComponents,$ as disableD2,Q as enableD2,Z as findPrefixOffthread,Wa as getCustomNodeComponents,aa as getD2,sa as getKaTeXBackpressureDefaults,Ia as getLanguageIcon,ea as getMermaidWorkerLoad,ra as isD2Enabled,_a as languageMap,La as normalizeLanguageIdentifier,Ra as preloadExtendedLanguageIcons,Xa as removeCustomComponents,oa as renderKaTeXInWorker,ta as renderKaTeXWithBackpressure,na as renderNode,ba as resolveMonacoLanguageId,Sa as setCustomComponents,ia as setD2Loader,ma as setDefaultI18nMap,la as setKaTeXBackpressureDefaults,da as setKaTeXCache,ca as setKaTeXConcurrencyLimit,ua as setKaTeXWorker,pa as setKaTeXWorkerDebug,xa as setLanguageIconResolver,fa as setMermaidWorker,ga as setMermaidWorkerClientDebug,Ca as setMermaidWorkerMaxConcurrency,ya as subscribeLanguageIconsRevision,Ta as terminateWorker,ka as useSafeI18n,Da as waitForKaTeXWorkerSlot};
|
package/dist/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,d as o,e as a,i as s,k as d,z as t,G as n,N}from"./codeBlockExtraProps-
|
|
1
|
+
import{b as e,d as o,e as a,i as s,k as d,z as t,G as n,N}from"./codeBlockExtraProps-RaPzFq78.js";import{A as r,B as i,C as m,a as l,D as c,b as p,E as C,c as k,F as h,d as B,e as g,f as u,H as f,g as H,h as I,i as b,j as x,k as F,I as M,l as S,m as D,n as L,L as P,o as R,p as T,M as j,q as w,r as E,s as v,N as y,P as A,t as G,a as q,R as z,S as V,u as J,v as K,w as O,T as Q,x as U,y as W,z as X,V as Y,N as Z,G as $}from"./index-D0DspXy9.js";export{r as AdmonitionNode,i as BlockquoteNode,m as CheckboxNode,l as CodeBlockNode,c as D2BlockNode,p as DefinitionListNode,C as EmojiNode,k as EmphasisNode,h as FallbackComponent,B as FootnoteAnchorNode,g as FootnoteNode,u as FootnoteReferenceNode,f as HardBreakNode,H as HeadingNode,I as HighlightNode,b as HtmlBlockNode,x as HtmlInlineNode,F as HtmlPreviewFrame,M as ImageNode,S as InfographicBlockNode,D as InlineCodeNode,L as InsertNode,P as LinkNode,R as ListItemNode,T as ListNode,j as MarkdownCodeBlockNode,w as MathBlockNode,E as MathInlineNode,v as MermaidBlockNode,y as NodeRenderer,A as ParagraphNode,G as PreCodeNode,q as ReactCodeBlockNode,z as ReferenceNode,V as StrikethroughNode,J as StrongNode,K as SubscriptNode,O as SuperscriptNode,Q as TableNode,U as TextNode,W as ThematicBreakNode,X as Tooltip,Y as VmrContainerNode,e as clearGlobalCustomComponents,Z as default,o as defineHtmlComponents,a as defineStreamingComponents,s as getCustomComponentDisplay,d as getCustomNodeComponents,t as removeCustomComponents,$ as renderNode,n as setCustomComponents,N as withMarkstreamComponentDisplay};
|
package/dist/tailwind.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const safeList = `use client react stream-markdown-parser string cannot delete global call clearGlobalCustomComponents
|
|
1
|
+
const safeList = `use client react stream-markdown-parser string cannot delete global call clearGlobalCustomComponents checkbox-node checkbox checkbox-input note is-dark data-index-key headerId admonition-header admonition-icon admonition-title admonition-toggle aria-expanded aria-controls collapsed admonition-content aria-labelledby blockquote-node auto object typeof next code_block next.type window.requestIdleCallback [data-node-index] node-spacer dark virtualized data-custom-id node-slot data-node-index data-node-type fade-node typewriter-node node-placeholder typewriterCursorRef typewriter-cursor admonition math_block html_block image [data-node-type="code_block"] [data-node-type="admonition"] [data-node-type="table"] [data-node-type="math_block"] [data-node-type="html_block"] [data-node-type="image"] performance [markstream-react][perf] mermaid theme name markdown-renderer boolean safe emphasis-node hard-break clsx heading-node font-semibold dependency is not install it to enable smooth footnote-reference handleScroll footnote-link cursor-pointer footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border,#eaecef)] pt-2 flex-1 href xlink:href markstream-d2-root-svg number window.requestAnimationFrame instance.render instance missing render returned empty top d2-block my-4 rounded-lg border overflow-hidden shadow-sm border-gray-700/30 bg-gray-900 text-gray-100 border-gray-200 bg-white text-gray-900 d2-block-header justify-between items-center px-4 py-2.5 border-b border-gray-400/5 gap-x-2 font-medium font-mono gap-x-1 rounded-md p-0.5 bg-gray-700 bg-gray-100 mode-btn px-2 py-1 text-xs rounded !showSource is-active showSource d2-action-btn p-2 transition-colors hover:bg-[var(--vscode-editor-selectionBackground)] copying w-3 h-3 none currentColor round aria-pressed m9 bodyRef d2-block-body bodyStyle !hasPreview d2-source py-4 d2-code d2-error mt-2 d2-render d2-svg pb-3 footnote-anchor hover:underline ↩︎ dl definition-list indexKey mb-4 dt definition-term ctx renderNode ?? definition dd definition-desc ml-4 mark highlight-node emoji-node html-block-node escape html-block html-block-node__placeholder html-block-node__placeholder-bar w-4/5 w-2/3 setHostEl shouldRender useDynamic reactNodes insert-node inline-code inline text-[85%] px-1 py-0.5 bg-[hsl(var(--secondary))] whitespace-normal break-words max-w-full text-node-stream-delta text-node-stream-delta--a text-node-stream-delta--b list-node my-5 pl-[calc(13/8*1em)] list-decimal list-disc max-lg:my-[calc(4/3*1em)] max-lg:pl-[calc(14/9*1em)] list list-item pl-1.5 my-2 valueAttr children style.visibility hidden line-info legacy off never background night moon black dracula mocha frappe macchiato palenight ocean poimandres monokai laserwave tokyo slack-dark rose-pine github-dark material-theme one-dark catppuccin-mocha catppuccin-frappe catppuccin-macchiato light latte dawn lotus plaintext diff important max-height visible height onDidUpdateDiff onDidContentSizeChange onDidLayoutChange window.MutationObserver childList record.type attributes class explicit fontSize lineHeight paddingBottom paddingTop tabSize on same helpers.cleanupEditor canonicalLanguage single window.cancelAnimationFrame clientX navigator.clipboard navigator.clipboard.writeText code-fallback-plain m-0 code-block-container is-rendering is-diff is-plain-text code-block-header space-x-2 icon-slot h-4 w-4 flex-shrink-0 truncate code-action-btn copied m14 evenodd code-block-body--collapsed code-block-body--expanded code-editor-layer code-height-placeholder aria-hidden code-editor-fallback-surface code-loading-placeholder loading-skeleton skeleton-line short sr-only polite status react-dom library failed text-red-500 p-4">Failed instanceof error.message error keydown transform ease center fullscreen touches text-gray-400 hover:bg-gray-700 hover:text-gray-200 text-gray-600 hover:bg-gray-200 hover:text-gray-700 source hasPreview preview pending bg-gray-800 bg-gray-50 px-2.5 bg-gray-600 text-gray-200 text-gray-700 text-gray-500 m16 isCollapsed opacity-50 cursor-not-allowed m7 whitespace-pre-wrap text-gray-300 baseCode relative absolute top-2 right-2 z-10 gap-2 backdrop-blur infographic-preview min-h-[360px] transition-all duration-100 block inset-0 cursor-grab isDragging containerRef w-full text-center justify-center min-h-full markstream-react fixed z-50 bg-black/70 p-4 closeModal dialog h-full max-h-full shadow-lg top-6 right-6 !isDragging cursor-grabbing markstream-core vitesse-dark vitesse-light shiki shiki-fallback [MarkdownCodeBlockNode] dispose stream-markdown stream-markdown.createShikiStreamRenderer available stale ready requires with ignoring and using default language register configured retrying without code-block-content rendererTargetRef code-block-render ease-in-out infinite node.title link-loading inline-flex items-baseline gap-1.5 link-text-wrapper leading-[normal] link-text text link-loading-indicator link-node aria-label noopener noreferrer unknown-node italic node paragraph-node paragraph child.type html_inline loose strict viewBox gantt open-modal [data-mermaid-wrapper] mermaid-action-btn toggle-mode common.zoomIn common.zoomOut common.resetZoom transition-[height] duration-150 ease-out data-mermaid-wrapper mermaid-loading mermaid-spinner diagram… mermaid-block-header space-x-1 common.preview common.source common.export mermaid-error hasRenderedOnce mermaid-block modeContainerRef mermaid-modal-overlay mermaid-modal-panel mermaid-modal-header mermaid-modal-title mermaid-modal-close mermaid-modal-body modalContentRef mermaid-modal-content abort timed out strong-node superscript-node strikethrough-node subscript-node reference-node bg-[hsl(var(--muted))] px-1.5 mx-0.5 hover:bg-[hsl(var(--secondary))] event.key text-node text-node-center primary fallback is-loaded lazy eager async image-node__placeholder image-node__spinner image-node__placeholder-text image… placeholder image-node__error load containerClass vmr-container right text-right text-left pointermove pointerup pointercancel table-node-wrapper my-8 table-node table-node--loading aria-busy colgroup border-[var(--table-border,#cbd5e1)] p-[calc(4/7*1em)] table-node__resize-handle table-node__loading table-node__spinner window.matchMedia ms-tooltip z-[9999] inline-block text-base py-2 px-3 shadow-md whitespace-nowrap pointer-events-none tooltip-element text-white border-gray-700 tooltip [mermaidWorkerClient] messageerror cleared worker inject via busy canParse findPrefix javascript typescript go python ruby shell powershell d2 plain cpp csharp objectivec objectivecpp yaml markdown rust kotlin hr-node thematic-break list_item definition_list footnote footnote_reference footnote_anchor thematic_break thinking vmr_container htmlFor className label_open label_close in zoom [markstream-react] htmlPreviewSandbox contains both allow-scripts this only fully trusted content served an isolated en utf-8 viewport content="width=device-width initial-scale=1 html-preview-frame__backdrop--dark html-preview-frame--dark html-preview-frame__header html-preview-frame__title html-preview-frame__dot html-preview-frame__label html-preview-frame__close--dark html-preview-frame__iframe no-referrer about:blank node.type infographic d2lang langs text_special node.content heading hardbreak inline_code emphasis strikethrough highlight insert subscript superscript checkbox_input emoji math_inline reference stream-monaco data-ssr-fallback normalizedLanguage data-language no renderNodeProp classAttr node.cite value void rowIdx bodyRows.length isOpen thematic-break-node cssVars image-node__img code-block-node code-block markdown-code-block-node markdown-code-block mermaid-block-node d2-block-node infographic-block-node math-block overflow-x-auto min-h-[40px] $$ math-inline-wrapper math-inline data-reference-id customComponents html-inline server-renderer node-content role aria-describedby document child key ref ms-html self_closing tag_open token.type tag_close parse dynamic template html-inline-node html-inline-node--loading mathRef math-inline--hidden math-inline__loading math-inline__spinner hunk !options.preserveBlankKind context removed added markstream-pre__diff-pane--inline original markstream-pre__diff-pane--original modified markstream-pre__diff-pane--modified markstream-pre--line-numbers markstream-pre--diff-preview markstream-pre--diff-inline showLineNumbers markstream-pre__diff-code line.empty markstream-pre__diff-line--empty markstream-pre__diff-rail markstream-pre__diff-number markstream-pre__diff-content markstream-pre__diff-content-inner rendering math-rendering normalizedType globalThis.requestAnimationFrame globalThis.cancelAnimationFrame sequencediagram classdiagram kind statediagram erdiagram flowchart graph npm development process module did expected existingEnv.getWorkerUrl [katexWorkerClient] init cache-hit timeout waiting slot prototype constructor katex °C`;
|
|
2
2
|
module.exports = safeList;
|
|
3
3
|
module.exports.safeList = safeList;
|
|
4
4
|
module.exports.default = safeList;
|
package/dist/tailwind.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const safeList = `use client react stream-markdown-parser string cannot delete global call clearGlobalCustomComponents
|
|
1
|
+
export const safeList = `use client react stream-markdown-parser string cannot delete global call clearGlobalCustomComponents checkbox-node checkbox checkbox-input note is-dark data-index-key headerId admonition-header admonition-icon admonition-title admonition-toggle aria-expanded aria-controls collapsed admonition-content aria-labelledby blockquote-node auto object typeof next code_block next.type window.requestIdleCallback [data-node-index] node-spacer dark virtualized data-custom-id node-slot data-node-index data-node-type fade-node typewriter-node node-placeholder typewriterCursorRef typewriter-cursor admonition math_block html_block image [data-node-type="code_block"] [data-node-type="admonition"] [data-node-type="table"] [data-node-type="math_block"] [data-node-type="html_block"] [data-node-type="image"] performance [markstream-react][perf] mermaid theme name markdown-renderer boolean safe emphasis-node hard-break clsx heading-node font-semibold dependency is not install it to enable smooth footnote-reference handleScroll footnote-link cursor-pointer footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border,#eaecef)] pt-2 flex-1 href xlink:href markstream-d2-root-svg number window.requestAnimationFrame instance.render instance missing render returned empty top d2-block my-4 rounded-lg border overflow-hidden shadow-sm border-gray-700/30 bg-gray-900 text-gray-100 border-gray-200 bg-white text-gray-900 d2-block-header justify-between items-center px-4 py-2.5 border-b border-gray-400/5 gap-x-2 font-medium font-mono gap-x-1 rounded-md p-0.5 bg-gray-700 bg-gray-100 mode-btn px-2 py-1 text-xs rounded !showSource is-active showSource d2-action-btn p-2 transition-colors hover:bg-[var(--vscode-editor-selectionBackground)] copying w-3 h-3 none currentColor round aria-pressed m9 bodyRef d2-block-body bodyStyle !hasPreview d2-source py-4 d2-code d2-error mt-2 d2-render d2-svg pb-3 footnote-anchor hover:underline ↩︎ dl definition-list indexKey mb-4 dt definition-term ctx renderNode ?? definition dd definition-desc ml-4 mark highlight-node emoji-node html-block-node escape html-block html-block-node__placeholder html-block-node__placeholder-bar w-4/5 w-2/3 setHostEl shouldRender useDynamic reactNodes insert-node inline-code inline text-[85%] px-1 py-0.5 bg-[hsl(var(--secondary))] whitespace-normal break-words max-w-full text-node-stream-delta text-node-stream-delta--a text-node-stream-delta--b list-node my-5 pl-[calc(13/8*1em)] list-decimal list-disc max-lg:my-[calc(4/3*1em)] max-lg:pl-[calc(14/9*1em)] list list-item pl-1.5 my-2 valueAttr children style.visibility hidden line-info legacy off never background night moon black dracula mocha frappe macchiato palenight ocean poimandres monokai laserwave tokyo slack-dark rose-pine github-dark material-theme one-dark catppuccin-mocha catppuccin-frappe catppuccin-macchiato light latte dawn lotus plaintext diff important max-height visible height onDidUpdateDiff onDidContentSizeChange onDidLayoutChange window.MutationObserver childList record.type attributes class explicit fontSize lineHeight paddingBottom paddingTop tabSize on same helpers.cleanupEditor canonicalLanguage single window.cancelAnimationFrame clientX navigator.clipboard navigator.clipboard.writeText code-fallback-plain m-0 code-block-container is-rendering is-diff is-plain-text code-block-header space-x-2 icon-slot h-4 w-4 flex-shrink-0 truncate code-action-btn copied m14 evenodd code-block-body--collapsed code-block-body--expanded code-editor-layer code-height-placeholder aria-hidden code-editor-fallback-surface code-loading-placeholder loading-skeleton skeleton-line short sr-only polite status react-dom library failed text-red-500 p-4">Failed instanceof error.message error keydown transform ease center fullscreen touches text-gray-400 hover:bg-gray-700 hover:text-gray-200 text-gray-600 hover:bg-gray-200 hover:text-gray-700 source hasPreview preview pending bg-gray-800 bg-gray-50 px-2.5 bg-gray-600 text-gray-200 text-gray-700 text-gray-500 m16 isCollapsed opacity-50 cursor-not-allowed m7 whitespace-pre-wrap text-gray-300 baseCode relative absolute top-2 right-2 z-10 gap-2 backdrop-blur infographic-preview min-h-[360px] transition-all duration-100 block inset-0 cursor-grab isDragging containerRef w-full text-center justify-center min-h-full markstream-react fixed z-50 bg-black/70 p-4 closeModal dialog h-full max-h-full shadow-lg top-6 right-6 !isDragging cursor-grabbing markstream-core vitesse-dark vitesse-light shiki shiki-fallback [MarkdownCodeBlockNode] dispose stream-markdown stream-markdown.createShikiStreamRenderer available stale ready requires with ignoring and using default language register configured retrying without code-block-content rendererTargetRef code-block-render ease-in-out infinite node.title link-loading inline-flex items-baseline gap-1.5 link-text-wrapper leading-[normal] link-text text link-loading-indicator link-node aria-label noopener noreferrer unknown-node italic node paragraph-node paragraph child.type html_inline loose strict viewBox gantt open-modal [data-mermaid-wrapper] mermaid-action-btn toggle-mode common.zoomIn common.zoomOut common.resetZoom transition-[height] duration-150 ease-out data-mermaid-wrapper mermaid-loading mermaid-spinner diagram… mermaid-block-header space-x-1 common.preview common.source common.export mermaid-error hasRenderedOnce mermaid-block modeContainerRef mermaid-modal-overlay mermaid-modal-panel mermaid-modal-header mermaid-modal-title mermaid-modal-close mermaid-modal-body modalContentRef mermaid-modal-content abort timed out strong-node superscript-node strikethrough-node subscript-node reference-node bg-[hsl(var(--muted))] px-1.5 mx-0.5 hover:bg-[hsl(var(--secondary))] event.key text-node text-node-center primary fallback is-loaded lazy eager async image-node__placeholder image-node__spinner image-node__placeholder-text image… placeholder image-node__error load containerClass vmr-container right text-right text-left pointermove pointerup pointercancel table-node-wrapper my-8 table-node table-node--loading aria-busy colgroup border-[var(--table-border,#cbd5e1)] p-[calc(4/7*1em)] table-node__resize-handle table-node__loading table-node__spinner window.matchMedia ms-tooltip z-[9999] inline-block text-base py-2 px-3 shadow-md whitespace-nowrap pointer-events-none tooltip-element text-white border-gray-700 tooltip [mermaidWorkerClient] messageerror cleared worker inject via busy canParse findPrefix javascript typescript go python ruby shell powershell d2 plain cpp csharp objectivec objectivecpp yaml markdown rust kotlin hr-node thematic-break list_item definition_list footnote footnote_reference footnote_anchor thematic_break thinking vmr_container htmlFor className label_open label_close in zoom [markstream-react] htmlPreviewSandbox contains both allow-scripts this only fully trusted content served an isolated en utf-8 viewport content="width=device-width initial-scale=1 html-preview-frame__backdrop--dark html-preview-frame--dark html-preview-frame__header html-preview-frame__title html-preview-frame__dot html-preview-frame__label html-preview-frame__close--dark html-preview-frame__iframe no-referrer about:blank node.type infographic d2lang langs text_special node.content heading hardbreak inline_code emphasis strikethrough highlight insert subscript superscript checkbox_input emoji math_inline reference stream-monaco data-ssr-fallback normalizedLanguage data-language no renderNodeProp classAttr node.cite value void rowIdx bodyRows.length isOpen thematic-break-node cssVars image-node__img code-block-node code-block markdown-code-block-node markdown-code-block mermaid-block-node d2-block-node infographic-block-node math-block overflow-x-auto min-h-[40px] $$ math-inline-wrapper math-inline data-reference-id customComponents html-inline server-renderer node-content role aria-describedby document child key ref ms-html self_closing tag_open token.type tag_close parse dynamic template html-inline-node html-inline-node--loading mathRef math-inline--hidden math-inline__loading math-inline__spinner hunk !options.preserveBlankKind context removed added markstream-pre__diff-pane--inline original markstream-pre__diff-pane--original modified markstream-pre__diff-pane--modified markstream-pre--line-numbers markstream-pre--diff-preview markstream-pre--diff-inline showLineNumbers markstream-pre__diff-code line.empty markstream-pre__diff-line--empty markstream-pre__diff-rail markstream-pre__diff-number markstream-pre__diff-content markstream-pre__diff-content-inner rendering math-rendering normalizedType globalThis.requestAnimationFrame globalThis.cancelAnimationFrame sequencediagram classdiagram kind statediagram erdiagram flowchart graph npm development process module did expected existingEnv.getWorkerUrl [katexWorkerClient] init cache-hit timeout waiting slot prototype constructor katex °C`;
|
|
2
2
|
export default safeList;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
import { SmoothMarkdownStreamOptions, SmoothMarkdownStreamSnapshot } from 'markstream-core';
|
|
2
2
|
export type { SmoothMarkdownStreamOptions, SmoothMarkdownStreamSnapshot };
|
|
3
|
-
export declare function useSmoothMarkdownStream(options?: SmoothMarkdownStreamOptions):
|
|
4
|
-
enqueue: (chunk: string) => void;
|
|
5
|
-
finish: (options?: {
|
|
6
|
-
flush?: boolean;
|
|
7
|
-
}) => void;
|
|
8
|
-
flush: () => void;
|
|
9
|
-
reset: (initialMarkdown?: string) => void;
|
|
10
|
-
pause: () => void;
|
|
11
|
-
resume: () => void;
|
|
12
|
-
getSnapshot: () => SmoothMarkdownStreamSnapshot;
|
|
13
|
-
source: string;
|
|
14
|
-
visible: string;
|
|
15
|
-
done: boolean;
|
|
16
|
-
paused: boolean;
|
|
17
|
-
pendingChars: number;
|
|
18
|
-
caughtUp: boolean;
|
|
19
|
-
final: boolean;
|
|
20
|
-
};
|
|
3
|
+
export declare function useSmoothMarkdownStream(options?: SmoothMarkdownStreamOptions): any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.55",
|
|
5
5
|
"description": "React/Next.js streaming Markdown renderer for AI chat, LLM token streams, SSE/WebSocket output, incomplete Markdown, long documents, Mermaid, KaTeX, Shiki, Monaco, and custom React components.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@floating-ui/dom": "^1.8.0",
|
|
116
116
|
"clsx": "^2.1.1",
|
|
117
117
|
"markstream-core": "1.0.3",
|
|
118
|
-
"stream-markdown-parser": "1.1.
|
|
118
|
+
"stream-markdown-parser": "1.1.4"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@types/react": "^18.3.31",
|
package/dist/abap-DnJxzdy9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[Object.freeze(JSON.parse('{"displayName":"ABAP","fileTypes":["abap","ABAP"],"foldingStartMarker":"/\\\\*\\\\*|\\\\{\\\\s*$","foldingStopMarker":"\\\\*\\\\*/|^\\\\s*}","name":"abap","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"^\\\\*.*\\\\n?","name":"comment.line.full.abap"},{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"\\".*\\\\n?","name":"comment.line.partial.abap"},{"match":"(?<!\\\\S)##.*?(?=([,.:\\\\s]))","name":"comment.line.pragma.abap"},{"match":"(?i)(?<=[-~\\\\s])(?<=[-=]>)([/_a-z][/-9_a-z]*)(?=\\\\s+(?:|[-*+/]|&&?)=\\\\s+)","name":"variable.other.abap"},{"match":"\\\\b[0-9]+(\\\\b|[,.])","name":"constant.numeric.abap"},{"match":"(?i)(^|\\\\s+)((P(?:UBLIC|RIVATE|ROTECTED))\\\\sSECTION)(?=\\\\s+|[.:])","name":"storage.modifier.class.abap"},{"begin":"(?<!\\\\\\\\)(\\\\|)(.*?)","beginCaptures":{"1":{"name":"constant.character.escape.abap"}},"end":"(?<!\\\\\\\\)(\\\\||(\\\\\\\\\\\\\\\\\\\\|))","endCaptures":{"1":{"name":"constant.character.escape.abap"}},"name":"string.interpolated.abap","patterns":[{"match":"(\\\\{ )|( })","name":"constant.character.escape"},{"match":"\\\\\\\\\\\\|","name":"constant.character.escape.abap"},{"match":"(?i)(?<=\\\\s)(align|alpha|case|country|currency|date|decimals|exponent|number|pad|sign|style|time|timestamp|timezone|width|xsd|zero)(?=\\\\s=)","name":"entity.name.property.stringtemplate.abap"},{"match":"(?i)(?<==\\\\s)(center|engineering|environment|in|iso|left|leftplus|leftspace|lower|no|out|raw|right|rightplus|rightspace|scale_preserving|scale_preserving_scientific|scientific|scientific_with_leading_zero|sign_as_postfix|simple|space|upper|user|yes)(?=\\\\s)","name":"entity.value.property.stringtemplate.abap"}]},{"begin":"\'","end":"\'","name":"string.quoted.single.abap","patterns":[{"match":"\'\'","name":"constant.character.escape.abap"}]},{"begin":"`","end":"`","name":"string.quoted.single.abap","patterns":[{"match":"``","name":"constant.character.escape.abap"}]},{"begin":"(?i)^\\\\s*(class)\\\\s([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.block.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","name":"meta.block.begin.implementation.abap","patterns":[{"match":"(?i)(^|\\\\s+)(definition|implementation|public|inheriting\\\\s+from|final|deferred|abstract|shared\\\\s+memory\\\\s+enabled|(global|local)*\\\\s*friends|(create\\\\s+(p(?:ublic|rotected|rivate)))|for\\\\s+behavior\\\\s+of|for\\\\s+testing|risk\\\\s+level\\\\s+(critical|dangerous|harmless))|duration\\\\s(short|medium|long)(?=\\\\s+|\\\\.)","name":"storage.modifier.class.abap"},{"begin":"(?=[A-Z_a-z][0-9A-Z_a-z]*)","contentName":"entity.name.type.block.abap","end":"(?![0-9A-Z_a-z])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(method)\\\\s(?:([/_a-z][/-9_a-z]*)~)?([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"},"3":{"name":"entity.name.function.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(BY(?:\\\\s+DATABASE(\\\\s+PROCEDURE|\\\\s+FUNCTION|\\\\s+GRAPH\\\\s+WORKSPACE)|\\\\s+KERNEL\\\\s+MODULE))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=^|\\\\s)(FOR\\\\s+(HDB|LLANG))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=\\\\s)(OPTIONS\\\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\\\s+SYNTAX\\\\s+ERRORS))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?i)(?<=^|\\\\s)(LANGUAGE\\\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"captures":{"1":{"name":"storage.modifier.method.abap"}},"match":"(?i)(?<=\\\\s)(USING)\\\\s+([/_a-z][/-9=>_a-z]*)+(?=\\\\s+|\\\\.)"},{"begin":"(?=[A-Z_a-z][0-9A-Z_a-z]*)","end":"(?![0-9A-Z_a-z])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(INTERFACE)\\\\s([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(DEFERRED|PUBLIC)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"}]},{"begin":"(?i)^\\\\s*(FORM)\\\\s([/_a-z][-/-9?_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\\\s+|\\\\.)","name":"storage.modifier.form.abap"},{"include":"#abaptypes"},{"include":"#keywords_followed_by_braces"}]},{"match":"(?i)(end(?:class|method|form|interface))","name":"storage.type.block.end.abap"},{"match":"(?i)(<[A-Z_a-z][0-9A-Z_a-z]*>)","name":"variable.other.field.symbol.abap"},{"include":"#keywords"},{"include":"#abap_constants"},{"include":"#reserved_names"},{"include":"#operators"},{"include":"#builtin_functions"},{"include":"#abaptypes"},{"include":"#system_fields"},{"include":"#sql_functions"},{"include":"#sql_types"}],"repository":{"abap_constants":{"match":"(?i)(?<=\\\\s)(initial|null|@?space|@?abap_true|@?abap_false|@?abap_undefined|table_line|%_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|adabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=[,.\\\\s])","name":"constant.language.abap"},"abaptypes":{"patterns":[{"match":"(?i)\\\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|[cdfinptx])(?=[,.\\\\s])","name":"support.type.abap"},{"match":"(?i)\\\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=[,.\\\\s])","name":"keyword.control.simple.abap"}]},"arithmetic_operator":{"match":"(?i)(?<=\\\\s)([-*+]|\\\\*\\\\*|[%/]|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\\\s)","name":"keyword.control.simple.abap"},"builtin_functions":{"match":"(?i)(?<=\\\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\\\()","name":"entity.name.function.builtin.abap"},"comparison_operator":{"match":"(?i)(?<=\\\\s)([<>]|<=|>=|=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|[moz])(?=\\\\s)","name":"keyword.control.simple.abap"},"control_keywords":{"match":"(?i)(^|\\\\s)(at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=[.:\\\\s])","name":"keyword.control.flow.abap"},"generic_names":{"match":"[A-Z_a-z][0-9A-Z_a-z]*"},"keywords":{"patterns":[{"include":"#main_keywords"},{"include":"#text_symbols"},{"include":"#control_keywords"},{"include":"#keywords_followed_by_braces"}]},"keywords_followed_by_braces":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"variable.other.abap"}},"match":"(?i)\\\\b(data|value|field-symbol|final|reference|resumable)\\\\((<?[/_a-z][/-9_a-z]*>?)\\\\)"},"logical_operator":{"match":"(?i)(?<=\\\\s)(not|or|and)(?=\\\\s)","name":"keyword.control.simple.abap"},"main_keywords":{"match":"(?i)(?<=^|\\\\s)(abap-source|abstract|accept|accepting|access|according|action|activation|actual|add|add-corresponding|adjacent|after|alias|aliases|all|allocate|amdp|analysis|analyzer|append|appending|application|archive|area|arithmetic|as|ascending|assert|assign|assigned|assigning|association|asynchronous|at|attributes|authority|authority-check|authorization|auto|back|background|backward|badi|base|before|begin|behavior|between|binary|bit|blanks??|blocks??|bound|boundaries|bounds|boxed|break|break-point|buffer|by|bypassing|byte|byte-order|call|calling|cast|casting|cds|centered|change|changing|channels|char-to-hex|character|check|checkbox|cid|circular|class|class-data|class-events|class-methods??|class-pool|cleanup|clear|clients??|clock|clone|close|cnt|code|collect|color|column|comments??|commit|common|communication|comparing|components??|compression|compute|concatenate|cond|condense|condition|connection|constants??|contexts??|controls??|conv|conversion|convert|copy|corresponding|count|country|cover|create|currency|current|cursor|customer-function|data|database|datainfo|dataset|date|daylight|ddl|deallocate|decimals|declarations|deep|default|deferred|define|delete|deleting|demand|descending|describe|destination|detail|determine|dialog|did|directory|discarding|display|display-mode|distance|distinct|divide|divide-corresponding|dummy|duplicates??|duration|during|dynpro|edit|editor-call|empty|enabled|enabling|encoding|end|end-enhancement-section|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|endenhancement|endexec|endfunction|endian|ending|endmodule|endprovide|endselect|endwith|enhancement|enhancement-point|enhancement-section|enhancements|entities|entity|entries|entry|enum|equiv|errors|escape|escaping|events??|exact|except|exception|exception-table|exceptions|excluding|exec|execute|exists|exit|exit-command|expanding|explicit|exponent|export|exporting|extended|extension|extract|fail|failed|features|fetch|field|field-groups|field-symbols|fields|file|fill|filters??|final|find|first|first-line|fixed-point|flush|following|for|format|forward|found|frames??|free|from|full|function|function-pool|generate|get|giving|graph|groups??|handler??|hashed|having|headers??|heading|help-id|help-request|hide|hint|hold|hotspot|icon|id|identification|identifier|ignore|ignoring|immediately|implemented|implicit|import|importing|in|inactive|incl|includes??|including|increment|index|index-line|indicators|infotypes|inheriting|init|initial|initialization|inner|input|insert|instances??|intensified|interface|interface-pool|interfaces|internal|intervals|into|inverse|inverted-date|is|job|join|keep|keeping|kernel|keys??|keywords|kind|language|last|late|layout|leading|leave|left|left-justified|legacy|length|let|levels??|like|line|line-count|line-selection|line-size|linefeed|lines|link|list|list-processing|listbox|load|load-of-program|locale??|locks??|log-point|logical|lower|mapped|mapping|margin|mark|mask|match|matchcode|maximum|members|memory|mesh|message|message-id|messages|messaging|methods??|mode|modif|modifier|modify|module|move|move-corresponding|multiply|multiply-corresponding|name|nametab|native|nested|nesting|new|new-line|new-page|new-section|next|no-display|no-extension|no-gaps??|no-grouping|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unicode|non-unique|number|objects??|objmgr|obligatory|occurences??|occurrences??|occurs|of|offset|on|only|open|optional|options??|order|others|out|outer|output|output-length|overflow|overlay|pack|package|padding|page|parameter|parameter-table|parameters|part|partially|pcre|perform|performing|permissions|pf-status|places|pool|position|pragmas|preceding|precompiled|preferred|preserving|primary|print|print-control|private|privileged|procedure|process|program|property|protected|provide|push|pushbutton|put|query|queue-only|queueonly|quickinfo|radiobutton|raising|ranges??|read|read-only|received??|receiving|redefinition|reduce|ref|reference|refresh|regex|reject|renaming|replace|replacement|replacing|report|reported|request|requested|required|reserve|reset|resolution|respecting|response|restore|results??|resumable|resume|retry|return|returning|right|right-justified|rollback|rows|rp-provide-from-last|run|sap|sap-spool|save|saving|scan|screen|scroll|scroll-boundary|scrolling|search|seconds|section|select|select-options|selection|selection-screen|selection-sets??|selection-table|selections|send|separated??|session|set|shared|shift|shortdump|shortdump-id|sign|simple|simulation|single|size|skip|skipping|smart|some|sort|sortable|sorted|source|specified|split|spool|spots|sql|stable|stamp|standard|start-of-selection|starting|state|statements??|statics??|statusinfo|step|step-loop|stop|structures??|style|subkey|submatches|submit|subroutine|subscreen|substring|subtract|subtract-corresponding|suffix|sum|summary|supplied|supply|suppress|switch|symbol|syntax-check|syntax-trace|system-call|system-exceptions|tab|tabbed|tables??|tableview|tabstrip|target|tasks??|test|test-injection|test-seam|testing|text|textpool|then|throw|times??|title|titlebar|to|tokens|top-lines|top-of-page|trace-file|trace-table|trailing|transaction|transfer|transformation|translate|transporting|trmac|truncate|truncation|type|type-pools??|types|uline|unassign|unbounded|under|unicode|union|unique|unit|unix|unpack|until|unwind|up|update|upper|user|user-command|using|utf-8|uuid|valid|validate|value|value-request|values|vary|varying|version|via|visible|wait|when|where|windows??|with|with-heading|with-title|without|word|work|workspace|write|xml|zone)(?=[,.:\\\\s])","name":"keyword.control.simple.abap"},"operators":{"patterns":[{"include":"#other_operator"},{"include":"#arithmetic_operator"},{"include":"#comparison_operator"},{"include":"#logical_operator"}]},"other_operator":{"match":"(?<=\\\\s)(&&?|\\\\?=|\\\\+=|-=|/=|\\\\*=|&&=|&=)(?=\\\\s)","name":"keyword.control.simple.abap"},"reserved_names":{"match":"(?i)(?<=\\\\s)(me|super)(?=[,.\\\\s]|->)","name":"constant.language.abap"},"sql_functions":{"match":"(?i)(?<=\\\\s)(abap_system_timezone|abap_user_timezone|abs|add_days|add_months|allow_precision_loss|as_geo_json|avg|bintohex|cast|ceil|coalesce|concat_with_space|concat|corr_spearman|corr|count|currency_conversion|datn_add_days|datn_add_months|datn_days_between|dats_add_days|dats_add_months|dats_days_between|dats_from_datn|dats_is_valid|dats_tims_to_tstmp|dats_to_datn|dayname|days_between|dense_rank|division|div|extract_day|extract_hour|extract_minute|extract_month|extract_second|extract_year|first_value|floor|grouping|hextobin|initcap|instr|is_valid|lag|last_value|lead|left|length|like_regexpr|locate_regexpr_after|locate_regexpr|locate|lower|lpad|ltrim|max|median|min|mod|monthname|ntile|occurrences_regexpr|over|product|rank|replace_regexpr|replace|rigth|round|row_number|rpad|rtrim|stddev|string_agg|substring_regexpr|substring|sum|tims_from_timn|tims_is_valid|tims_to_timn|to_blob|to_clob|tstmp_add_seconds|tstmp_current_utctimestamp|tstmp_is_valid|tstmp_seconds_between|tstmp_to_dats|tstmp_to_dst|tstmp_to_tims|tstmpl_from_utcl|tstmpl_to_utcl|unit_conversion|upper|utcl_add_seconds|utcl_current|utcl_seconds_between|uuid|var|weekday)(?=\\\\()","name":"entity.name.function.sql.abap"},"sql_types":{"match":"(?i)(?<=\\\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=[()\\\\s])","name":"entity.name.type.sql.abap"},"system_fields":{"captures":{"1":{"name":"variable.language.abap"},"2":{"name":"variable.language.abap"}},"match":"(?i)\\\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=[.\\\\s])"},"text_symbols":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"constant.numeric.abap"}},"match":"(?i)(?<=^|\\\\s)(text)-([0-9A-Z]{1,3})(?=[,.:\\\\s])"}},"scopeName":"source.abap"}'))];export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[Object.freeze(JSON.parse('{"displayName":"ActionScript","fileTypes":["as"],"name":"actionscript-3","patterns":[{"include":"#comments"},{"include":"#package"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"},{"include":"#import"},{"include":"#mxml"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"}],"repository":{"arithmetic_operators":{"match":"([-%+/]|(?<!:)\\\\*)","name":"keyword.operator.actionscript.3"},"array_access_operators":{"match":"([]\\\\[])","name":"keyword.operator.actionscript.3"},"class":{"begin":"(^|\\\\s+|;)(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(\\\\b(internal|public)\\\\b\\\\s+)?(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(?=\\\\bclass\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"}},"end":"}","name":"meta.class.actionscript.3","patterns":[{"include":"#class_declaration"},{"include":"#declaration_code_block"},{"include":"#metadata"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_operators"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"},{"include":"#object_literal"},{"include":"#conditional_compilation"}]},"class_declaration":{"begin":"\\\\b(class)\\\\b\\\\s+([$.0-9A-Z_a-z]+|\\\\*)","beginCaptures":{"1":{"name":"storage.type.class.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#implements"},{"include":"#comments"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","end":"\\\\*/","name":"comment.block.documentation.actionscript.3","patterns":[{"match":"@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\\\b","name":"keyword.other.documentation.actionscript.3.asdoc"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.actionscript.3"},{"match":"//.*","name":"comment.line.actionscript.3"}]},"conditional_compilation":{"captures":{"2":{"name":"constant.other.actionscript.3"},"3":{"name":"constant.other.actionscript.3"}},"match":"(^|\\\\s+|;)\\\\b(\\\\w+)\\\\b::\\\\b(\\\\w+)\\\\b","name":"meta.conditional.actionscript.3"},"control_keywords":{"match":"\\\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\\\b","name":"keyword.control.actionscript.3"},"declaration_code_block":{"begin":"\\\\{","end":"}","name":"meta.code_block.actionscript.3","patterns":[{"include":"#method"},{"include":"#variable_declaration"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"},{"include":"#import"}]},"dynamic_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"match":"(?<=:)\\\\s*(\\\\*)"},"escapes":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.actionscript.3"},"extends":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(extends)\\\\b\\\\s+([$.0-9A-Z_a-z]+)\\\\s*(?:,\\\\s*([$.0-9A-Z_a-z]+))*\\\\s*","name":"meta.extends.actionscript.3"},"function_arguments":{"begin":"\\\\(","end":"\\\\)","name":"meta.function_arguments.actionscript.3","patterns":[{"include":"#parameters"},{"include":"#comments"}]},"functions":{"begin":"\\\\b(function)\\\\b(?:\\\\s+\\\\b([gs]et)\\\\b\\\\s+)?\\\\s*([$0-9A-Z_a-z]+\\\\b)?","beginCaptures":{"1":{"name":"storage.type.function.actionscript.3"},"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"entity.name.function.actionscript.3"}},"end":"($|;|(?=\\\\{))","name":"meta.function.actionscript.3","patterns":[{"include":"#function_arguments"},{"include":"#return_type"},{"include":"#comments"}]},"guess_constant":{"captures":{"1":{"name":"constant.other.actionscript.3"}},"match":"\\\\b([$A-Z][0-9A-Z_]+)\\\\b"},"guess_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"match":"\\\\b((?:[$0-9A-Z_a-z]+\\\\.)*[A-Z][0-9A-Z]*[a-z]+[$0-9A-Z_a-z]*)\\\\b"},"implements":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(implements)\\\\b\\\\s+([$.0-9A-Z_a-z]+)\\\\s*(?:,\\\\s*([$.0-9A-Z_a-z]+))*\\\\s*","name":"meta.implements.actionscript.3"},"import":{"captures":{"2":{"name":"keyword.control.import.actionscript.3"},"3":{"name":"support.type.actionscript.3"}},"match":"(^|\\\\s+|;)\\\\b(import)\\\\b\\\\s+([$.0-9A-Z_a-z]+(?:\\\\.\\\\*)?)\\\\s*(?=;|$)","name":"meta.import.actionscript.3"},"interface":{"begin":"(^|\\\\s+|;)(\\\\b(internal|public)\\\\b\\\\s+)?(?=\\\\binterface\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"}},"end":"}","name":"meta.interface.actionscript.3","patterns":[{"include":"#interface_declaration"},{"include":"#metadata"},{"include":"#functions"},{"include":"#comments"}]},"interface_declaration":{"begin":"\\\\b(interface)\\\\b\\\\s+([$.0-9A-Z_a-z]+)","beginCaptures":{"1":{"name":"storage.type.interface.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#comments"}]},"language_constants":{"match":"\\\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\\\b","name":"constant.language.actionscript.3"},"language_variables":{"match":"\\\\b(super|this|arguments)\\\\b","name":"variable.language.actionscript.3"},"local_code_block":{"begin":"\\\\{","end":"}","name":"meta.code_block.actionscript.3","patterns":[{"include":"#local_code_block"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"},{"include":"#import"}]},"logical_operators":{"match":"([!\\\\&<>?^|~])","name":"keyword.operator.actionscript.3"},"metadata":{"begin":"(?<=(?:^|[;{}]|\\\\*/)\\\\s*)\\\\[\\\\s*\\\\b([$A-Z_a-z][$0-9A-Z_a-z]+)\\\\b","beginCaptures":{"1":{"name":"keyword.other.actionscript.3"}},"end":"]","name":"meta.metadata_info.actionscript.3","patterns":[{"include":"#metadata_info"}]},"metadata_info":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"variable.parameter.actionscript.3"},"2":{"name":"keyword.operator.actionscript.3"}},"match":"(\\\\w+)\\\\s*(=)"}]},"method":{"begin":"(^|\\\\s+)((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?(?=\\\\bfunction\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"storage.modifier.actionscript.3"}},"end":"(?<=([;}]))","name":"meta.method.actionscript.3","patterns":[{"include":"#functions"},{"include":"#local_code_block"}]},"mxml":{"begin":"<!\\\\[CDATA\\\\[","end":"]]>","name":"meta.cdata.actionscript.3","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#metadata"},{"include":"#class"},{"include":"#namespace_declaration"},{"include":"#use_namespace"},{"include":"#class_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_keywords"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"}]},"namespace_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"storage.modifier.actionscript.3"}},"match":"((\\\\w+)\\\\s+)?(namespace)\\\\s+[$0-9A-Z_a-z]+","name":"meta.namespace_declaration.actionscript.3"},"numbers":{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([Ll]|UL|ul|[FUfu])?\\\\b","name":"constant.numeric.actionscript.3"},"object_literal":{"begin":"\\\\{","end":"}","name":"meta.object_literal.actionscript.3","patterns":[{"include":"#object_literal"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#functions"}]},"other_keywords":{"match":"\\\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\\\b","name":"keyword.other.actionscript.3"},"other_operators":{"match":"([.=])","name":"keyword.operator.actionscript.3"},"package":{"begin":"(^|\\\\s+)(package)\\\\b","beginCaptures":{"2":{"name":"keyword.other.actionscript.3"}},"end":"}","name":"meta.package.actionscript.3","patterns":[{"include":"#package_name"},{"include":"#variable_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#return_type"},{"include":"#import"},{"include":"#use_namespace"},{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#metadata"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"}]},"package_name":{"begin":"(?<=package)\\\\s+([._\\\\w]*)\\\\b","end":"\\\\{","name":"meta.package_name.actionscript.3"},"parameters":{"begin":"(\\\\.\\\\.\\\\.)?\\\\s*([$A-Z_a-z][$0-9A-Z_a-z]*)(?:\\\\s*(:)\\\\s*(?:([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)(?:\\\\.<([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)>)?|(\\\\*)))?(?:\\\\s*(=))?","beginCaptures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"variable.parameter.actionscript.3"},"3":{"name":"keyword.operator.actionscript.3"},"4":{"name":"support.type.actionscript.3"},"5":{"name":"support.type.actionscript.3"},"6":{"name":"support.type.actionscript.3"},"7":{"name":"keyword.operator.actionscript.3"}},"end":",|(?=\\\\))","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#comments"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#guess_type"},{"include":"#guess_constant"}]},"primitive_error_types":{"captures":{"1":{"name":"support.class.error.actionscript.3"}},"match":"\\\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\\\b"},"primitive_functions":{"captures":{"1":{"name":"support.function.actionscript.3"}},"match":"\\\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\\\s*\\\\()"},"primitive_types":{"captures":{"1":{"name":"support.class.builtin.actionscript.3"}},"match":"\\\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\\\*(?<=a))\\\\b"},"regexp":{"begin":"(?<=[(,:=\\\\[]|^|return|&&|\\\\|\\\\||!)\\\\s*(/)(?![*+/?{}])","end":"$|(/)[gim]*","name":"string.regex.actionscript.3","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.actionscript.3"},{"match":"\\\\[(\\\\\\\\]|[^]])*]","name":"constant.character.class.actionscript.3"}]},"return_type":{"captures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"support.type.actionscript.3"},"3":{"name":"support.type.actionscript.3"},"4":{"name":"support.type.actionscript.3"}},"match":"(:)\\\\s*([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)(?:\\\\.<([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)>)?|(\\\\*)"},"strings":{"patterns":[{"begin":"@\\"","end":"\\"","name":"string.quoted.verbatim.actionscript.3"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.actionscript.3","patterns":[{"include":"#escapes"}]},{"begin":"\'","end":"\'","name":"string.quoted.single.actionscript.3","patterns":[{"include":"#escapes"}]}]},"use_namespace":{"captures":{"2":{"name":"keyword.other.actionscript.3"},"3":{"name":"keyword.other.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"}},"match":"(^|\\\\s+|;)(use\\\\s+)?(namespace)\\\\s+(\\\\w+)\\\\s*(;|$)"},"variable_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"},"6":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"keyword.operator.actionscript.3"}},"match":"((static)\\\\s+)?((\\\\w+)\\\\s+)?((static)\\\\s+)?(const|var)\\\\s+[$0-9A-Z_a-z]+(?:\\\\s*(:))?","name":"meta.variable_declaration.actionscript.3"},"vector_creation_operators":{"match":"([<>])","name":"keyword.operator.actionscript.3"}},"scopeName":"source.actionscript.3"}'))];export{e as default};
|