mastra 1.0.0-beta.10 → 1.0.0-beta.11
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 +16 -0
- package/dist/{chunk-THUIZ4X5.js → chunk-7KQSE34M.js} +15 -12
- package/dist/chunk-7KQSE34M.js.map +1 -0
- package/dist/commands/actions/init-project.d.ts.map +1 -1
- package/dist/commands/build/BuildBundler.d.ts +2 -0
- package/dist/commands/build/BuildBundler.d.ts.map +1 -1
- package/dist/commands/create/create.js +1 -1
- package/dist/commands/dev/DevBundler.d.ts.map +1 -1
- package/dist/commands/init/utils.d.ts +1 -0
- package/dist/commands/init/utils.d.ts.map +1 -1
- package/dist/commands/utils.d.ts +6 -0
- package/dist/commands/utils.d.ts.map +1 -1
- package/dist/index.js +18 -12
- package/dist/index.js.map +1 -1
- package/dist/playground/assets/{abap-FIXVzycL.js → abap-CJwFGTKJ.js} +1 -1
- package/dist/playground/assets/{abnf-By4-uL43.js → abnf-eFeSOc-x.js} +1 -1
- package/dist/playground/assets/{actionscript-9f4cLMp1.js → actionscript-DoGBpwFx.js} +1 -1
- package/dist/playground/assets/{ada-HkG7d5Qx.js → ada-CRm4GWU1.js} +1 -1
- package/dist/playground/assets/{agda-NVUGKSBX.js → agda-B-c4TZxz.js} +1 -1
- package/dist/playground/assets/{al-B1SY5f_t.js → al-CxY7nOhg.js} +1 -1
- package/dist/playground/assets/{antlr4-CwEy4TSJ.js → antlr4-BZKwxeAX.js} +1 -1
- package/dist/playground/assets/{apacheconf-DbL_4DCB.js → apacheconf-C5V0rw6Q.js} +1 -1
- package/dist/playground/assets/{apex-4a8yF-pY.js → apex-0njeTMa6.js} +1 -1
- package/dist/playground/assets/{apl-Dv69rce6.js → apl-C4DCDMU6.js} +1 -1
- package/dist/playground/assets/{applescript-CEJtb6gc.js → applescript-CsrYtELE.js} +1 -1
- package/dist/playground/assets/{aql-BHV5TqzT.js → aql-eHF3GfT4.js} +1 -1
- package/dist/playground/assets/{arduino-CPHnVaLq.js → arduino-B5vgT0nE.js} +1 -1
- package/dist/playground/assets/{arff-CBv-0Dr0.js → arff-BnFuUJLC.js} +1 -1
- package/dist/playground/assets/{asciidoc-BcbhqDMd.js → asciidoc-CErEFI0I.js} +1 -1
- package/dist/playground/assets/{asm6502-DR7DA_kd.js → asm6502-mct3H-RS.js} +1 -1
- package/dist/playground/assets/{asmatmel-CUyodlOr.js → asmatmel-C_u8aGL_.js} +1 -1
- package/dist/playground/assets/{aspnet-CIEFyrfT.js → aspnet-DyV3dj5R.js} +1 -1
- package/dist/playground/assets/{autohotkey-Bph4eoZz.js → autohotkey-xhVzAbnz.js} +1 -1
- package/dist/playground/assets/{autoit-C9go9SrR.js → autoit-DLoKUEWF.js} +1 -1
- package/dist/playground/assets/{avisynth-DmV3YHH-.js → avisynth-TSWI4XjF.js} +1 -1
- package/dist/playground/assets/{avro-idl-DFfE3que.js → avro-idl-DN4KtQRa.js} +1 -1
- package/dist/playground/assets/{bash-jmeqaWHv.js → bash-bg8SxINF.js} +1 -1
- package/dist/playground/assets/{basic-Bd0Xvv0J.js → basic-CdHFID1b.js} +1 -1
- package/dist/playground/assets/{batch-BuRRqR93.js → batch-PN35Z_q3.js} +1 -1
- package/dist/playground/assets/{bbcode-Bj1xDsRH.js → bbcode-Cfj_BGSF.js} +1 -1
- package/dist/playground/assets/{bicep-sGbUQydi.js → bicep-DMg2juey.js} +1 -1
- package/dist/playground/assets/{birb-Jvsj8R5K.js → birb-Bs3kCk7O.js} +1 -1
- package/dist/playground/assets/{bison-CvpRrxL5.js → bison-CWFiEETg.js} +1 -1
- package/dist/playground/assets/{bnf-D4J_7g2u.js → bnf-CK_lwvqD.js} +1 -1
- package/dist/playground/assets/{brainfuck-B8AoObrn.js → brainfuck-X2mI1C9r.js} +1 -1
- package/dist/playground/assets/{brightscript-BAsP5KY7.js → brightscript-C7Vtb5Fp.js} +1 -1
- package/dist/playground/assets/{bro-D3dpujDL.js → bro-BoJLE4PD.js} +1 -1
- package/dist/playground/assets/{bsl-B8C16WaG.js → bsl-DyA6wnfN.js} +1 -1
- package/dist/playground/assets/{c-DhcBTJYa.js → c-BFU6ROxR.js} +1 -1
- package/dist/playground/assets/{cfscript-hJ_jcmxb.js → cfscript-wyswjGOg.js} +1 -1
- package/dist/playground/assets/{chaiscript-BewoSnZY.js → chaiscript-CKpj-wqw.js} +1 -1
- package/dist/playground/assets/{chunk-55VPMN3N-Dhe3ufQx.js → chunk-55VPMN3N-C1oeJ23c.js} +1 -1
- package/dist/playground/assets/{cil-BFlkBlAA.js → cil-CBpLMuTj.js} +1 -1
- package/dist/playground/assets/{clike-BVgoTod2.js → clike-DZxwlIAs.js} +1 -1
- package/dist/playground/assets/{clojure-DKF4IG7_.js → clojure-CILFjsHB.js} +1 -1
- package/dist/playground/assets/{cmake-f4bHlxfx.js → cmake-BqE_b4vJ.js} +1 -1
- package/dist/playground/assets/{cobol-b6YzEyDG.js → cobol-CweJtlIg.js} +1 -1
- package/dist/playground/assets/{coffeescript-CKcbXY2Y.js → coffeescript-BaZJW614.js} +1 -1
- package/dist/playground/assets/{concurnas-CDvC9TA8.js → concurnas-BnDv3B2V.js} +1 -1
- package/dist/playground/assets/{coq-DMsew7Ej.js → coq-ZuPXEAx5.js} +1 -1
- package/dist/playground/assets/{core-CDJBBCPO.js → core-CUEtPI_q.js} +1 -1
- package/dist/playground/assets/{cpp-XJRt1avb.js → cpp-DlJlxXOl.js} +1 -1
- package/dist/playground/assets/{crystal-D9QO3tZT.js → crystal-Sfc5-fLA.js} +1 -1
- package/dist/playground/assets/{csharp-Bc6Ynmxy.js → csharp-B1NYLsc_.js} +1 -1
- package/dist/playground/assets/{cshtml-D9djiSYy.js → cshtml-Cco4Hkc-.js} +1 -1
- package/dist/playground/assets/{csp-CRBEH-GS.js → csp-wty_f-b4.js} +1 -1
- package/dist/playground/assets/{css-Dx6HjU9u.js → css-DfztekPW.js} +1 -1
- package/dist/playground/assets/{css-extras-wjWeiD_E.js → css-extras-pLNnG41i.js} +1 -1
- package/dist/playground/assets/{csv-DyxK3wmT.js → csv-BQL5sipt.js} +1 -1
- package/dist/playground/assets/{cypher-Cc4XfOy_.js → cypher-DBe-76hY.js} +1 -1
- package/dist/playground/assets/{d-CsrhlVR-.js → d-DXCAO4Rn.js} +1 -1
- package/dist/playground/assets/{dart-sJXfdvpC.js → dart-BU0bJvrS.js} +1 -1
- package/dist/playground/assets/{dataweave-wF6LdyMy.js → dataweave-yaeFBEbN.js} +1 -1
- package/dist/playground/assets/{dax-SZe2SxBb.js → dax-CTh7dEt1.js} +1 -1
- package/dist/playground/assets/{dhall-C-ZT_se_.js → dhall-BAuOYHTv.js} +1 -1
- package/dist/playground/assets/{diff-XkG0B6dy.js → diff-DhEor1ma.js} +1 -1
- package/dist/playground/assets/{django-CNVE53kn.js → django-CbqBp4xl.js} +1 -1
- package/dist/playground/assets/{dns-zone-file-DyHwwn2-.js → dns-zone-file-_we63YQA.js} +1 -1
- package/dist/playground/assets/{docker-CtPL61Su.js → docker-CXbYgHQG.js} +1 -1
- package/dist/playground/assets/{dot-bT1rIhkX.js → dot-DXETRXuk.js} +1 -1
- package/dist/playground/assets/{ebnf-BBQkb-4j.js → ebnf-CNkdULZ1.js} +1 -1
- package/dist/playground/assets/{editorconfig-bZGzi58w.js → editorconfig-BmdB-qOn.js} +1 -1
- package/dist/playground/assets/{eiffel-DdiSXgQa.js → eiffel-C-ls-tDr.js} +1 -1
- package/dist/playground/assets/{ejs-BZ6XIneR.js → ejs-D7YwndJr.js} +1 -1
- package/dist/playground/assets/{elixir-zMJsNcjN.js → elixir-cZrgJKwV.js} +1 -1
- package/dist/playground/assets/{elm-lbmKP8Yv.js → elm-CzV3RLjK.js} +1 -1
- package/dist/playground/assets/{erb-CU_MBiRT.js → erb-DaK0YCWi.js} +1 -1
- package/dist/playground/assets/{erlang-DkHZ8fiG.js → erlang-Dxpchf7W.js} +1 -1
- package/dist/playground/assets/{etlua-MlIeAg7x.js → etlua-ii7PsKcS.js} +1 -1
- package/dist/playground/assets/{excel-formula-D6MkfBk0.js → excel-formula-Bx4LZm3l.js} +1 -1
- package/dist/playground/assets/{factor-DpxrPjE8.js → factor-5y1vzMQW.js} +1 -1
- package/dist/playground/assets/{false-DU0s4ntm.js → false-DbtIPtli.js} +1 -1
- package/dist/playground/assets/{firestore-security-rules-BZSFJQaQ.js → firestore-security-rules-IqujXJmX.js} +1 -1
- package/dist/playground/assets/{flow-D3a2LgHE.js → flow-DXMPYIyi.js} +1 -1
- package/dist/playground/assets/{fortran-iBT8UWOX.js → fortran-Bh5RNOX-.js} +1 -1
- package/dist/playground/assets/{fsharp-DXXWRguP.js → fsharp-Blognd2Q.js} +1 -1
- package/dist/playground/assets/{ftl-DovPr19-.js → ftl-CGppTBA4.js} +1 -1
- package/dist/playground/assets/{gap-PZRisdYB.js → gap-C85tevss.js} +1 -1
- package/dist/playground/assets/{gcode-ChgV_KCF.js → gcode-BD5-bSAv.js} +1 -1
- package/dist/playground/assets/{gdscript-Cy8Xk01F.js → gdscript-BILcuCfO.js} +1 -1
- package/dist/playground/assets/{gedcom-oQpcZB2I.js → gedcom-DQrzzEWK.js} +1 -1
- package/dist/playground/assets/{gherkin-KCacYXwp.js → gherkin-wJK_o7r4.js} +1 -1
- package/dist/playground/assets/{git-CG8SgFBW.js → git-B6D-hjLc.js} +1 -1
- package/dist/playground/assets/{glsl-B1Qtewh3.js → glsl-CMZxxayq.js} +1 -1
- package/dist/playground/assets/{gml-CZv1TPN3.js → gml-D9ZMZU4Q.js} +1 -1
- package/dist/playground/assets/{gn-CFD0oOaJ.js → gn-BEPdF-St.js} +1 -1
- package/dist/playground/assets/{go-BDhbzzZQ.js → go-D04C2ZTh.js} +1 -1
- package/dist/playground/assets/{go-module-TQV2JXyL.js → go-module-51Z_-SkJ.js} +1 -1
- package/dist/playground/assets/{graphql-C8FTbJQM.js → graphql-Dk_FINZh.js} +1 -1
- package/dist/playground/assets/{groovy-vFnsC5L9.js → groovy-CdhyTq2a.js} +1 -1
- package/dist/playground/assets/{haml-BldrZnyA.js → haml-D1M5N4na.js} +1 -1
- package/dist/playground/assets/{handlebars-Cl4d1OSC.js → handlebars-AzHz4DvV.js} +1 -1
- package/dist/playground/assets/{haskell-k5R857Zs.js → haskell-Bo6pP_s3.js} +1 -1
- package/dist/playground/assets/{haxe-x5eoD49s.js → haxe-Vd_PAi9i.js} +1 -1
- package/dist/playground/assets/{hcl-mSl8xedx.js → hcl-D6c0o6iC.js} +1 -1
- package/dist/playground/assets/{hlsl-9lMa_1xq.js → hlsl-eRfp1aUO.js} +1 -1
- package/dist/playground/assets/{hoon-YYkqqes1.js → hoon-DZi3K3H7.js} +1 -1
- package/dist/playground/assets/{hpkp-CUrVQJor.js → hpkp-CdZarZCF.js} +1 -1
- package/dist/playground/assets/{hsts-DwVBB0lW.js → hsts-D4BD9YLe.js} +1 -1
- package/dist/playground/assets/{http-DglbIM32.js → http-DbaBJkSk.js} +1 -1
- package/dist/playground/assets/{ichigojam-DWa0cNxX.js → ichigojam-DAd64XM0.js} +1 -1
- package/dist/playground/assets/{icon-DW8v1-dE.js → icon-BHZ0vSKt.js} +1 -1
- package/dist/playground/assets/{icu-message-format-CIk1tr7R.js → icu-message-format-CZj6pn2p.js} +1 -1
- package/dist/playground/assets/{idris-CsroogRC.js → idris-5y7SFbWf.js} +1 -1
- package/dist/playground/assets/{iecst-Co3M2_Yi.js → iecst-BCh42SZ5.js} +1 -1
- package/dist/playground/assets/{ignore-oLK-8Ahh.js → ignore-DJ_ljxRN.js} +1 -1
- package/dist/playground/assets/{index-CL31sTuI.js → index--Xd5_LxW.js} +1 -1
- package/dist/playground/assets/{index-B3K3E7lh.js → index-23_lqRUX.js} +1 -1
- package/dist/playground/assets/{index-DrTrdtE8.js → index-B_fKlnxR.js} +1 -1
- package/dist/playground/assets/{index-BBzWmVlV.js → index-Bk_V5oPp.js} +1 -1
- package/dist/playground/assets/{index-DSR-RUmF.js → index-BqTF8nWM.js} +1 -1
- package/dist/playground/assets/{index-l0uyD7k6.js → index-CDSmzbvh.js} +1 -1
- package/dist/playground/assets/{index-DD-4x9Lc.js → index-CG01XrOQ.js} +1 -1
- package/dist/playground/assets/{index-CdMDwMv2.js → index-CdgQ1vq1.js} +1 -1
- package/dist/playground/assets/{index-CbIcfWVl.js → index-CltxTcY1.js} +1 -1
- package/dist/playground/assets/{index-DKux1Dny.js → index-Ct-plkrg.js} +1 -1
- package/dist/playground/assets/{index-DRjE9_iO.js → index-Cuh9fR7m.js} +1 -1
- package/dist/playground/assets/{index-TeIAN1tr.js → index-CxV7aUGx.js} +1 -1
- package/dist/playground/assets/{index-Bn0E-nQM.js → index-D5i6_fvR.js} +1 -1
- package/dist/playground/assets/{index-DbrLwC0Y.js → index-DMtxF8a1.js} +1 -1
- package/dist/playground/assets/{index-8uXMhpQm.js → index-DW8tOucs.js} +1 -1
- package/dist/playground/assets/{index-DWf13Ibp.js → index-DkmbD2Sj.js} +1 -1
- package/dist/playground/assets/{index-q01yofCI.js → index-DsYDQQoV.js} +1 -1
- package/dist/playground/assets/{index-D1KvEziA.js → index-iRsIrQII.js} +1 -1
- package/dist/playground/assets/{inform7-CbjNwYtR.js → inform7-BJidq6IR.js} +1 -1
- package/dist/playground/assets/{ini-3heMRyW6.js → ini-Bqf0nETe.js} +1 -1
- package/dist/playground/assets/{io-CvfxPic_.js → io-uaFSsFn1.js} +1 -1
- package/dist/playground/assets/{j-C98YOhah.js → j-D_yi-KhX.js} +1 -1
- package/dist/playground/assets/{java-DhQhApxl.js → java-8cjCfiMg.js} +1 -1
- package/dist/playground/assets/{javadoc-Cnp8Sbaz.js → javadoc-DOaMCabB.js} +1 -1
- package/dist/playground/assets/{javadoclike-zr3NJLJi.js → javadoclike-BMT9dcby.js} +1 -1
- package/dist/playground/assets/{javascript-PUcqH7ZS.js → javascript-C8tGhSz9.js} +1 -1
- package/dist/playground/assets/{javastacktrace-C6l4ub9L.js → javastacktrace-C_CkYov7.js} +1 -1
- package/dist/playground/assets/{jexl-DNeXcm49.js → jexl-CbQ7Qk45.js} +1 -1
- package/dist/playground/assets/{jolie-zoTOW02A.js → jolie-DvhmIUOd.js} +1 -1
- package/dist/playground/assets/{jq-Ca0CrUyy.js → jq--RYs7ktp.js} +1 -1
- package/dist/playground/assets/{js-extras-B4r4kSxG.js → js-extras-C4oAwhWv.js} +1 -1
- package/dist/playground/assets/{js-templates-DAlwvA0o.js → js-templates-rt6-YP4z.js} +1 -1
- package/dist/playground/assets/{jsdoc-DjsiXAM4.js → jsdoc-DdAqblVo.js} +1 -1
- package/dist/playground/assets/{json-CLk2Yhfg.js → json-Dza_KfzY.js} +1 -1
- package/dist/playground/assets/{json5-DcU7maja.js → json5-f8BntBNB.js} +1 -1
- package/dist/playground/assets/{jsonp-DpVFheql.js → jsonp-C-MHXva_.js} +1 -1
- package/dist/playground/assets/{jsstacktrace-DgyGl8Rf.js → jsstacktrace-Ba9txAO0.js} +1 -1
- package/dist/playground/assets/{jsx-BTbGatd0.js → jsx-ZPSFhqMp.js} +1 -1
- package/dist/playground/assets/{julia--GYy8oeg.js → julia-IBRaKRNZ.js} +1 -1
- package/dist/playground/assets/{keepalived-5vf1JhH_.js → keepalived-CY3WKK5F.js} +1 -1
- package/dist/playground/assets/{keyman-IFl0jfnx.js → keyman-CwRnXFBy.js} +1 -1
- package/dist/playground/assets/{kotlin-9LEEP8JX.js → kotlin-u-oHBm9q.js} +1 -1
- package/dist/playground/assets/{kumir-DWRlydVK.js → kumir-U0GRBGYP.js} +1 -1
- package/dist/playground/assets/{kusto-BFXdehEL.js → kusto-C8KSAZql.js} +1 -1
- package/dist/playground/assets/{latex-Di49YGCi.js → latex-CgiSon14.js} +1 -1
- package/dist/playground/assets/{latte-Dvhdt96y.js → latte-CrnUBWIR.js} +1 -1
- package/dist/playground/assets/{less-D0HobN9c.js → less-DedHCcHC.js} +1 -1
- package/dist/playground/assets/{lilypond-B6-c7NJu.js → lilypond-BMzUmbnE.js} +1 -1
- package/dist/playground/assets/{liquid-DchZzf2C.js → liquid-DTVt5oNx.js} +1 -1
- package/dist/playground/assets/{lisp-CYvk8xUV.js → lisp-CjjDundB.js} +1 -1
- package/dist/playground/assets/{livescript-DnXQ3Cts.js → livescript-CpzGZUmo.js} +1 -1
- package/dist/playground/assets/{llvm-DnSbNag3.js → llvm-CZo-hm8f.js} +1 -1
- package/dist/playground/assets/{log-27FalpNh.js → log-rLEQIZO2.js} +1 -1
- package/dist/playground/assets/{lolcode-dtWdLdKK.js → lolcode-CnKhefWC.js} +1 -1
- package/dist/playground/assets/{lua-DOG-z0SQ.js → lua-DDcS5kh6.js} +1 -1
- package/dist/playground/assets/{magma-tgLSM-Bu.js → magma-B9H7ET2q.js} +1 -1
- package/dist/playground/assets/{main-B4eMybNm.js → main-DaP_siXn.js} +308 -312
- package/dist/playground/assets/{makefile-2tBsxb4I.js → makefile-CoVWmlWM.js} +1 -1
- package/dist/playground/assets/{markdown-Cq6fg4gF.js → markdown-XJNzj2_L.js} +1 -1
- package/dist/playground/assets/{markup-CB5PvA0c.js → markup-CFYYx7VM.js} +1 -1
- package/dist/playground/assets/{markup-templating-2yvSgZUf.js → markup-templating--fAtSFK8.js} +1 -1
- package/dist/playground/assets/{matlab-6PZ6jdlZ.js → matlab-DPQIo5-2.js} +1 -1
- package/dist/playground/assets/{maxscript-Bw9FpgtC.js → maxscript-CTaWOUQ-.js} +1 -1
- package/dist/playground/assets/{mel-CDFYe0Vs.js → mel-yxVOtXBS.js} +1 -1
- package/dist/playground/assets/{mermaid-DWIhjMoS.js → mermaid-DIYxxifP.js} +1 -1
- package/dist/playground/assets/{mizar-C9oC8urs.js → mizar-XZoiwI6o.js} +1 -1
- package/dist/playground/assets/{mongodb-CmAe8j6w.js → mongodb-Bo9Lcd7z.js} +1 -1
- package/dist/playground/assets/{monkey-CJlsplfV.js → monkey-qe0WMqdZ.js} +1 -1
- package/dist/playground/assets/{moonscript-D_MHIf4p.js → moonscript-C6RD6LYn.js} +1 -1
- package/dist/playground/assets/{n1ql-Dx5j-v-O.js → n1ql-CdgWROrf.js} +1 -1
- package/dist/playground/assets/{n4js-BMJanWSU.js → n4js-Dw5l6gtf.js} +1 -1
- package/dist/playground/assets/{nand2tetris-hdl-B2HwHziQ.js → nand2tetris-hdl-CfxaNntP.js} +1 -1
- package/dist/playground/assets/{naniscript-ZwQpPjaD.js → naniscript-BP4VsrBB.js} +1 -1
- package/dist/playground/assets/{nasm-tWtetAV-.js → nasm-BxdWPxnQ.js} +1 -1
- package/dist/playground/assets/{neon-CoiFX-XW.js → neon-tpNj_2Lo.js} +1 -1
- package/dist/playground/assets/{nevod-_iJ0mW3A.js → nevod-T-6CQnBp.js} +1 -1
- package/dist/playground/assets/{nginx-Bbr-hTPn.js → nginx-Adh5CO7U.js} +1 -1
- package/dist/playground/assets/{nim-B-Oqihq4.js → nim-DWShgdyW.js} +1 -1
- package/dist/playground/assets/{nix-DYFkGjrM.js → nix-Dygd-w1o.js} +1 -1
- package/dist/playground/assets/{nsis-BXCKQAg-.js → nsis-ZWaj1FEt.js} +1 -1
- package/dist/playground/assets/{objectivec-BM9MCIgp.js → objectivec-C0aGSZcL.js} +1 -1
- package/dist/playground/assets/{ocaml-BZ7ViprC.js → ocaml-GoiyWugR.js} +1 -1
- package/dist/playground/assets/{opencl-CLRlnGe-.js → opencl-DF_kR7R-.js} +1 -1
- package/dist/playground/assets/{openqasm-ZQJUmoDa.js → openqasm-yNIpQYb3.js} +1 -1
- package/dist/playground/assets/{oz-CxqsczrJ.js → oz-BlijNVmb.js} +1 -1
- package/dist/playground/assets/{parigp-BvJTqxyQ.js → parigp-CSi1ScnA.js} +1 -1
- package/dist/playground/assets/{parser-Wb4mb5NI.js → parser-B6AKNPI8.js} +1 -1
- package/dist/playground/assets/{pascal-B78HJWo9.js → pascal-BF_BNgEU.js} +1 -1
- package/dist/playground/assets/{pascaligo-E1N1zv0Y.js → pascaligo-Do_bl0su.js} +1 -1
- package/dist/playground/assets/{pcaxis-CtiHhjSC.js → pcaxis-CbOiG2US.js} +1 -1
- package/dist/playground/assets/{peoplecode-BsFFgrRe.js → peoplecode-DDHEekER.js} +1 -1
- package/dist/playground/assets/{perl-Bf5_xcTP.js → perl--Sz8qdsM.js} +1 -1
- package/dist/playground/assets/{php-DucPl4ZV.js → php-BxJDUrM0.js} +1 -1
- package/dist/playground/assets/{php-extras-CxNKxOX3.js → php-extras-CHYGzt8U.js} +1 -1
- package/dist/playground/assets/{phpdoc-DZlZiD7X.js → phpdoc-xGmqlQoT.js} +1 -1
- package/dist/playground/assets/{plsql-C34RXOPs.js → plsql-DHqhvxM3.js} +1 -1
- package/dist/playground/assets/{powerquery-CkFGJ_Xy.js → powerquery-BLYviFq1.js} +1 -1
- package/dist/playground/assets/{powershell-CW7Onzic.js → powershell-bR0U2Vny.js} +1 -1
- package/dist/playground/assets/{processing-B5UbloLN.js → processing-DFbft-EN.js} +1 -1
- package/dist/playground/assets/{prolog-BlU-_0Ir.js → prolog-9xB-aaIb.js} +1 -1
- package/dist/playground/assets/{promql-BNn9i8LV.js → promql-DTSj38JG.js} +1 -1
- package/dist/playground/assets/{properties-D6sdR9gz.js → properties-DYqlknS_.js} +1 -1
- package/dist/playground/assets/{protobuf-CkctDIie.js → protobuf-BsY74Bqk.js} +1 -1
- package/dist/playground/assets/{psl-BfjoDuWR.js → psl-CBNiDwPC.js} +1 -1
- package/dist/playground/assets/{pug-Ds_BIC0j.js → pug-BbKULGZn.js} +1 -1
- package/dist/playground/assets/{puppet-CVAY__pZ.js → puppet-CWZ41NwT.js} +1 -1
- package/dist/playground/assets/{pure-BJ6TJ6pB.js → pure-CsZa1I0l.js} +1 -1
- package/dist/playground/assets/{purebasic-BZMQJyyx.js → purebasic-BvubXeL8.js} +1 -1
- package/dist/playground/assets/{purescript-DY8jG8kM.js → purescript-D9j4R2LH.js} +1 -1
- package/dist/playground/assets/{python-BDC05EBX.js → python-CNwLUwFt.js} +1 -1
- package/dist/playground/assets/{q-CnIRln_4.js → q-CvMZIiCu.js} +1 -1
- package/dist/playground/assets/{qml-DhOQ6jdV.js → qml-DlQgpv3g.js} +1 -1
- package/dist/playground/assets/{qore-CbVQy-Xl.js → qore-CqZxXZQP.js} +1 -1
- package/dist/playground/assets/{qsharp-CeNOc743.js → qsharp-CA9-ymty.js} +1 -1
- package/dist/playground/assets/{r-mtj5Kfyc.js → r-LbITMPhp.js} +1 -1
- package/dist/playground/assets/{racket-sXoSfApN.js → racket-DovRs6Rp.js} +1 -1
- package/dist/playground/assets/{reason-CP0LK2VB.js → reason-BWgJehx0.js} +1 -1
- package/dist/playground/assets/{regex-BIe5JmZ5.js → regex-CAauRcAh.js} +1 -1
- package/dist/playground/assets/{rego-DI-dPGn1.js → rego-C7WOd43F.js} +1 -1
- package/dist/playground/assets/{renpy-0aB_GxON.js → renpy-Cw2sUudt.js} +1 -1
- package/dist/playground/assets/{rest-BqX_yJ5N.js → rest-Cgh7NBEM.js} +1 -1
- package/dist/playground/assets/{rip-BWUheBfE.js → rip-jSJTZROD.js} +1 -1
- package/dist/playground/assets/{roboconf-D_Nq9tpb.js → roboconf-BYj0E8kK.js} +1 -1
- package/dist/playground/assets/{robotframework-CM_pBRFH.js → robotframework-an9P4qf-.js} +1 -1
- package/dist/playground/assets/{ruby-D1XmI6_f.js → ruby-DwY_FEeV.js} +1 -1
- package/dist/playground/assets/{rust-CQQcVvjq.js → rust-UbBPux7T.js} +1 -1
- package/dist/playground/assets/{sas-yhHbUu0b.js → sas-CpKZp1XO.js} +1 -1
- package/dist/playground/assets/{sass-IHUHXnBn.js → sass-Di0myvrI.js} +1 -1
- package/dist/playground/assets/{scala-DlE7FbQL.js → scala-DD522KEE.js} +1 -1
- package/dist/playground/assets/{scheme-V99S768C.js → scheme-CLoRnFGa.js} +1 -1
- package/dist/playground/assets/{scss-CMOzQllk.js → scss-3kCwBvO_.js} +1 -1
- package/dist/playground/assets/{shell-session-DxzihzM-.js → shell-session-O9zaamEX.js} +1 -1
- package/dist/playground/assets/{smali-DAEt8bec.js → smali-B0SsT9mx.js} +1 -1
- package/dist/playground/assets/{smalltalk-CTObSEWd.js → smalltalk-DpCSUOht.js} +1 -1
- package/dist/playground/assets/{smarty-CfrSd2id.js → smarty-BlPQPXKY.js} +1 -1
- package/dist/playground/assets/{sml-lAZR79St.js → sml-BPtrIQF2.js} +1 -1
- package/dist/playground/assets/{solidity-CsqwN1f1.js → solidity-gAiT6qsL.js} +1 -1
- package/dist/playground/assets/{solution-file-GAIntbKz.js → solution-file-BPaMnu90.js} +1 -1
- package/dist/playground/assets/{soy-0bHJr-e8.js → soy-ClpPC9O_.js} +1 -1
- package/dist/playground/assets/{sparql-bdcwXcaQ.js → sparql-CFuF7SRO.js} +1 -1
- package/dist/playground/assets/{splunk-spl-D0e-xejf.js → splunk-spl-DrSYWI0x.js} +1 -1
- package/dist/playground/assets/{sqf-B0erNtrK.js → sqf-DUZC-YP8.js} +1 -1
- package/dist/playground/assets/{sql-D9Qnx9_3.js → sql-DzUQfXef.js} +1 -1
- package/dist/playground/assets/{squirrel-1FSuXxet.js → squirrel-3RGzu6KZ.js} +1 -1
- package/dist/playground/assets/{stan-B-MoRzf6.js → stan-bTIDCqoU.js} +1 -1
- package/dist/playground/assets/{stylus-CQP9rzko.js → stylus-DaQEPH-F.js} +1 -1
- package/dist/playground/assets/{swift-Dl6I7uWH.js → swift-DyyyprH4.js} +1 -1
- package/dist/playground/assets/{systemd-DvLH6rd8.js → systemd-Dli6VHKs.js} +1 -1
- package/dist/playground/assets/{t4-cs-BTK0fk6g.js → t4-cs-uq9Hnk1P.js} +1 -1
- package/dist/playground/assets/{t4-templating-C7ULougy.js → t4-templating-COnjN476.js} +1 -1
- package/dist/playground/assets/{t4-vb-kZjJPFOO.js → t4-vb-B6iGsQyc.js} +1 -1
- package/dist/playground/assets/{tap-CxGzIlqW.js → tap-Bgh-9E6G.js} +1 -1
- package/dist/playground/assets/{tcl-y-C4lMKp.js → tcl-Bz2Diu7k.js} +1 -1
- package/dist/playground/assets/{textile-da1depoN.js → textile-xMqgqbFX.js} +1 -1
- package/dist/playground/assets/{token-6GSAFR2W-SPYPLMBM-Ds6s4YQD.js → token-6GSAFR2W-SPYPLMBM-BmkRDPoJ.js} +1 -1
- package/dist/playground/assets/token-util-NEHG7TUY-JRJTGTAB-C4Nnnb2R.js +1 -0
- package/dist/playground/assets/{toml-bQAJCiNJ.js → toml-CDTKDMuv.js} +1 -1
- package/dist/playground/assets/{tremor-eEDkuhPQ.js → tremor-Bol0PVGh.js} +1 -1
- package/dist/playground/assets/{tsx-B0tIOpOU.js → tsx-CeKERMWa.js} +1 -1
- package/dist/playground/assets/{tt2-CqM9haCV.js → tt2-DHpMnqBv.js} +1 -1
- package/dist/playground/assets/{turtle-BKc3Sf5q.js → turtle-CPXbBkiA.js} +1 -1
- package/dist/playground/assets/{twig-B0LxUrLL.js → twig-DddAkTyK.js} +1 -1
- package/dist/playground/assets/{typescript-BM_333WK.js → typescript-C-9esZRK.js} +1 -1
- package/dist/playground/assets/{typoscript-CIc4zY_B.js → typoscript-DGcghctd.js} +1 -1
- package/dist/playground/assets/{unrealscript-DIrJirtK.js → unrealscript-BRrBk3tL.js} +1 -1
- package/dist/playground/assets/{uorazor-DiZbcDAj.js → uorazor-DIsCqfKa.js} +1 -1
- package/dist/playground/assets/{uri-pIRqtHEB.js → uri-Bm1XT2Zr.js} +1 -1
- package/dist/playground/assets/{v-CfFnr08V.js → v-B0kogPWt.js} +1 -1
- package/dist/playground/assets/{vala-BOIwfEot.js → vala-DhX19c_o.js} +1 -1
- package/dist/playground/assets/{vbnet-D-8FKekT.js → vbnet-Dr3KdRcu.js} +1 -1
- package/dist/playground/assets/{velocity-DTbiRxBl.js → velocity-CT9udOsZ.js} +1 -1
- package/dist/playground/assets/{verilog-B5ezP9T7.js → verilog-CGX8zSpz.js} +1 -1
- package/dist/playground/assets/{vhdl-C-VZtwiM.js → vhdl-CZDDkU56.js} +1 -1
- package/dist/playground/assets/{vim-CnbEfD9Z.js → vim-DYUFGgqB.js} +1 -1
- package/dist/playground/assets/{visual-basic-CJH-fs4J.js → visual-basic-DK54V5Vf.js} +1 -1
- package/dist/playground/assets/{warpscript-TYUMDd6T.js → warpscript-C1nhZ-WG.js} +1 -1
- package/dist/playground/assets/{wasm-CKyxOEiI.js → wasm-BlxFkr9X.js} +1 -1
- package/dist/playground/assets/{web-idl-BLIDy5vW.js → web-idl-BGi1XQqn.js} +1 -1
- package/dist/playground/assets/{wiki-YtaIm40z.js → wiki-BT2QVZJZ.js} +1 -1
- package/dist/playground/assets/{wolfram-CkEmmh5H.js → wolfram-DAwEvJYX.js} +1 -1
- package/dist/playground/assets/{wren-Cz6qOcN3.js → wren-BIMYjvRu.js} +1 -1
- package/dist/playground/assets/{xeora--XacNV5b.js → xeora-CwhIbmCJ.js} +1 -1
- package/dist/playground/assets/{xml-doc-B9r6ZOIY.js → xml-doc-BvKa3JAX.js} +1 -1
- package/dist/playground/assets/{xojo-VGGevHLq.js → xojo-B1iPKWXl.js} +1 -1
- package/dist/playground/assets/{xquery-W1TekyQh.js → xquery-DoaaOPxU.js} +1 -1
- package/dist/playground/assets/{yaml-DaIUFbAU.js → yaml-6RAu1W9W.js} +1 -1
- package/dist/playground/assets/{yang-Br9OlhBh.js → yang-egJ1_X7Q.js} +1 -1
- package/dist/playground/assets/{zig-CZnqCBRG.js → zig-B141buGh.js} +1 -1
- package/dist/playground/index.html +1 -1
- package/package.json +5 -5
- package/dist/chunk-THUIZ4X5.js.map +0 -1
- package/dist/playground/assets/token-util-NEHG7TUY-JRJTGTAB-BozatJbH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as p,e as u,y as l,z as n,d as m,D as b,j as S,t,r}from"./main-
|
|
1
|
+
import{L as p,e as u,y as l,z as n,d as m,D as b,j as S,t,r}from"./main-DaP_siXn.js";import"./index-Cuh9fR7m.js";const c=m.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r("[~RPwxU~ZOp~~",11,15),new r("[~RPrsU~ZOn~~",11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),P=b.parser.configure({top:"SingleExpression"}),o=c.configure({props:[S({Text:t.content,Is:t.definitionOperator,AttributeName:t.attributeName,VueAttributeName:t.keyword,Identifier:t.variableName,"AttributeValue ScriptAttributeValue":t.attributeValue,Entity:t.character,"{{ }}":t.brace,"@ :":t.punctuation})]}),s={parser:P},Q=o.configure({wrap:n((O,e)=>O.name=="InterpolationContent"?s:null)}),g=o.configure({wrap:n((O,e)=>O.name=="AttributeScript"?s:null),top:"Attribute"}),y={parser:Q},R={parser:g},a=l();function i(O){return O.configure({dialect:"selfClosing",wrap:n(X)},"vue")}const T=i(a.language);function X(O,e){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(e.read(O.from,O.from+2))?R:null;case"Text":return y}return null}function q(O={}){let e=a;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof p))throw new RangeError("The base option must be the result of calling html(...)");e=O.base}return new u(e.language==a.language?T:i(e.language),[e.support,e.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{q as vue,T as vueLanguage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as d,x as y,y as b,e as _,L as g,z as u,n as S,d as T,j as k,i as W,g as j,t,o as X,E as p}from"./main-B4eMybNm.js";import"./index-DRjE9_iO.js";const Y=1,U=2,G=3,R=179,z=4,v=180,x=5,Z=181,V=6;function E(O){return O>=65&&O<=90||O>=97&&O<=122}const F=new p(O=>{let a=O.pos;for(;;){let{next:e}=O;if(e<0)break;if(e==123){let r=O.peek(1);if(r==123){if(O.pos>a)break;O.acceptToken(Y,2);return}else if(r==37){if(O.pos>a)break;let $=2,i=2;for(;;){let n=O.peek($);if(n==32||n==10)++$;else if(n==35)for(++$;;){let Q=O.peek($);if(Q<0||Q==10)break;$++}else if(n==45&&i==2)i=++$;else{let Q=n==101&&O.peek($+1)==110&&O.peek($+2)==100;O.acceptToken(Q?G:U,i);return}}}}if(O.advance(),e==10)break}O.pos>a&&O.acceptToken(R)});function h(O,a,e){return new p(r=>{let $=r.pos;for(;;){let{next:i}=r;if(i==123&&r.peek(1)==37){let n=2;for(;;n++){let s=r.peek(n);if(s!=32&&s!=10)break}let Q="";for(;;n++){let s=r.peek(n);if(!E(s))break;Q+=String.fromCharCode(s)}if(Q==O){if(r.pos>$)break;r.acceptToken(e,2);break}}else if(i<0)break;if(r.advance(),i==10)break}r.pos>$&&r.acceptToken(a)})}const D=h("endcomment",Z,x),C=h("endraw",v,z),N=new p(O=>{if(O.next==35){for(O.advance();!(O.next==10||O.next<0||(O.next==37||O.next==125)&&O.peek(1)==125);)O.advance();O.acceptToken(V)}}),I={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:310,assign:314,capture:320,endcapture:324,increment:328,decrement:332},L={__proto__:null,if:84,endif:88,elsif:92,else:96,unless:102,endunless:106,case:112,endcase:116,when:120,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},A=T.deserialize({version:14,states:"GlQYOPOOOOOP'#Fz'#FzOeOaO'#CdOsQhO'#CfO!bQxO'#DRO#{OPO'#DUO$ZOPO'#D_O$iOPO'#DdO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G_'#G_OOOP'#G['#G[OOOP'#Fy'#FyQYOPOOOOOP-E9x-E9xOOQW'#Cg'#CgO&`Q!jO,59QO&gQ!jO'#G]OsQhO'#CsOOQW'#G]'#G]OOOP,59m,59mO)PQhO,59mOsQhO,59qOsQhO,59uO)ZQhO,59wOsQhO,59zOsQhO,5:POsQhO,5:TO!]QhO,5:WO!]QhO,5:`O)`QhO,5:dO)eQhO,5:fO)jQhO,5:hO)oQhO,5:kO)tQhO,5:qOsQhO,5:vOsQhO,5:xOsQhO,5;OOsQhO,5;QOsQhO,5;TOsQhO,5;XOsQhO,5;ZO+TQhO,5;]O+[OPO'#CdOOOP,59p,59pO#{OPO,59pO+jQxO'#DXOOOP,59y,59yO$ZOPO,59yO+oQxO'#DbOOOP,5:O,5:OO$iOPO,5:OO+tQxO'#DgOOOP,5:V,5:VO$wOPO,5:VO+yQxO'#DqOOOP,5:_,5:_O%VOPO,5:_O,OQxO'#DvOOOS'#GP'#GPO,TOSO'#ERO,]OSO,5:jOOOQ'#GQ'#GQO,bOQO'#EXO,jOQO,5:pOOOP,5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%q#qQ%r#rQ%s#sQ%t#tQ%u#uQ%v#vQ%w#wQ&R$fQ&T$mQ&W$pQ&X$qQ&b${Q&u&QQ'S&kQ'T&lQ'^'QR'c'Xm#d}#]#^#_#`#a#b#e%U%X%[%_%b%e",nodeNames:"⚠ {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName BinaryExpression contains CompareOp LogicOp AssignmentExpression AssignOp ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : , Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",maxTerm:188,nodeProps:[["closedBy",1,"}}",-4,2,3,4,5,"%}",22,")"],["openedBy",9,"{{",21,"(",39,"{%"],["group",-12,11,12,15,19,23,25,26,27,28,29,30,31,"Expression"]],skippedNodes:[0,6],repeatNodeCount:11,tokenData:")T~RkXY!vYZ!v]^!vpq!vqr#Xrs#duv$Uwx$axy$|yz%R{|%W|}&r}!O&w!O!P'T!Q![&a![!]'e!^!_'j!_!`'r!`!a'j!c!}'z#R#S'z#T#o'z#p#q(s#q#r(x%W;'S'z;'S;:j(m<%lO'z~!{S$}~XY!vYZ!v]^!vpq!v~#[P!_!`#_~#dOa~~#gUOY#dZr#drs#ys;'S#d;'S;=`$O<%lO#d~$OOn~~$RP;=`<%l#d~$XP#q#r$[~$aOw~~$dUOY$aZw$awx#yx;'S$a;'S;=`$v<%lO$a~$yP;=`<%l$a~%ROf~~%WOe~P%ZQ!O!P%a!Q![&aP%dP!Q![%gP%lRoP!Q![%g!g!h%u#X#Y%uP%xR{|&R}!O&R!Q![&XP&UP!Q![&XP&^PoP!Q![&XP&fSoP!O!P%a!Q![&a!g!h%u#X#Y%u~&wOt~~&zRuv$U!O!P%a!Q![&a~'YQ]S!O!P'`!Q![%g~'eOh~~'jOs~~'oPa~!_!`#_~'wPd~!_!`#__(TW^WvQ%QT}!O'z!Q!['z!c!}'z#R#S'z#T#o'z%W;'S'z;'S;:j(m<%lO'z_(pP;=`<%l'z~(xOq~~({P#q#r)O~)TOX~",tokenizers:[F,C,D,N,0,1,2,3],topRules:{Template:[0,7]},specialized:[{term:186,get:O=>I[O]||-1},{term:38,get:O=>L[O]||-1}],tokenPrec:0});function o(O,a){return O.split(" ").map(e=>({label:e,type:a}))}const m=o("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),q=o("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),f=o("empty forloop tablerowloop in with as","keyword"),H=o("first index index0 last length rindex","property"),B=o("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function M(O){var a;let{state:e,pos:r}=O,$=S(e).resolveInner(r,-1).enterUnfinishedNodesBefore(r),i=((a=$.childBefore(r))===null||a===void 0?void 0:a.name)||$.name;if($.name=="FilterName")return{type:"filter",node:$};if(O.explicit&&i=="|")return{type:"filter"};if($.name=="TagName")return{type:"tag",node:$};if(O.explicit&&i=="{%")return{type:"tag"};if($.name=="PropertyName"&&$.parent.name=="MemberExpression")return{type:"property",node:$,target:$.parent};if($.name=="."&&$.parent.name=="MemberExpression")return{type:"property",target:$.parent};if($.name=="MemberExpression"&&i==".")return{type:"property",target:$};if($.name=="VariableName")return{type:"expression",from:$.from};let n=O.matchBefore(/[\w\u00c0-\uffff]+$/);return n?{type:"expression",from:n.from}:O.explicit&&$.name!="CommentText"&&$.name!="StringLiteral"&&$.name!="NumberLiteral"&&$.name!="InlineComment"?{type:"expression"}:null}function K(O,a,e,r){let $=[];for(;;){let i=a.getChild("Expression");if(!i)return[];if(i.name=="forloop")return $.length?[]:H;if(i.name=="tablerowloop")return $.length?[]:B;if(i.name=="VariableName"){$.unshift(O.sliceDoc(i.from,i.to));break}else if(i.name=="MemberExpression"){let n=i.getChild("PropertyName");n&&$.unshift(O.sliceDoc(n.from,n.to)),a=i}else return[]}return r?r($,O,e):[]}function J(O={}){let a=O.filters?O.filters.concat(m):m,e=O.tags?O.tags.concat(q):q,r=O.variables?O.variables.concat(f):f,{properties:$}=O;return i=>{var n;let Q=M(i);if(!Q)return null;let s=(n=Q.from)!==null&&n!==void 0?n:Q.node?Q.node.from:i.pos,l;return Q.type=="filter"?l=a:Q.type=="tag"?l=e:Q.type=="expression"?l=r:l=K(i.state,Q.target,i,$),l.length?{options:l,from:s,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const OO=d.inputHandler.of((O,a,e,r)=>r!="%"||a!=e||O.state.doc.sliceString(a-1,e+1)!="{}"?!1:(O.dispatch(O.state.changeByRange($=>({changes:{from:$.from,to:$.to,insert:"%%"},range:y.cursor($.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function c(O){return a=>{let e=O.test(a.textAfter);return a.lineIndent(a.node.from)+(e?0:a.unit)}}const $O=g.define({name:"liquid",parser:A.configure({props:[k({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":t.keyword,"empty forloop tablerowloop":t.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":t.controlKeyword,"assign capture endcapture":t.definitionKeyword,contains:t.operatorKeyword,"render include":t.moduleKeyword,VariableName:t.variableName,TagName:t.tagName,FilterName:t.function(t.variableName),PropertyName:t.propertyName,CompareOp:t.compareOperator,AssignOp:t.definitionOperator,LogicOp:t.logicOperator,NumberLiteral:t.number,StringLiteral:t.string,BooleanLiteral:t.bool,InlineComment:t.lineComment,CommentText:t.blockComment,"{% %} {{ }}":t.brace,"( )":t.paren,".":t.derefOperator,", .. : |":t.punctuation}),W.add({Tag:X({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":c(/^\s*(\{%-?\s*)?end\w/),IfDirective:c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:c(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),j.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O){let a=O.firstChild,e=O.lastChild;return!a||a.name!="Tag"?null:{from:a.to,to:e.name=="EndTag"?e.from:O.to}}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),P=b();function w(O){return $O.configure({wrap:u(a=>a.type.isTop?{parser:O.parser,overlay:e=>e.name=="Text"||e.name=="RawText"}:null)},"liquid")}const aO=w(P.language);function rO(O={}){let a=O.base||P,e=a.language==P.language?aO:w(a.language);return new _(e,[a.support,e.data.of({autocomplete:J(O)}),a.language.data.of({closeBrackets:{brackets:["{"]}}),OO])}export{OO as closePercentBrace,rO as liquid,J as liquidCompletionSource,aO as liquidLanguage};
|
|
1
|
+
import{v as d,x as y,y as b,e as _,L as g,z as u,n as S,d as T,j as k,i as W,g as j,t,o as X,E as p}from"./main-DaP_siXn.js";import"./index-Cuh9fR7m.js";const Y=1,U=2,G=3,R=179,z=4,v=180,x=5,Z=181,V=6;function E(O){return O>=65&&O<=90||O>=97&&O<=122}const F=new p(O=>{let a=O.pos;for(;;){let{next:e}=O;if(e<0)break;if(e==123){let r=O.peek(1);if(r==123){if(O.pos>a)break;O.acceptToken(Y,2);return}else if(r==37){if(O.pos>a)break;let $=2,i=2;for(;;){let n=O.peek($);if(n==32||n==10)++$;else if(n==35)for(++$;;){let Q=O.peek($);if(Q<0||Q==10)break;$++}else if(n==45&&i==2)i=++$;else{let Q=n==101&&O.peek($+1)==110&&O.peek($+2)==100;O.acceptToken(Q?G:U,i);return}}}}if(O.advance(),e==10)break}O.pos>a&&O.acceptToken(R)});function h(O,a,e){return new p(r=>{let $=r.pos;for(;;){let{next:i}=r;if(i==123&&r.peek(1)==37){let n=2;for(;;n++){let s=r.peek(n);if(s!=32&&s!=10)break}let Q="";for(;;n++){let s=r.peek(n);if(!E(s))break;Q+=String.fromCharCode(s)}if(Q==O){if(r.pos>$)break;r.acceptToken(e,2);break}}else if(i<0)break;if(r.advance(),i==10)break}r.pos>$&&r.acceptToken(a)})}const D=h("endcomment",Z,x),C=h("endraw",v,z),N=new p(O=>{if(O.next==35){for(O.advance();!(O.next==10||O.next<0||(O.next==37||O.next==125)&&O.peek(1)==125);)O.advance();O.acceptToken(V)}}),I={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:310,assign:314,capture:320,endcapture:324,increment:328,decrement:332},L={__proto__:null,if:84,endif:88,elsif:92,else:96,unless:102,endunless:106,case:112,endcase:116,when:120,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},A=T.deserialize({version:14,states:"GlQYOPOOOOOP'#Fz'#FzOeOaO'#CdOsQhO'#CfO!bQxO'#DRO#{OPO'#DUO$ZOPO'#D_O$iOPO'#DdO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO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a}#]#^#_#`#a#b#e%U%X%[%_%b%eQ%a#aR&h%bm#b}#]#^#_#`#a#b#e%U%X%[%_%b%eQ%d#bR&i%eQ`OQ!QTQ!TUQ!WVQ!ZWQ!^XQ!g[_!i`!Q!T!W!Z!^!gSQO`SaQ!Oi!OTUVWX[!Q!T!W!Z!^!gQ!ocQ!uh^$b!o!u$g$v%O&o&rQ$g!tQ$v#UQ%O#XQ&o%qR&r%tQ$n!|U&U$n&j'WQ&j%mR'W&uQ&z&WQ&|&XW'Y&z&|'`'aQ'`'SR'a'TQ$s#RW&Z$s&m'O'bQ&m%pQ'O&]R'b'UQ!aYR$T!aQ!dZR$W!dQ$z#VR&`$zQ#e}Q%U#]Q%X#^Q%[#_Q%_#`Q%b#aQ%e#b_%g#e%U%X%[%_%b%eQ&q%rR'V&qm_OTUVWX[`!Q!T!W!Z!^!gQcRQ!seQ!thQ!wiQ!xjQ!zlQ!{mQ!|nQ#UvQ#VwQ#WxQ#XyQ#YzQ#Z{Q#[|Q$^!kQ$_!lQ$d!qQ$e!rQ%i#fQ%j#gQ%k#hQ%l#jQ%m#kQ%q#qQ%r#rQ%s#sQ%t#tQ%u#uQ%v#vQ%w#wQ&R$fQ&T$mQ&W$pQ&X$qQ&b${Q&u&QQ'S&kQ'T&lQ'^'QR'c'Xm#d}#]#^#_#`#a#b#e%U%X%[%_%b%e",nodeNames:"⚠ {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName BinaryExpression contains CompareOp LogicOp AssignmentExpression AssignOp ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : , Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",maxTerm:188,nodeProps:[["closedBy",1,"}}",-4,2,3,4,5,"%}",22,")"],["openedBy",9,"{{",21,"(",39,"{%"],["group",-12,11,12,15,19,23,25,26,27,28,29,30,31,"Expression"]],skippedNodes:[0,6],repeatNodeCount:11,tokenData:")T~RkXY!vYZ!v]^!vpq!vqr#Xrs#duv$Uwx$axy$|yz%R{|%W|}&r}!O&w!O!P'T!Q![&a![!]'e!^!_'j!_!`'r!`!a'j!c!}'z#R#S'z#T#o'z#p#q(s#q#r(x%W;'S'z;'S;:j(m<%lO'z~!{S$}~XY!vYZ!v]^!vpq!v~#[P!_!`#_~#dOa~~#gUOY#dZr#drs#ys;'S#d;'S;=`$O<%lO#d~$OOn~~$RP;=`<%l#d~$XP#q#r$[~$aOw~~$dUOY$aZw$awx#yx;'S$a;'S;=`$v<%lO$a~$yP;=`<%l$a~%ROf~~%WOe~P%ZQ!O!P%a!Q![&aP%dP!Q![%gP%lRoP!Q![%g!g!h%u#X#Y%uP%xR{|&R}!O&R!Q![&XP&UP!Q![&XP&^PoP!Q![&XP&fSoP!O!P%a!Q![&a!g!h%u#X#Y%u~&wOt~~&zRuv$U!O!P%a!Q![&a~'YQ]S!O!P'`!Q![%g~'eOh~~'jOs~~'oPa~!_!`#_~'wPd~!_!`#__(TW^WvQ%QT}!O'z!Q!['z!c!}'z#R#S'z#T#o'z%W;'S'z;'S;:j(m<%lO'z_(pP;=`<%l'z~(xOq~~({P#q#r)O~)TOX~",tokenizers:[F,C,D,N,0,1,2,3],topRules:{Template:[0,7]},specialized:[{term:186,get:O=>I[O]||-1},{term:38,get:O=>L[O]||-1}],tokenPrec:0});function o(O,a){return O.split(" ").map(e=>({label:e,type:a}))}const m=o("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),q=o("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),f=o("empty forloop tablerowloop in with as","keyword"),H=o("first index index0 last length rindex","property"),B=o("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function M(O){var a;let{state:e,pos:r}=O,$=S(e).resolveInner(r,-1).enterUnfinishedNodesBefore(r),i=((a=$.childBefore(r))===null||a===void 0?void 0:a.name)||$.name;if($.name=="FilterName")return{type:"filter",node:$};if(O.explicit&&i=="|")return{type:"filter"};if($.name=="TagName")return{type:"tag",node:$};if(O.explicit&&i=="{%")return{type:"tag"};if($.name=="PropertyName"&&$.parent.name=="MemberExpression")return{type:"property",node:$,target:$.parent};if($.name=="."&&$.parent.name=="MemberExpression")return{type:"property",target:$.parent};if($.name=="MemberExpression"&&i==".")return{type:"property",target:$};if($.name=="VariableName")return{type:"expression",from:$.from};let n=O.matchBefore(/[\w\u00c0-\uffff]+$/);return n?{type:"expression",from:n.from}:O.explicit&&$.name!="CommentText"&&$.name!="StringLiteral"&&$.name!="NumberLiteral"&&$.name!="InlineComment"?{type:"expression"}:null}function K(O,a,e,r){let $=[];for(;;){let i=a.getChild("Expression");if(!i)return[];if(i.name=="forloop")return $.length?[]:H;if(i.name=="tablerowloop")return $.length?[]:B;if(i.name=="VariableName"){$.unshift(O.sliceDoc(i.from,i.to));break}else if(i.name=="MemberExpression"){let n=i.getChild("PropertyName");n&&$.unshift(O.sliceDoc(n.from,n.to)),a=i}else return[]}return r?r($,O,e):[]}function J(O={}){let a=O.filters?O.filters.concat(m):m,e=O.tags?O.tags.concat(q):q,r=O.variables?O.variables.concat(f):f,{properties:$}=O;return i=>{var n;let Q=M(i);if(!Q)return null;let s=(n=Q.from)!==null&&n!==void 0?n:Q.node?Q.node.from:i.pos,l;return Q.type=="filter"?l=a:Q.type=="tag"?l=e:Q.type=="expression"?l=r:l=K(i.state,Q.target,i,$),l.length?{options:l,from:s,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const OO=d.inputHandler.of((O,a,e,r)=>r!="%"||a!=e||O.state.doc.sliceString(a-1,e+1)!="{}"?!1:(O.dispatch(O.state.changeByRange($=>({changes:{from:$.from,to:$.to,insert:"%%"},range:y.cursor($.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function c(O){return a=>{let e=O.test(a.textAfter);return a.lineIndent(a.node.from)+(e?0:a.unit)}}const $O=g.define({name:"liquid",parser:A.configure({props:[k({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":t.keyword,"empty forloop tablerowloop":t.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":t.controlKeyword,"assign capture endcapture":t.definitionKeyword,contains:t.operatorKeyword,"render include":t.moduleKeyword,VariableName:t.variableName,TagName:t.tagName,FilterName:t.function(t.variableName),PropertyName:t.propertyName,CompareOp:t.compareOperator,AssignOp:t.definitionOperator,LogicOp:t.logicOperator,NumberLiteral:t.number,StringLiteral:t.string,BooleanLiteral:t.bool,InlineComment:t.lineComment,CommentText:t.blockComment,"{% %} {{ }}":t.brace,"( )":t.paren,".":t.derefOperator,", .. : |":t.punctuation}),W.add({Tag:X({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":c(/^\s*(\{%-?\s*)?end\w/),IfDirective:c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:c(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),j.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O){let a=O.firstChild,e=O.lastChild;return!a||a.name!="Tag"?null:{from:a.to,to:e.name=="EndTag"?e.from:O.to}}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),P=b();function w(O){return $O.configure({wrap:u(a=>a.type.isTop?{parser:O.parser,overlay:e=>e.name=="Text"||e.name=="RawText"}:null)},"liquid")}const aO=w(P.language);function rO(O={}){let a=O.base||P,e=a.language==P.language?aO:w(a.language);return new _(e,[a.support,e.data.of({autocomplete:J(O)}),a.language.data.of({closeBrackets:{brackets:["{"]}}),OO])}export{OO as closePercentBrace,rO as liquid,J as liquidCompletionSource,aO as liquidLanguage};
|
|
@@ -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"./main-B4eMybNm.js";import"./index-DRjE9_iO.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,"]]>"),me=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)}),$e=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.uOOOP1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!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:[me],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'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#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 $=E(n);o.push($),n.global&&O.push($),n.values&&(r[n.name]=n.values.map(R))}let a=[],s=[],f=Object.create(null);for(let n of e){let $=O,c=r;n.attributes&&($=$.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,$,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 $=e[n],c=a[n];if($.children)for(let u of $.children)f[u]&&c.children.push(f[u]);else c.children=a}return n=>{var $;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,m=P(c,S);if(m){let g=f[m];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:[(($=f[i])===null||$===void 0?void 0:$.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 m=f[T(c,S)],g=(m?.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),m=f[i],g=[],q=S&&S.lastChild;i&&(!q||q.name!="CloseTag"||T(c,q)!=i)&&g.push(m?m.closeCompletion:{label:"</"+i+">",type:"type",boost:2});let v=g.concat((m?.children||(S?a:s)).map(x=>x.openCompletion));if(S&&m?.text.length){let x=S.firstChild;x.to>n.pos-20&&!/\S/.test(n.state.sliceDoc(x.to,n.pos))&&(v=v.concat(m.text))}return{from:d,options:v,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const w=j.define({name:"xml",parser:$e.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 xe(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 $,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 m=S.parent;if(((c=($=m.parent)===null||$===void 0?void 0:$.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(i=z(s.doc,m.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 m=S.parent;if(S.from==l-2&&((u=m.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(i=z(s.doc,m,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,xe 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"./main-DaP_siXn.js";import"./index-Cuh9fR7m.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,"]]>"),me=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)}),$e=G.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#Cr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O!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:[me],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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(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 $=E(n);o.push($),n.global&&O.push($),n.values&&(r[n.name]=n.values.map(R))}let a=[],s=[],f=Object.create(null);for(let n of e){let $=O,c=r;n.attributes&&($=$.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,$,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 $=e[n],c=a[n];if($.children)for(let u of $.children)f[u]&&c.children.push(f[u]);else c.children=a}return n=>{var $;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,m=P(c,S);if(m){let g=f[m];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:[(($=f[i])===null||$===void 0?void 0:$.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 m=f[T(c,S)],g=(m?.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),m=f[i],g=[],q=S&&S.lastChild;i&&(!q||q.name!="CloseTag"||T(c,q)!=i)&&g.push(m?m.closeCompletion:{label:"</"+i+">",type:"type",boost:2});let v=g.concat((m?.children||(S?a:s)).map(x=>x.openCompletion));if(S&&m?.text.length){let x=S.firstChild;x.to>n.pos-20&&!/\S/.test(n.state.sliceDoc(x.to,n.pos))&&(v=v.concat(m.text))}return{from:d,options:v,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const w=j.define({name:"xml",parser:$e.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 xe(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 $,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 m=S.parent;if(((c=($=m.parent)===null||$===void 0?void 0:$.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(i=z(s.doc,m.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 m=S.parent;if(S.from==l-2&&((u=m.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(i=z(s.doc,m,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,xe as xml,w as xmlLanguage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-LfdN0zeE.js","./html-C2L_23MC.js","./javascript-ySlJ1b_l.js","./css-BPhBrDlE.js","./angular-ts-CKsD7JZE.js","./scss-C31hgJw-.js","./apl-BBq3IX1j.js","./xml-e3z08dGr.js","./java-xI-RfyKK.js","./json-BQoSv7ci.js","./astro-CqkE3fuf.js","./typescript-Dj6nwHGl.js","./postcss-B3ZDOciz.js","./blade-a8OxSdnT.js","./sql-COK4E0Yg.js","./bsl-Dgyn0ogV.js","./sdbl-BLhTXw86.js","./cairo--RitsXJZ.js","./python-DhUJRlN_.js","./cobol-PTqiYgYu.js","./coffee-dyiR41kL.js","./cpp-BksuvNSY.js","./regexp-DWJ3fJO_.js","./glsl-DBO2IWDn.js","./c-C3t2pwGQ.js","./crystal-DtDmRg-F.js","./shellscript-atvbtKCR.js","./edge-D5gP-w-T.js","./html-derivative-CSfWNPLT.js","./elixir-CLiX3zqd.js","./elm-CmHSxxaM.js","./erb-BYTLMnw6.js","./ruby-DeZ3UC14.js","./haml-B2EZWmdv.js","./graphql-cDcHW_If.js","./jsx-BAng5TT0.js","./tsx-B6W0miNI.js","./lua-CvWAzNxB.js","./yaml-CVw76BM1.js","./fortran-fixed-form-TqA4NnZg.js","./fortran-free-form-DKXYxT9g.js","./fsharp-XplgxFYe.js","./markdown-UIAJJxZW.js","./gdresource-BHYsBjWJ.js","./gdshader-SKMF96pI.js","./gdscript-DfxzS6Rs.js","./git-commit-i4q6IMui.js","./diff-BgYniUM_.js","./git-rebase-B-v9cOL2.js","./glimmer-js-D-cwc0-E.js","./glimmer-ts-pgjy16dm.js","./hack-D1yCygmZ.js","./handlebars-BQGss363.js","./http-FRrOvY1W.js","./hxml-TIA70rKU.js","./haxe-C5wWYbrZ.js","./imba-bv_oIlVt.js","./jinja-DGy0s7-h.js","./jison-BqZprYcd.js","./julia-BBuGR-5E.js","./r-CwjWoCRV.js","./latex-C-cWTeAZ.js","./tex-rYs2v40G.js","./liquid-D3W5UaiH.js","./marko-z0MBrx5-.js","./less-BfCpw3nA.js","./mdc-DB_EDNY_.js","./nginx-D_VnBJ67.js","./nim-ZlGxZxc3.js","./perl-CHQXSrWU.js","./php-B5ebYQev.js","./pug-CM9l7STV.js","./qml-D8XfuvdV.js","./razor-CNLDkMZG.js","./csharp-D9R-vmeu.js","./rst-4NLicBqY.js","./cmake-DbXoA79R.js","./sas-BmTFh92c.js","./shaderlab-B7qAK45m.js","./hlsl-ifBTmRxC.js","./shellsession-C_rIy8kc.js","./soy-C-lX7w71.js","./sparql-bYkjHRlG.js","./turtle-BMR_PYu6.js","./stata-DorPZHa4.js","./svelte-MSaWC3Je.js","./templ-dwX3ZSMB.js","./go-B1SYOhNW.js","./ts-tags-CipyTH0X.js","./twig-NC5TFiHP.js","./vue-BuYVFjOK.js","./vue-html-xdeiXROB.js","./xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as c}from"./index-DRjE9_iO.js";import{w as Ne,s as ut,f as Ft,a as qt,b as zt,c as Fe,h as Jt}from"./main-B4eMybNm.js";const qe={}.hasOwnProperty;function Kt(r,e){const t=e||{};function i(n,...o){let a=i.invalid;const l=i.handlers;if(n&&qe.call(n,r)){const s=String(n[r]);a=qe.call(l,s)?l[s]:i.unknown}if(a)return a.call(this,n,...o)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Qt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CD_QflpE.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DRW-0cLl.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-GBQ2dnAY.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-CmCqftbK.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-CjDtw9vr.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-DBQeEorK.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-BEBZ7ncR.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)}],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(h){t=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,d,R){i.HEAPU8.copyWithin(h,d,d+R)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(h){const d=i.HEAPU8.length;h=h>>>0;const R=Yt();if(h>R)return!1;for(let f=1;f<=4;f*=2){let E=d*(1+.2/f);E=Math.min(E,h+100663296);const g=Math.min(R,er(Math.max(h,E),65536));if(a(g))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,d,R=1024){const f=d+R;let E=d;for(;h[E]&&!(E>=f);)++E;if(E-d>16&&h.buffer&&s)return s.decode(h.subarray(d,E));let g="";for(;d<E;){let y=h[d++];if(!(y&128)){g+=String.fromCharCode(y);continue}const v=h[d++]&63;if((y&224)===192){g+=String.fromCharCode((y&31)<<6|v);continue}const T=h[d++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|h[d++]&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(h,d){return h?u(i.HEAPU8,h,d):""}const p={emscripten_get_now:Zt,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function _(){const d=await r({env:p,wasi_snapshot_preview1:p});e=d.memory,n(e.buffer),Object.assign(i,d),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 de{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=de._utf8ByteLength(e),n=i!==t,o=n?new Uint32Array(t+1):null;n&&(o[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const l=new Uint8Array(i);let s=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let p=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(p=(m-55296<<10)+65536|h-56320,_=!0)}n&&(o[u]=s,_&&(o[u+1]=s),p<=127?a[s+0]=u:p<=2047?(a[s+0]=u,a[s+1]=u):p<=65535?(a[s+0]=u,a[s+1]=u,a[s+2]=u):(a[s+0]=u,a[s+1]=u,a[s+2]=u,a[s+3]=u)),p<=127?l[s++]=p:p<=2047?(l[s++]=192|(p&1984)>>>6,l[s++]=128|(p&63)>>>0):p<=65535?(l[s++]=224|(p&61440)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0):(l[s++]=240|(p&1835008)>>>18,l[s++]=128|(p&258048)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const o=e.charCodeAt(i);let a=o,l=!1;if(o>=55296&&o<=56319&&i+1<n){const s=e.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(o-55296<<10)+65536|s-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&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 de(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 or{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new Ve("Must invoke loadWasm first.");const t=[],i=[];for(let l=0,s=e.length;l<s;l++){const u=new de(e[l]);t[l]=u.createString(P),i[l]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const o=P.omalloc(4*e.length);P.HEAPU32.set(i,o/4);const a=P.createOnigScanner(n,o,e.length);for(let l=0,s=e.length;l<s;l++)P.ofree(t[l]);P.ofree(o),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 o=this._findNextMatchSync(e,t,!1,n);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const l=o.HEAPU32;let s=a/4;const u=l[s++],m=l[s++],p=[];for(let _=0;_<m;_++){const h=e.convertUtf8OffsetToUtf16(l[s++]),d=e.convertUtf8OffsetToUtf16(l[s++]);p[_]={start:h,end:d,length:d-h}}return{index:u,captureIndices:p}}}function sr(r){return typeof r.instantiator=="function"}function ar(r){return typeof r.default=="function"}function lr(r){return typeof r.data<"u"}function cr(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)),sr(i)?i=await i.instantiator(t):ar(i)?i=await i.default(t):(lr(i)&&(i=i.data),cr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await pr(i)(t):i=await hr(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 pr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function hr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let dr;function _r(){return dr}async function mt(r){return r&&await mr(r),{createScanner(e){return new or(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 pt(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function ht(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?ht(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,o,a)=>{let l=t[parseInt(n||o,10)];if(l){let s=e.substring(l.start,l.end);for(;s[0]===".";)s=s.substring(1);switch(a){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return i})}};function dt(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 o=dt(r[n],e[n]);if(o!==0)return o}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,o=e.length;n<o;n++){let a=e[n];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),l=p.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let s=-1;if(typeof a.settings.fontStyle=="string"){s=0;let p=a.settings.fontStyle.split(" ");for(let _=0,h=p.length;_<h;_++)switch(p[_]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|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 p=0,_=l.length;p<_;p++){let d=l[p].trim().split(" "),R=d[d.length-1],f=null;d.length>1&&(f=d.slice(0,d.length-1),f.reverse()),t[i++]=new vr(R,f,n,s,u,m)}}return t}var vr=class{constructor(r,e,t,i,n,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}},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((s,u)=>{let m=dt(s.scope,u.scope);return m!==0||(m=_t(s.parentScopes,u.parentScopes),m!==0)?m:s.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let s=r.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(i=s.foreground),s.background!==null&&(n=s.background)}let o=new Lr(e),a=new Et(t,o.getId(i),o.getId(n)),l=new br(new be(0,null,-1,0,0),[]);for(let s=0,u=r.length;s<u;s++){let m=r[s];l.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new ne(o,a,l)}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,o){this.scopeDepth=e,this.parentScopes=t||Pr,this.fontStyle=i,this.foreground=n,this.background=o}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 o=t.parentScopes[n].length-e.parentScopes[i].length;if(o!==0)return o;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,o;if(i===-1?(n=e,o=""):(n=e.substring(0,i),o=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ie._cmpBySpecificity),t}insert(e,t,i,n,o,a){if(t===""){this._doInsertHere(e,i,n,o,a);return}let l=t.indexOf("."),s,u;l===-1?(s=t,u=""):(s=t.substring(0,l),u=t.substring(l+1));let m;this._children.hasOwnProperty(s)?m=this._children[s]:(m=new Ie(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[s]=m),m.insert(e+1,u,i,n,o,a)}_doInsertHere(e,t,i,n,o){if(t===null){this._mainRule.acceptOverwrite(e,i,n,o);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let s=this._rulesWithParentScopes[a];if(_t(s.parentScopes,t)===0){s.acceptOverwrite(e,i,n,o);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,o))}},$=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),o=S.getForeground(e),a=S.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:o,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,o,a,l){let s=S.getLanguageId(e),u=S.getTokenType(e),m=S.containsBalancedBrackets(e)?1:0,p=S.getFontStyle(e),_=S.getForeground(e),h=S.getBackground(e);return t!==0&&(s=t),i!==8&&(u=i),n!==null&&(m=n?1:0),o!==-1&&(p=o),a!==0&&(_=a),l!==0&&(h=l),(s<<0|u<<8|m<<10|p<<11|_<<15|h<<24)>>>0}};function oe(r,e){const t=[],i=Ir(r);let n=i.next();for(;n!==null;){let s=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:s}),n!==",")break;n=i.next()}return t;function o(){if(n==="-"){n=i.next();const s=o();return u=>!!s&&!s(u)}if(n==="("){n=i.next();const s=l();return n===")"&&(n=i.next()),s}if(Je(n)){const s=[];do s.push(n),n=i.next();while(Je(n));return u=>e(s,u)}return null}function a(){const s=[];let u=o();for(;u;)s.push(u),u=o();return m=>s.every(p=>p(m))}function l(){const s=[];let u=a();for(;u&&(s.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>s.some(p=>p(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 o=t.lookup(e);r instanceof q?ie({baseGrammar:o,selfGrammar:n},i):Se(r.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const l of a)i.add(new q(l))}function Se(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];se([i],e,t)}}function ie(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&se(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&se(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function se(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?pt({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&se(i.patterns,{...e,repository:n},t);const o=i.include;if(!o)continue;const a=Tt(o);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 l=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const s={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};a.kind===4?Se(a.ruleName,s,t):ie(s,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?`${ht(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,o,a,l,s,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!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,o,a,l,s){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new z(a,vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.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,o){return e.registerRule(a=>new Br(t,a,i,n,o))}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=pt({},i,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(o,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 o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);l>o&&(o=l)}for(let a=0;a<=o;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);let s=0;e[a].patterns&&(s=b.getCompiledRuleId(e[a],t,i)),n[l]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let o=0,a=e.length;o<a;o++){const l=e[o];let s=-1;if(l.include){const u=Tt(l.include);switch(u.kind){case 0:case 1:s=b.getCompiledRuleId(i[l.include],t,i);break;case 2:let m=i[u.ruleName];m&&(s=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const p=u.scopeName,_=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(p,i);if(h)if(_){let d=h.repository[_];d&&(s=b.getCompiledRuleId(d,t,h.repository))}else s=b.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else s=b.getCompiledRuleId(l,t,i);if(s!==-1){const u=t.getRule(s);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(s)}}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,o=[],a=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(n,l)),o.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(a=!0),l++}this.hasAnchor=a,n===0?this.source=e:(o.push(e.substring(n,i)),this.source=o.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,o)=>ft(i[parseInt(o,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=[],o,a,l,s;for(o=0,a=this.source.length;o<a;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,i[o]=l,n[o]=l,l==="\\"&&o+1<a&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",t[o+1]="",i[o+1]="A",n[o+1]="A"):s==="G"?(e[o+1]="",t[o+1]="G",i[o+1]="",n[o+1]="G"):(e[o+1]=s,t[o+1]=s,i[o+1]=s,n[o+1]=s),o++);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 c}from"./index-Cuh9fR7m.js";import{w as Ne,s as ut,f as Ft,a as qt,b as zt,c as Fe,h as Jt}from"./main-DaP_siXn.js";const qe={}.hasOwnProperty;function Kt(r,e){const t=e||{};function i(n,...o){let a=i.invalid;const l=i.handlers;if(n&&qe.call(n,r)){const s=String(n[r]);a=qe.call(l,s)?l[s]:i.unknown}if(a)return a.call(this,n,...o)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Qt=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CD_QflpE.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DRW-0cLl.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-GBQ2dnAY.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-CmCqftbK.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-CjDtw9vr.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-DBQeEorK.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-BEBZ7ncR.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)}],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(h){t=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,d,R){i.HEAPU8.copyWithin(h,d,d+R)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(h){const d=i.HEAPU8.length;h=h>>>0;const R=Yt();if(h>R)return!1;for(let f=1;f<=4;f*=2){let E=d*(1+.2/f);E=Math.min(E,h+100663296);const g=Math.min(R,er(Math.max(h,E),65536));if(a(g))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,d,R=1024){const f=d+R;let E=d;for(;h[E]&&!(E>=f);)++E;if(E-d>16&&h.buffer&&s)return s.decode(h.subarray(d,E));let g="";for(;d<E;){let y=h[d++];if(!(y&128)){g+=String.fromCharCode(y);continue}const v=h[d++]&63;if((y&224)===192){g+=String.fromCharCode((y&31)<<6|v);continue}const T=h[d++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|h[d++]&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(h,d){return h?u(i.HEAPU8,h,d):""}const p={emscripten_get_now:Zt,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function _(){const d=await r({env:p,wasi_snapshot_preview1:p});e=d.memory,n(e.buffer),Object.assign(i,d),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 de{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=de._utf8ByteLength(e),n=i!==t,o=n?new Uint32Array(t+1):null;n&&(o[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const l=new Uint8Array(i);let s=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let p=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(p=(m-55296<<10)+65536|h-56320,_=!0)}n&&(o[u]=s,_&&(o[u+1]=s),p<=127?a[s+0]=u:p<=2047?(a[s+0]=u,a[s+1]=u):p<=65535?(a[s+0]=u,a[s+1]=u,a[s+2]=u):(a[s+0]=u,a[s+1]=u,a[s+2]=u,a[s+3]=u)),p<=127?l[s++]=p:p<=2047?(l[s++]=192|(p&1984)>>>6,l[s++]=128|(p&63)>>>0):p<=65535?(l[s++]=224|(p&61440)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0):(l[s++]=240|(p&1835008)>>>18,l[s++]=128|(p&258048)>>>12,l[s++]=128|(p&4032)>>>6,l[s++]=128|(p&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const o=e.charCodeAt(i);let a=o,l=!1;if(o>=55296&&o<=56319&&i+1<n){const s=e.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(o-55296<<10)+65536|s-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&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 de(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 or{constructor(e){if(A(this,"_onigBinding"),A(this,"_ptr"),!P)throw new Ve("Must invoke loadWasm first.");const t=[],i=[];for(let l=0,s=e.length;l<s;l++){const u=new de(e[l]);t[l]=u.createString(P),i[l]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const o=P.omalloc(4*e.length);P.HEAPU32.set(i,o/4);const a=P.createOnigScanner(n,o,e.length);for(let l=0,s=e.length;l<s;l++)P.ofree(t[l]);P.ofree(o),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 o=this._findNextMatchSync(e,t,!1,n);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const l=o.HEAPU32;let s=a/4;const u=l[s++],m=l[s++],p=[];for(let _=0;_<m;_++){const h=e.convertUtf8OffsetToUtf16(l[s++]),d=e.convertUtf8OffsetToUtf16(l[s++]);p[_]={start:h,end:d,length:d-h}}return{index:u,captureIndices:p}}}function sr(r){return typeof r.instantiator=="function"}function ar(r){return typeof r.default=="function"}function lr(r){return typeof r.data<"u"}function cr(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)),sr(i)?i=await i.instantiator(t):ar(i)?i=await i.default(t):(lr(i)&&(i=i.data),cr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await pr(i)(t):i=await hr(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 pr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function hr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let dr;function _r(){return dr}async function mt(r){return r&&await mr(r),{createScanner(e){return new or(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 pt(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function ht(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?ht(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,o,a)=>{let l=t[parseInt(n||o,10)];if(l){let s=e.substring(l.start,l.end);for(;s[0]===".";)s=s.substring(1);switch(a){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return i})}};function dt(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 o=dt(r[n],e[n]);if(o!==0)return o}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,o=e.length;n<o;n++){let a=e[n];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),l=p.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let s=-1;if(typeof a.settings.fontStyle=="string"){s=0;let p=a.settings.fontStyle.split(" ");for(let _=0,h=p.length;_<h;_++)switch(p[_]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|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 p=0,_=l.length;p<_;p++){let d=l[p].trim().split(" "),R=d[d.length-1],f=null;d.length>1&&(f=d.slice(0,d.length-1),f.reverse()),t[i++]=new vr(R,f,n,s,u,m)}}return t}var vr=class{constructor(r,e,t,i,n,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}},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((s,u)=>{let m=dt(s.scope,u.scope);return m!==0||(m=_t(s.parentScopes,u.parentScopes),m!==0)?m:s.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let s=r.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(i=s.foreground),s.background!==null&&(n=s.background)}let o=new Lr(e),a=new Et(t,o.getId(i),o.getId(n)),l=new br(new be(0,null,-1,0,0),[]);for(let s=0,u=r.length;s<u;s++){let m=r[s];l.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new ne(o,a,l)}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,o){this.scopeDepth=e,this.parentScopes=t||Pr,this.fontStyle=i,this.foreground=n,this.background=o}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 o=t.parentScopes[n].length-e.parentScopes[i].length;if(o!==0)return o;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,o;if(i===-1?(n=e,o=""):(n=e.substring(0,i),o=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ie._cmpBySpecificity),t}insert(e,t,i,n,o,a){if(t===""){this._doInsertHere(e,i,n,o,a);return}let l=t.indexOf("."),s,u;l===-1?(s=t,u=""):(s=t.substring(0,l),u=t.substring(l+1));let m;this._children.hasOwnProperty(s)?m=this._children[s]:(m=new Ie(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[s]=m),m.insert(e+1,u,i,n,o,a)}_doInsertHere(e,t,i,n,o){if(t===null){this._mainRule.acceptOverwrite(e,i,n,o);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let s=this._rulesWithParentScopes[a];if(_t(s.parentScopes,t)===0){s.acceptOverwrite(e,i,n,o);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,o))}},$=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),o=S.getForeground(e),a=S.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:o,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,o,a,l){let s=S.getLanguageId(e),u=S.getTokenType(e),m=S.containsBalancedBrackets(e)?1:0,p=S.getFontStyle(e),_=S.getForeground(e),h=S.getBackground(e);return t!==0&&(s=t),i!==8&&(u=i),n!==null&&(m=n?1:0),o!==-1&&(p=o),a!==0&&(_=a),l!==0&&(h=l),(s<<0|u<<8|m<<10|p<<11|_<<15|h<<24)>>>0}};function oe(r,e){const t=[],i=Ir(r);let n=i.next();for(;n!==null;){let s=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:s}),n!==",")break;n=i.next()}return t;function o(){if(n==="-"){n=i.next();const s=o();return u=>!!s&&!s(u)}if(n==="("){n=i.next();const s=l();return n===")"&&(n=i.next()),s}if(Je(n)){const s=[];do s.push(n),n=i.next();while(Je(n));return u=>e(s,u)}return null}function a(){const s=[];let u=o();for(;u;)s.push(u),u=o();return m=>s.every(p=>p(m))}function l(){const s=[];let u=a();for(;u&&(s.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>s.some(p=>p(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 o=t.lookup(e);r instanceof q?ie({baseGrammar:o,selfGrammar:n},i):Se(r.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const l of a)i.add(new q(l))}function Se(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];se([i],e,t)}}function ie(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&se(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&se(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function se(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?pt({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&se(i.patterns,{...e,repository:n},t);const o=i.include;if(!o)continue;const a=Tt(o);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 l=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const s={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};a.kind===4?Se(a.ruleName,s,t):ie(s,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?`${ht(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,o,a,l,s,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!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,o,a,l,s){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new z(a,vt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.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,o){return e.registerRule(a=>new Br(t,a,i,n,o))}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=pt({},i,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(o,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 o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);l>o&&(o=l)}for(let a=0;a<=o;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);let s=0;e[a].patterns&&(s=b.getCompiledRuleId(e[a],t,i)),n[l]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let o=0,a=e.length;o<a;o++){const l=e[o];let s=-1;if(l.include){const u=Tt(l.include);switch(u.kind){case 0:case 1:s=b.getCompiledRuleId(i[l.include],t,i);break;case 2:let m=i[u.ruleName];m&&(s=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const p=u.scopeName,_=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(p,i);if(h)if(_){let d=h.repository[_];d&&(s=b.getCompiledRuleId(d,t,h.repository))}else s=b.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else s=b.getCompiledRuleId(l,t,i);if(s!==-1){const u=t.getRule(s);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(s)}}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,o=[],a=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(n,l)),o.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(a=!0),l++}this.hasAnchor=a,n===0?this.source=e:(o.push(e.substring(n,i)),this.source=o.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,o)=>ft(i[parseInt(o,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=[],o,a,l,s;for(o=0,a=this.source.length;o<a;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,i[o]=l,n[o]=l,l==="\\"&&o+1<a&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",t[o+1]="",i[o+1]="A",n[o+1]="A"):s==="G"?(e[o+1]="",t[o+1]="G",i[o+1]="",n[o+1]="G"):(e[o+1]=s,t[o+1]=s,i[o+1]=s,n[o+1]=s),o++);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,o,a,l){const s=e.content.length;let u=!1,m=-1;if(a){const h=Ur(r,e,t,i,n,o);n=h.stack,i=h.linePos,t=h.isFirstLine,m=h.anchorPosition}const p=Date.now();for(;!u;){if(l!==0&&Date.now()-p>l)return new Ye(n,!0);_()}return new Ye(n,!1);function _(){const h=Hr(r,e,t,i,n,m);if(!h){o.produce(n,s),u=!0;return}const d=h.captureIndices,R=h.matchedRuleId,f=d&&d.length>0?d[0].end>i:!1;if(R===Mr){const E=n.getRule(r);o.produce(n,d[0].start),n=n.withContentNameScopesList(n.nameScopesList),H(r,e,t,n,o,E.endCaptures,d),o.produce(n,d[0].end);const g=n;if(n=n.parent,m=g.getAnchorPos(),!f&&g.getEnterPos()===i){n=g,o.produce(n,s),u=!0;return}}else{const E=r.getRule(R);o.produce(n,d[0].start);const g=n,y=E.getName(e.content,d),v=n.contentNameScopesList.pushAttributed(y,r);if(n=n.push(R,i,m,d[0].end===s,null,v,v),E instanceof Oe){const T=E;H(r,e,t,n,o,T.beginCaptures,d),o.produce(n,d[0].end),m=d[0].end;const O=T.getContentName(e.content,d),V=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(V),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,d))),!f&&g.hasSameRuleAs(n)){n=n.pop(),o.produce(n,s),u=!0;return}}else if(E instanceof ae){const T=E;H(r,e,t,n,o,T.beginCaptures,d),o.produce(n,d[0].end),m=d[0].end;const O=T.getContentName(e.content,d),V=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(V),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,d))),!f&&g.hasSameRuleAs(n)){n=n.pop(),o.produce(n,s),u=!0;return}}else if(H(r,e,t,n,o,E.captures,d),o.produce(n,d[0].end),n=n.pop(),!f){n=n.safePop(),o.produce(n,s),u=!0;return}}d[0].end>i&&(i=d[0].end,t=!1)}}function Ur(r,e,t,i,n,o){let a=n.beginRuleCapturedEOL?0:-1;const l=[];for(let s=n;s;s=s.pop()){const u=s.getRule(r);u instanceof ae&&l.push({rule:u,stack:s})}for(let s=l.pop();s;s=l.pop()){const{ruleScanner:u,findOptions:m}=zr(s.rule,r,s.stack.endRule,t,i===a),p=u.findNextMatchSync(e,i,m);if(p){if(p.ruleId!==vt){n=s.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(s.stack,p.captureIndices[0].start),H(r,e,t,s.stack,o,s.rule.whileCaptures,p.captureIndices),o.produce(s.stack,p.captureIndices[0].end),a=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,t=!1))}else{n=s.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:a,isFirstLine:t}}function Hr(r,e,t,i,n,o){const a=Fr(r,e,t,i,n,o),l=r.getInjections();if(l.length===0)return a;const s=qr(l,r,e,t,i,n,o);if(!s)return a;if(!a)return s;const u=a.captureIndices[0].start,m=s.captureIndices[0].start;return m<u||s.priorityMatch&&m===u?s:a}function Fr(r,e,t,i,n,o){const a=n.getRule(r),{ruleScanner:l,findOptions:s}=bt(a,r,n.endRule,t,i===o),u=l.findNextMatchSync(e,i,s);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function qr(r,e,t,i,n,o,a){let l=Number.MAX_VALUE,s=null,u,m=0;const p=o.contentNameScopesList.getScopeNames();for(let _=0,h=r.length;_<h;_++){const d=r[_];if(!d.matcher(p))continue;const R=e.getRule(d.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>=l)&&(l=y,s=g.captureIndices,u=g.ruleId,m=d.priority,l===n))break}return s?{priorityMatch:m===-1,captureIndices:s,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,o,a){if(o.length===0)return;const l=e.content,s=Math.min(o.length,a.length),u=[],m=a[0].end;for(let p=0;p<s;p++){const _=o[p];if(_===null)continue;const h=a[p];if(h.length===0)continue;if(h.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=h.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,h.start):n.produce(i,h.start),_.retokenizeCapturedWithRuleId){const R=_.getName(l,a),f=i.contentNameScopesList.pushAttributed(R,r),E=_.getContentName(l,a),g=f.pushAttributed(E,r),y=i.push(_.retokenizeCapturedWithRuleId,h.start,-1,!1,null,f,g),v=r.createOnigString(l.substring(0,h.end));Pt(r,v,t&&h.start===0,h.start,y,n,!1,0),Rt(v);continue}const d=_.getName(l,a);if(d!==null){const f=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(d,r);u.push(new Jr(f,h.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,o,a,l){return new Xr(r,e,t,i,n,o,a,l)}function Ze(r,e,t,i,n){const o=oe(e,le),a=At.getCompiledRuleId(t,i,n.repository);for(const l of o)r.push({debugSelector:e,matcher:l.matcher,ruleId:a,grammar:n,priority:l.priority})}function le(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,o,a,l){if(this._rootScopeName=r,this.balancedBracketSelectors=o,this._onigLib=l,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 s of Object.keys(n)){const u=oe(s,le);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:n[s]})}}_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 o=this._grammarRepository.injections(t);o&&o.forEach(a=>{const l=this.getExternalGrammar(a);if(l){const s=l.injectionSelector;s&&Ze(e,s,l,this,l)}})}return e.sort((n,o)=>n.priority-o.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(),p=$.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),_=this.getRule(this._rootId).getName(null,null);let h;_?h=F.createRootAndLookUpScopeName(_,p,this):h=F.createRoot("unknown",p),e=new Ce(null,this._rootId,-1,-1,!1,null,h,h)}else n=!1,e.reset();r=r+`
|
|
4
4
|
`;const o=this.createOnigString(r),a=o.content.length,l=new Zr(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),s=Pt(this,o,n,0,e,l,!0,i);return Rt(o),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.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 o of t)n=Te.push(n,o.scopeNames),i=new C(i,n,o.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),o=new Te(null,e),a=i.themeProvider.themeMatch(o),l=C.mergeAttributes(t,n,a);return new C(null,o,l)}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,o=0,a=0;return i!==null&&(n=i.fontStyle,o=i.foregroundId,a=i.backgroundId),$.set(e,t.languageId,t.tokenType,null,n,o,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 o of i)n=C._pushAttributed(n,o,t);return n}static _pushAttributed(e,t,i){const n=i.getMetadataForScope(t),o=e.scopePath.push(t),a=i.themeProvider.themeMatch(o),l=C.mergeAttributes(e.tokenAttributes,n,a);return new C(e,o,l)}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,o,a,l,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=s,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,o,a,l){return new x(this,e,t,i,n,o,a,l)}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,[]):oe(t,le).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>oe(t,le).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 o=r?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(i=$.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(o))}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 o=this._rawGrammars.get(r);if(!o)return null;this._grammars.set(r,Kr(r,o,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,o){const a=new wr(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(l=>this._loadSingleGrammar(l.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,i,n,o)}_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,o=null){return this._syncRegistry.grammarForScopeName(e,t,i,n,o)}},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,oi=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,si=/[|\\{}()[\]^$+*?.]/g,tt=new WeakMap;function ai(r,e){if(r=r.replace(e.subset?li(e.subset):ii,i),e.subset||e.escapeOnly)return r;return r.replace(ni,t).replace(oi,i);function t(n,o,a){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function i(n,o,a){return e.format(n.charCodeAt(0),a.charCodeAt(o+1),e)}}function li(r){let e=tt.get(r);return e||(e=ci(r),tt.set(r,e)),e}function ci(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(si,"\\$&"));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 pi=/\d/;function hi(r,e,t){const i="&#"+String(r);return t&&e&&!pi.test(String.fromCharCode(e))?i:i+";"}const di=["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 o=De[n],a="&"+o;return t&&di.includes(o)&&!_i.includes(o)&&(!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 o=hi(r,e,t.omitOptionalSemicolons);o.length<i.length&&(i=o)}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(o){return j(o,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 o=t?t.children:Li;let a=(i||0)+r,l=o[a];if(!n)for(;l&&Ne(l);)a+=r,l=o[a];return l}}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{L as g,e as P,y as q,z as l,d as c,D as i,j as R,t as r,E as p}from"./main-
|
|
1
|
+
import{L as g,e as P,y as q,z as l,d as c,D as i,j as R,t as r,E as p}from"./main-DaP_siXn.js";import"./index-Cuh9fR7m.js";const b=1,$=33,m=34,v=35,x=36,d=new p(O=>{let e=O.pos;for(;;){if(O.next==10){O.advance();break}else if(O.next==123&&O.peek(1)==123||O.next<0)break;O.advance()}O.pos>e&&O.acceptToken(b)});function n(O,e,a){return new p(t=>{let u=t.pos;for(;t.next!=O&&t.next>=0&&(a||t.next!=38&&(t.next!=123||t.peek(1)!=123));)t.advance();t.pos>u&&t.acceptToken(e)})}const W=n(39,$,!1),C=n(34,m,!1),T=n(39,v,!0),f=n(34,x,!0),A=c.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<<GrOOQO<<Gr<<GrOOQO1G/[1G/[OOOS-E6x-E6xOOQO1G.}1G.}OOOQ-E6y-E6yOOQOAN=^AN=^",stateData:"&d~OvOS~OPROSQOVROWRO~OZTO[XO^VOaUOhWO~OR]OU^O~O[`O^aO~O[bO~O[cO~O[dO~ObeO~ObfO~ObgO~ORhO~O]kOwiO~O[lO~O_mO~OynOzoO~OysOztO~O[uO~O]wOwiO~O_yOwiO~OtzO~Os|O~OSQOV!OOW!OOr!OOy!QO~OSQOV!ROW!ROq!ROz!QO~O_!TOwiO~O]!UO~Oy!VO~Oz!VO~OSQOV!OOW!OOr!OOy!XO~OSQOV!ROW!ROq!ROz!XO~O]!ZO~O",goto:"#dyPPPPPzPPPP!WPPPPP!WPP!Z!^!a!d!dP!g!j!m!p!v#Q#WPPPPPPPP#^SROSS!Os!PT!Rt!SRYPRqeR{nR}oRZPRqfR[PRqgQSOR_SQj`SvjxRxlQ!PsR!W!PQ!StR!Y!SQpeRrf",nodeNames:"⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue",maxTerm:42,nodeProps:[["openedBy",3,"{{",15,"("],["closedBy",4,"}}",14,")"],["isolate",-4,5,19,25,27,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}#r}!O+v!O!P-]!P!Q#r!Q![+v![!]+v!]!_#r!_!`-s!`!c#r!c!}+v!}#O.Z#O#P#r#P#Q.q#Q#R#r#R#S+v#S#T#r#T#o+v#o#p/X#p#q#r#q#r0Z#r%W#r%W;'S+v;'S;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;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",tokenizers:[d,W,C,T,f,0,1],topRules:{Content:[0,2],Attribute:[1,9]},tokenPrec:0}),V=i.parser.configure({top:"SingleExpression"}),Q=A.configure({props:[R({Text:r.content,Is:r.definitionOperator,AttributeName:r.attributeName,"AttributeValue ExpressionAttributeValue StatementAttributeValue":r.attributeValue,Entity:r.character,InvalidEntity:r.invalid,"BoundAttributeName/Identifier":r.attributeName,"EventName/Identifier":r.special(r.attributeName),"ReferenceName/Identifier":r.variableName,"DirectiveName/Identifier":r.keyword,"{{ }}":r.brace,"( )":r.paren,"[ ]":r.bracket,"# '*'":r.punctuation})]}),o={parser:V},w={parser:i.parser},U=Q.configure({wrap:l((O,e)=>O.name=="InterpolationContent"?o:null)}),y=Q.configure({wrap:l((O,e)=>{var a;return O.name=="InterpolationContent"?o:O.name!="AttributeInterpolation"?null:((a=O.node.parent)===null||a===void 0?void 0:a.name)=="StatementAttributeValue"?w:o}),top:"Attribute"}),E={parser:U},z={parser:y},s=q({selfClosingTags:!0});function S(O){return O.configure({wrap:l(k)},"angular")}const N=S(s.language);function k(O,e){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(e.read(O.from,O.to))?z:null;case"Text":return E}return null}function h(O={}){let e=s;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof g))throw new RangeError("The base option must be the result of calling html(...)");e=O.base}return new P(e.language==s.language?N:S(e.language),[e.support,e.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}export{h as angular,N as angularLanguage};
|