mastra 1.0.0-beta.1 → 1.0.0-beta.3
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/CHANGELOG.md +46 -0
- package/dist/{chunk-NHL3S2MZ.js → chunk-EAX43UYP.js} +455 -245
- package/dist/chunk-EAX43UYP.js.map +1 -0
- package/dist/commands/actions/start-dev-server.d.ts +2 -2
- package/dist/commands/actions/start-dev-server.d.ts.map +1 -1
- package/dist/commands/build/BuildBundler.d.ts.map +1 -1
- package/dist/commands/create/create.d.ts.map +1 -1
- package/dist/commands/create/create.js +1 -1
- package/dist/commands/create/utils.d.ts.map +1 -1
- package/dist/commands/dev/DevBundler.d.ts.map +1 -1
- package/dist/commands/dev/dev.d.ts +2 -2
- package/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/init/init.d.ts.map +1 -1
- package/dist/commands/init/mcp-docs-server-install.d.ts +3 -2
- package/dist/commands/init/mcp-docs-server-install.d.ts.map +1 -1
- package/dist/commands/init/utils.d.ts +7 -1
- package/dist/commands/init/utils.d.ts.map +1 -1
- package/dist/commands/start/start.d.ts.map +1 -1
- package/dist/commands/utils.d.ts +2 -1
- package/dist/commands/utils.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -15
- package/dist/index.js.map +1 -1
- package/dist/playground/assets/{abap-1CzS1sOj.js → abap-hi5xR-f3.js} +1 -1
- package/dist/playground/assets/{abnf-DGOvXig-.js → abnf-7v7Gfd-h.js} +1 -1
- package/dist/playground/assets/{actionscript-Ckam20DI.js → actionscript-xz2N2DGS.js} +1 -1
- package/dist/playground/assets/{ada-BFBuxkjJ.js → ada-rBMBqKg8.js} +1 -1
- package/dist/playground/assets/{agda-Tq5ut5V8.js → agda-mZDmzN_0.js} +1 -1
- package/dist/playground/assets/{al-DGhsGLAq.js → al-0bEZPs8Q.js} +1 -1
- package/dist/playground/assets/{antlr4-BFV6m952.js → antlr4-CHZ8E9Jr.js} +1 -1
- package/dist/playground/assets/{apacheconf-CbuLdkuI.js → apacheconf-B8we8I__.js} +1 -1
- package/dist/playground/assets/{apex-HFdqHYhh.js → apex-B0sHxdce.js} +1 -1
- package/dist/playground/assets/{apl-DFVCf5n0.js → apl-DEqj1Qov.js} +1 -1
- package/dist/playground/assets/{applescript-DBgTu4l9.js → applescript-BB5BBhVX.js} +1 -1
- package/dist/playground/assets/{aql-gZpNcV2Z.js → aql-D5QI0LhF.js} +1 -1
- package/dist/playground/assets/{arduino-fHUI01vu.js → arduino-DiqCoVKg.js} +1 -1
- package/dist/playground/assets/{arff-CGHPsxEa.js → arff-GlmYJqfq.js} +1 -1
- package/dist/playground/assets/{asciidoc-BLL0AFhH.js → asciidoc-CufXbovb.js} +1 -1
- package/dist/playground/assets/{asm6502-gHMXkX3O.js → asm6502-Cm4ffo8h.js} +1 -1
- package/dist/playground/assets/{asmatmel-Djar7TVY.js → asmatmel-BDSD6xsq.js} +1 -1
- package/dist/playground/assets/{aspnet-CT-3fxZA.js → aspnet-CvhXTgj6.js} +1 -1
- package/dist/playground/assets/{autohotkey-C2LuJtTY.js → autohotkey-CKMwD4Gz.js} +1 -1
- package/dist/playground/assets/{autoit-D7z9Oj0a.js → autoit-AChephto.js} +1 -1
- package/dist/playground/assets/{avisynth-DH-1joIy.js → avisynth-BOyOwA1o.js} +1 -1
- package/dist/playground/assets/{avro-idl-CwMmBvL0.js → avro-idl-C0yWYX81.js} +1 -1
- package/dist/playground/assets/{bash-DC9ltNCH.js → bash-XWoFsRzd.js} +1 -1
- package/dist/playground/assets/{basic-BvNdNPPC.js → basic-Mnw_ux53.js} +1 -1
- package/dist/playground/assets/{batch-B2A0-lrO.js → batch-B9MlvRE2.js} +1 -1
- package/dist/playground/assets/{bbcode-C-cdSQU1.js → bbcode-Ciji8ByP.js} +1 -1
- package/dist/playground/assets/{bicep-wR2S1QWa.js → bicep-D1EdIBPn.js} +1 -1
- package/dist/playground/assets/{birb-DxKsEIRC.js → birb-BRpJckg9.js} +1 -1
- package/dist/playground/assets/{bison-BrtjR4_0.js → bison-C6YVcPw1.js} +1 -1
- package/dist/playground/assets/{bnf-DZXJcNWs.js → bnf-DDUPjETt.js} +1 -1
- package/dist/playground/assets/{brainfuck-GsQ3r7ZS.js → brainfuck-Db4XiXWB.js} +1 -1
- package/dist/playground/assets/{brightscript-Cm5JZVO7.js → brightscript-7dqNWp7x.js} +1 -1
- package/dist/playground/assets/{bro-ofyQMWa0.js → bro-Ddi_DwqI.js} +1 -1
- package/dist/playground/assets/{bsl-BA39c2V2.js → bsl-I3GAPh-u.js} +1 -1
- package/dist/playground/assets/{c-w4TQc2DV.js → c-Bx3nE9c7.js} +1 -1
- package/dist/playground/assets/{cfscript-DB2UdqrI.js → cfscript-IPNo9uDu.js} +1 -1
- package/dist/playground/assets/{chaiscript-DKw0DBKq.js → chaiscript-xbCu56-s.js} +1 -1
- package/dist/playground/assets/{cil-B1Aij6Ac.js → cil-CKMYAmL6.js} +1 -1
- package/dist/playground/assets/{clike-PYh2Df1m.js → clike-DN-9P0sY.js} +1 -1
- package/dist/playground/assets/{clojure-C3Kzfbxr.js → clojure-CNUzMdwP.js} +1 -1
- package/dist/playground/assets/{cmake-B5lEWe4v.js → cmake-Ci-Vwty2.js} +1 -1
- package/dist/playground/assets/{cobol-DV2v69DZ.js → cobol-3e5P9psv.js} +1 -1
- package/dist/playground/assets/{coffeescript-DPMm0h67.js → coffeescript-Bw9Bra84.js} +1 -1
- package/dist/playground/assets/{concurnas-5ceC2vtu.js → concurnas-DMwulBga.js} +1 -1
- package/dist/playground/assets/{coq-CJx3sS2Y.js → coq-CQhtObjk.js} +1 -1
- package/dist/playground/assets/{core-awL-mrqC.js → core-CaEfaHU-.js} +1 -1
- package/dist/playground/assets/{cpp-Dqtv01mn.js → cpp-BeV4DkTh.js} +1 -1
- package/dist/playground/assets/{crystal-YmylMN4k.js → crystal-DbQnd3d7.js} +1 -1
- package/dist/playground/assets/{csharp-6LRLb3wj.js → csharp-CdF675XK.js} +1 -1
- package/dist/playground/assets/{cshtml-Cx2gpcdc.js → cshtml-Be3cWtSO.js} +1 -1
- package/dist/playground/assets/{csp-JoKz2eQf.js → csp-Cxn6Wl22.js} +1 -1
- package/dist/playground/assets/{css-extras-CCuLtFJx.js → css-extras-tG6D_Zlh.js} +1 -1
- package/dist/playground/assets/{css-Dn_Nm8K5.js → css-nijfQzQe.js} +1 -1
- package/dist/playground/assets/{csv-BOqfDvgc.js → csv-yObzk9H3.js} +1 -1
- package/dist/playground/assets/{cypher-B8lcZcX-.js → cypher-D6Oofnhx.js} +1 -1
- package/dist/playground/assets/{d-C7p5_QW4.js → d-DZTehyj0.js} +1 -1
- package/dist/playground/assets/{dart-DHVKj4dD.js → dart-D-nt0PO4.js} +1 -1
- package/dist/playground/assets/{dataweave-BLVaR6RS.js → dataweave-DhkC0oWt.js} +1 -1
- package/dist/playground/assets/{dax-CAuQA-pw.js → dax-B3WUvjxH.js} +1 -1
- package/dist/playground/assets/{dhall-6-srnnFP.js → dhall-DV4YijyL.js} +1 -1
- package/dist/playground/assets/{diff-yP5aAuhk.js → diff-ZuEV80Tk.js} +1 -1
- package/dist/playground/assets/{django-Bc3LGca8.js → django-CYp1KUqS.js} +1 -1
- package/dist/playground/assets/{dns-zone-file-DuMFp9AD.js → dns-zone-file-Bm2PZbl5.js} +1 -1
- package/dist/playground/assets/{docker-qGjcWmeQ.js → docker-BCoh7LzU.js} +1 -1
- package/dist/playground/assets/{dot-Nng7Jq-1.js → dot-lXkbyhSR.js} +1 -1
- package/dist/playground/assets/{ebnf-DGw7D5FO.js → ebnf-DbZ4GbQS.js} +1 -1
- package/dist/playground/assets/{editorconfig-DdNdUHyk.js → editorconfig-Boo3p0jH.js} +1 -1
- package/dist/playground/assets/{eiffel-Djs2lIA5.js → eiffel-BjmcwQpy.js} +1 -1
- package/dist/playground/assets/{ejs-BgckZXji.js → ejs-cw9Ctd78.js} +1 -1
- package/dist/playground/assets/{elixir-DxPbR3j9.js → elixir-18HryfIz.js} +1 -1
- package/dist/playground/assets/{elm-CQjhvMG4.js → elm-BW70B5Fv.js} +1 -1
- package/dist/playground/assets/{erb-BkC_lhzH.js → erb-DMH0eV55.js} +1 -1
- package/dist/playground/assets/{erlang-DI8fwDZA.js → erlang-B9-sDWb9.js} +1 -1
- package/dist/playground/assets/{etlua-W0w0A9i7.js → etlua-sghqRDJp.js} +1 -1
- package/dist/playground/assets/{excel-formula-DJC3DTW2.js → excel-formula-iYjdy8J6.js} +1 -1
- package/dist/playground/assets/{factor-p_aKOy3O.js → factor-Bq6jfUlO.js} +1 -1
- package/dist/playground/assets/{false-C0slWFk4.js → false--NGcaTmV.js} +1 -1
- package/dist/playground/assets/{firestore-security-rules-D6b3ZM9O.js → firestore-security-rules-DkYeQNqU.js} +1 -1
- package/dist/playground/assets/{flow-B97Z5M5g.js → flow-CbqkaA-y.js} +1 -1
- package/dist/playground/assets/{fortran-yTOeV9tz.js → fortran-RETSUdfV.js} +1 -1
- package/dist/playground/assets/{fsharp-Clw45DHR.js → fsharp-4K_DkGtS.js} +1 -1
- package/dist/playground/assets/{ftl-C2xVUBxP.js → ftl-Dd__vhkf.js} +1 -1
- package/dist/playground/assets/{gap-CEo3Gc7J.js → gap-BVJNDI6Z.js} +1 -1
- package/dist/playground/assets/{gcode-BVO5YHmP.js → gcode-Zw94bxd8.js} +1 -1
- package/dist/playground/assets/{gdscript-o3sqxne-.js → gdscript-BPjkpAGk.js} +1 -1
- package/dist/playground/assets/{gedcom-94FHn7C-.js → gedcom-U9m2gP_H.js} +1 -1
- package/dist/playground/assets/{gherkin-BcHPeTR7.js → gherkin-BAlaHKLO.js} +1 -1
- package/dist/playground/assets/{git-CX4wgYVJ.js → git-6KQSEwZQ.js} +1 -1
- package/dist/playground/assets/{glsl-xGVEgQY-.js → glsl-D-UIScxz.js} +1 -1
- package/dist/playground/assets/{gml-O85a0Qq7.js → gml-7kpFTtBx.js} +1 -1
- package/dist/playground/assets/{gn-Gkh_ZE4p.js → gn-CfqTfMtW.js} +1 -1
- package/dist/playground/assets/{go-RKuHUD8p.js → go-DbM_Zrgy.js} +1 -1
- package/dist/playground/assets/{go-module-Cd5B1mIJ.js → go-module-Bdm6W8wZ.js} +1 -1
- package/dist/playground/assets/{graphql-Dw7AAUz0.js → graphql-D1tlp2_5.js} +1 -1
- package/dist/playground/assets/{groovy-DGB_T7dF.js → groovy-kF5mPP_h.js} +1 -1
- package/dist/playground/assets/{haml-DvClPB1G.js → haml-guYTWnwQ.js} +1 -1
- package/dist/playground/assets/{handlebars-Cl-GBNZQ.js → handlebars-BOSLKyrD.js} +1 -1
- package/dist/playground/assets/{haskell-wM0n-rcH.js → haskell-DH_AYQpm.js} +1 -1
- package/dist/playground/assets/{haxe-iDkJJGVM.js → haxe-CyaLxrne.js} +1 -1
- package/dist/playground/assets/{hcl-Cn0S_wf6.js → hcl-DbWAEmWr.js} +1 -1
- package/dist/playground/assets/{hlsl-BjE4WxqQ.js → hlsl-CZOYeEwX.js} +1 -1
- package/dist/playground/assets/{hoon-rUOUCZ3W.js → hoon-By1ubi4u.js} +1 -1
- package/dist/playground/assets/{hpkp-DP_4F80b.js → hpkp-VhsORUOQ.js} +1 -1
- package/dist/playground/assets/{hsts-DVvdi9ar.js → hsts-CEAl3dey.js} +1 -1
- package/dist/playground/assets/{http-Bwcz59ub.js → http-ClDe-iSz.js} +1 -1
- package/dist/playground/assets/{ichigojam-DZffFFD5.js → ichigojam-0Z5sTchy.js} +1 -1
- package/dist/playground/assets/{icon-C0b7nx0h.js → icon-ByyjMM3V.js} +1 -1
- package/dist/playground/assets/{icu-message-format-DjVkXpEj.js → icu-message-format-Bq6WVBns.js} +1 -1
- package/dist/playground/assets/{idris-0jwu3qTZ.js → idris-Dvatgydq.js} +1 -1
- package/dist/playground/assets/{iecst-CKOHCzS7.js → iecst-DQGuIq-8.js} +1 -1
- package/dist/playground/assets/{ignore-CUsnJVxM.js → ignore-DFKp0Aya.js} +1 -1
- package/dist/playground/assets/{index-BMPzBpdy.js → index-5XzugkzT.js} +1 -1
- package/dist/playground/assets/{index-DaDsg3iZ.js → index-B5QHQPcc.js} +1 -1
- package/dist/playground/assets/{index-BqjMKSph.js → index-BKkDlIuC.js} +1 -1
- package/dist/playground/assets/{index-PrsQv3Q5.js → index-BQIf8xtB.js} +1 -1
- package/dist/playground/assets/{index-CWl7KBtZ.js → index-BS3QaOqH.js} +1 -1
- package/dist/playground/assets/{index-Ct2mUODZ.js → index-BmwDYRVW.js} +1 -1
- package/dist/playground/assets/{index-DSHLyy0s.js → index-Bt6xYZXC.js} +1 -1
- package/dist/playground/assets/{index-Dal4mcJQ.js → index-CE7Hg13c.js} +1 -1
- package/dist/playground/assets/{index-BUieIqcC.js → index-CFGtTuHW.js} +1 -1
- package/dist/playground/assets/{index-mnBv4IDG.js → index-CfLIvHJK.js} +1 -1
- package/dist/playground/assets/{index-CgMSb0ib.js → index-CxEBtMsF.js} +1 -1
- package/dist/playground/assets/{index-Dhm4G7YM.js → index-DZ1aIzNa.js} +1 -1
- package/dist/playground/assets/{index-5430GCVb.js → index-DbsebLxg.js} +1 -1
- package/dist/playground/assets/{index-Dvbs85st.js → index-DoBntcDL.js} +1 -1
- package/dist/playground/assets/{index-C4U2p1Ac.js → index-DwBFE1sF.js} +316 -312
- package/dist/playground/assets/{index-BIPLi07j.js → index-FCdUmrLj.js} +1 -1
- package/dist/playground/assets/{index-CLu0RbtZ.js → index-YrQGTP8f.js} +1 -1
- package/dist/playground/assets/{index-Bh7AT5zU.js → index-qPUVOvcP.js} +1 -1
- package/dist/playground/assets/{inform7-BE_oO7eR.js → inform7-6nkB6n0R.js} +1 -1
- package/dist/playground/assets/{ini-DRJ1Lb58.js → ini-PtGpr3h6.js} +1 -1
- package/dist/playground/assets/{io-DD1DLPfJ.js → io-vsP6cn2d.js} +1 -1
- package/dist/playground/assets/{j-BO_N_FDB.js → j-B6ERsBat.js} +1 -1
- package/dist/playground/assets/{java-BzZsqQhG.js → java-BScGIydW.js} +1 -1
- package/dist/playground/assets/{javadoc-BwxdkkEO.js → javadoc--Nh-wUIu.js} +1 -1
- package/dist/playground/assets/{javadoclike-CBDKG3Kl.js → javadoclike-B3YTqv0Q.js} +1 -1
- package/dist/playground/assets/{javascript-hTZuOaC5.js → javascript-DGsxv-rl.js} +1 -1
- package/dist/playground/assets/{javastacktrace-ZOpfCGh5.js → javastacktrace-DA4GS92f.js} +1 -1
- package/dist/playground/assets/{jexl-CoQAfDY-.js → jexl-D_FTsIkb.js} +1 -1
- package/dist/playground/assets/{jolie-BXuheID5.js → jolie-95JAx9qj.js} +1 -1
- package/dist/playground/assets/{jq-D2V9LUqd.js → jq-U10jHoOg.js} +1 -1
- package/dist/playground/assets/{js-extras-Bdsx2AmN.js → js-extras-BGj6w4Dv.js} +1 -1
- package/dist/playground/assets/{js-templates-CVWBbSad.js → js-templates-imJ80BSZ.js} +1 -1
- package/dist/playground/assets/{jsdoc-xVA9Cj-w.js → jsdoc-Dus_j7vS.js} +1 -1
- package/dist/playground/assets/{json-v46bxzze.js → json-DhxzJR52.js} +1 -1
- package/dist/playground/assets/{json5-DwTC9_aM.js → json5-DgQOZAHi.js} +1 -1
- package/dist/playground/assets/{jsonp-DtwmHxcv.js → jsonp-C_ysyfZI.js} +1 -1
- package/dist/playground/assets/{jsstacktrace-D7MUpJmS.js → jsstacktrace-BlX98tzu.js} +1 -1
- package/dist/playground/assets/{jsx-B2ZPu_sF.js → jsx-neHBUq08.js} +1 -1
- package/dist/playground/assets/{julia-C-4dl-Eh.js → julia-BdiRK3iK.js} +1 -1
- package/dist/playground/assets/{keepalived-9r2MYVcY.js → keepalived-BKpIsPIY.js} +1 -1
- package/dist/playground/assets/{keyman-DvHNjcz5.js → keyman-D9I2Y9OA.js} +1 -1
- package/dist/playground/assets/{kotlin-B49JjNRF.js → kotlin-B1tcYUs_.js} +1 -1
- package/dist/playground/assets/{kumir-BubygEYF.js → kumir-CMxSbLlX.js} +1 -1
- package/dist/playground/assets/{kusto-CH_AKVN6.js → kusto-gAnRlB1Y.js} +1 -1
- package/dist/playground/assets/{latex-C9qtRxyR.js → latex-C1SBIz9f.js} +1 -1
- package/dist/playground/assets/{latte-eaSds21J.js → latte-Cuao_K4h.js} +1 -1
- package/dist/playground/assets/{less-Ciq7oCWk.js → less-CDbVKNvv.js} +1 -1
- package/dist/playground/assets/{lilypond-ezW_FBa7.js → lilypond-BSUl5iXX.js} +1 -1
- package/dist/playground/assets/{liquid-Di97Zow5.js → liquid-C-oro8hh.js} +1 -1
- package/dist/playground/assets/{lisp-BND5IUUb.js → lisp-nNIjYTOI.js} +1 -1
- package/dist/playground/assets/{livescript-CNdmDR9k.js → livescript-DZazFWFd.js} +1 -1
- package/dist/playground/assets/{llvm-Diu5vE-_.js → llvm-BQnSpTFA.js} +1 -1
- package/dist/playground/assets/{log-l74ZIo2G.js → log-DiwLcAg5.js} +1 -1
- package/dist/playground/assets/{lolcode-D8E_zNUr.js → lolcode-CYkwEl6b.js} +1 -1
- package/dist/playground/assets/{lua-gNMwUQjv.js → lua-C5OS3cNI.js} +1 -1
- package/dist/playground/assets/{magma-BZndnK4u.js → magma-iVIlkPMM.js} +1 -1
- package/dist/playground/assets/{makefile-2KtWvl9M.js → makefile-BiRZX91R.js} +1 -1
- package/dist/playground/assets/{markdown-QVr2WZ7A.js → markdown-Csbt4eSK.js} +1 -1
- package/dist/playground/assets/{markup-CGjosiRG.js → markup-DFLT05BR.js} +1 -1
- package/dist/playground/assets/{markup-templating--J8lNA65.js → markup-templating-RMhqJnW3.js} +1 -1
- package/dist/playground/assets/{matlab-BzWR4u9J.js → matlab-UZBSgaWv.js} +1 -1
- package/dist/playground/assets/{maxscript-DqL8aTwi.js → maxscript-DaXZPSBW.js} +1 -1
- package/dist/playground/assets/{mel-gxTOI7Bn.js → mel-CU3__y5h.js} +1 -1
- package/dist/playground/assets/{mermaid-CRoOZITP.js → mermaid-BpuyONQk.js} +1 -1
- package/dist/playground/assets/{mizar-D4dkpyeN.js → mizar-DFkGsKu5.js} +1 -1
- package/dist/playground/assets/{mongodb-BQlStzRx.js → mongodb-5E98wPzI.js} +1 -1
- package/dist/playground/assets/{monkey-BkVftKMt.js → monkey-dbLgBLZo.js} +1 -1
- package/dist/playground/assets/{moonscript-gBNEqU73.js → moonscript-BMFK9yW6.js} +1 -1
- package/dist/playground/assets/{n1ql-Bal9wV3M.js → n1ql-2H83XDYf.js} +1 -1
- package/dist/playground/assets/{n4js-DJDqWInO.js → n4js-C5mxyFyR.js} +1 -1
- package/dist/playground/assets/{nand2tetris-hdl-DVYcQs0u.js → nand2tetris-hdl-CeY6vXOn.js} +1 -1
- package/dist/playground/assets/{naniscript-D-DQWSz5.js → naniscript-wlW6nqau.js} +1 -1
- package/dist/playground/assets/{nasm-CoydG39X.js → nasm-jaqvPlfe.js} +1 -1
- package/dist/playground/assets/{neon-CFqbCk9q.js → neon-DZJpQLPJ.js} +1 -1
- package/dist/playground/assets/{nevod-BWVaWL8G.js → nevod-DM6y-ht0.js} +1 -1
- package/dist/playground/assets/{nginx-CJ8KhEzw.js → nginx-CJj_EcmX.js} +1 -1
- package/dist/playground/assets/{nim-CTjZnGAK.js → nim-BAOYE2nv.js} +1 -1
- package/dist/playground/assets/{nix-D59oAN6v.js → nix-C_qOOD5p.js} +1 -1
- package/dist/playground/assets/{nsis-C4QOvtRp.js → nsis-BPyWJLZZ.js} +1 -1
- package/dist/playground/assets/{objectivec-CNwgVx15.js → objectivec-B6c2DM9e.js} +1 -1
- package/dist/playground/assets/{ocaml-Cbt3VSbK.js → ocaml-DdbajZiL.js} +1 -1
- package/dist/playground/assets/{opencl-BvLZSbML.js → opencl-CbcZK5O9.js} +1 -1
- package/dist/playground/assets/{openqasm-CGOnCwmJ.js → openqasm-BlK4mWpF.js} +1 -1
- package/dist/playground/assets/{oz-DVsjFoJo.js → oz-CYosrTQv.js} +1 -1
- package/dist/playground/assets/{parigp-D5xSjAKr.js → parigp-DCzC9sbx.js} +1 -1
- package/dist/playground/assets/{parser-d13CKhZm.js → parser-BcKOdXV6.js} +1 -1
- package/dist/playground/assets/{pascal-BvUbXOhW.js → pascal-lS4GFSHZ.js} +1 -1
- package/dist/playground/assets/{pascaligo-pwdQOiyr.js → pascaligo-B8-k8i1k.js} +1 -1
- package/dist/playground/assets/{pcaxis-BPo6ZVCF.js → pcaxis-CKbm3k6r.js} +1 -1
- package/dist/playground/assets/{peoplecode-BPwq91WF.js → peoplecode-BI5htzWp.js} +1 -1
- package/dist/playground/assets/{perl-WtWUuCP3.js → perl-QM64yJYL.js} +1 -1
- package/dist/playground/assets/{php-extras-_VGCd9xg.js → php-extras-GmPrUudo.js} +1 -1
- package/dist/playground/assets/{php-CMJK3UPB.js → php-vClUH7Ho.js} +1 -1
- package/dist/playground/assets/{phpdoc-WkHZUPUM.js → phpdoc-B6BF3Szx.js} +1 -1
- package/dist/playground/assets/{plsql-Cq6eEoN9.js → plsql-DttFljdq.js} +1 -1
- package/dist/playground/assets/{powerquery-BXYY2Vg4.js → powerquery-B1Xb4-K0.js} +1 -1
- package/dist/playground/assets/{powershell-fY0zLuCN.js → powershell-D-B7kvAT.js} +1 -1
- package/dist/playground/assets/{processing-DvXSIH2o.js → processing-D6fC0guL.js} +1 -1
- package/dist/playground/assets/{prolog-B-7DRt0Q.js → prolog-kWr-CqPK.js} +1 -1
- package/dist/playground/assets/{promql-yRPFscBJ.js → promql-PXZm5M8f.js} +1 -1
- package/dist/playground/assets/{properties-DOrVgnsn.js → properties-BY0nXuNQ.js} +1 -1
- package/dist/playground/assets/{protobuf-BPMQlYO_.js → protobuf-CT6juWDL.js} +1 -1
- package/dist/playground/assets/{psl-BytgMlVA.js → psl-3kEbIr81.js} +1 -1
- package/dist/playground/assets/{pug-BrQQZMXX.js → pug-BkZ8PJ6L.js} +1 -1
- package/dist/playground/assets/{puppet-D0rWAMpi.js → puppet-BRmK5z1A.js} +1 -1
- package/dist/playground/assets/{pure-D3akdLNP.js → pure-BMibaKRT.js} +1 -1
- package/dist/playground/assets/{purebasic-BvyRZ4e2.js → purebasic-yXJxB96y.js} +1 -1
- package/dist/playground/assets/{purescript-CJVS0asd.js → purescript-DD_r_UF4.js} +1 -1
- package/dist/playground/assets/{python-DFf0sF2h.js → python-BMUssyL_.js} +1 -1
- package/dist/playground/assets/{q-Dx0gyvWB.js → q-CIUPp4al.js} +1 -1
- package/dist/playground/assets/{qml-DgfQDN4B.js → qml-B4fSzN7J.js} +1 -1
- package/dist/playground/assets/{qore-BWwh2dOA.js → qore-CdHZ7uVG.js} +1 -1
- package/dist/playground/assets/{qsharp-BSuwYsvS.js → qsharp-BIcGmai5.js} +1 -1
- package/dist/playground/assets/{r-B-fIj4Vl.js → r-BkiXHUSG.js} +1 -1
- package/dist/playground/assets/{racket-C1cWOkSS.js → racket-BQkfARq-.js} +1 -1
- package/dist/playground/assets/{reason-Bvp1giaD.js → reason-eT2cgi2d.js} +1 -1
- package/dist/playground/assets/{regex-CC3lEw_I.js → regex-CxWwBMeU.js} +1 -1
- package/dist/playground/assets/{rego-0uWqA6B_.js → rego-CNknGPUE.js} +1 -1
- package/dist/playground/assets/{renpy-BLav3ImN.js → renpy-DgIMK7W_.js} +1 -1
- package/dist/playground/assets/{rest-VO18yH-j.js → rest-uhJrm9Yw.js} +1 -1
- package/dist/playground/assets/{rip-dpWJBk9i.js → rip-CMfNKkuv.js} +1 -1
- package/dist/playground/assets/{roboconf-B1MwI3f8.js → roboconf-ClIO7-q1.js} +1 -1
- package/dist/playground/assets/{robotframework-Bdb-jPYB.js → robotframework-BbXNM3wr.js} +1 -1
- package/dist/playground/assets/{ruby-CA7NsUfQ.js → ruby-C-BeNqqu.js} +1 -1
- package/dist/playground/assets/{rust-PzI1cHWc.js → rust-D7HlDjtf.js} +1 -1
- package/dist/playground/assets/{sas-D8-wUxbX.js → sas-DaJKA9hL.js} +1 -1
- package/dist/playground/assets/{sass-Ddx9r_xg.js → sass-e4DUuBIE.js} +1 -1
- package/dist/playground/assets/{scala-CKFoLkY1.js → scala-BG9C8Cn4.js} +1 -1
- package/dist/playground/assets/{scheme-BKOYV7g3.js → scheme-DZ3xuban.js} +1 -1
- package/dist/playground/assets/{scss-C7diewNB.js → scss-CKyTa6JG.js} +1 -1
- package/dist/playground/assets/{shell-session-DAVIwm6r.js → shell-session-CC0LA7Q3.js} +1 -1
- package/dist/playground/assets/{smali-CxEhs8yC.js → smali-D628uhxS.js} +1 -1
- package/dist/playground/assets/{smalltalk-D1bda1js.js → smalltalk-BTEiFqoR.js} +1 -1
- package/dist/playground/assets/{smarty-D86XLDAD.js → smarty-DV7g5bgQ.js} +1 -1
- package/dist/playground/assets/{sml-DhRzV0Yd.js → sml-BxJvxfGo.js} +1 -1
- package/dist/playground/assets/{solidity-DZzAYKne.js → solidity-JgLK6Vg1.js} +1 -1
- package/dist/playground/assets/{solution-file-DcWsdOsE.js → solution-file-B5a62Oc0.js} +1 -1
- package/dist/playground/assets/{soy-CJzcp0Rd.js → soy-eDdiv1qf.js} +1 -1
- package/dist/playground/assets/{sparql-Bza39uP1.js → sparql-kZcrDGC2.js} +1 -1
- package/dist/playground/assets/{splunk-spl-pgc5xbr1.js → splunk-spl-Bz-lO4ky.js} +1 -1
- package/dist/playground/assets/{sqf-zaxjPIcX.js → sqf-MF9dZOnj.js} +1 -1
- package/dist/playground/assets/{sql-BDxJqV_A.js → sql-Dgp3eeTl.js} +1 -1
- package/dist/playground/assets/{squirrel-fBNLZRcl.js → squirrel-CbufH-LV.js} +1 -1
- package/dist/playground/assets/{stan-CJSTRlqV.js → stan-NxtKiimO.js} +1 -1
- package/dist/playground/assets/style-DkRpX1cz.css +1 -0
- package/dist/playground/assets/{stylus-DcowwZLM.js → stylus-BQBNcdSo.js} +1 -1
- package/dist/playground/assets/{swift-BvR6KTou.js → swift-ah3gBVTO.js} +1 -1
- package/dist/playground/assets/{systemd-Bm9dfnfC.js → systemd-vKQ5cwha.js} +1 -1
- package/dist/playground/assets/{t4-cs-DBS3SuTn.js → t4-cs-Dvi1M4ji.js} +1 -1
- package/dist/playground/assets/{t4-templating-BUpklocH.js → t4-templating-DjzvdHAe.js} +1 -1
- package/dist/playground/assets/{t4-vb-8Kx8FrJn.js → t4-vb-CYt3Ngyj.js} +1 -1
- package/dist/playground/assets/{tap-BffWxfOo.js → tap-C4RxxNie.js} +1 -1
- package/dist/playground/assets/{tcl-C0r6haIO.js → tcl-BPg0Cu_S.js} +1 -1
- package/dist/playground/assets/{textile-B-BdvKXq.js → textile-3ZR-wyvv.js} +1 -1
- package/dist/playground/assets/{toml-CsDsK2f9.js → toml-CS4E5Zu_.js} +1 -1
- package/dist/playground/assets/{tremor-CctEbCng.js → tremor-Bo7m4C6Q.js} +1 -1
- package/dist/playground/assets/{tsx-D4cMQx4D.js → tsx-21W1FyVB.js} +1 -1
- package/dist/playground/assets/{tt2-BWVqfxra.js → tt2-81Q8I6CJ.js} +1 -1
- package/dist/playground/assets/{turtle-DCRLY1Qq.js → turtle-DVv9uKDA.js} +1 -1
- package/dist/playground/assets/{twig-CmagNSa3.js → twig-Bv5GxlI6.js} +1 -1
- package/dist/playground/assets/{typescript-BwUK_myp.js → typescript-CT6MeItO.js} +1 -1
- package/dist/playground/assets/{typoscript-Brs6KLZ4.js → typoscript-BvSrbUaP.js} +1 -1
- package/dist/playground/assets/{unrealscript-DzAjWmdp.js → unrealscript-Cgx32PJC.js} +1 -1
- package/dist/playground/assets/{uorazor-w1hD9SND.js → uorazor-CJbChqAi.js} +1 -1
- package/dist/playground/assets/{uri-DF5-DT9w.js → uri-BgoAck_-.js} +1 -1
- package/dist/playground/assets/{v-BavoKhXR.js → v-biu85SVD.js} +1 -1
- package/dist/playground/assets/{vala-1eVOQj5_.js → vala-BtJoUvdO.js} +1 -1
- package/dist/playground/assets/{vbnet-6zkgS3WB.js → vbnet-DgIdoBfp.js} +1 -1
- package/dist/playground/assets/{velocity-x-6OTDFN.js → velocity-Rt30Lbiv.js} +1 -1
- package/dist/playground/assets/{verilog-C4yzM5oQ.js → verilog-CCQiOZ9i.js} +1 -1
- package/dist/playground/assets/{vhdl-Dh0L03yv.js → vhdl-V3KHNR1k.js} +1 -1
- package/dist/playground/assets/{vim-Dc3QQ6M0.js → vim-C55MXNJR.js} +1 -1
- package/dist/playground/assets/{visual-basic-6taNRfml.js → visual-basic-BcZ5gRgE.js} +1 -1
- package/dist/playground/assets/{warpscript-SGwIx-pb.js → warpscript-DUUcZpXO.js} +1 -1
- package/dist/playground/assets/{wasm-KlR0o1yG.js → wasm-Cgl7ln8a.js} +1 -1
- package/dist/playground/assets/{web-idl-r-M67RT-.js → web-idl-D6-kTbmS.js} +1 -1
- package/dist/playground/assets/{wiki-oiupc9yq.js → wiki-DihswnGe.js} +1 -1
- package/dist/playground/assets/{wolfram-C35GZ5NN.js → wolfram-_3RVD0YZ.js} +1 -1
- package/dist/playground/assets/{wren-D2ELJujn.js → wren-BbncSZkv.js} +1 -1
- package/dist/playground/assets/{xeora-BYbZIIur.js → xeora-BgVpi39u.js} +1 -1
- package/dist/playground/assets/{xml-doc-bciQqQY7.js → xml-doc-CXNYCSBK.js} +1 -1
- package/dist/playground/assets/{xojo-JXmhLMmX.js → xojo-C3Ii0zSq.js} +1 -1
- package/dist/playground/assets/{xquery-OdhlQiGj.js → xquery-CwhuGIxb.js} +1 -1
- package/dist/playground/assets/{yaml-BegI5l2n.js → yaml-CLyTFu_8.js} +1 -1
- package/dist/playground/assets/{yang-Dhd5AEiH.js → yang-CnOMIF21.js} +1 -1
- package/dist/playground/assets/{zig-Caf1sO7t.js → zig-BDTkDyo2.js} +1 -1
- package/dist/playground/index.html +2 -2
- package/dist/utils/clone-template.d.ts +3 -0
- package/dist/utils/clone-template.d.ts.map +1 -1
- package/package.json +16 -18
- package/dist/chunk-NHL3S2MZ.js.map +0 -1
- package/dist/playground/assets/style-IJXhmGBf.css +0 -1
- package/dist/services/browser.d.ts +0 -13
- package/dist/services/browser.d.ts.map +0 -1
- package/dist/services/service.docker.d.ts +0 -27
- package/dist/services/service.docker.d.ts.map +0 -1
- package/dist/utils/string.d.ts +0 -2
- package/dist/utils/string.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as l,w as Ne,s as ut,f as Ft,a as qt,b as zt,c as Fe,h as Jt}from"./index-C4U2p1Ac.js";const qe={}.hasOwnProperty;function Kt(r,e){const t=e||{};function i(n,...s){let a=i.invalid;const c=i.handlers;if(n&&qe.call(n,r)){const o=String(n[r]);a=qe.call(c,o)?c[o]:i.unknown}if(a)return a.call(this,n,...s)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Qt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Xt=Object.fromEntries(Qt.map(r=>[r.id,r.import]));let N=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Ve=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yt(){return 2147483648}function Zt(){return typeof performance<"u"?performance.now():Date.now()}const er=(r,e)=>r+(e-r%e)%e;async function tr(r){let e,t;const i={};function n(d){t=d,i.HEAPU8=new Uint8Array(d),i.HEAPU32=new Uint32Array(d)}function s(d,p,R){i.HEAPU8.copyWithin(d,p,p+R)}function a(d){try{return e.grow(d-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function c(d){const p=i.HEAPU8.length;d=d>>>0;const R=Yt();if(d>R)return!1;for(let f=1;f<=4;f*=2){let E=p*(1+.2/f);E=Math.min(E,d+100663296);const g=Math.min(R,er(Math.max(d,E),65536));if(a(g))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,p,R=1024){const f=p+R;let E=p;for(;d[E]&&!(E>=f);)++E;if(E-p>16&&d.buffer&&o)return o.decode(d.subarray(p,E));let g="";for(;p<E;){let y=d[p++];if(!(y&128)){g+=String.fromCharCode(y);continue}const v=d[p++]&63;if((y&224)===192){g+=String.fromCharCode((y&31)<<6|v);continue}const T=d[p++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|d[p++]&63,y<65536)g+=String.fromCharCode(y);else{const O=y-65536;g+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return g}function m(d,p){return d?u(i.HEAPU8,d,p):""}const h={emscripten_get_now:Zt,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function _(){const p=await r({env:h,wasi_snapshot_preview1:h});e=p.memory,n(e.buffer),Object.assign(i,p),i.UTF8ToString=m}return await _(),i}var rr=Object.defineProperty,ir=(r,e,t)=>e in r?rr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,A=(r,e,t)=>(ir(r,typeof e!="symbol"?e+"":e,t),t);let P=null;function nr(r){throw new Ve(r.UTF8ToString(r.getLastOnigError()))}class pe{constructor(e){A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16Value"),A(this,"utf8Value"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16");const t=e.length,i=pe._utf8ByteLength(e),n=i!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const c=new Uint8Array(i);let o=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let h=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const d=e.charCodeAt(u+1);d>=56320&&d<=57343&&(h=(m-55296<<10)+65536|d-56320,_=!0)}n&&(s[u]=o,_&&(s[u+1]=o),h<=127?a[o+0]=u:h<=2047?(a[o+0]=u,a[o+1]=u):h<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),h<=127?c[o++]=h:h<=2047?(c[o++]=192|(h&1984)>>>6,c[o++]=128|(h&63)>>>0):h<=65535?(c[o++]=224|(h&61440)>>>12,c[o++]=128|(h&4032)>>>6,c[o++]=128|(h&63)>>>0):(c[o++]=240|(h&1835008)>>>18,c[o++]=128|(h&258048)>>>12,c[o++]=128|(h&4032)>>>6,c[o++]=128|(h&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const s=e.charCodeAt(i);let a=s,c=!1;if(s>=55296&&s<=56319&&i+1<n){const o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const w=class{constructor(r){if(A(this,"id",++w.LAST_ID),A(this,"_onigBinding"),A(this,"content"),A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16"),A(this,"ptr"),!P)throw new Ve("Must invoke loadWasm first.");this._onigBinding=P,this.content=r;const e=new pe(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=P.omalloc(1e4)),w._sharedPtrInUse=!0,P.HEAPU8.set(e.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=e.createString(P)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Q=w;A(Q,"LAST_ID",0);A(Q,"_sharedPtr",0);A(Q,"_sharedPtrInUse",!1);class sr{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new Ve("Must invoke loadWasm first.");const t=[],i=[];for(let c=0,o=e.length;c<o;c++){const u=new pe(e[c]);t[c]=u.createString(P),i[c]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const s=P.omalloc(4*e.length);P.HEAPU32.set(i,s/4);const a=P.createOnigScanner(n,s,e.length);for(let c=0,o=e.length;c<o;c++)P.ofree(t[c]);P.ofree(s),P.ofree(n),a===0&&nr(P),this._onigBinding=P,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new Q(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],m=c[o++],h=[];for(let _=0;_<m;_++){const d=e.convertUtf8OffsetToUtf16(c[o++]),p=e.convertUtf8OffsetToUtf16(c[o++]);h[_]={start:d,end:p,length:p-d}}return{index:u,captureIndices:h}}}function or(r){return typeof r.instantiator=="function"}function ar(r){return typeof r.default=="function"}function cr(r){return typeof r.data<"u"}function lr(r){return typeof Response<"u"&&r instanceof Response}function ur(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer?.(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let Y;function mr(r){if(Y)return Y;async function e(){P=await tr(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),or(i)?i=await i.instantiator(t):ar(i)?i=await i.default(t):(cr(i)&&(i=i.data),lr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await hr(i)(t):i=await dr(i)(t):ur(i)?i=await ye(i)(t):i instanceof WebAssembly.Module?i=await ye(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await ye(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Y=e(),Y}function ye(r){return e=>WebAssembly.instantiate(r,e)}function hr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function dr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let pr;function _r(){return pr}async function mt(r){return r&&await mr(r),{createScanner(e){return new sr(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Q(e)}}}function fr(r){return xe(r)}function xe(r){return Array.isArray(r)?gr(r):r instanceof RegExp?r:typeof r=="object"?Er(r):r}function gr(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=xe(r[t]);return e}function Er(r){let e={};for(let t in r)e[t]=xe(r[t]);return e}function ht(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function dt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?dt(r.substring(0,r.length-1)):r.substr(~e+1)}var Re=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Z=class{static hasCaptures(r){return r===null?!1:(Re.lastIndex=0,Re.test(r))}static replaceCaptures(r,e,t){return r.replace(Re,(i,n,s,a)=>{let c=t[parseInt(n||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return i})}};function pt(r,e){return r<e?-1:r>e?1:0}function _t(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let s=pt(r[n],e[n]);if(s!==0)return s}return 0}return t-i}function ze(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function ft(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var gt=class{constructor(r){this.fn=r}cache=new Map;get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},ne=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(Tr(r),e)}static createFromParsedTheme(r,e){return Ar(r,e)}_cachedMatchRoot=new gt(r=>this._root.match(r));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>yr(r.parent,n.parentScopes));return i?new Et(i.fontStyle,i.foreground,i.background):null}},Te=class re{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new re(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new re(t,e[i]);return t}push(e){return new re(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function yr(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!Rr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Rr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Et=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Tr(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,s=e.length;n<s;n++){let a=e[n];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let h=a.settings.fontStyle.split(" ");for(let _=0,d=h.length;_<d;_++)switch(h[_]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&ze(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&ze(a.settings.background)&&(m=a.settings.background);for(let h=0,_=c.length;h<_;h++){let p=c[h].trim().split(" "),R=p[p.length-1],f=null;p.length>1&&(f=p.slice(0,p.length-1),f.reverse()),t[i++]=new vr(R,f,n,o,u,m)}}return t}var vr=class{constructor(r,e,t,i,n,s){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}},D=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(D||{});function Ar(r,e){r.sort((o,u)=>{let m=pt(o.scope,u.scope);return m!==0||(m=_t(o.parentScopes,u.parentScopes),m!==0)?m:o.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let o=r.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(i=o.foreground),o.background!==null&&(n=o.background)}let s=new Lr(e),a=new Et(t,s.getId(i),s.getId(n)),c=new br(new be(0,null,-1,0,0),[]);for(let o=0,u=r.length;o<u;o++){let m=r[o];c.insert(0,m.scope,m.parentScopes,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new ne(s,a,c)}var Lr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Pr=Object.freeze([]),be=class yt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,i,n,s){this.scopeDepth=e,this.parentScopes=t||Pr,this.fontStyle=i,this.foreground=n,this.background=s}clone(){return new yt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},br=class Ie{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[i].length;if(s!==0)return s;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,s;if(i===-1?(n=e,s=""):(n=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ie._cmpBySpecificity),t}insert(e,t,i,n,s,a){if(t===""){this._doInsertHere(e,i,n,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(o)?m=this._children[o]:(m=new Ie(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[o]=m),m.insert(e+1,u,i,n,s,a)}_doInsertHere(e,t,i,n,s){if(t===null){this._mainRule.acceptOverwrite(e,i,n,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(_t(o.parentScopes,t)===0){o.acceptOverwrite(e,i,n,s);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,s))}},$=class S{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=S.getLanguageId(e),i=S.getTokenType(e),n=S.getFontStyle(e),s=S.getForeground(e),a=S.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,s,a,c){let o=S.getLanguageId(e),u=S.getTokenType(e),m=S.containsBalancedBrackets(e)?1:0,h=S.getFontStyle(e),_=S.getForeground(e),d=S.getBackground(e);return t!==0&&(o=t),i!==8&&(u=i),n!==null&&(m=n?1:0),s!==-1&&(h=s),a!==0&&(_=a),c!==0&&(d=c),(o<<0|u<<8|m<<10|h<<11|_<<15|d<<24)>>>0}};function se(r,e){const t=[],i=Ir(r);let n=i.next();for(;n!==null;){let o=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:o}),n!==",")break;n=i.next()}return t;function s(){if(n==="-"){n=i.next();const o=s();return u=>!!o&&!o(u)}if(n==="("){n=i.next();const o=c();return n===")"&&(n=i.next()),o}if(Je(n)){const o=[];do o.push(n),n=i.next();while(Je(n));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return m=>o.every(h=>h(m))}function c(){const o=[];let u=a();for(;u&&(o.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>o.some(h=>h(m))}}function Je(r){return!!r&&!!r.match(/[\w\.:]+/)}function Ir(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function Rt(r){typeof r.dispose=="function"&&r.dispose()}var q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},Sr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Or=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},wr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new q(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const r=this.Q;this.Q=[];const e=new Or;for(const t of r)Cr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Cr(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);r instanceof q?ie({baseGrammar:s,selfGrammar:n},i):Se(r.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const c of a)i.add(new q(c))}function Se(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];oe([i],e,t)}}function ie(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&oe(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&oe(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function oe(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?ht({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&oe(i.patterns,{...e,repository:n},t);const s=i.include;if(!s)continue;const a=Tt(s);switch(a.kind){case 0:ie({...e,selfGrammar:e.baseGrammar},t);break;case 1:ie(e,t);break;case 2:Se(a.ruleName,{...e,repository:n},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:n};a.kind===4?Se(a.ruleName,o,t):ie(o,t)}else a.kind===4?t.add(new Sr(a.scopeName,a.ruleName)):t.add(new q(a.scopeName));break}}}var kr=class{kind=0},Dr=class{kind=1},Nr=class{constructor(r){this.ruleName=r}kind=2},Vr=class{constructor(r){this.scopeName=r}kind=3},xr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}kind=4};function Tt(r){if(r==="$base")return new kr;if(r==="$self")return new Dr;const e=r.indexOf("#");if(e===-1)return new Vr(r);if(e===0)return new Nr(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new xr(t,i)}}var Gr=/\\(\d+)/,Ke=/\\(\d+)/g,Mr=-1,vt=-2;var X=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=Z.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Z.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${dt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:Z.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Z.replaceCaptures(this._contentName,r,e)}},Br=class extends X{retokenizeCapturedWithRuleId;constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},jr=class extends X{_match;captures;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,null),this._match=new z(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qe=class extends X{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Oe=class extends X{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n,s,a,c,o,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=s,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=o||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const t of this.patterns)r.getRule(t).collectPatterns(r,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},ae=class extends X{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,t,i,n,s,a,c,o){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new z(a,vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new J,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},At=class b{static createCaptureRule(e,t,i,n,s){return e.registerRule(a=>new Br(t,a,i,n,s))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new jr(e.$vscodeTextmateLocation,e.id,e.name,e.match,b._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=ht({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(s,t,i))}return e.while?new ae(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,b._compileCaptures(e.whileCaptures||e.captures,t,i),b._compilePatterns(e.patterns,t,i)):new Oe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,b._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,b._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=b.getCompiledRuleId(e[a],t,i)),n[c]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=Tt(c.include);switch(u.kind){case 0:case 1:o=b.getCompiledRuleId(i[c.include],t,i);break;case 2:let m=i[u.ruleName];m&&(o=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const h=u.scopeName,_=u.kind===4?u.ruleName:null,d=t.getExternalGrammar(h,i);if(d)if(_){let p=d.repository[_];p&&(o=b.getCompiledRuleId(p,t,d.repository))}else o=b.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else o=b.getCompiledRuleId(c,t,i);if(o!==-1){const u=t.getRule(o);let m=!1;if((u instanceof Qe||u instanceof Oe||u instanceof ae)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(o)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},z=class Lt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const i=e.length;let n=0,s=[],a=!1;for(let c=0;c<i;c++)if(e.charAt(c)==="\\"&&c+1<i){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(n,c)),s.push("$(?!\\n)(?<!\\n)"),n=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,n===0?this.source=e:(s.push(e.substring(n,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Gr.test(this.source):this.hasBackReferences=!1}clone(){return new Lt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=t.map(n=>e.substring(n.start,n.end));return Ke.lastIndex=0,this.source.replace(Ke,(n,s)=>ft(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],i=[],n=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,i[s]=c,n[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="",t[s+1]="",i[s+1]="A",n[s+1]="A"):o==="G"?(e[s+1]="",t[s+1]="G",i[s+1]="",n[s+1]="G"):(e[s+1]=o,t[s+1]=o,i[s+1]=o,n[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},J=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new Xe(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new Xe(r,i,this._items.map(n=>n.ruleId))}},Xe=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
|
|
2
|
+
import{_ as l,w as Ne,s as ut,f as Ft,a as qt,b as zt,c as Fe,h as Jt}from"./index-DwBFE1sF.js";const qe={}.hasOwnProperty;function Kt(r,e){const t=e||{};function i(n,...s){let a=i.invalid;const c=i.handlers;if(n&&qe.call(n,r)){const o=String(n[r]);a=qe.call(c,o)?c[o]:i.unknown}if(a)return a.call(this,n,...s)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Qt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Xt=Object.fromEntries(Qt.map(r=>[r.id,r.import]));let N=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Ve=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yt(){return 2147483648}function Zt(){return typeof performance<"u"?performance.now():Date.now()}const er=(r,e)=>r+(e-r%e)%e;async function tr(r){let e,t;const i={};function n(d){t=d,i.HEAPU8=new Uint8Array(d),i.HEAPU32=new Uint32Array(d)}function s(d,p,R){i.HEAPU8.copyWithin(d,p,p+R)}function a(d){try{return e.grow(d-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function c(d){const p=i.HEAPU8.length;d=d>>>0;const R=Yt();if(d>R)return!1;for(let f=1;f<=4;f*=2){let E=p*(1+.2/f);E=Math.min(E,d+100663296);const g=Math.min(R,er(Math.max(d,E),65536));if(a(g))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,p,R=1024){const f=p+R;let E=p;for(;d[E]&&!(E>=f);)++E;if(E-p>16&&d.buffer&&o)return o.decode(d.subarray(p,E));let g="";for(;p<E;){let y=d[p++];if(!(y&128)){g+=String.fromCharCode(y);continue}const v=d[p++]&63;if((y&224)===192){g+=String.fromCharCode((y&31)<<6|v);continue}const T=d[p++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|d[p++]&63,y<65536)g+=String.fromCharCode(y);else{const O=y-65536;g+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return g}function m(d,p){return d?u(i.HEAPU8,d,p):""}const h={emscripten_get_now:Zt,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function _(){const p=await r({env:h,wasi_snapshot_preview1:h});e=p.memory,n(e.buffer),Object.assign(i,p),i.UTF8ToString=m}return await _(),i}var rr=Object.defineProperty,ir=(r,e,t)=>e in r?rr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,A=(r,e,t)=>(ir(r,typeof e!="symbol"?e+"":e,t),t);let P=null;function nr(r){throw new Ve(r.UTF8ToString(r.getLastOnigError()))}class pe{constructor(e){A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16Value"),A(this,"utf8Value"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16");const t=e.length,i=pe._utf8ByteLength(e),n=i!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const c=new Uint8Array(i);let o=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let h=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const d=e.charCodeAt(u+1);d>=56320&&d<=57343&&(h=(m-55296<<10)+65536|d-56320,_=!0)}n&&(s[u]=o,_&&(s[u+1]=o),h<=127?a[o+0]=u:h<=2047?(a[o+0]=u,a[o+1]=u):h<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),h<=127?c[o++]=h:h<=2047?(c[o++]=192|(h&1984)>>>6,c[o++]=128|(h&63)>>>0):h<=65535?(c[o++]=224|(h&61440)>>>12,c[o++]=128|(h&4032)>>>6,c[o++]=128|(h&63)>>>0):(c[o++]=240|(h&1835008)>>>18,c[o++]=128|(h&258048)>>>12,c[o++]=128|(h&4032)>>>6,c[o++]=128|(h&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const s=e.charCodeAt(i);let a=s,c=!1;if(s>=55296&&s<=56319&&i+1<n){const o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const w=class{constructor(r){if(A(this,"id",++w.LAST_ID),A(this,"_onigBinding"),A(this,"content"),A(this,"utf16Length"),A(this,"utf8Length"),A(this,"utf16OffsetToUtf8"),A(this,"utf8OffsetToUtf16"),A(this,"ptr"),!P)throw new Ve("Must invoke loadWasm first.");this._onigBinding=P,this.content=r;const e=new pe(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=P.omalloc(1e4)),w._sharedPtrInUse=!0,P.HEAPU8.set(e.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=e.createString(P)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Q=w;A(Q,"LAST_ID",0);A(Q,"_sharedPtr",0);A(Q,"_sharedPtrInUse",!1);class sr{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new Ve("Must invoke loadWasm first.");const t=[],i=[];for(let c=0,o=e.length;c<o;c++){const u=new pe(e[c]);t[c]=u.createString(P),i[c]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const s=P.omalloc(4*e.length);P.HEAPU32.set(i,s/4);const a=P.createOnigScanner(n,s,e.length);for(let c=0,o=e.length;c<o;c++)P.ofree(t[c]);P.ofree(s),P.ofree(n),a===0&&nr(P),this._onigBinding=P,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new Q(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],m=c[o++],h=[];for(let _=0;_<m;_++){const d=e.convertUtf8OffsetToUtf16(c[o++]),p=e.convertUtf8OffsetToUtf16(c[o++]);h[_]={start:d,end:p,length:p-d}}return{index:u,captureIndices:h}}}function or(r){return typeof r.instantiator=="function"}function ar(r){return typeof r.default=="function"}function cr(r){return typeof r.data<"u"}function lr(r){return typeof Response<"u"&&r instanceof Response}function ur(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer?.(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let Y;function mr(r){if(Y)return Y;async function e(){P=await tr(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),or(i)?i=await i.instantiator(t):ar(i)?i=await i.default(t):(cr(i)&&(i=i.data),lr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await hr(i)(t):i=await dr(i)(t):ur(i)?i=await ye(i)(t):i instanceof WebAssembly.Module?i=await ye(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await ye(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Y=e(),Y}function ye(r){return e=>WebAssembly.instantiate(r,e)}function hr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function dr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let pr;function _r(){return pr}async function mt(r){return r&&await mr(r),{createScanner(e){return new sr(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Q(e)}}}function fr(r){return xe(r)}function xe(r){return Array.isArray(r)?gr(r):r instanceof RegExp?r:typeof r=="object"?Er(r):r}function gr(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=xe(r[t]);return e}function Er(r){let e={};for(let t in r)e[t]=xe(r[t]);return e}function ht(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function dt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?dt(r.substring(0,r.length-1)):r.substr(~e+1)}var Re=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Z=class{static hasCaptures(r){return r===null?!1:(Re.lastIndex=0,Re.test(r))}static replaceCaptures(r,e,t){return r.replace(Re,(i,n,s,a)=>{let c=t[parseInt(n||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return i})}};function pt(r,e){return r<e?-1:r>e?1:0}function _t(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let s=pt(r[n],e[n]);if(s!==0)return s}return 0}return t-i}function ze(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function ft(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var gt=class{constructor(r){this.fn=r}cache=new Map;get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},ne=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(Tr(r),e)}static createFromParsedTheme(r,e){return Ar(r,e)}_cachedMatchRoot=new gt(r=>this._root.match(r));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>yr(r.parent,n.parentScopes));return i?new Et(i.fontStyle,i.foreground,i.background):null}},Te=class re{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new re(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new re(t,e[i]);return t}push(e){return new re(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function yr(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!Rr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Rr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Et=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Tr(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,s=e.length;n<s;n++){let a=e[n];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let h=a.settings.fontStyle.split(" ");for(let _=0,d=h.length;_<d;_++)switch(h[_]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&ze(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&ze(a.settings.background)&&(m=a.settings.background);for(let h=0,_=c.length;h<_;h++){let p=c[h].trim().split(" "),R=p[p.length-1],f=null;p.length>1&&(f=p.slice(0,p.length-1),f.reverse()),t[i++]=new vr(R,f,n,o,u,m)}}return t}var vr=class{constructor(r,e,t,i,n,s){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}},D=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(D||{});function Ar(r,e){r.sort((o,u)=>{let m=pt(o.scope,u.scope);return m!==0||(m=_t(o.parentScopes,u.parentScopes),m!==0)?m:o.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let o=r.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(i=o.foreground),o.background!==null&&(n=o.background)}let s=new Lr(e),a=new Et(t,s.getId(i),s.getId(n)),c=new br(new be(0,null,-1,0,0),[]);for(let o=0,u=r.length;o<u;o++){let m=r[o];c.insert(0,m.scope,m.parentScopes,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new ne(s,a,c)}var Lr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Pr=Object.freeze([]),be=class yt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,i,n,s){this.scopeDepth=e,this.parentScopes=t||Pr,this.fontStyle=i,this.foreground=n,this.background=s}clone(){return new yt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},br=class Ie{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[i].length;if(s!==0)return s;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,s;if(i===-1?(n=e,s=""):(n=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ie._cmpBySpecificity),t}insert(e,t,i,n,s,a){if(t===""){this._doInsertHere(e,i,n,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(o)?m=this._children[o]:(m=new Ie(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[o]=m),m.insert(e+1,u,i,n,s,a)}_doInsertHere(e,t,i,n,s){if(t===null){this._mainRule.acceptOverwrite(e,i,n,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(_t(o.parentScopes,t)===0){o.acceptOverwrite(e,i,n,s);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,s))}},$=class S{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=S.getLanguageId(e),i=S.getTokenType(e),n=S.getFontStyle(e),s=S.getForeground(e),a=S.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,s,a,c){let o=S.getLanguageId(e),u=S.getTokenType(e),m=S.containsBalancedBrackets(e)?1:0,h=S.getFontStyle(e),_=S.getForeground(e),d=S.getBackground(e);return t!==0&&(o=t),i!==8&&(u=i),n!==null&&(m=n?1:0),s!==-1&&(h=s),a!==0&&(_=a),c!==0&&(d=c),(o<<0|u<<8|m<<10|h<<11|_<<15|d<<24)>>>0}};function se(r,e){const t=[],i=Ir(r);let n=i.next();for(;n!==null;){let o=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:o}),n!==",")break;n=i.next()}return t;function s(){if(n==="-"){n=i.next();const o=s();return u=>!!o&&!o(u)}if(n==="("){n=i.next();const o=c();return n===")"&&(n=i.next()),o}if(Je(n)){const o=[];do o.push(n),n=i.next();while(Je(n));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return m=>o.every(h=>h(m))}function c(){const o=[];let u=a();for(;u&&(o.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>o.some(h=>h(m))}}function Je(r){return!!r&&!!r.match(/[\w\.:]+/)}function Ir(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function Rt(r){typeof r.dispose=="function"&&r.dispose()}var q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},Sr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Or=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},wr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new q(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const r=this.Q;this.Q=[];const e=new Or;for(const t of r)Cr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Cr(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);r instanceof q?ie({baseGrammar:s,selfGrammar:n},i):Se(r.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const c of a)i.add(new q(c))}function Se(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];oe([i],e,t)}}function ie(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&oe(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&oe(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function oe(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?ht({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&oe(i.patterns,{...e,repository:n},t);const s=i.include;if(!s)continue;const a=Tt(s);switch(a.kind){case 0:ie({...e,selfGrammar:e.baseGrammar},t);break;case 1:ie(e,t);break;case 2:Se(a.ruleName,{...e,repository:n},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:n};a.kind===4?Se(a.ruleName,o,t):ie(o,t)}else a.kind===4?t.add(new Sr(a.scopeName,a.ruleName)):t.add(new q(a.scopeName));break}}}var kr=class{kind=0},Dr=class{kind=1},Nr=class{constructor(r){this.ruleName=r}kind=2},Vr=class{constructor(r){this.scopeName=r}kind=3},xr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}kind=4};function Tt(r){if(r==="$base")return new kr;if(r==="$self")return new Dr;const e=r.indexOf("#");if(e===-1)return new Vr(r);if(e===0)return new Nr(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new xr(t,i)}}var Gr=/\\(\d+)/,Ke=/\\(\d+)/g,Mr=-1,vt=-2;var X=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=Z.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Z.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${dt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:Z.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Z.replaceCaptures(this._contentName,r,e)}},Br=class extends X{retokenizeCapturedWithRuleId;constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},jr=class extends X{_match;captures;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,null),this._match=new z(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qe=class extends X{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new J,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Oe=class extends X{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n,s,a,c,o,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=s,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=o||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const t of this.patterns)r.getRule(t).collectPatterns(r,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},ae=class extends X{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,t,i,n,s,a,c,o){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new z(a,vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new J;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new J,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},At=class b{static createCaptureRule(e,t,i,n,s){return e.registerRule(a=>new Br(t,a,i,n,s))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new jr(e.$vscodeTextmateLocation,e.id,e.name,e.match,b._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=ht({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(s,t,i))}return e.while?new ae(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,b._compileCaptures(e.whileCaptures||e.captures,t,i),b._compilePatterns(e.patterns,t,i)):new Oe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,b._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,b._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=b.getCompiledRuleId(e[a],t,i)),n[c]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=Tt(c.include);switch(u.kind){case 0:case 1:o=b.getCompiledRuleId(i[c.include],t,i);break;case 2:let m=i[u.ruleName];m&&(o=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const h=u.scopeName,_=u.kind===4?u.ruleName:null,d=t.getExternalGrammar(h,i);if(d)if(_){let p=d.repository[_];p&&(o=b.getCompiledRuleId(p,t,d.repository))}else o=b.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else o=b.getCompiledRuleId(c,t,i);if(o!==-1){const u=t.getRule(o);let m=!1;if((u instanceof Qe||u instanceof Oe||u instanceof ae)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(o)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},z=class Lt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const i=e.length;let n=0,s=[],a=!1;for(let c=0;c<i;c++)if(e.charAt(c)==="\\"&&c+1<i){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(n,c)),s.push("$(?!\\n)(?<!\\n)"),n=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,n===0?this.source=e:(s.push(e.substring(n,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Gr.test(this.source):this.hasBackReferences=!1}clone(){return new Lt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=t.map(n=>e.substring(n.start,n.end));return Ke.lastIndex=0,this.source.replace(Ke,(n,s)=>ft(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],i=[],n=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,i[s]=c,n[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="",t[s+1]="",i[s+1]="A",n[s+1]="A"):o==="G"?(e[s+1]="",t[s+1]="G",i[s+1]="",n[s+1]="G"):(e[s+1]=o,t[s+1]=o,i[s+1]=o,n[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},J=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new Xe(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new Xe(r,i,this._items.map(n=>n.ruleId))}},Xe=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
|
|
3
3
|
`)}findNextMatchSync(r,e,t){const i=this.scanner.findNextMatchSync(r,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},ve=class{constructor(r,e){this.languageId=r,this.tokenType=e}},$r=class we{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ve(e,8),this._embeddedLanguagesMatcher=new Wr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?we._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new ve(0,0);_getBasicScopeAttributes=new gt(e=>{const t=this._scopeToLanguage(e),i=this._toStandardTokenType(e);return new ve(t,i)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(we.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Wr=class{values;scopesRegExp;constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,i])=>ft(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Ye=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function Pt(r,e,t,i,n,s,a,c){const o=e.content.length;let u=!1,m=-1;if(a){const d=Ur(r,e,t,i,n,s);n=d.stack,i=d.linePos,t=d.isFirstLine,m=d.anchorPosition}const h=Date.now();for(;!u;){if(c!==0&&Date.now()-h>c)return new Ye(n,!0);_()}return new Ye(n,!1);function _(){const d=Hr(r,e,t,i,n,m);if(!d){s.produce(n,o),u=!0;return}const p=d.captureIndices,R=d.matchedRuleId,f=p&&p.length>0?p[0].end>i:!1;if(R===Mr){const E=n.getRule(r);s.produce(n,p[0].start),n=n.withContentNameScopesList(n.nameScopesList),H(r,e,t,n,s,E.endCaptures,p),s.produce(n,p[0].end);const g=n;if(n=n.parent,m=g.getAnchorPos(),!f&&g.getEnterPos()===i){n=g,s.produce(n,o),u=!0;return}}else{const E=r.getRule(R);s.produce(n,p[0].start);const g=n,y=E.getName(e.content,p),v=n.contentNameScopesList.pushAttributed(y,r);if(n=n.push(R,i,m,p[0].end===o,null,v,v),E instanceof Oe){const T=E;H(r,e,t,n,s,T.beginCaptures,p),s.produce(n,p[0].end),m=p[0].end;const O=T.getContentName(e.content,p),V=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(V),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,p))),!f&&g.hasSameRuleAs(n)){n=n.pop(),s.produce(n,o),u=!0;return}}else if(E instanceof ae){const T=E;H(r,e,t,n,s,T.beginCaptures,p),s.produce(n,p[0].end),m=p[0].end;const O=T.getContentName(e.content,p),V=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(V),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,p))),!f&&g.hasSameRuleAs(n)){n=n.pop(),s.produce(n,o),u=!0;return}}else if(H(r,e,t,n,s,E.captures,p),s.produce(n,p[0].end),n=n.pop(),!f){n=n.safePop(),s.produce(n,o),u=!0;return}}p[0].end>i&&(i=p[0].end,t=!1)}}function Ur(r,e,t,i,n,s){let a=n.beginRuleCapturedEOL?0:-1;const c=[];for(let o=n;o;o=o.pop()){const u=o.getRule(r);u instanceof ae&&c.push({rule:u,stack:o})}for(let o=c.pop();o;o=c.pop()){const{ruleScanner:u,findOptions:m}=zr(o.rule,r,o.stack.endRule,t,i===a),h=u.findNextMatchSync(e,i,m);if(h){if(h.ruleId!==vt){n=o.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(o.stack,h.captureIndices[0].start),H(r,e,t,o.stack,s,o.rule.whileCaptures,h.captureIndices),s.produce(o.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>i&&(i=h.captureIndices[0].end,t=!1))}else{n=o.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:a,isFirstLine:t}}function Hr(r,e,t,i,n,s){const a=Fr(r,e,t,i,n,s),c=r.getInjections();if(c.length===0)return a;const o=qr(c,r,e,t,i,n,s);if(!o)return a;if(!a)return o;const u=a.captureIndices[0].start,m=o.captureIndices[0].start;return m<u||o.priorityMatch&&m===u?o:a}function Fr(r,e,t,i,n,s){const a=n.getRule(r),{ruleScanner:c,findOptions:o}=bt(a,r,n.endRule,t,i===s),u=c.findNextMatchSync(e,i,o);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function qr(r,e,t,i,n,s,a){let c=Number.MAX_VALUE,o=null,u,m=0;const h=s.contentNameScopesList.getScopeNames();for(let _=0,d=r.length;_<d;_++){const p=r[_];if(!p.matcher(h))continue;const R=e.getRule(p.ruleId),{ruleScanner:f,findOptions:E}=bt(R,e,null,i,n===a),g=f.findNextMatchSync(t,n,E);if(!g)continue;const y=g.captureIndices[0].start;if(!(y>=c)&&(c=y,o=g.captureIndices,u=g.ruleId,m=p.priority,c===n))break}return o?{priorityMatch:m===-1,captureIndices:o,matchedRuleId:u}:null}function bt(r,e,t,i,n){return{ruleScanner:r.compileAG(e,t,i,n),findOptions:0}}function zr(r,e,t,i,n){return{ruleScanner:r.compileWhileAG(e,t,i,n),findOptions:0}}function H(r,e,t,i,n,s,a){if(s.length===0)return;const c=e.content,o=Math.min(s.length,a.length),u=[],m=a[0].end;for(let h=0;h<o;h++){const _=s[h];if(_===null)continue;const d=a[h];if(d.length===0)continue;if(d.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,d.start):n.produce(i,d.start),_.retokenizeCapturedWithRuleId){const R=_.getName(c,a),f=i.contentNameScopesList.pushAttributed(R,r),E=_.getContentName(c,a),g=f.pushAttributed(E,r),y=i.push(_.retokenizeCapturedWithRuleId,d.start,-1,!1,null,f,g),v=r.createOnigString(c.substring(0,d.end));Pt(r,v,t&&d.start===0,d.start,y,n,!1,0),Rt(v);continue}const p=_.getName(c,a);if(p!==null){const f=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(p,r);u.push(new Jr(f,d.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Jr=class{scopes;endPos;constructor(r,e){this.scopes=r,this.endPos=e}};function Kr(r,e,t,i,n,s,a,c){return new Xr(r,e,t,i,n,s,a,c)}function Ze(r,e,t,i,n){const s=se(e,ce),a=At.getCompiledRuleId(t,i,n.repository);for(const c of s)r.push({debugSelector:e,matcher:c.matcher,ruleId:a,grammar:n,priority:c.priority})}function ce(r,e){if(e.length<r.length)return!1;let t=0;return r.every(i=>{for(let n=t;n<e.length;n++)if(Qr(e[n],i))return t=n+1,!0;return!1})}function Qr(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var Xr=class{constructor(r,e,t,i,n,s,a,c){if(this._rootScopeName=r,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new $r(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=et(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const o of Object.keys(n)){const u=se(o,ce);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:n[o]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,i=r.lookup(t);if(i){const n=i.injections;if(n)for(let a in n)Ze(e,a,n[a],this,i);const s=this._grammarRepository.injections(t);s&&s.forEach(a=>{const c=this.getExternalGrammar(a);if(c){const o=c.injectionSelector;o&&Ze(e,o,c,this,c)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=et(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const i=this._tokenize(r,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(r,e,t=0){const i=this._tokenize(r,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(r,e,t,i){this._rootId===-1&&(this._rootId=At.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===Ce.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),h=$.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),_=this.getRule(this._rootId).getName(null,null);let d;_?d=F.createRootAndLookUpScopeName(_,h,this):d=F.createRoot("unknown",h),e=new Ce(null,this._rootId,-1,-1,!1,null,d,d)}else n=!1,e.reset();r=r+`
|
|
4
4
|
`;const s=this.createOnigString(r),a=s.content.length,c=new Zr(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),o=Pt(this,s,n,0,e,c,!0,i);return Rt(s),{lineLength:a,lineTokens:c,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function et(r,e){return r=fr(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var F=class C{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,n=e?.scopePath??null;for(const s of t)n=Te.push(n,s.scopeNames),i=new C(i,n,s.encodedTokenAttributes);return i}static createRoot(e,t){return new C(null,new Te(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const n=i.getMetadataForScope(e),s=new Te(null,e),a=i.themeProvider.themeMatch(s),c=C.mergeAttributes(t,n,a);return new C(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return C.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let n=-1,s=0,a=0;return i!==null&&(n=i.fontStyle,s=i.foregroundId,a=i.backgroundId),$.set(e,t.languageId,t.tokenType,null,n,s,a)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return C._pushAttributed(this,e,t);const i=e.split(/ /g);let n=this;for(const s of i)n=C._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,i){const n=i.getMetadataForScope(t),s=e.scopePath.push(t),a=i.themeProvider.themeMatch(s),c=C.mergeAttributes(e.tokenAttributes,n,a);return new C(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===e?t.reverse():void 0}},Ce=class x{constructor(e,t,i,n,s,a,c,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=c,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new x(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:x._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?F.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){x._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,n,s,a,c){return new x(this,e,t,i,n,s,a,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new x(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const i=F.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new x(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,F.fromExtension(i,t.contentNameScopesList))}},Yr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(r,e){this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):se(t,ce).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>se(t,ce).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},Zr=class{constructor(r,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=r?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=r?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(i=$.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(s))}if(n&&(i=$.set(i,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const t=r?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,n=this._binaryTokens.length;i<n;i++)t[i]=this._binaryTokens[i];return t}},ei=class{constructor(r,e){this._onigLib=e,this._theme=r}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,i,n){if(!this._grammars.has(r)){let s=this._rawGrammars.get(r);if(!s)return null;this._grammars.set(r,Kr(r,s,e,t,i,n,this,this._onigLib))}return this._grammars.get(r)}},ti=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ei(ne.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ne.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new Yr(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,n,s){const a=new wr(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(c=>this._loadSingleGrammar(c.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,i,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,n)}_grammarForScopeName(e,t=0,i=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,i,n,s)}},ke=Ce.NULL;const ri=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ii=/["&'<>`]/g,ni=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,si=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,oi=/[|\\{}()[\]^$+*?.]/g,tt=new WeakMap;function ai(r,e){if(r=r.replace(e.subset?ci(e.subset):ii,i),e.subset||e.escapeOnly)return r;return r.replace(ni,t).replace(si,i);function t(n,s,a){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function i(n,s,a){return e.format(n.charCodeAt(0),a.charCodeAt(s+1),e)}}function ci(r){let e=tt.get(r);return e||(e=li(r),tt.set(r,e)),e}function li(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(oi,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ui=/[\dA-Fa-f]/;function mi(r,e,t){const i="&#x"+r.toString(16).toUpperCase();return t&&e&&!ui.test(String.fromCharCode(e))?i:i+";"}const hi=/\d/;function di(r,e,t){const i="&#"+String(r);return t&&e&&!hi.test(String.fromCharCode(e))?i:i+";"}const pi=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ae={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},_i=["cent","copy","divide","gt","lt","not","para","times"],It={}.hasOwnProperty,De={};let ee;for(ee in Ae)It.call(Ae,ee)&&(De[Ae[ee]]=ee);const fi=/[^\dA-Za-z]/;function gi(r,e,t,i){const n=String.fromCharCode(r);if(It.call(De,n)){const s=De[n],a="&"+s;return t&&pi.includes(s)&&!_i.includes(s)&&(!i||e&&e!==61&&fi.test(String.fromCharCode(e)))?a:a+";"}return""}function Ei(r,e,t){let i=mi(r,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=gi(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=di(r,e,t.omitOptionalSemicolons);s.length<i.length&&(i=s)}return n&&(!t.useShortestReferences||n.length<i.length)?n:i}function j(r,e){return ai(r,Object.assign({format:Ei},e))}const yi=/^>|^->|<!--|-->|--!>|<!-$/g,Ri=[">"],Ti=["<",">"];function vi(r,e,t,i){return i.settings.bogusComments?"<?"+j(r.value,Object.assign({},i.settings.characterReferences,{subset:Ri}))+">":"<!--"+r.value.replace(yi,n)+"-->";function n(s){return j(s,Object.assign({},i.settings.characterReferences,{subset:Ti}))}}function Ai(r,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const L=Ot(1),St=Ot(-1),Li=[];function Ot(r){return e;function e(t,i,n){const s=t?t.children:Li;let a=(i||0)+r,c=s[a];if(!n)for(;c&&Ne(c);)a+=r,c=s[a];return c}}const Pi={}.hasOwnProperty;function wt(r){return e;function e(t,i,n){return Pi.call(r,t.tagName)&&r[t.tagName](t,i,n)}}const Ge=wt({body:Ii,caption:Le,colgroup:Le,dd:Ci,dt:wi,head:Le,html:bi,li:Oi,optgroup:ki,option:Di,p:Si,rp:rt,rt,tbody:Vi,td:it,tfoot:xi,th:it,thead:Ni,tr:Gi});function Le(r,e,t){const i=L(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&Ne(i.value.charAt(0)))}function bi(r,e,t){const i=L(t,e);return!i||i.type!=="comment"}function Ii(r,e,t){const i=L(t,e);return!i||i.type!=="comment"}function Si(r,e,t){const i=L(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Oi(r,e,t){const i=L(t,e);return!i||i.type==="element"&&i.tagName==="li"}function wi(r,e,t){const i=L(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Ci(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function rt(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function ki(r,e,t){const i=L(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function Di(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function Ni(r,e,t){const i=L(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Vi(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function xi(r,e,t){return!L(t,e)}function Gi(r,e,t){const i=L(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function it(r,e,t){const i=L(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Mi=wt({body:$i,colgroup:Wi,head:ji,html:Bi,tbody:Ui});function Bi(r){const e=L(r,-1);return!e||e.type!=="comment"}function ji(r){const e=new Set;for(const i of r.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=r.children[0];return!t||t.type==="element"}function $i(r){const e=L(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ne(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Wi(r,e,t){const i=St(t,e),n=L(r,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&Ge(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Ui(r,e,t){const i=St(t,e),n=L(r,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Ge(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const te={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as G,E as A,j as N,C as I,t as p,v as Y,L as j,n as k,x as U,e as Z,i as B,g as D,B as M}from"./index-C4U2p1Ac.js";const h=1,F=2,L=3,K=4,H=5,J=36,ee=37,te=38,Oe=11,oe=13;function re(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function ne(e){return e==9||e==10||e==13||e==32}let Q=null,V=null,X=0;function W(e,t){let o=e.pos+t;if(V==e&&X==o)return Q;for(;ne(e.peek(t));)t++;let O="";for(;;){let r=e.peek(t);if(!re(r))break;O+=String.fromCharCode(r),t++}return V=e,X=o,Q=O||null}function _(e,t){this.name=e,this.parent=t}const ae=new I({start:null,shift(e,t,o,O){return t==h?new _(W(O,1)||"",e):e},reduce(e,t){return t==Oe&&e?e.parent:e},reuse(e,t,o,O){let r=t.type.id;return r==h||r==oe?new _(W(O,1)||"",e):e},strict:!1}),le=new A((e,t)=>{if(e.next==60){if(e.advance(),e.next==47){e.advance();let o=W(e,0);if(!o)return e.acceptToken(H);if(t.context&&o==t.context.name)return e.acceptToken(F);for(let O=t.context;O;O=O.parent)if(O.name==o)return e.acceptToken(L,-2);e.acceptToken(K)}else if(e.next!=33&&e.next!=63)return e.acceptToken(h)}},{contextual:!0});function y(e,t){return new A(o=>{let O=0,r=t.charCodeAt(0);e:for(;!(o.next<0);o.advance(),O++)if(o.next==r){for(let a=1;a<t.length;a++)if(o.peek(a)!=t.charCodeAt(a))continue e;break}O&&o.acceptToken(e)})}const se=y(J,"-->"),ie=y(ee,"?>"),ce=y(te,"]]>"),$e=N({Text:p.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":p.angleBracket,TagName:p.tagName,"MismatchedCloseTag/TagName":[p.tagName,p.invalid],AttributeName:p.attributeName,AttributeValue:p.attributeValue,Is:p.definitionOperator,"EntityReference CharacterReference":p.character,Comment:p.blockComment,ProcessingInst:p.processingInstruction,DoctypeDecl:p.documentMeta,Cdata:p.special(p.string)}),me=G.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:ae,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[$e],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[le,se,ie,ce,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function T(e,t){let o=t&&t.getChild("TagName");return o?e.sliceString(o.from,o.to):""}function P(e,t){let o=t&&t.firstChild;return!o||o.name!="OpenTag"?"":T(e,o)}function Se(e,t,o){let O=t&&t.getChildren("Attribute").find(a=>a.from<=o&&a.to>=o),r=O&&O.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function C(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function ge(e,t){var o;let O=k(e).resolveInner(t,-1),r=null;for(let a=O;!r&&a.parent;a=a.parent)(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")&&(r=a);if(r&&(r.to>t||r.lastChild.type.isError)){let a=r.parent;if(O.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:O.from,context:a}:{type:"openTag",from:O.from,context:C(a)};if(O.name=="AttributeName")return{type:"attrName",from:O.from,context:r};if(O.name=="AttributeValue")return{type:"attrValue",from:O.from,context:r};let s=O==r||O.name=="Attribute"?O.childBefore(t):O;return s?.name=="StartTag"?{type:"openTag",from:t,context:C(a)}:s?.name=="StartCloseTag"&&s.to<=t?{type:"closeTag",from:t,context:a}:s?.name=="Is"?{type:"attrValue",from:t,context:r}:s?{type:"attrName",from:t,context:r}:null}else if(O.name=="StartCloseTag")return{type:"closeTag",from:t,context:O.parent};for(;O.parent&&O.to==t&&!(!((o=O.lastChild)===null||o===void 0)&&o.type.isError);)O=O.parent;return O.name=="Element"||O.name=="Text"||O.name=="Document"?{type:"tag",from:t,context:O.name=="Element"?O:C(O)}:null}class ue{constructor(t,o,O){this.attrs=o,this.attrValues=O,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(r=>({label:r,type:"text"})):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function E(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function R(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function pe(e,t){let o=[],O=[],r=Object.create(null);for(let n of t){let m=E(n);o.push(m),n.global&&O.push(m),n.values&&(r[n.name]=n.values.map(R))}let a=[],s=[],f=Object.create(null);for(let n of e){let m=O,c=r;n.attributes&&(m=m.concat(n.attributes.map(l=>typeof l=="string"?o.find(d=>d.label==l)||{label:l,type:"property"}:(l.values&&(c==r&&(c=Object.create(c)),c[l.name]=l.values.map(R)),E(l)))));let u=new ue(n,m,c);f[u.name]=u,a.push(u),n.top&&s.push(u)}s.length||(s=a);for(let n=0;n<a.length;n++){let m=e[n],c=a[n];if(m.children)for(let u of m.children)f[u]&&c.children.push(f[u]);else c.children=a}return n=>{var m;let{doc:c}=n.state,u=ge(n.state,n.pos);if(!u||u.type=="tag"&&!n.explicit)return null;let{type:l,from:d,context:S}=u;if(l=="openTag"){let i=s,$=P(c,S);if($){let g=f[$];i=g?.children||a}return{from:d,options:i.map(g=>g.completion),validFor:b}}else if(l=="closeTag"){let i=P(c,S);return i?{from:d,to:n.pos+(c.sliceString(n.pos,n.pos+1)==">"?1:0),options:[((m=f[i])===null||m===void 0?void 0:m.closeNameCompletion)||{label:i+">",type:"type"}],validFor:b}:null}else if(l=="attrName"){let i=f[T(c,S)];return{from:d,options:i?.attrs||O,validFor:b}}else if(l=="attrValue"){let i=Se(c,S,d);if(!i)return null;let $=f[T(c,S)],g=($?.attrValues||r)[i];return!g||!g.length?null:{from:d,to:n.pos+(c.sliceString(n.pos,n.pos+1)=='"'?1:0),options:g,validFor:/^"[^"]*"?$/}}else if(l=="tag"){let i=P(c,S),$=f[i],g=[],q=S&&S.lastChild;i&&(!q||q.name!="CloseTag"||T(c,q)!=i)&&g.push($?$.closeCompletion:{label:"</"+i+">",type:"type",boost:2});let v=g.concat(($?.children||(S?a:s)).map(x=>x.openCompletion));if(S&&$?.text.length){let x=S.firstChild;x.to>n.pos-20&&!/\S/.test(n.state.sliceDoc(x.to,n.pos))&&(v=v.concat($.text))}return{from:d,options:v,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const w=j.define({name:"xml",parser:me.configure({props:[B.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),D.add({Element(e){let t=e.firstChild,o=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:o.name=="CloseTag"?o.from:e.to}}}),M.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function qe(e={}){let t=[w.data.of({autocomplete:pe(e.elements||[],e.attributes||[])})];return e.autoCloseTags!==!1&&t.push(fe),new Z(w,t)}function z(e,t,o=e.length){if(!t)return"";let O=t.firstChild,r=O&&O.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,o)):""}const fe=Y.inputHandler.of((e,t,o,O,r)=>{if(e.composing||e.state.readOnly||t!=o||O!=">"&&O!="/"||!w.isActiveAt(e.state,t,-1))return!1;let a=r(),{state:s}=a,f=s.changeByRange(n=>{var m,c,u;let{head:l}=n,d=s.doc.sliceString(l-1,l)==O,S=k(s).resolveInner(l,-1),i;if(d&&O==">"&&S.name=="EndTag"){let $=S.parent;if(((c=(m=$.parent)===null||m===void 0?void 0:m.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(i=z(s.doc,$.parent,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`</${i}>`;return{range:n,changes:{from:l,to:g,insert:q}}}}else if(d&&O=="/"&&S.name=="StartCloseTag"){let $=S.parent;if(S.from==l-2&&((u=$.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(i=z(s.doc,$,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`${i}>`;return{range:U.cursor(l+q.length,-1),changes:{from:l,to:g,insert:q}}}}return{range:n}});return f.changes.empty?!1:(e.dispatch([a,s.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{fe as autoCloseTags,pe as completeFromSchema,qe as xml,w as xmlLanguage};
|
|
1
|
+
import{d as G,E as A,j as N,C as I,t as p,v as Y,L as j,n as k,x as U,e as Z,i as B,g as D,B as M}from"./index-DwBFE1sF.js";const h=1,F=2,L=3,K=4,H=5,J=36,ee=37,te=38,Oe=11,oe=13;function re(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function ne(e){return e==9||e==10||e==13||e==32}let Q=null,V=null,X=0;function W(e,t){let o=e.pos+t;if(V==e&&X==o)return Q;for(;ne(e.peek(t));)t++;let O="";for(;;){let r=e.peek(t);if(!re(r))break;O+=String.fromCharCode(r),t++}return V=e,X=o,Q=O||null}function _(e,t){this.name=e,this.parent=t}const ae=new I({start:null,shift(e,t,o,O){return t==h?new _(W(O,1)||"",e):e},reduce(e,t){return t==Oe&&e?e.parent:e},reuse(e,t,o,O){let r=t.type.id;return r==h||r==oe?new _(W(O,1)||"",e):e},strict:!1}),le=new A((e,t)=>{if(e.next==60){if(e.advance(),e.next==47){e.advance();let o=W(e,0);if(!o)return e.acceptToken(H);if(t.context&&o==t.context.name)return e.acceptToken(F);for(let O=t.context;O;O=O.parent)if(O.name==o)return e.acceptToken(L,-2);e.acceptToken(K)}else if(e.next!=33&&e.next!=63)return e.acceptToken(h)}},{contextual:!0});function y(e,t){return new A(o=>{let O=0,r=t.charCodeAt(0);e:for(;!(o.next<0);o.advance(),O++)if(o.next==r){for(let a=1;a<t.length;a++)if(o.peek(a)!=t.charCodeAt(a))continue e;break}O&&o.acceptToken(e)})}const se=y(J,"-->"),ie=y(ee,"?>"),ce=y(te,"]]>"),$e=N({Text:p.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":p.angleBracket,TagName:p.tagName,"MismatchedCloseTag/TagName":[p.tagName,p.invalid],AttributeName:p.attributeName,AttributeValue:p.attributeValue,Is:p.definitionOperator,"EntityReference CharacterReference":p.character,Comment:p.blockComment,ProcessingInst:p.processingInstruction,DoctypeDecl:p.documentMeta,Cdata:p.special(p.string)}),me=G.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:ae,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[$e],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[le,se,ie,ce,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function T(e,t){let o=t&&t.getChild("TagName");return o?e.sliceString(o.from,o.to):""}function P(e,t){let o=t&&t.firstChild;return!o||o.name!="OpenTag"?"":T(e,o)}function Se(e,t,o){let O=t&&t.getChildren("Attribute").find(a=>a.from<=o&&a.to>=o),r=O&&O.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function C(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function ge(e,t){var o;let O=k(e).resolveInner(t,-1),r=null;for(let a=O;!r&&a.parent;a=a.parent)(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")&&(r=a);if(r&&(r.to>t||r.lastChild.type.isError)){let a=r.parent;if(O.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:O.from,context:a}:{type:"openTag",from:O.from,context:C(a)};if(O.name=="AttributeName")return{type:"attrName",from:O.from,context:r};if(O.name=="AttributeValue")return{type:"attrValue",from:O.from,context:r};let s=O==r||O.name=="Attribute"?O.childBefore(t):O;return s?.name=="StartTag"?{type:"openTag",from:t,context:C(a)}:s?.name=="StartCloseTag"&&s.to<=t?{type:"closeTag",from:t,context:a}:s?.name=="Is"?{type:"attrValue",from:t,context:r}:s?{type:"attrName",from:t,context:r}:null}else if(O.name=="StartCloseTag")return{type:"closeTag",from:t,context:O.parent};for(;O.parent&&O.to==t&&!(!((o=O.lastChild)===null||o===void 0)&&o.type.isError);)O=O.parent;return O.name=="Element"||O.name=="Text"||O.name=="Document"?{type:"tag",from:t,context:O.name=="Element"?O:C(O)}:null}class ue{constructor(t,o,O){this.attrs=o,this.attrValues=O,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(r=>({label:r,type:"text"})):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function E(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function R(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function pe(e,t){let o=[],O=[],r=Object.create(null);for(let n of t){let m=E(n);o.push(m),n.global&&O.push(m),n.values&&(r[n.name]=n.values.map(R))}let a=[],s=[],f=Object.create(null);for(let n of e){let m=O,c=r;n.attributes&&(m=m.concat(n.attributes.map(l=>typeof l=="string"?o.find(d=>d.label==l)||{label:l,type:"property"}:(l.values&&(c==r&&(c=Object.create(c)),c[l.name]=l.values.map(R)),E(l)))));let u=new ue(n,m,c);f[u.name]=u,a.push(u),n.top&&s.push(u)}s.length||(s=a);for(let n=0;n<a.length;n++){let m=e[n],c=a[n];if(m.children)for(let u of m.children)f[u]&&c.children.push(f[u]);else c.children=a}return n=>{var m;let{doc:c}=n.state,u=ge(n.state,n.pos);if(!u||u.type=="tag"&&!n.explicit)return null;let{type:l,from:d,context:S}=u;if(l=="openTag"){let i=s,$=P(c,S);if($){let g=f[$];i=g?.children||a}return{from:d,options:i.map(g=>g.completion),validFor:b}}else if(l=="closeTag"){let i=P(c,S);return i?{from:d,to:n.pos+(c.sliceString(n.pos,n.pos+1)==">"?1:0),options:[((m=f[i])===null||m===void 0?void 0:m.closeNameCompletion)||{label:i+">",type:"type"}],validFor:b}:null}else if(l=="attrName"){let i=f[T(c,S)];return{from:d,options:i?.attrs||O,validFor:b}}else if(l=="attrValue"){let i=Se(c,S,d);if(!i)return null;let $=f[T(c,S)],g=($?.attrValues||r)[i];return!g||!g.length?null:{from:d,to:n.pos+(c.sliceString(n.pos,n.pos+1)=='"'?1:0),options:g,validFor:/^"[^"]*"?$/}}else if(l=="tag"){let i=P(c,S),$=f[i],g=[],q=S&&S.lastChild;i&&(!q||q.name!="CloseTag"||T(c,q)!=i)&&g.push($?$.closeCompletion:{label:"</"+i+">",type:"type",boost:2});let v=g.concat(($?.children||(S?a:s)).map(x=>x.openCompletion));if(S&&$?.text.length){let x=S.firstChild;x.to>n.pos-20&&!/\S/.test(n.state.sliceDoc(x.to,n.pos))&&(v=v.concat($.text))}return{from:d,options:v,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const w=j.define({name:"xml",parser:me.configure({props:[B.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),D.add({Element(e){let t=e.firstChild,o=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:o.name=="CloseTag"?o.from:e.to}}}),M.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function qe(e={}){let t=[w.data.of({autocomplete:pe(e.elements||[],e.attributes||[])})];return e.autoCloseTags!==!1&&t.push(fe),new Z(w,t)}function z(e,t,o=e.length){if(!t)return"";let O=t.firstChild,r=O&&O.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,o)):""}const fe=Y.inputHandler.of((e,t,o,O,r)=>{if(e.composing||e.state.readOnly||t!=o||O!=">"&&O!="/"||!w.isActiveAt(e.state,t,-1))return!1;let a=r(),{state:s}=a,f=s.changeByRange(n=>{var m,c,u;let{head:l}=n,d=s.doc.sliceString(l-1,l)==O,S=k(s).resolveInner(l,-1),i;if(d&&O==">"&&S.name=="EndTag"){let $=S.parent;if(((c=(m=$.parent)===null||m===void 0?void 0:m.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(i=z(s.doc,$.parent,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`</${i}>`;return{range:n,changes:{from:l,to:g,insert:q}}}}else if(d&&O=="/"&&S.name=="StartCloseTag"){let $=S.parent;if(S.from==l-2&&((u=$.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(i=z(s.doc,$,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`${i}>`;return{range:U.cursor(l+q.length,-1),changes:{from:l,to:g,insert:q}}}}return{range:n}});return f.changes.empty?!1:(e.dispatch([a,s.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{fe as autoCloseTags,pe as completeFromSchema,qe as xml,w as xmlLanguage};
|