mastra 0.1.57-alpha.96 → 0.1.57-alpha.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates/express-server.d.ts.map +1 -1
- package/dist/templates/express-server.js +24 -119
- package/dist/templates/netlify.d.ts.map +1 -1
- package/dist/templates/netlify.js +16 -59
- package/dist/templates/worker.d.ts.map +1 -1
- package/dist/templates/worker.js +11 -95
- package/package.json +2 -2
- package/src/playground/dist/assets/{index-C50mb3yU.js → index--6i9yMxs.js} +1 -1
- package/src/playground/dist/assets/{index-VTk9kLaV.js → index-C4QVp1Va.js} +65 -65
- package/src/playground/dist/index.html +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-GqBVQ6Dm.js","assets/html-DG1TtFnM.js","assets/javascript-DNgb01dh.js","assets/css-u4bm_LMz.js","assets/angular-ts-MKs4dlu_.js","assets/scss-BfMQ58X7.js","assets/apl-C6GBNg32.js","assets/xml-BOQ9RtXF.js","assets/java-BN40hmum.js","assets/json-DWmkr0yC.js","assets/astro-DTSlZd1t.js","assets/typescript-CVESyXxo.js","assets/postcss-DmF4-xLG.js","assets/blade-CPEzV-UE.js","assets/sql-D8nBeWSR.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo-BM1Freo3.js","assets/python-CK56Z9cH.js","assets/cobol-NX_YbRMJ.js","assets/coffee-CXcjgkhu.js","assets/cpp-IRqjNdQP.js","assets/regexp-DoiKbUTj.js","assets/glsl-bwZ1_LLM.js","assets/c-BhsLqr-4.js","assets/crystal-DFEzbmK1.js","assets/shellscript-HNM5thJl.js","assets/edge-Cq_6DOij.js","assets/html-derivative-CDVwFiY1.js","assets/elixir-BoNJ9vXU.js","assets/elm-CTr_twwF.js","assets/erb-BgreK6rt.js","assets/ruby-DsC6krmi.js","assets/haml-B1jT_oKV.js","assets/graphql-DqgCZ2sd.js","assets/jsx-CM4fc1WH.js","assets/tsx-DqpEK-75.js","assets/lua-B2--UKVN.js","assets/yaml-CIiI48o2.js","assets/fortran-fixed-form-C9lV_GL-.js","assets/fortran-free-form-B3Z_eaxm.js","assets/fsharp-Vw5t3P44.js","assets/markdown-CNXuF1yM.js","assets/gdresource-NFcQ0Q3Z.js","assets/gdshader-BSHf-0eb.js","assets/gdscript-BVlVXSjx.js","assets/git-commit-C0WNX4K0.js","assets/diff-Dnfm4U7b.js","assets/git-rebase-3YLVFLpI.js","assets/glimmer-js-D4fdoRWd.js","assets/glimmer-ts-DFoQQgBS.js","assets/hack-BV5LM4CS.js","assets/handlebars-HtVeTy3a.js","assets/http-CYnz8shJ.js","assets/hxml-BfFmssGd.js","assets/haxe-BgqZeg96.js","assets/imba-C6vdFTm2.js","assets/jinja-BORjBBXU.js","assets/jison-Ct8rtT8R.js","assets/julia-Czdw582_.js","assets/r-Cqv5JV-q.js","assets/latex-BpoAco4y.js","assets/tex-Dej6pUpk.js","assets/liquid-DlGqZaOj.js","assets/marko-BxSrAFJn.js","assets/less-Dk1rBueR.js","assets/mdc-DfEMzj3F.js","assets/nginx-Dw0nYz9L.js","assets/nim-NHYZZDnF.js","assets/perl-DLffUHFU.js","assets/php-D3VTUn6x.js","assets/pug-BbGfWiEl.js","assets/qml-Dhho_E4W.js","assets/razor-CDyaIOPG.js","assets/csharp-D7v6OrNy.js","assets/rst-BCmapc_q.js","assets/cmake-DbXoA79R.js","assets/sas-K_Wwm3IX.js","assets/shaderlab-CsYUIUcf.js","assets/hlsl-DkpUthgY.js","assets/shellsession-DU_2P5ZA.js","assets/soy-aWhPD8Nq.js","assets/sparql-B5YtT9lV.js","assets/turtle-C0hdQUNN.js","assets/stata-bRt97scT.js","assets/svelte-B94b8dMa.js","assets/templ-MrK5mfgg.js","assets/go-C5-9kuJc.js","assets/ts-tags-CiO5kd_m.js","assets/twig-CvAdjvFj.js","assets/vue-srE0XGv_.js","assets/vue-html-59TQSa_j.js","assets/xsl-BqG2VzO2.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var zt=Object.defineProperty;var Jt=(n,e,t)=>e in n?zt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var T=(n,e,t)=>Jt(n,typeof e!="symbol"?e+"":e,t);import{_ as l,w as Me,s as ft,f as Kt,a as Qt,b as Xt,c as Ke,h as Yt}from"./index-VTk9kLaV.js";const Qe={}.hasOwnProperty;function Zt(n,e){const t=e;function r(i,...s){let a=r.invalid;const c=r.handlers;if(i&&Qe.call(i,n)){const o=String(i[n]);a=Qe.call(c,o)?c[o]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const pt=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-BwpQXVS2.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-Ci-La1BS.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-DOAn35dn.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-GqBVQ6Dm.js").then(n=>n.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-MKs4dlu_.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-BzwtH5UL.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-C6GBNg32.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-DIt9OTko.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-CJxt7p29.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-CcSEeikT.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-DPTZissz.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-DTSlZd1t.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-BINKOAKH.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-DCcCncrU.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-B9Vj0mJK.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-DDUKAZWS.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-DnyWjya5.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-CpWBKVjh.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-BWkuYGGO.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-CPEzV-UE.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-BhsLqr-4.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-CEjiMJLT.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo-BM1Freo3.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-CXmV_HiI.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-mLcCfA0-.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-NX_YbRMJ.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-Bdprqoiu.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-CXcjgkhu.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-CQO4gZEw.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-BCzYJAay.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-IRqjNdQP.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DFEzbmK1.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D7v6OrNy.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-u4bm_LMz.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DmZ-uG0V.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-DfpIq38s.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-B5L7zzq-.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-C4Ro8ZjH.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-yA8e6OR-.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-Dnfm4U7b.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-DQxx3LPD.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-BMwgFBEQ.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-Cq_6DOij.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-BoNJ9vXU.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CTr_twwF.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-CMz7PuSU.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-BgreK6rt.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-CMOi41r9.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-dZn0vQkf.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-CQzXS8_C.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-CNRQ974Q.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-C9lV_GL-.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-B3Z_eaxm.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-Vw5t3P44.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-NFcQ0Q3Z.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-BVlVXSjx.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-BSHf-0eb.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-DJEtsjbi.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-C0WNX4K0.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-3YLVFLpI.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-C30t_gpS.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D4fdoRWd.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-DFoQQgBS.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-bwZ1_LLM.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CmWLV2bY.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-C5-9kuJc.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-DqgCZ2sd.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-BWslPs4p.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-BV5LM4CS.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B1jT_oKV.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-HtVeTy3a.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-ChDww4um.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-BgqZeg96.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-_Zu0RE-q.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-D9Bn7OQI.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-DkpUthgY.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-DG1TtFnM.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CDVwFiY1.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-CYnz8shJ.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-BfFmssGd.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-YurBl9Qv.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-C6vdFTm2.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-BN40hmum.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-DNgb01dh.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-BORjBBXU.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-Ct8rtT8R.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-DWmkr0yC.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-BDjtpMT8.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-B8E-_56i.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-NKd-Y1zG.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-CpRrwcwt.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-DlYXzDlu.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-CM4fc1WH.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-Czdw582_.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-BZRbnyjI.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-plSVBvJQ.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-BpoAco4y.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-yLioyJ2E.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-Dk1rBueR.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-DlGqZaOj.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-B4_rEpOs.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-Dtn98rcr.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-B2--UKVN.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-DepYB8Ml.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-DNDvMORL.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-CNXuF1yM.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-BxSrAFJn.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-Kxp7UmFj.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DfEMzj3F.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-Bcw97oti.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-BZ3P6AVf.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BzaEo2Du.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-B2bjgU-v.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-EZUUsui8.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B2uSYIFn.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-Dw0nYz9L.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-NHYZZDnF.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-DVWcdiGS.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-ZJvK9Z2N.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-B6NdQBKR.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BkG9CdHo.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-CLmbwNS9.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-DLffUHFU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-D3VTUn6x.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-DmF4-xLG.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-ByY1Guvr.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-DES0gjzB.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-CZzQMiei.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BNxDCkIA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-hdsyEllQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-BbGfWiEl.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-DWMP3yrW.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-DvQyZZSe.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-CK56Z9cH.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-Dhho_E4W.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-Cqv5JV-q.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CwIbMU3B.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-DZ4hUExO.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CDyaIOPG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-CrOfvjVs.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DoiKbUTj.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-Dzwn3p-3.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-BGct0Hx7.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-BCmapc_q.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-DsC6krmi.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Bjs2cL5p.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-K_Wwm3IX.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BrbOHqWv.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-Lp17StYA.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BbccZ3y2.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-BfMQ58X7.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-CsYUIUcf.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-HNM5thJl.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-DU_2P5ZA.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DsCg8CPl.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-DymQr0nX.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-aWhPD8Nq.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-B5YtT9lV.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-j_FrBdja.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-D8nBeWSR.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-D-RymO5g.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-bRt97scT.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-DwU8c_yx.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-B94b8dMa.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-D2TqM893.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-DFQ4Xr-4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-DA0ESIWO.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-CGXjegLJ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-NUI3YrRW.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-MrK5mfgg.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-rf8nNrOk.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-Dej6pUpk.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-Dwo6uFCY.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CiO5kd_m.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-DqpEK-75.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-C0hdQUNN.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-CvAdjvFj.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-CVESyXxo.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-B_R80ZlN.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-F89DG-fP.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-DH4N8IuU.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-C8pgRvQH.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-Bv-mwDEg.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-6RUVFG9U.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-IBB5Tl9j.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-CIxipgmy.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-srE0XGv_.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-59TQSa_j.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-DzaHHFTY.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-sH2JAGjN.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CSoQzgif.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-BqtQrzRp.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-aeT0-ak7.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-BOQ9RtXF.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-BqG2VzO2.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CIiI48o2.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-NgWrSVUg.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-D44NvAEk.js"),[])}],en=Object.fromEntries(pt.map(n=>[n.id,n.import])),tn=Object.fromEntries(pt.flatMap(n=>{var e;return((e=n.aliases)==null?void 0:e.map(t=>[t,n.import]))||[]})),nn={...en,...tn},rn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-RXHOmnpW.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-zchoCBdH.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-2aygx1xg.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-DdAYiE08.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],sn=Object.fromEntries(rn.map(n=>[n.id,n.import]));let x=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Be=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function an(){return 2147483648}function on(){return typeof performance<"u"?performance.now():Date.now()}const cn=(n,e)=>n+(e-n%e)%e;async function ln(n){let e,t;const r={};function i(h){t=h,r.HEAPU8=new Uint8Array(h),r.HEAPU32=new Uint32Array(h)}function s(h,p,R){r.HEAPU8.copyWithin(h,p,p+R)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function c(h){const p=r.HEAPU8.length;h=h>>>0;const R=an();if(h>R)return!1;for(let g=1;g<=4;g*=2){let _=p*(1+.2/g);_=Math.min(_,h+100663296);const E=Math.min(R,cn(Math.max(h,_),65536));if(a(E))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,p,R=1024){const g=p+R;let _=p;for(;h[_]&&!(_>=g);)++_;if(_-p>16&&h.buffer&&o)return o.decode(h.subarray(p,_));let E="";for(;p<_;){let y=h[p++];if(!(y&128)){E+=String.fromCharCode(y);continue}const A=h[p++]&63;if((y&224)===192){E+=String.fromCharCode((y&31)<<6|A);continue}const L=h[p++]&63;if((y&240)===224?y=(y&15)<<12|A<<6|L:y=(y&7)<<18|A<<12|L<<6|h[p++]&63,y<65536)E+=String.fromCharCode(y);else{const w=y-65536;E+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return E}function d(h,p){return h?u(r.HEAPU8,h,p):""}const m={emscripten_get_now:on,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function f(){const p=await n({env:m,wasi_snapshot_preview1:m});e=p.memory,i(e.buffer),Object.assign(r,p),r.UTF8ToString=d}return await f(),r}let I=null;function un(n){throw new Be(n.UTF8ToString(n.getLastOnigError()))}class ge{constructor(e){T(this,"utf16Length");T(this,"utf8Length");T(this,"utf16Value");T(this,"utf8Value");T(this,"utf16OffsetToUtf8");T(this,"utf8OffsetToUtf16");const t=e.length,r=ge._utf8ByteLength(e),i=r!==t,s=i?new Uint32Array(t+1):null;i&&(s[t]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=t);const c=new Uint8Array(r);let o=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,f=!1;if(d>=55296&&d<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(m=(d-55296<<10)+65536|h-56320,f=!0)}i&&(s[u]=o,f&&(s[u+1]=o),m<=127?a[o+0]=u:m<=2047?(a[o+0]=u,a[o+1]=u):m<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),m<=127?c[o++]=m:m<=2047?(c[o++]=192|(m&1984)>>>6,c[o++]=128|(m&63)>>>0):m<=65535?(c[o++]=224|(m&61440)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0):(c[o++]=240|(m&1835008)>>>18,c[o++]=128|(m&258048)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0),f&&u++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,i=e.length;r<i;r++){const s=e.charCodeAt(r);let a=s,c=!1;if(s>=55296&&s<=56319&&r+1<i){const o=e.charCodeAt(r+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const C=class C{constructor(e){T(this,"id",++C.LAST_ID);T(this,"_onigBinding");T(this,"content");T(this,"utf16Length");T(this,"utf8Length");T(this,"utf16OffsetToUtf8");T(this,"utf8OffsetToUtf16");T(this,"ptr");if(!I)throw new Be("Must invoke loadWasm first.");this._onigBinding=I,this.content=e;const t=new ge(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!C._sharedPtrInUse?(C._sharedPtr||(C._sharedPtr=I.omalloc(1e4)),C._sharedPtrInUse=!0,I.HEAPU8.set(t.utf8Value,C._sharedPtr),this.ptr=C._sharedPtr):this.ptr=t.createString(I)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===C._sharedPtr?C._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};T(C,"LAST_ID",0),T(C,"_sharedPtr",0),T(C,"_sharedPtrInUse",!1);let ae=C;class dn{constructor(e){T(this,"_onigBinding");T(this,"_ptr");if(!I)throw new Be("Must invoke loadWasm first.");const t=[],r=[];for(let c=0,o=e.length;c<o;c++){const u=new ge(e[c]);t[c]=u.createString(I),r[c]=u.utf8Length}const i=I.omalloc(4*e.length);I.HEAPU32.set(t,i/4);const s=I.omalloc(4*e.length);I.HEAPU32.set(r,s/4);const a=I.createOnigScanner(i,s,e.length);for(let c=0,o=e.length;c<o;c++)I.ofree(t[c]);I.ofree(s),I.ofree(i),a===0&&un(I),this._onigBinding=I,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new ae(e);const s=this._findNextMatchSync(e,t,!1,i);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,r,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],d=c[o++],m=[];for(let f=0;f<d;f++){const h=e.convertUtf8OffsetToUtf16(c[o++]),p=e.convertUtf8OffsetToUtf16(c[o++]);m[f]={start:h,end:p,length:p-h}}return{index:u,captureIndices:m}}}function mn(n){return typeof n.instantiator=="function"}function hn(n){return typeof n.default=="function"}function fn(n){return typeof n.data<"u"}function pn(n){return typeof Response<"u"&&n instanceof Response}function _n(n){var e;return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,n))||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let ee;function gn(n){if(ee)return ee;async function e(){I=await ln(async t=>{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),mn(r)?r=await r.instantiator(t):hn(r)?r=await r.default(t):(fn(r)&&(r=r.data),pn(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await En(r)(t):r=await yn(r)(t):_n(r)?r=await Ae(r)(t):r instanceof WebAssembly.Module?r=await Ae(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ae(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ee=e(),ee}function Ae(n){return e=>WebAssembly.instantiate(n,e)}function En(n){return e=>WebAssembly.instantiateStreaming(n,e)}function yn(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Rn;function Tn(){return Rn}async function _t(n){return n&&await gn(n),{createScanner(e){return new dn(e)},createString(e){return new ae(e)}}}function An(n){return je(n)}function je(n){return Array.isArray(n)?Ln(n):typeof n=="object"?bn(n):n}function Ln(n){let e=[];for(let t=0,r=n.length;t<r;t++)e[t]=je(n[t]);return e}function bn(n){let e={};for(let t in n)e[t]=je(n[t]);return e}function gt(n,...e){return e.forEach(t=>{for(let r in t)n[r]=t[r]}),n}function Et(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Et(n.substring(0,n.length-1)):n.substr(~e+1)}var Le=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,te=class{static hasCaptures(n){return n===null?!1:(Le.lastIndex=0,Le.test(n))}static replaceCaptures(n,e,t){return n.replace(Le,(r,i,s,a)=>{let c=t[parseInt(i||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return r})}};function yt(n,e){return n<e?-1:n>e?1:0}function Rt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let i=0;i<t;i++){let s=yt(n[i],e[i]);if(s!==0)return s}return 0}return t-r}function Xe(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function Tt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(n){this.fn=n,this.cache=new Map}get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},oe=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t,this._cachedMatchRoot=new At(r=>this._root.match(r))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Sn(n),e)}static createFromParsedTheme(n,e){return wn(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(i=>Pn(n.parent,i.parentScopes));return r?new Lt(r.fontStyle,r.foreground,r.background):null}},be=class ie{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ie(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ie(t,e[r]);return t}push(e){return new ie(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 r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function Pn(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],i=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],i=!0}for(;n&&!In(n.scopeName,r);){if(i)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function In(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Lt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Sn(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let i=0,s=e.length;i<s;i++){let a=e[i];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let m=a.settings.fontStyle.split(" ");for(let f=0,h=m.length;f<h;f++)switch(m[f]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&Xe(a.settings.foreground)&&(u=a.settings.foreground);let d=null;typeof a.settings.background=="string"&&Xe(a.settings.background)&&(d=a.settings.background);for(let m=0,f=c.length;m<f;m++){let p=c[m].trim().split(" "),R=p[p.length-1],g=null;p.length>1&&(g=p.slice(0,p.length-1),g.reverse()),t[r++]=new On(R,g,i,o,u,d)}}return t}var On=class{constructor(n,e,t,r,i,s){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=i,this.background=s}},v=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(v||{});function wn(n,e){n.sort((o,u)=>{let d=yt(o.scope,u.scope);return d!==0||(d=Rt(o.parentScopes,u.parentScopes),d!==0)?d:o.index-u.index});let t=0,r="#000000",i="#ffffff";for(;n.length>=1&&n[0].scope==="";){let o=n.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(r=o.foreground),o.background!==null&&(i=o.background)}let s=new Cn(e),a=new Lt(t,s.getId(r),s.getId(i)),c=new kn(new Oe(0,null,-1,0,0),[]);for(let o=0,u=n.length;o<u;o++){let d=n[o];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new oe(s,a,c)}var Cn=class{constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Dn=Object.freeze([]),Oe=class bt{constructor(e,t,r,i,s){this.scopeDepth=e,this.parentScopes=t||Dn,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new bt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,i=e.length;r<i;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},kn=class we{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=t.parentScopes.length);){const s=t.parentScopes[i].length-e.parentScopes[r].length;if(s!==0)return s;r++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,s;if(r===-1?(i=e,s=""):(i=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(we._cmpBySpecificity),t}insert(e,t,r,i,s,a){if(t===""){this._doInsertHere(e,r,i,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let d;this._children.hasOwnProperty(o)?d=this._children[o]:(d=new we(this._mainRule.clone(),Oe.cloneArr(this._rulesWithParentScopes)),this._children[o]=d),d.insert(e+1,u,r,i,s,a)}_doInsertHere(e,t,r,i,s){if(t===null){this._mainRule.acceptOverwrite(e,r,i,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(Rt(o.parentScopes,t)===0){o.acceptOverwrite(e,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Oe(e,t,r,i,s))}},F=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),i=D.getFontStyle(e),s=D.getForeground(e),a=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:i,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,i,s,a,c){let o=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),f=D.getForeground(e),h=D.getBackground(e);return t!==0&&(o=t),r!==8&&(u=r),i!==null&&(d=i?1:0),s!==-1&&(m=s),a!==0&&(f=a),c!==0&&(h=c),(o<<0|u<<8|d<<10|m<<11|f<<15|h<<24)>>>0}};function ce(n,e){const t=[],r=Nn(n);let i=r.next();for(;i!==null;){let o=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=a();if(t.push({matcher:u,priority:o}),i!==",")break;i=r.next()}return t;function s(){if(i==="-"){i=r.next();const o=s();return u=>!!o&&!o(u)}if(i==="("){i=r.next();const o=c();return i===")"&&(i=r.next()),o}if(Ye(i)){const o=[];do o.push(i),i=r.next();while(Ye(i));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return d=>o.every(m=>m(d))}function c(){const o=[];let u=a();for(;u&&(o.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=a()}return d=>o.some(m=>m(d))}}function Ye(n){return!!n&&!!n.match(/[\w\.:]+/)}function Nn(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Pt(n){typeof n.dispose=="function"&&n.dispose()}var J=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},Vn=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},vn=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},xn=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new J(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new vn;for(const t of n)Gn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof J){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 Gn(n,e,t,r){const i=t.lookup(n.scopeName);if(!i){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);n instanceof J?se({baseGrammar:s,selfGrammar:i},r):Ce(n.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const a=t.injections(n.scopeName);if(a)for(const c of a)r.add(new J(c))}function Ce(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];le([r],e,t)}}function se(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&le(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&le(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function le(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const i=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&le(r.patterns,{...e,repository:i},t);const s=r.include;if(!s)continue;const a=It(s);switch(a.kind){case 0:se({...e,selfGrammar:e.baseGrammar},t);break;case 1:se(e,t);break;case 2:Ce(a.ruleName,{...e,repository:i},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};a.kind===4?Ce(a.ruleName,o,t):se(o,t)}else a.kind===4?t.add(new Vn(a.scopeName,a.ruleName)):t.add(new J(a.scopeName));break}}}var Mn=class{constructor(){this.kind=0}},Bn=class{constructor(){this.kind=1}},jn=class{constructor(n){this.ruleName=n,this.kind=2}},$n=class{constructor(n){this.scopeName=n,this.kind=3}},Fn=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function It(n){if(n==="$base")return new Mn;if(n==="$self")return new Bn;const e=n.indexOf("#");if(e===-1)return new $n(n);if(e===0)return new jn(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new Fn(t,r)}}var Wn=/\\(\d+)/,Ze=/\\(\d+)/g,Un=-1,St=-2;var Y=class{constructor(n,e,t,r){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=te.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=te.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:te.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:te.replaceCaptures(this._contentName,n,e)}},Hn=class extends Y{constructor(n,e,t,r,i){super(n,e,t,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,r){throw new Error("Not supported!")}},qn=class extends Y{constructor(n,e,t,r,i){super(n,e,t,null),this._match=new K(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Q,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},et=class extends Y{constructor(n,e,t,r,i){super(n,e,t,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Q,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},De=class extends Y{constructor(n,e,t,r,i,s,a,c,o,u){super(n,e,t,r),this._begin=new K(i,this.id),this.beginCaptures=s,this._end=new K(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=o||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,r)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Q;for(const t of this.patterns)n.getRule(t).collectPatterns(n,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}},ue=class extends Y{constructor(n,e,t,r,i,s,a,c,o){super(n,e,t,r),this._begin=new K(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new K(a,St),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Q;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,r){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,r)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Q,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Ot=class S{static createCaptureRule(e,t,r,i,s){return e.registerRule(a=>new Hn(t,a,r,i,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new qn(e.$vscodeTextmateLocation,e.id,e.name,e.match,S._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new et(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,S._compilePatterns(s,t,r))}return e.while?new ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,S._compileCaptures(e.whileCaptures||e.captures,t,r),S._compilePatterns(e.patterns,t,r)):new De(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,S._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,S._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let i=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=S.getCompiledRuleId(e[a],t,r)),i[c]=S.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return i}static _compilePatterns(e,t,r){let i=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=It(c.include);switch(u.kind){case 0:case 1:o=S.getCompiledRuleId(r[c.include],t,r);break;case 2:let d=r[u.ruleName];d&&(o=S.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,f=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(m,r);if(h)if(f){let p=h.repository[f];p&&(o=S.getCompiledRuleId(p,t,h.repository))}else o=S.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else o=S.getCompiledRuleId(c,t,r);if(o!==-1){const u=t.getRule(o);let d=!1;if((u instanceof et||u instanceof De||u instanceof ue)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},K=class wt{constructor(e,t){if(e){const r=e.length;let i=0,s=[],a=!1;for(let c=0;c<r;c++)if(e.charAt(c)==="\\"&&c+1<r){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,i===0?this.source=e:(s.push(e.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=Wn.test(this.source)}clone(){return new wt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let r=t.map(i=>e.substring(i.start,i.end));return Ze.lastIndex=0,this.source.replace(Ze,(i,s)=>Tt(r[parseInt(s,10)]||""))}_buildAnchorCache(){let e=[],t=[],r=[],i=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,r[s]=c,i[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",i[s+1]="A"):o==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",i[s+1]="G"):(e[s+1]=o,t[s+1]=o,r[s+1]=o,i[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Q=class{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(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new tt(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(i=>i.resolveAnchors(e,t));return new tt(n,r,this._items.map(i=>i.ruleId))}},tt=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
|
|
2
|
+
var zt=Object.defineProperty;var Jt=(n,e,t)=>e in n?zt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var T=(n,e,t)=>Jt(n,typeof e!="symbol"?e+"":e,t);import{_ as l,w as Me,s as ft,f as Kt,a as Qt,b as Xt,c as Ke,h as Yt}from"./index-C4QVp1Va.js";const Qe={}.hasOwnProperty;function Zt(n,e){const t=e;function r(i,...s){let a=r.invalid;const c=r.handlers;if(i&&Qe.call(i,n)){const o=String(i[n]);a=Qe.call(c,o)?c[o]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const pt=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-BwpQXVS2.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-Ci-La1BS.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-DOAn35dn.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-GqBVQ6Dm.js").then(n=>n.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-MKs4dlu_.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-BzwtH5UL.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-C6GBNg32.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-DIt9OTko.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-CJxt7p29.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-CcSEeikT.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-DPTZissz.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-DTSlZd1t.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-BINKOAKH.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-DCcCncrU.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-B9Vj0mJK.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-DDUKAZWS.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-DnyWjya5.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-CpWBKVjh.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-BWkuYGGO.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-CPEzV-UE.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-BhsLqr-4.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-CEjiMJLT.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo-BM1Freo3.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-CXmV_HiI.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-mLcCfA0-.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-NX_YbRMJ.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-Bdprqoiu.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-CXcjgkhu.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-CQO4gZEw.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-BCzYJAay.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-IRqjNdQP.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DFEzbmK1.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D7v6OrNy.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-u4bm_LMz.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DmZ-uG0V.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-DfpIq38s.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-B5L7zzq-.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-C4Ro8ZjH.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-yA8e6OR-.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-Dnfm4U7b.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-DQxx3LPD.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-BMwgFBEQ.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-Cq_6DOij.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-BoNJ9vXU.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CTr_twwF.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-CMz7PuSU.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-BgreK6rt.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-CMOi41r9.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-dZn0vQkf.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-CQzXS8_C.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-CNRQ974Q.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-C9lV_GL-.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-B3Z_eaxm.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-Vw5t3P44.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-NFcQ0Q3Z.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-BVlVXSjx.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-BSHf-0eb.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-DJEtsjbi.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-C0WNX4K0.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-3YLVFLpI.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-C30t_gpS.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D4fdoRWd.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-DFoQQgBS.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-bwZ1_LLM.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CmWLV2bY.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-C5-9kuJc.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-DqgCZ2sd.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-BWslPs4p.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-BV5LM4CS.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B1jT_oKV.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-HtVeTy3a.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-ChDww4um.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-BgqZeg96.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-_Zu0RE-q.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-D9Bn7OQI.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-DkpUthgY.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-DG1TtFnM.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CDVwFiY1.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-CYnz8shJ.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-BfFmssGd.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-YurBl9Qv.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-C6vdFTm2.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-BN40hmum.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-DNgb01dh.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-BORjBBXU.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-Ct8rtT8R.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-DWmkr0yC.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-BDjtpMT8.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-B8E-_56i.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-NKd-Y1zG.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-CpRrwcwt.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-DlYXzDlu.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-CM4fc1WH.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-Czdw582_.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-BZRbnyjI.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-plSVBvJQ.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-BpoAco4y.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-yLioyJ2E.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-Dk1rBueR.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-DlGqZaOj.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-B4_rEpOs.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-Dtn98rcr.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-B2--UKVN.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-DepYB8Ml.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-DNDvMORL.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-CNXuF1yM.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-BxSrAFJn.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-Kxp7UmFj.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DfEMzj3F.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-Bcw97oti.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-BZ3P6AVf.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BzaEo2Du.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-B2bjgU-v.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-EZUUsui8.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B2uSYIFn.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-Dw0nYz9L.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-NHYZZDnF.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-DVWcdiGS.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-ZJvK9Z2N.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-B6NdQBKR.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BkG9CdHo.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-CLmbwNS9.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-DLffUHFU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-D3VTUn6x.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-DmF4-xLG.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-ByY1Guvr.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-DES0gjzB.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-CZzQMiei.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BNxDCkIA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-hdsyEllQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-BbGfWiEl.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-DWMP3yrW.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-DvQyZZSe.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-CK56Z9cH.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-Dhho_E4W.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-Cqv5JV-q.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CwIbMU3B.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-DZ4hUExO.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CDyaIOPG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-CrOfvjVs.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DoiKbUTj.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-Dzwn3p-3.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-BGct0Hx7.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-BCmapc_q.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-DsC6krmi.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Bjs2cL5p.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-K_Wwm3IX.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BrbOHqWv.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-Lp17StYA.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BbccZ3y2.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-BfMQ58X7.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-CsYUIUcf.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-HNM5thJl.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-DU_2P5ZA.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DsCg8CPl.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-DymQr0nX.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-aWhPD8Nq.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-B5YtT9lV.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-j_FrBdja.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-D8nBeWSR.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-D-RymO5g.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-bRt97scT.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-DwU8c_yx.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-B94b8dMa.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-D2TqM893.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-DFQ4Xr-4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-DA0ESIWO.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-CGXjegLJ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-NUI3YrRW.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-MrK5mfgg.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-rf8nNrOk.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-Dej6pUpk.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-Dwo6uFCY.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CiO5kd_m.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-DqpEK-75.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-C0hdQUNN.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-CvAdjvFj.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-CVESyXxo.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-B_R80ZlN.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-F89DG-fP.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-DH4N8IuU.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-C8pgRvQH.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-Bv-mwDEg.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-6RUVFG9U.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-IBB5Tl9j.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-CIxipgmy.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-srE0XGv_.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-59TQSa_j.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-DzaHHFTY.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-sH2JAGjN.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CSoQzgif.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-BqtQrzRp.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-aeT0-ak7.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-BOQ9RtXF.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-BqG2VzO2.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CIiI48o2.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-NgWrSVUg.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-D44NvAEk.js"),[])}],en=Object.fromEntries(pt.map(n=>[n.id,n.import])),tn=Object.fromEntries(pt.flatMap(n=>{var e;return((e=n.aliases)==null?void 0:e.map(t=>[t,n.import]))||[]})),nn={...en,...tn},rn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-RXHOmnpW.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-zchoCBdH.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-2aygx1xg.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-DdAYiE08.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],sn=Object.fromEntries(rn.map(n=>[n.id,n.import]));let x=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Be=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function an(){return 2147483648}function on(){return typeof performance<"u"?performance.now():Date.now()}const cn=(n,e)=>n+(e-n%e)%e;async function ln(n){let e,t;const r={};function i(h){t=h,r.HEAPU8=new Uint8Array(h),r.HEAPU32=new Uint32Array(h)}function s(h,p,R){r.HEAPU8.copyWithin(h,p,p+R)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function c(h){const p=r.HEAPU8.length;h=h>>>0;const R=an();if(h>R)return!1;for(let g=1;g<=4;g*=2){let _=p*(1+.2/g);_=Math.min(_,h+100663296);const E=Math.min(R,cn(Math.max(h,_),65536));if(a(E))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,p,R=1024){const g=p+R;let _=p;for(;h[_]&&!(_>=g);)++_;if(_-p>16&&h.buffer&&o)return o.decode(h.subarray(p,_));let E="";for(;p<_;){let y=h[p++];if(!(y&128)){E+=String.fromCharCode(y);continue}const A=h[p++]&63;if((y&224)===192){E+=String.fromCharCode((y&31)<<6|A);continue}const L=h[p++]&63;if((y&240)===224?y=(y&15)<<12|A<<6|L:y=(y&7)<<18|A<<12|L<<6|h[p++]&63,y<65536)E+=String.fromCharCode(y);else{const w=y-65536;E+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return E}function d(h,p){return h?u(r.HEAPU8,h,p):""}const m={emscripten_get_now:on,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function f(){const p=await n({env:m,wasi_snapshot_preview1:m});e=p.memory,i(e.buffer),Object.assign(r,p),r.UTF8ToString=d}return await f(),r}let I=null;function un(n){throw new Be(n.UTF8ToString(n.getLastOnigError()))}class ge{constructor(e){T(this,"utf16Length");T(this,"utf8Length");T(this,"utf16Value");T(this,"utf8Value");T(this,"utf16OffsetToUtf8");T(this,"utf8OffsetToUtf16");const t=e.length,r=ge._utf8ByteLength(e),i=r!==t,s=i?new Uint32Array(t+1):null;i&&(s[t]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=t);const c=new Uint8Array(r);let o=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,f=!1;if(d>=55296&&d<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(m=(d-55296<<10)+65536|h-56320,f=!0)}i&&(s[u]=o,f&&(s[u+1]=o),m<=127?a[o+0]=u:m<=2047?(a[o+0]=u,a[o+1]=u):m<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),m<=127?c[o++]=m:m<=2047?(c[o++]=192|(m&1984)>>>6,c[o++]=128|(m&63)>>>0):m<=65535?(c[o++]=224|(m&61440)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0):(c[o++]=240|(m&1835008)>>>18,c[o++]=128|(m&258048)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0),f&&u++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,i=e.length;r<i;r++){const s=e.charCodeAt(r);let a=s,c=!1;if(s>=55296&&s<=56319&&r+1<i){const o=e.charCodeAt(r+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const C=class C{constructor(e){T(this,"id",++C.LAST_ID);T(this,"_onigBinding");T(this,"content");T(this,"utf16Length");T(this,"utf8Length");T(this,"utf16OffsetToUtf8");T(this,"utf8OffsetToUtf16");T(this,"ptr");if(!I)throw new Be("Must invoke loadWasm first.");this._onigBinding=I,this.content=e;const t=new ge(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!C._sharedPtrInUse?(C._sharedPtr||(C._sharedPtr=I.omalloc(1e4)),C._sharedPtrInUse=!0,I.HEAPU8.set(t.utf8Value,C._sharedPtr),this.ptr=C._sharedPtr):this.ptr=t.createString(I)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===C._sharedPtr?C._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};T(C,"LAST_ID",0),T(C,"_sharedPtr",0),T(C,"_sharedPtrInUse",!1);let ae=C;class dn{constructor(e){T(this,"_onigBinding");T(this,"_ptr");if(!I)throw new Be("Must invoke loadWasm first.");const t=[],r=[];for(let c=0,o=e.length;c<o;c++){const u=new ge(e[c]);t[c]=u.createString(I),r[c]=u.utf8Length}const i=I.omalloc(4*e.length);I.HEAPU32.set(t,i/4);const s=I.omalloc(4*e.length);I.HEAPU32.set(r,s/4);const a=I.createOnigScanner(i,s,e.length);for(let c=0,o=e.length;c<o;c++)I.ofree(t[c]);I.ofree(s),I.ofree(i),a===0&&un(I),this._onigBinding=I,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new ae(e);const s=this._findNextMatchSync(e,t,!1,i);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,r,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],d=c[o++],m=[];for(let f=0;f<d;f++){const h=e.convertUtf8OffsetToUtf16(c[o++]),p=e.convertUtf8OffsetToUtf16(c[o++]);m[f]={start:h,end:p,length:p-h}}return{index:u,captureIndices:m}}}function mn(n){return typeof n.instantiator=="function"}function hn(n){return typeof n.default=="function"}function fn(n){return typeof n.data<"u"}function pn(n){return typeof Response<"u"&&n instanceof Response}function _n(n){var e;return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,n))||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let ee;function gn(n){if(ee)return ee;async function e(){I=await ln(async t=>{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),mn(r)?r=await r.instantiator(t):hn(r)?r=await r.default(t):(fn(r)&&(r=r.data),pn(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await En(r)(t):r=await yn(r)(t):_n(r)?r=await Ae(r)(t):r instanceof WebAssembly.Module?r=await Ae(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ae(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ee=e(),ee}function Ae(n){return e=>WebAssembly.instantiate(n,e)}function En(n){return e=>WebAssembly.instantiateStreaming(n,e)}function yn(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Rn;function Tn(){return Rn}async function _t(n){return n&&await gn(n),{createScanner(e){return new dn(e)},createString(e){return new ae(e)}}}function An(n){return je(n)}function je(n){return Array.isArray(n)?Ln(n):typeof n=="object"?bn(n):n}function Ln(n){let e=[];for(let t=0,r=n.length;t<r;t++)e[t]=je(n[t]);return e}function bn(n){let e={};for(let t in n)e[t]=je(n[t]);return e}function gt(n,...e){return e.forEach(t=>{for(let r in t)n[r]=t[r]}),n}function Et(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Et(n.substring(0,n.length-1)):n.substr(~e+1)}var Le=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,te=class{static hasCaptures(n){return n===null?!1:(Le.lastIndex=0,Le.test(n))}static replaceCaptures(n,e,t){return n.replace(Le,(r,i,s,a)=>{let c=t[parseInt(i||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return r})}};function yt(n,e){return n<e?-1:n>e?1:0}function Rt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let i=0;i<t;i++){let s=yt(n[i],e[i]);if(s!==0)return s}return 0}return t-r}function Xe(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function Tt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(n){this.fn=n,this.cache=new Map}get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},oe=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t,this._cachedMatchRoot=new At(r=>this._root.match(r))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Sn(n),e)}static createFromParsedTheme(n,e){return wn(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(i=>Pn(n.parent,i.parentScopes));return r?new Lt(r.fontStyle,r.foreground,r.background):null}},be=class ie{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ie(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ie(t,e[r]);return t}push(e){return new ie(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 r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function Pn(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],i=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],i=!0}for(;n&&!In(n.scopeName,r);){if(i)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function In(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Lt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Sn(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let i=0,s=e.length;i<s;i++){let a=e[i];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let m=a.settings.fontStyle.split(" ");for(let f=0,h=m.length;f<h;f++)switch(m[f]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&Xe(a.settings.foreground)&&(u=a.settings.foreground);let d=null;typeof a.settings.background=="string"&&Xe(a.settings.background)&&(d=a.settings.background);for(let m=0,f=c.length;m<f;m++){let p=c[m].trim().split(" "),R=p[p.length-1],g=null;p.length>1&&(g=p.slice(0,p.length-1),g.reverse()),t[r++]=new On(R,g,i,o,u,d)}}return t}var On=class{constructor(n,e,t,r,i,s){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=i,this.background=s}},v=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(v||{});function wn(n,e){n.sort((o,u)=>{let d=yt(o.scope,u.scope);return d!==0||(d=Rt(o.parentScopes,u.parentScopes),d!==0)?d:o.index-u.index});let t=0,r="#000000",i="#ffffff";for(;n.length>=1&&n[0].scope==="";){let o=n.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(r=o.foreground),o.background!==null&&(i=o.background)}let s=new Cn(e),a=new Lt(t,s.getId(r),s.getId(i)),c=new kn(new Oe(0,null,-1,0,0),[]);for(let o=0,u=n.length;o<u;o++){let d=n[o];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new oe(s,a,c)}var Cn=class{constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Dn=Object.freeze([]),Oe=class bt{constructor(e,t,r,i,s){this.scopeDepth=e,this.parentScopes=t||Dn,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new bt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,i=e.length;r<i;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},kn=class we{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=t.parentScopes.length);){const s=t.parentScopes[i].length-e.parentScopes[r].length;if(s!==0)return s;r++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,s;if(r===-1?(i=e,s=""):(i=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(we._cmpBySpecificity),t}insert(e,t,r,i,s,a){if(t===""){this._doInsertHere(e,r,i,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let d;this._children.hasOwnProperty(o)?d=this._children[o]:(d=new we(this._mainRule.clone(),Oe.cloneArr(this._rulesWithParentScopes)),this._children[o]=d),d.insert(e+1,u,r,i,s,a)}_doInsertHere(e,t,r,i,s){if(t===null){this._mainRule.acceptOverwrite(e,r,i,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(Rt(o.parentScopes,t)===0){o.acceptOverwrite(e,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Oe(e,t,r,i,s))}},F=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),i=D.getFontStyle(e),s=D.getForeground(e),a=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:i,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,i,s,a,c){let o=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),f=D.getForeground(e),h=D.getBackground(e);return t!==0&&(o=t),r!==8&&(u=r),i!==null&&(d=i?1:0),s!==-1&&(m=s),a!==0&&(f=a),c!==0&&(h=c),(o<<0|u<<8|d<<10|m<<11|f<<15|h<<24)>>>0}};function ce(n,e){const t=[],r=Nn(n);let i=r.next();for(;i!==null;){let o=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=a();if(t.push({matcher:u,priority:o}),i!==",")break;i=r.next()}return t;function s(){if(i==="-"){i=r.next();const o=s();return u=>!!o&&!o(u)}if(i==="("){i=r.next();const o=c();return i===")"&&(i=r.next()),o}if(Ye(i)){const o=[];do o.push(i),i=r.next();while(Ye(i));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return d=>o.every(m=>m(d))}function c(){const o=[];let u=a();for(;u&&(o.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=a()}return d=>o.some(m=>m(d))}}function Ye(n){return!!n&&!!n.match(/[\w\.:]+/)}function Nn(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Pt(n){typeof n.dispose=="function"&&n.dispose()}var J=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},Vn=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},vn=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},xn=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new J(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new vn;for(const t of n)Gn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof J){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 Gn(n,e,t,r){const i=t.lookup(n.scopeName);if(!i){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);n instanceof J?se({baseGrammar:s,selfGrammar:i},r):Ce(n.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const a=t.injections(n.scopeName);if(a)for(const c of a)r.add(new J(c))}function Ce(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];le([r],e,t)}}function se(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&le(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&le(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function le(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const i=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&le(r.patterns,{...e,repository:i},t);const s=r.include;if(!s)continue;const a=It(s);switch(a.kind){case 0:se({...e,selfGrammar:e.baseGrammar},t);break;case 1:se(e,t);break;case 2:Ce(a.ruleName,{...e,repository:i},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};a.kind===4?Ce(a.ruleName,o,t):se(o,t)}else a.kind===4?t.add(new Vn(a.scopeName,a.ruleName)):t.add(new J(a.scopeName));break}}}var Mn=class{constructor(){this.kind=0}},Bn=class{constructor(){this.kind=1}},jn=class{constructor(n){this.ruleName=n,this.kind=2}},$n=class{constructor(n){this.scopeName=n,this.kind=3}},Fn=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function It(n){if(n==="$base")return new Mn;if(n==="$self")return new Bn;const e=n.indexOf("#");if(e===-1)return new $n(n);if(e===0)return new jn(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new Fn(t,r)}}var Wn=/\\(\d+)/,Ze=/\\(\d+)/g,Un=-1,St=-2;var Y=class{constructor(n,e,t,r){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=te.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=te.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:te.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:te.replaceCaptures(this._contentName,n,e)}},Hn=class extends Y{constructor(n,e,t,r,i){super(n,e,t,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,r){throw new Error("Not supported!")}},qn=class extends Y{constructor(n,e,t,r,i){super(n,e,t,null),this._match=new K(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Q,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},et=class extends Y{constructor(n,e,t,r,i){super(n,e,t,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Q,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},De=class extends Y{constructor(n,e,t,r,i,s,a,c,o,u){super(n,e,t,r),this._begin=new K(i,this.id),this.beginCaptures=s,this._end=new K(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=o||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,r)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Q;for(const t of this.patterns)n.getRule(t).collectPatterns(n,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}},ue=class extends Y{constructor(n,e,t,r,i,s,a,c,o){super(n,e,t,r),this._begin=new K(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new K(a,St),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Q;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,r){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,r)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Q,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Ot=class S{static createCaptureRule(e,t,r,i,s){return e.registerRule(a=>new Hn(t,a,r,i,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new qn(e.$vscodeTextmateLocation,e.id,e.name,e.match,S._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new et(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,S._compilePatterns(s,t,r))}return e.while?new ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,S._compileCaptures(e.whileCaptures||e.captures,t,r),S._compilePatterns(e.patterns,t,r)):new De(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,S._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,S._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let i=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=S.getCompiledRuleId(e[a],t,r)),i[c]=S.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return i}static _compilePatterns(e,t,r){let i=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=It(c.include);switch(u.kind){case 0:case 1:o=S.getCompiledRuleId(r[c.include],t,r);break;case 2:let d=r[u.ruleName];d&&(o=S.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,f=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(m,r);if(h)if(f){let p=h.repository[f];p&&(o=S.getCompiledRuleId(p,t,h.repository))}else o=S.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else o=S.getCompiledRuleId(c,t,r);if(o!==-1){const u=t.getRule(o);let d=!1;if((u instanceof et||u instanceof De||u instanceof ue)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},K=class wt{constructor(e,t){if(e){const r=e.length;let i=0,s=[],a=!1;for(let c=0;c<r;c++)if(e.charAt(c)==="\\"&&c+1<r){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,i===0?this.source=e:(s.push(e.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=Wn.test(this.source)}clone(){return new wt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let r=t.map(i=>e.substring(i.start,i.end));return Ze.lastIndex=0,this.source.replace(Ze,(i,s)=>Tt(r[parseInt(s,10)]||""))}_buildAnchorCache(){let e=[],t=[],r=[],i=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,r[s]=c,i[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",i[s+1]="A"):o==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",i[s+1]="G"):(e[s+1]=o,t[s+1]=o,r[s+1]=o,i[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Q=class{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(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new tt(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(i=>i.resolveAnchors(e,t));return new tt(n,r,this._items.map(i=>i.ruleId))}},tt=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
|
|
3
3
|
`)}findNextMatchSync(n,e,t){const r=this.scanner.findNextMatchSync(n,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ke=class{constructor(n,e){this.languageId=n,this.tokenType=e}},$e=class Ne{constructor(e,t){this._getBasicScopeAttributes=new At(r=>{const i=this._scopeToLanguage(r),s=this._toStandardTokenType(r);return new ke(i,s)}),this._defaultAttributes=new ke(e,8),this._embeddedLanguagesMatcher=new Jn(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ne._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Ne.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!")}};$e._NULL_SCOPE_METADATA=new ke(0,0);$e.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var zn=$e,Jn=class{constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,r])=>Tt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},nt=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function Ct(n,e,t,r,i,s,a,c){const o=e.content.length;let u=!1,d=-1;if(a){const h=Kn(n,e,t,r,i,s);i=h.stack,r=h.linePos,t=h.isFirstLine,d=h.anchorPosition}const m=Date.now();for(;!u;){if(c!==0&&Date.now()-m>c)return new nt(i,!0);f()}return new nt(i,!1);function f(){const h=Qn(n,e,t,r,i,d);if(!h){s.produce(i,o),u=!0;return}const p=h.captureIndices,R=h.matchedRuleId,g=p&&p.length>0?p[0].end>r:!1;if(R===Un){const _=i.getRule(n);s.produce(i,p[0].start),i=i.withContentNameScopesList(i.nameScopesList),q(n,e,t,i,s,_.endCaptures,p),s.produce(i,p[0].end);const E=i;if(i=i.parent,d=E.getAnchorPos(),!g&&E.getEnterPos()===r){i=E,s.produce(i,o),u=!0;return}}else{const _=n.getRule(R);s.produce(i,p[0].start);const E=i,y=_.getName(e.content,p),A=i.contentNameScopesList.pushAttributed(y,n);if(i=i.push(R,r,d,p[0].end===o,null,A,A),_ instanceof De){const L=_;q(n,e,t,i,s,L.beginCaptures,p),s.produce(i,p[0].end),d=p[0].end;const w=L.getContentName(e.content,p),b=A.pushAttributed(w,n);if(i=i.withContentNameScopesList(b),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(e.content,p))),!g&&E.hasSameRuleAs(i)){i=i.pop(),s.produce(i,o),u=!0;return}}else if(_ instanceof ue){const L=_;q(n,e,t,i,s,L.beginCaptures,p),s.produce(i,p[0].end),d=p[0].end;const w=L.getContentName(e.content,p),b=A.pushAttributed(w,n);if(i=i.withContentNameScopesList(b),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(e.content,p))),!g&&E.hasSameRuleAs(i)){i=i.pop(),s.produce(i,o),u=!0;return}}else if(q(n,e,t,i,s,_.captures,p),s.produce(i,p[0].end),i=i.pop(),!g){i=i.safePop(),s.produce(i,o),u=!0;return}}p[0].end>r&&(r=p[0].end,t=!1)}}function Kn(n,e,t,r,i,s){let a=i.beginRuleCapturedEOL?0:-1;const c=[];for(let o=i;o;o=o.pop()){const u=o.getRule(n);u instanceof ue&&c.push({rule:u,stack:o})}for(let o=c.pop();o;o=c.pop()){const{ruleScanner:u,findOptions:d}=Zn(o.rule,n,o.stack.endRule,t,r===a),m=u.findNextMatchSync(e,r,d);if(m){if(m.ruleId!==St){i=o.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(o.stack,m.captureIndices[0].start),q(n,e,t,o.stack,s,o.rule.whileCaptures,m.captureIndices),s.produce(o.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,t=!1))}else{i=o.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:t}}function Qn(n,e,t,r,i,s){const a=Xn(n,e,t,r,i,s),c=n.getInjections();if(c.length===0)return a;const o=Yn(c,n,e,t,r,i,s);if(!o)return a;if(!a)return o;const u=a.captureIndices[0].start,d=o.captureIndices[0].start;return d<u||o.priorityMatch&&d===u?o:a}function Xn(n,e,t,r,i,s){const a=i.getRule(n),{ruleScanner:c,findOptions:o}=Dt(a,n,i.endRule,t,r===s),u=c.findNextMatchSync(e,r,o);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Yn(n,e,t,r,i,s,a){let c=Number.MAX_VALUE,o=null,u,d=0;const m=s.contentNameScopesList.getScopeNames();for(let f=0,h=n.length;f<h;f++){const p=n[f];if(!p.matcher(m))continue;const R=e.getRule(p.ruleId),{ruleScanner:g,findOptions:_}=Dt(R,e,null,r,i===a),E=g.findNextMatchSync(t,i,_);if(!E)continue;const y=E.captureIndices[0].start;if(!(y>=c)&&(c=y,o=E.captureIndices,u=E.ruleId,d=p.priority,c===i))break}return o?{priorityMatch:d===-1,captureIndices:o,matchedRuleId:u}:null}function Dt(n,e,t,r,i){return{ruleScanner:n.compileAG(e,t,r,i),findOptions:0}}function Zn(n,e,t,r,i){return{ruleScanner:n.compileWhileAG(e,t,r,i),findOptions:0}}function q(n,e,t,r,i,s,a){if(s.length===0)return;const c=e.content,o=Math.min(s.length,a.length),u=[],d=a[0].end;for(let m=0;m<o;m++){const f=s[m];if(f===null)continue;const h=a[m];if(h.length===0)continue;if(h.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),f.retokenizeCapturedWithRuleId){const R=f.getName(c,a),g=r.contentNameScopesList.pushAttributed(R,n),_=f.getContentName(c,a),E=g.pushAttributed(_,n),y=r.push(f.retokenizeCapturedWithRuleId,h.start,-1,!1,null,g,E),A=n.createOnigString(c.substring(0,h.end));Ct(n,A,t&&h.start===0,h.start,y,i,!1,0),Pt(A);continue}const p=f.getName(c,a);if(p!==null){const g=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,n);u.push(new er(g,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var er=class{constructor(n,e){this.scopes=n,this.endPos=e}};function tr(n,e,t,r,i,s,a,c){return new rr(n,e,t,r,i,s,a,c)}function rt(n,e,t,r,i){const s=ce(e,de),a=Ot.getCompiledRuleId(t,r,i.repository);for(const c of s)n.push({debugSelector:e,matcher:c.matcher,ruleId:a,grammar:i,priority:c.priority})}function de(n,e){if(e.length<n.length)return!1;let t=0;return n.every(r=>{for(let i=t;i<e.length;i++)if(nr(e[i],r))return t=i+1,!0;return!1})}function nr(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var rr=class{constructor(n,e,t,r,i,s,a,c){if(this._rootScopeName=n,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new zn(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=it(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const o of Object.keys(i)){const u=ce(o,de);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:i[o]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],t=this._rootScopeName,r=n.lookup(t);if(r){const i=r.injections;if(i)for(let a in i)rt(e,a,i[a],this,r);const s=this._grammarRepository.injections(t);s&&s.forEach(a=>{const c=this.getExternalGrammar(a);if(c){const o=c.injectionSelector;o&&rt(e,o,c,this,c)}})}return e.sort((i,s)=>i.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=it(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const r=this._tokenize(n,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(n,e,t=0){const r=this._tokenize(n,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(n,e,t,r){this._rootId===-1&&(this._rootId=Ot.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===ve.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=F.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),f=this.getRule(this._rootId).getName(null,null);let h;f?h=z.createRootAndLookUpScopeName(f,m,this):h=z.createRoot("unknown",m),e=new ve(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,e.reset();n=n+`
|
|
4
4
|
`;const s=this.createOnigString(n),a=s.content.length,c=new sr(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),o=Ct(this,s,i,0,e,c,!0,r);return Pt(s),{lineLength:a,lineTokens:c,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function it(n,e){return n=An(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var z=class k{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,i=(e==null?void 0:e.scopePath)??null;for(const s of t)i=be.push(i,s.scopeNames),r=new k(r,i,s.encodedTokenAttributes);return r}static createRoot(e,t){return new k(null,new be(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const i=r.getMetadataForScope(e),s=new be(null,e),a=r.themeProvider.themeMatch(s),c=k.mergeAttributes(t,i,a);return new k(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return k.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,r){let i=-1,s=0,a=0;return r!==null&&(i=r.fontStyle,s=r.foregroundId,a=r.backgroundId),F.set(e,t.languageId,t.tokenType,null,i,s,a)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return k._pushAttributed(this,e,t);const r=e.split(/ /g);let i=this;for(const s of r)i=k._pushAttributed(i,s,t);return i}static _pushAttributed(e,t,r){const i=r.getMetadataForScope(t),s=e.scopePath.push(t),a=r.themeProvider.themeMatch(s),c=k.mergeAttributes(e.tokenAttributes,i,a);return new k(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((i=r.parent)==null?void 0:i.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},Ve=class j{constructor(e,t,r,i,s,a,c,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=c,this.contentNameScopesList=o,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(e){return e===null?!1:j._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?z.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(){j._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,i,s,a,c){return new j(this,e,t,r,i,s,a,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,i;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.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 j(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(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=z.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new j(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,z.fromExtension(r,t.contentNameScopesList))}};Ve.NULL=new Ve(null,0,0,0,!1,null,null,null);var ve=Ve,ir=class{constructor(n,e){this.allowAny=!1,this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):ce(t,de).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>ce(t,de).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},sr=class{constructor(n,e,t,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(n==null?void 0:n.tokenAttributes)??0,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(n==null?void 0:n.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(a)&&(i=F.set(i,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(a))}if(s&&(i=F.set(i,0,8,s,-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=(n==null?void 0:n.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,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(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,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(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)t[r]=this._binaryTokens[r];return t}},ar=class{constructor(n,e){this._onigLib=e,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=n}dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,r,i){if(!this._grammars.has(n)){let s=this._rawGrammars.get(n);if(!s)return null;this._grammars.set(n,tr(n,s,e,t,r,i,this,this._onigLib))}return this._grammars.get(n)}},or=class{constructor(e){this._options=e,this._syncRegistry=new ar(oe.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(oe.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new ir(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,i,s){const a=new xn(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(c=>this._loadSingleGrammar(c.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,t=0,r=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,r,i,s)}},xe=ve.NULL;const cr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],lr=/["&'<>`]/g,ur=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mr=/[|\\{}()[\]^$+*?.]/g,st=new WeakMap;function hr(n,e){if(n=n.replace(e.subset?fr(e.subset):lr,r),e.subset||e.escapeOnly)return n;return n.replace(ur,t).replace(dr,r);function t(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function r(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}function fr(n){let e=st.get(n);return e||(e=pr(n),st.set(n,e)),e}function pr(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(mr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const _r=/[\dA-Fa-f]/;function gr(n,e,t){const r="&#x"+n.toString(16).toUpperCase();return t&&e&&!_r.test(String.fromCharCode(e))?r:r+";"}const Er=/\d/;function yr(n,e,t){const r="&#"+String(n);return t&&e&&!Er.test(String.fromCharCode(e))?r:r+";"}const Rr=["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"],Pe={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:"€"},Tr=["cent","copy","divide","gt","lt","not","para","times"],kt={}.hasOwnProperty,Ge={};let ne;for(ne in Pe)kt.call(Pe,ne)&&(Ge[Pe[ne]]=ne);const Ar=/[^\dA-Za-z]/;function Lr(n,e,t,r){const i=String.fromCharCode(n);if(kt.call(Ge,i)){const s=Ge[i],a="&"+s;return t&&Rr.includes(s)&&!Tr.includes(s)&&(!r||e&&e!==61&&Ar.test(String.fromCharCode(e)))?a:a+";"}return""}function br(n,e,t){let r=gr(n,e,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=Lr(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const s=yr(n,e,t.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function $(n,e){return hr(n,Object.assign({format:br},e))}const Pr=/^>|^->|<!--|-->|--!>|<!-$/g,Ir=[">"],Sr=["<",">"];function Or(n,e,t,r){return r.settings.bogusComments?"<?"+$(n.value,Object.assign({},r.settings.characterReferences,{subset:Ir}))+">":"<!--"+n.value.replace(Pr,i)+"-->";function i(s){return $(s,Object.assign({},r.settings.characterReferences,{subset:Sr}))}}function wr(n,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const P=Vt(1),Nt=Vt(-1),Cr=[];function Vt(n){return e;function e(t,r,i){const s=t?t.children:Cr;let a=(r||0)+n,c=s[a];if(!i)for(;c&&Me(c);)a+=n,c=s[a];return c}}const Dr={}.hasOwnProperty;function vt(n){return e;function e(t,r,i){return Dr.call(n,t.tagName)&&n[t.tagName](t,r,i)}}const Fe=vt({body:Nr,caption:Ie,colgroup:Ie,dd:Gr,dt:xr,head:Ie,html:kr,li:vr,optgroup:Mr,option:Br,p:Vr,rp:at,rt:at,tbody:$r,td:ot,tfoot:Fr,th:ot,thead:jr,tr:Wr});function Ie(n,e,t){const r=P(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Me(r.value.charAt(0)))}function kr(n,e,t){const r=P(t,e);return!r||r.type!=="comment"}function Nr(n,e,t){const r=P(t,e);return!r||r.type!=="comment"}function Vr(n,e,t){const r=P(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.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 vr(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="li"}function xr(n,e,t){const r=P(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Gr(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function at(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Mr(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Br(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function jr(n,e,t){const r=P(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function $r(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Fr(n,e,t){return!P(t,e)}function Wr(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function ot(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ur=vt({body:zr,colgroup:Jr,head:qr,html:Hr,tbody:Kr});function Hr(n){const e=P(n,-1);return!e||e.type!=="comment"}function qr(n){const e=new Set;for(const r of n.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=n.children[0];return!t||t.type==="element"}function zr(n){const e=P(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Me(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Jr(n,e,t){const r=Nt(t,e),i=P(n,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Fe(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Kr(n,e,t){const r=Nt(t,e),i=P(n,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Fe(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const re={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|