@qnroa/qtype 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/CHANGELOG.zh.md +19 -0
- package/dist/view/assets/index-CeSHvqfR.js +182 -0
- package/dist/view/assets/{index-y4VkSsUN.js → index-TskEzyRz.js} +2 -2
- package/dist/view/assets/{index-CpOQ9x3V.js → index-nAVje4CH.js} +1 -1
- package/dist/view/index.html +1 -1
- package/package.json +1 -1
- package/dist/view/assets/index--xiys9ma.js +0 -182
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{r as l,_ as h,u as g,j as f,C as p,M as m,T as y,a as w}from"./index
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-nAVje4CH.js","assets/index-CeSHvqfR.js","assets/index-_1m9NuFe.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as l,_ as h,u as g,j as f,C as p,M as m,T as y,a as w}from"./index-CeSHvqfR.js";let o=null,c=null;async function L(){return o||c||(c=h(()=>import("./index-nAVje4CH.js"),__vite__mapDeps([0,1,2])).then(async e=>(o=await e.createHighlighter({themes:["github-dark","github-light"],langs:[]}),o)),c)}async function _(e,t){if(!e.getLoadedLanguages().includes(t))try{await e.loadLanguage(t)}catch{}}function x(e){const[t,n]=l.useState(o);return l.useEffect(()=>{if(!e)return;let r=!1;return(async()=>{const s=await L();await _(s,e),r||n(s)})(),()=>{r=!0}},[e]),t}const A=/```(\w+)/;function E(e){const t=e.toLowerCase();return t.includes("typescript")||t.endsWith(".ts")?"typescript":t.includes("python")||t.endsWith(".py")?"python":t.includes("cpp")||t.includes("c++")?"cpp":t.includes("java")&&!t.includes("script")?"java":t.includes("go")?"go":t.includes("rust")||t.endsWith(".rs")?"rust":t.includes("code-c")||t.endsWith(".c")?"c":"javascript"}function j(e,t){if(e){const n=e.match(A);if(n)return n[1]}return E(t)}function k(e,t,n,r){if(!r||!r.getLoadedLanguages().includes(t))return new Array(Array.from(e).length).fill(null);try{const s=r.codeToTokens(e,{lang:t,theme:n}),i=[];for(const u of s.tokens){for(const a of u)for(const d of a.content)i.push(a.color??null);i.push(null)}return!e.endsWith(`
|
|
3
3
|
`)&&i.length>Array.from(e).length&&i.pop(),i}catch{return new Array(Array.from(e).length).fill(null)}}function v(e){var d;const{material:t,card:n}=e,[r]=g(),s=l.useMemo(()=>r?j(n.question,t.filePath):"",[n.question,t.filePath,r]),i=typeof document<"u"&&((d=document.documentElement.getAttribute("data-theme"))!=null&&d.includes("latte"))?"github-light":"github-dark",u=x(r?s:""),a=l.useMemo(()=>r?k(n.answer,s,i,u):void 0,[n.answer,s,i,u,r]);return f.jsx(p,{type:"code",variant:"flow",slots:[{role:"title",content:n.title},n.question?{role:"question",content:f.jsx(m,{source:n.question})}:{role:"question",content:null},{role:"arena",content:f.jsx(y,{...w(e),charColors:a},n.id)}]})}export{v as CodeCard};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DA-rfuFy.js","assets/html-pp8916En.js","assets/javascript-wDzz0qaB.js","assets/css-CLj8gQPS.js","assets/angular-ts-BrjP3tb8.js","assets/scss-D5BDwBP9.js","assets/apl-CORt7UWP.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-HNnZUWAn.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-2xfisSek.js","assets/html-derivative-DlHx6ybY.js","assets/sql-CRqJ_cUM.js","assets/bsl-DlhNcFeZ.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/chapel-DTp_pixX.js","assets/c-BIGW1oBm.js","assets/cobol-nBiQ_Alo.js","assets/coffee-Ch7k5sss.js","assets/cpp-BMRokrvK.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/crystal-DGywbUpC.js","assets/shellscript-Yzrsuije.js","assets/edge-FbVlp4U3.js","assets/elixir-CkH2-t6x.js","assets/elm-DbKCFpqz.js","assets/erb-DXfck5VN.js","assets/ruby-C0TQ7zu5.js","assets/haml-D5jkg6IW.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-TyuKm33G.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DqcFQ5yU.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-ByusRIyA.js","assets/glimmer-ts-BfAWNZQY.js","assets/hack-BWmVpMyf.js","assets/handlebars-BpdQsYii.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-2-FPmUDs.js","assets/haxe-CfZj7gIn.js","assets/jinja-f2NsQr07.js","assets/jison-wvAkD_A8.js","assets/julia-5Bft2YPA.js","assets/r-Cf5RLm7j.js","assets/just-Cwhn7H3k.js","assets/perl-B9cMNwum.js","assets/latex-D5pSuvFb.js","assets/tex-D96PA37w.js","assets/liquid-C0sCDyMI.js","assets/marko-DjSrsDqO.js","assets/less-B1dDrJ26.js","assets/mdc-D1_yUvq7.js","assets/nextflow-C-mBbutL.js","assets/nextflow-groovy-vE_lwT2v.js","assets/nginx-BpAMiNFr.js","assets/nim-BIad80T-.js","assets/org-DM6o9KBp.js","assets/ini-BEwlwnbL.js","assets/make-CHLpvVh8.js","assets/php-Csjmro_R.js","assets/vb-Cu-pLBUe.js","assets/clojure-P80f7IUj.js","assets/objective-c-DXmwc3jG.js","assets/docker-BcOcwvcX.js","assets/go-C27-OAKa.js","assets/groovy-gcz8RCvz.js","assets/raku-DXvB9xmW.js","assets/rust-B1yitclQ.js","assets/scala-CqE71os6.js","assets/csharp-DSvCPggb.js","assets/dart-bE4Kk8sk.js","assets/ocaml-C0hk2d4L.js","assets/zig-VOosw3JB.js","assets/xsl-CtQFsRM5.js","assets/pug-DKIMFp6K.js","assets/qml-3beO22l8.js","assets/razor-BjBPvh-w.js","assets/rst-bs7f0vWN.js","assets/cmake-D1j8_8rp.js","assets/sas-DEy46yEz.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-8wufbnw4.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-DI20mbqo.js","assets/surrealql-Cjom0U5J.js","assets/svelte-Cy7k_4gC.js","assets/templ-DhtptRzy.js","assets/ts-tags-D351s5mN.js","assets/twig-27uCiNez.js","assets/typst-BUadGCkm.js","assets/bat-CickPsom.js","assets/bibtex-CHM0blh-.js","assets/jsonc-Des-eS-w.js","assets/log-2UxHyX5q.js","assets/powershell-BmBUJMz7.js","assets/swift-C2oV4EkX.js","assets/verilog-nZwndyjY.js","assets/system-verilog-0hqHdDBg.js","assets/vue-BqiEGhQt.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-BoDAl6tE.js","assets/stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Vi=Object.defineProperty;var $i=Object.getPrototypeOf;var Mi=Reflect.get;var Sn=t=>{throw TypeError(t)};var Gi=(t,e,n)=>e in t?Vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var g=(t,e,n)=>Gi(t,typeof e!="symbol"?e+"":e,n),It=(t,e,n)=>e.has(t)||Sn("Cannot "+n);var U=(t,e,n)=>(It(t,e,"read from private field"),n?n.call(t):e.get(t)),fe=(t,e,n)=>e.has(t)?Sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Q=(t,e,n,r)=>(It(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Lt=(t,e,n)=>(It(t,e,"access private method"),n);var Rn=(t,e,n)=>Mi($i(t),n,e);import{_ as c}from"./index--xiys9ma.js";var Wt=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Ui=Object.getOwnPropertyNames,Fi=Object.prototype.hasOwnProperty,ji=(t,e)=>{let n={};for(var r in t)Wt(n,r,{get:t[r],enumerable:!0});return Wt(n,Symbol.toStringTag,{value:"Module"}),n},Hi=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var i=Ui(e),o=0,s=i.length,a;o<s;o++)a=i[o],!Fi.call(t,a)&&a!==n&&Wt(t,a,{get:(l=>e[l]).bind(null,a),enumerable:!(r=Bi(e,a))||r.enumerable});return t},Wi=(t,e,n)=>(Hi(t,e,"default"),n);const _r=[{id:"abap",name:"ABAP",import:()=>c(()=>import("./abap-BdImnpbu.js"),[])},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:()=>c(()=>import("./actionscript-3-B3316cI-.js"),[])},{id:"ada",name:"Ada",import:()=>c(()=>import("./ada-bCR0ucgS.js"),[])},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:()=>c(()=>import("./ahk-CsyLZFj1.js"),[])},{id:"ahk2",name:"AutoHotkey2",import:()=>c(()=>import("./ahk2-8Zs4aa1G.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>c(()=>import("./angular-html-DA-rfuFy.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>c(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>c(()=>import("./apache-Pmp26Uib.js"),[])},{id:"apex",name:"Apex",import:()=>c(()=>import("./apex-DhZFqWV2.js"),[])},{id:"apl",name:"APL",import:()=>c(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>c(()=>import("./applescript-Co6uUVPk.js"),[])},{id:"ara",name:"Ara",import:()=>c(()=>import("./ara-BRHolxvo.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c(()=>import("./asciidoc-CSVQ5wI8.js"),[])},{id:"asm",name:"Assembly",import:()=>c(()=>import("./asm-D_Q5rh1f.js"),[])},{id:"astro",name:"Astro",import:()=>c(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>c(()=>import("./awk-DMzUqQB5.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>c(()=>import("./ballerina-BFfxhgS-.js"),[])},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:()=>c(()=>import("./bat-CickPsom.js"),[])},{id:"beancount",name:"Beancount",import:()=>c(()=>import("./beancount-k_qm7-4y.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>c(()=>import("./berry-uYugtg8r.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>c(()=>import("./bibtex-CHM0blh-.js"),[])},{id:"bicep",name:"Bicep",import:()=>c(()=>import("./bicep-Bmn6On1c.js"),[])},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>c(()=>import("./bird2-Bx8U0n9b.js"),[])},{id:"blade",name:"Blade",import:()=>c(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>c(()=>import("./c-BIGW1oBm.js"),[])},{id:"c3",name:"C3",import:()=>c(()=>import("./c3-Dp5svz6Z.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c(()=>import("./cadence-Bv_4Rxtq.js"),[])},{id:"cairo",name:"Cairo",import:()=>c(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:()=>c(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22]))},{id:"clarity",name:"Clarity",import:()=>c(()=>import("./clarity-Dn5IMItf.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c(()=>import("./clojure-P80f7IUj.js"),[])},{id:"cmake",name:"CMake",import:()=>c(()=>import("./cmake-D1j8_8rp.js"),[])},{id:"cobol",name:"COBOL",import:()=>c(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>c(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c(()=>import("./codeql-DsOJ9woJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>c(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[])},{id:"coq",name:"Rocq",import:()=>c(()=>import("./coq-C7JzOVbR.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>c(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22]))},{id:"crystal",name:"Crystal",import:()=>c(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c(()=>import("./csharp-DSvCPggb.js"),[])},{id:"css",name:"CSS",import:()=>c(()=>import("./css-CLj8gQPS.js"),[])},{id:"csv",name:"CSV",import:()=>c(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>c(()=>import("./cue-D82EKSYY.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c(()=>import("./cypher-COkxafJQ.js"),[])},{id:"d",name:"D",import:()=>c(()=>import("./d-85-TOEBH.js"),[])},{id:"dart",name:"Dart",import:()=>c(()=>import("./dart-bE4Kk8sk.js"),[])},{id:"dax",name:"DAX",import:()=>c(()=>import("./dax-CEL-wOlO.js"),[])},{id:"desktop",name:"Desktop",import:()=>c(()=>import("./desktop-BmXAJ9_W.js"),[])},{id:"diff",name:"Diff",import:()=>c(()=>import("./diff-D97Zzqfu.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>c(()=>import("./dotenv-Da5cRb03.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[])},{id:"edge",name:"Edge",import:()=>c(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>c(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3]))},{id:"elm",name:"Elm",import:()=>c(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c(()=>import("./emacs-lisp-C_m_b--Z.js"),[])},{id:"erb",name:"ERB",import:()=>c(()=>import("./erb-DXfck5VN.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>c(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41]))},{id:"fennel",name:"Fennel",import:()=>c(()=>import("./fennel-BYunw83y.js"),[])},{id:"fish",name:"Fish",import:()=>c(()=>import("./fish-BvzEVeQv.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c(()=>import("./fluent-C4IJs8-o.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>c(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41]))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>c(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47]))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>c(()=>import("./gdscript-DqcFQ5yU.js"),[])},{id:"gdshader",name:"GDShader",import:()=>c(()=>import("./gdshader-DkwncUOv.js"),[])},{id:"genie",name:"Genie",import:()=>c(()=>import("./genie-D0YGMca9.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>c(()=>import("./gherkin-DyxjwDmM.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>c(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>c(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29]))},{id:"gleam",name:"Gleam",import:()=>c(()=>import("./gleam-BspZqrRM.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>c(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>c(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>c(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22]))},{id:"gn",name:"GN",import:()=>c(()=>import("./gn-n2N0HUVH.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>c(()=>import("./gnuplot-DdkO51Og.js"),[])},{id:"go",name:"Go",import:()=>c(()=>import("./go-C27-OAKa.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>c(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13]))},{id:"groovy",name:"Groovy",import:()=>c(()=>import("./groovy-gcz8RCvz.js"),[])},{id:"hack",name:"Hack",import:()=>c(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>c(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>c(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c(()=>import("./haskell-Df6bDoY_.js"),[])},{id:"haxe",name:"Haxe",import:()=>c(()=>import("./haxe-CfZj7gIn.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>c(()=>import("./hcl-BWvSN4gD.js"),[])},{id:"hjson",name:"Hjson",import:()=>c(()=>import("./hjson-D5-asLiD.js"),[])},{id:"hlsl",name:"HLSL",import:()=>c(()=>import("./hlsl-D3lLCCz7.js"),[])},{id:"html",name:"HTML",import:()=>c(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>c(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>c(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13]))},{id:"hurl",name:"Hurl",import:()=>c(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57]))},{id:"hxml",name:"HXML",import:()=>c(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59]))},{id:"hy",name:"Hy",import:()=>c(()=>import("./hy-DFXneXwc.js"),[])},{id:"imba",name:"Imba",import:()=>c(()=>import("./imba-DGztddWO.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>c(()=>import("./ini-BEwlwnbL.js"),[])},{id:"java",name:"Java",import:()=>c(()=>import("./java-CylS5w8V.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>c(()=>import("./javascript-wDzz0qaB.js"),[])},{id:"jinja",name:"Jinja",import:()=>c(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3]))},{id:"jison",name:"Jison",import:()=>c(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2]))},{id:"json",name:"JSON",import:()=>c(()=>import("./json-Cp-IABpG.js"),[])},{id:"json5",name:"JSON5",import:()=>c(()=>import("./json5-C9tS-k6U.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>c(()=>import("./jsonc-Des-eS-w.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>c(()=>import("./jsonl-DcaNXYhu.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>c(()=>import("./jsonnet-DFQXde-d.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c(()=>import("./jssm-C2t-YnRu.js"),[])},{id:"jsx",name:"JSX",import:()=>c(()=>import("./jsx-g9-lgVsj.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>c(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16]))},{id:"just",name:"Just",aliases:["justfile"],import:()=>c(()=>import("./just-Cwhn7H3k.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39]))},{id:"kdl",name:"KDL",import:()=>c(()=>import("./kdl-DV7GczEv.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c(()=>import("./kotlin-BdnUsdx6.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c(()=>import("./kusto-wEQ09or8.js"),[])},{id:"latex",name:"LaTeX",import:()=>c(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c(()=>import("./lean-BZvkOJ9d.js"),[])},{id:"less",name:"Less",import:()=>c(()=>import("./less-B1dDrJ26.js"),[])},{id:"liquid",name:"Liquid",import:()=>c(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>c(()=>import("./llvm-BZoOZj88.js"),[])},{id:"log",name:"Log file",import:()=>c(()=>import("./log-2UxHyX5q.js"),[])},{id:"logo",name:"Logo",import:()=>c(()=>import("./logo-BtOb2qkB.js"),[])},{id:"lua",name:"Lua",import:()=>c(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22]))},{id:"luau",name:"Luau",import:()=>c(()=>import("./luau-BnpPk5vE.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c(()=>import("./make-CHLpvVh8.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c(()=>import("./markdown-Cvjx9yec.js"),[])},{id:"marko",name:"Marko",import:()=>c(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11]))},{id:"matlab",name:"MATLAB",import:()=>c(()=>import("./matlab-D7o27uSR.js"),[])},{id:"mdc",name:"MDC",import:()=>c(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c(()=>import("./mermaid-CQcHuHx7.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[])},{id:"mojo",name:"Mojo",import:()=>c(()=>import("./mojo-DJz3ZmWd.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>c(()=>import("./moonbit-CHtswR0a.js"),[])},{id:"move",name:"Move",import:()=>c(()=>import("./move-el3G9tDJ.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c(()=>import("./narrat-DRg8JJMk.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73]))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>c(()=>import("./nextflow-groovy-vE_lwT2v.js"),[])},{id:"nginx",name:"Nginx",import:()=>c(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22]))},{id:"nim",name:"Nim",import:()=>c(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41]))},{id:"nix",name:"Nix",import:()=>c(()=>import("./nix-CwoSXNpI.js"),[])},{id:"nsis",name:"NSIS",import:()=>c(()=>import("./nsis-BlV79W_Q.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c(()=>import("./nushell-D3jzshHO.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c(()=>import("./objective-c-DXmwc3jG.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[])},{id:"ocaml",name:"OCaml",import:()=>c(()=>import("./ocaml-C0hk2d4L.js"),[])},{id:"odin",name:"Odin",import:()=>c(()=>import("./odin-BBf5iR-q.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>c(()=>import("./openscad-C4EeE6gA.js"),[])},{id:"org",name:"Org Markup",import:()=>c(()=>import("./org-DM6o9KBp.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67]))},{id:"pascal",name:"Pascal",import:()=>c(()=>import("./pascal-D93ZcfNL.js"),[])},{id:"perl",name:"Perl",import:()=>c(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>c(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>c(()=>import("./pkl-u5AG7uiY.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>c(()=>import("./plsql-ChMvpjG-.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c(()=>import("./po-BTJTHyun.js"),[])},{id:"polar",name:"Polar",import:()=>c(()=>import("./polar-C0HS_06l.js"),[])},{id:"postcss",name:"PostCSS",import:()=>c(()=>import("./postcss-CXtECtnM.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>c(()=>import("./powerquery-CEu0bR-o.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:()=>c(()=>import("./powershell-BmBUJMz7.js"),[])},{id:"prisma",name:"Prisma",import:()=>c(()=>import("./prisma-Vru482bI.js"),[])},{id:"prolog",name:"Prolog",import:()=>c(()=>import("./prolog-CbFg5uaA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c(()=>import("./proto-C7zT0LnQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>c(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>c(()=>import("./puppet-BMWR74SV.js"),[])},{id:"purescript",name:"PureScript",import:()=>c(()=>import("./purescript-CklMAg4u.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>c(()=>import("./python-B6aJPvgy.js"),[])},{id:"qml",name:"QML",import:()=>c(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2]))},{id:"qmldir",name:"QML Directory",import:()=>c(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>c(()=>import("./qss-IeuSbFQv.js"),[])},{id:"r",name:"R",import:()=>c(()=>import("./r-Cf5RLm7j.js"),[])},{id:"racket",name:"Racket",import:()=>c(()=>import("./racket-BqYA7rlc.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c(()=>import("./raku-DXvB9xmW.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>c(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89]))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:()=>c(()=>import("./rbs-CpoqiR4B.js"),[])},{id:"reg",name:"Windows Registry Script",import:()=>c(()=>import("./reg-C-SQnVFl.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c(()=>import("./regexp-CDVJQ6XC.js"),[])},{id:"rel",name:"Rel",import:()=>c(()=>import("./rel-C3B-1QV4.js"),[])},{id:"riscv",name:"RISC-V",import:()=>c(()=>import("./riscv-BM1_JUlF.js"),[])},{id:"ron",name:"RON",import:()=>c(()=>import("./ron-D8l8udqQ.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[])},{id:"rst",name:"reStructuredText",import:()=>c(()=>import("./rst-bs7f0vWN.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>c(()=>import("./ruby-C0TQ7zu5.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c(()=>import("./rust-B1yitclQ.js"),[])},{id:"sas",name:"SAS",import:()=>c(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16]))},{id:"sass",name:"Sass",import:()=>c(()=>import("./sass-Cj5Yp3dK.js"),[])},{id:"scala",name:"Scala",import:()=>c(()=>import("./scala-CqE71os6.js"),[])},{id:"scheme",name:"Scheme",import:()=>c(()=>import("./scheme-C98Dy4si.js"),[])},{id:"scss",name:"SCSS",import:()=>c(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c(()=>import("./sdbl-DVxCFoDh.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c(()=>import("./shellscript-Yzrsuije.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>c(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29]))},{id:"smalltalk",name:"GNU Smalltalk",import:()=>c(()=>import("./smalltalk-BOQMe2GC.js"),[])},{id:"smithy",name:"Smithy",import:()=>c(()=>import("./smithy-cds9vsN8.js"),[])},{id:"solidity",name:"Solidity",import:()=>c(()=>import("./solidity-DijEV5ha.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>c(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>c(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c(()=>import("./splunk-BtCnVYZw.js"),[])},{id:"sql",name:"SQL",import:()=>c(()=>import("./sql-CRqJ_cUM.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[])},{id:"stata",name:"Stata",import:()=>c(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c(()=>import("./stylus-BEDo0Tqx.js"),[])},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>c(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2]))},{id:"svelte",name:"Svelte",import:()=>c(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>c(()=>import("./swift-C2oV4EkX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>c(()=>import("./system-verilog-0hqHdDBg.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>c(()=>import("./systemd-4A_iFExJ.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c(()=>import("./talonscript-CkByrt1z.js"),[])},{id:"tasl",name:"Tasl",import:()=>c(()=>import("./tasl-QIJgUcNo.js"),[])},{id:"tcl",name:"Tcl",import:()=>c(()=>import("./tcl-dwOrl1Do.js"),[])},{id:"templ",name:"Templ",import:()=>c(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c(()=>import("./terraform-BETggiCN.js"),[])},{id:"tex",name:"TeX",import:()=>c(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63]))},{id:"toml",name:"TOML",import:()=>c(()=>import("./toml-vGWfd6FD.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>c(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>c(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>c(()=>import("./tsx-COt5Ahok.js"),[])},{id:"turtle",name:"Turtle",import:()=>c(()=>import("./turtle-BsS91CYL.js"),[])},{id:"twig",name:"Twig",import:()=>c(()=>import("./twig-27uCiNez.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>c(()=>import("./typescript-BPQ3VLAy.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c(()=>import("./typespec-CAFt9gP4.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c(()=>import("./typst-BUadGCkm.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80]))},{id:"v",name:"V",import:()=>c(()=>import("./v-BGw2Nkan.js"),[])},{id:"vala",name:"Vala",import:()=>c(()=>import("./vala-CsfeWuGM.js"),[])},{id:"vb",name:"Visual Basic",import:()=>c(()=>import("./vb-Cu-pLBUe.js"),[])},{id:"verilog",name:"Verilog",import:()=>c(()=>import("./verilog-nZwndyjY.js"),[])},{id:"vhdl",name:"VHDL",import:()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c(()=>import("./viml-CJc9bBzg.js"),[])},{id:"vue",name:"Vue",import:()=>c(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>c(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>c(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c(()=>import("./vyper-CDx5xZoG.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>c(()=>import("./wasm-MzD3tlZU.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c(()=>import("./wenyan-BV7otONQ.js"),[])},{id:"wgsl",name:"WGSL",import:()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c(()=>import("./wikitext-BhOHFoWU.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>c(()=>import("./wit-5i3qLPDT.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c(()=>import("./wolfram-lXgVvXCa.js"),[])},{id:"xml",name:"XML",import:()=>c(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>c(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c(()=>import("./yaml-Buea-lGh.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>c(()=>import("./zenscript-DVFEvuxE.js"),[])},{id:"zig",name:"Zig",import:()=>c(()=>import("./zig-VOosw3JB.js"),[])}],zi=Object.fromEntries(_r.map(t=>[t.id,t.import])),qi=Object.fromEntries(_r.flatMap(t=>{var e;return((e=t.aliases)==null?void 0:e.map(n=>[n,t.import]))||[]})),Xi={...zi,...qi},Ki=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C4gqWexZ.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-DYE7WIF3.js"),[])},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>c(()=>import("./ayu-light-BA47KaF1.js"),[])},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>c(()=>import("./ayu-mirage-32ctXXKs.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>c(()=>import("./horizon-BUw7H-hv.js"),[])},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>c(()=>import("./horizon-bright-CUuTKBJd.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-C3DzagqV.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DFGoQZhC.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-BRVnQi9A.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>c(()=>import("./night-owl-light-CMTm3GFP.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-C3Wv6jpd.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-hvxz__6c.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-5qJOZa0Y.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-C9pEdX9L.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-CpvCGNkr.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-Dlz6yCKv.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-DRje8inN.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Qi=Object.fromEntries(Ki.map(t=>[t.id,t.import]));var cn=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ji(){return 2147483648}function Yi(){return typeof performance<"u"?performance.now():Date.now()}const Zi=(t,e)=>t+(e-t%e)%e;async function eo(t){let e,n;const r={};function i(f){n=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function o(f,m,y){r.HEAPU8.copyWithin(f,m,m+y)}function s(f){try{return e.grow(f-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}function a(f){const m=r.HEAPU8.length;f=f>>>0;const y=Ji();if(f>y)return!1;for(let w=1;w<=4;w*=2){let v=m*(1+.2/w);v=Math.min(v,f+100663296);const E=Math.min(y,Zi(Math.max(f,v),65536));if(s(E))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(f,m,y=1024){const w=m+y;let v=m;for(;f[v]&&!(v>=w);)++v;if(v-m>16&&f.buffer&&l)return l.decode(f.subarray(m,v));let E="";for(;m<v;){let b=f[m++];if(!(b&128)){E+=String.fromCharCode(b);continue}const C=f[m++]&63;if((b&224)===192){E+=String.fromCharCode((b&31)<<6|C);continue}const k=f[m++]&63;if((b&240)===224?b=(b&15)<<12|C<<6|k:b=(b&7)<<18|C<<12|k<<6|f[m++]&63,b<65536)E+=String.fromCharCode(b);else{const R=b-65536;E+=String.fromCharCode(55296|R>>10,56320|R&1023)}}return E}function p(f,m){return f?u(r.HEAPU8,f,m):""}const d={emscripten_get_now:Yi,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const m=await t({env:d,wasi_snapshot_preview1:d});e=m.memory,i(e.buffer),Object.assign(r,m),r.UTF8ToString=p}return await h(),r}var to=Object.defineProperty,no=(t,e,n)=>e in t?to(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x=(t,e,n)=>no(t,typeof e!="symbol"?e+"":e,n);let V=null;function ro(t){throw new cn(t.UTF8ToString(t.getLastOnigError()))}class gt{constructor(e){x(this,"utf16Length"),x(this,"utf8Length"),x(this,"utf16Value"),x(this,"utf8Value"),x(this,"utf16OffsetToUtf8"),x(this,"utf8OffsetToUtf16");const n=e.length,r=gt._utf8ByteLength(e),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=new Uint8Array(r);let l=0;for(let u=0;u<n;u++){const p=e.charCodeAt(u);let d=p,h=!1;if(p>=55296&&p<=56319&&u+1<n){const f=e.charCodeAt(u+1);f>=56320&&f<=57343&&(d=(p-55296<<10)+65536|f-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),d<=127?s[l+0]=u:d<=2047?(s[l+0]=u,s[l+1]=u):d<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),d<=127?a[l++]=d:d<=2047?(a[l++]=192|(d&1984)>>>6,a[l++]=128|(d&63)>>>0):d<=65535?(a[l++]=224|(d&61440)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0):(a[l++]=240|(d&1835008)>>>18,a[l++]=128|(d&258048)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0),h&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const o=e.charCodeAt(r);let s=o,a=!1;if(o>=55296&&o<=56319&&r+1<i){const l=e.charCodeAt(r+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,a&&r++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const _t=class ee{constructor(e){if(x(this,"id",++ee.LAST_ID),x(this,"_onigBinding"),x(this,"content"),x(this,"utf16Length"),x(this,"utf8Length"),x(this,"utf16OffsetToUtf8"),x(this,"utf8OffsetToUtf16"),x(this,"ptr"),!V)throw new cn("Must invoke loadWasm first.");this._onigBinding=V,this.content=e;const n=new gt(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ee._sharedPtrInUse?(ee._sharedPtr||(ee._sharedPtr=V.omalloc(1e4)),ee._sharedPtrInUse=!0,V.HEAPU8.set(n.utf8Value,ee._sharedPtr),this.ptr=ee._sharedPtr):this.ptr=n.createString(V)}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===ee._sharedPtr?ee._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};x(_t,"LAST_ID",0);x(_t,"_sharedPtr",0);x(_t,"_sharedPtrInUse",!1);let yr=_t;class io{constructor(e){if(x(this,"_onigBinding"),x(this,"_ptr"),!V)throw new cn("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=e.length;a<l;a++){const u=new gt(e[a]);n[a]=u.createString(V),r[a]=u.utf8Length}const i=V.omalloc(4*e.length);V.HEAPU32.set(n,i/4);const o=V.omalloc(4*e.length);V.HEAPU32.set(r,o/4);const s=V.createOnigScanner(i,o,e.length);for(let a=0,l=e.length;a<l;a++)V.ofree(n[a]);V.ofree(o),V.ofree(i),s===0&&ro(V),this._onigBinding=V,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new yr(e);const o=this._findNextMatchSync(e,n,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,n,!1,i)}_findNextMatchSync(e,n,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const u=a[l++],p=a[l++],d=[];for(let h=0;h<p;h++){const f=e.convertUtf8OffsetToUtf16(a[l++]),m=e.convertUtf8OffsetToUtf16(a[l++]);d[h]={start:f,end:m,length:m-f}}return{index:u,captureIndices:d}}}function oo(t){return typeof t.instantiator=="function"}function so(t){return typeof t.default=="function"}function ao(t){return typeof t.data<"u"}function lo(t){return typeof Response<"u"&&t instanceof Response}function uo(t){var e;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Qe;function Er(t){if(Qe)return Qe;async function e(){V=await eo(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),oo(r)?r=await r.instantiator(n):so(r)?r=await r.default(n):(ao(r)&&(r=r.data),lo(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await co(r)(n):r=await po(r)(n):uo(r)?r=await Tt(r)(n):r instanceof WebAssembly.Module?r=await Tt(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Tt(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Qe=e(),Qe}function Tt(t){return e=>WebAssembly.instantiate(t,e)}function co(t){return e=>WebAssembly.instantiateStreaming(t,e)}function po(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}let br;function ho(t){br=t}function fo(){return br}async function mo(t){return t&&await Er(t),{createScanner(e){return new io(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new yr(e)}}}const go=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:mo,getDefaultWasmLoader:fo,loadWasm:Er,setDefaultWasmLoader:ho},Symbol.toStringTag,{value:"Module"}));var wr=ji({});Wi(wr,go);var T=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function _o(t){return dn(t)}function dn(t){return Array.isArray(t)?yo(t):t instanceof RegExp?t:typeof t=="object"?Eo(t):t}function yo(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=dn(t[n]);return e}function Eo(t){let e={};for(let n in t)e[n]=dn(t[n]);return e}function vr(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function Cr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Cr(t.substring(0,t.length-1)):t.substr(~e+1)}var Pt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Je=class{static hasCaptures(t){return t===null?!1:(Pt.lastIndex=0,Pt.test(t))}static replaceCaptures(t,e,n){return t.replace(Pt,(r,i,o,s)=>{let a=n[parseInt(i||o,10)];if(a){let l=e.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Ar(t,e){return t<e?-1:t>e?1:0}function kr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let o=Ar(t[i],e[i]);if(o!==0)return o}return 0}return n-r}function In(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Sr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Rr=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},st=class{constructor(t,e,n){g(this,"_cachedMatchRoot",new Rr(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(vo(t),e)}static createFromParsedTheme(t,e){return Ao(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,r=this._cachedMatchRoot.get(e).find(i=>bo(t.parent,i.parentScopes));return r?new Ir(r.fontStyle,r.foreground,r.background):null}},Ot=class rt{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const r of n)e=new rt(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new rt(n,e[r]);return n}push(e){return new rt(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function bo(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],i=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],i=!0}for(;t&&!wo(t.scopeName,r);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function wo(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Ir=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function vo(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),a=d.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let d=s.settings.fontStyle.split(" ");for(let h=0,f=d.length;h<f;h++)switch(d[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&In(s.settings.foreground)&&(u=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&In(s.settings.background)&&(p=s.settings.background);for(let d=0,h=a.length;d<h;d++){let m=a[d].trim().split(" "),y=m[m.length-1],w=null;m.length>1&&(w=m.slice(0,m.length-1),w.reverse()),n[r++]=new Co(y,w,i,l,u,p)}}return n}var Co=class{constructor(t,e,n,r,i,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},B=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(B||{});function Ao(t,e){t.sort((l,u)=>{let p=Ar(l.scope,u.scope);return p!==0||(p=kr(l.parentScopes,u.parentScopes),p!==0)?p:l.index-u.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let o=new ko(e),s=new Ir(n,o.getId(r),o.getId(i)),a=new Ro(new zt(0,null,-1,0,0),[]);for(let l=0,u=t.length;l<u;l++){let p=t[l];a.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new st(o,s,a)}var ko=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},So=Object.freeze([]),zt=class Lr{constructor(e,n,r,i,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=n||So,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Lr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},Ro=class qt{constructor(e,n=[],r={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-e.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,o;if(r===-1?(i=e,o=""):(i=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(qt._cmpBySpecificity),n}insert(e,n,r,i,o,s){if(n===""){this._doInsertHere(e,r,i,o,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let p;this._children.hasOwnProperty(l)?p=this._children[l]:(p=new qt(this._mainRule.clone(),zt.cloneArr(this._rulesWithParentScopes)),this._children[l]=p),p.insert(e+1,u,r,i,o,s)}_doInsertHere(e,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(e,r,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(kr(l.parentScopes,n)===0){l.acceptOverwrite(e,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new zt(e,n,r,i,o))}},we=class z{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=z.getLanguageId(e),r=z.getTokenType(e),i=z.getFontStyle(e),o=z.getForeground(e),s=z.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:s})}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,n,r,i,o,s,a){let l=z.getLanguageId(e),u=z.getTokenType(e),p=z.containsBalancedBrackets(e)?1:0,d=z.getFontStyle(e),h=z.getForeground(e),f=z.getBackground(e);return n!==0&&(l=n),r!==8&&(u=r),i!==null&&(p=i?1:0),o!==-1&&(d=o),s!==0&&(h=s),a!==0&&(f=a),(l<<0|u<<8|p<<10|d<<11|h<<15|f<<24)>>>0}};function at(t,e){const n=[],r=Io(t);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=s();if(n.push({matcher:u,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=r.next();const l=a();return i===")"&&(i=r.next()),l}if(Ln(i)){const l=[];do l.push(i),i=r.next();while(Ln(i));return u=>e(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return p=>l.every(d=>d(p))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=s()}return p=>l.some(d=>d(p))}}function Ln(t){return!!t&&!!t.match(/[\w\.:]+/)}function Io(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}function Tr(t){typeof t.dispose=="function"&&t.dispose()}var Ge=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Lo=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},To=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},Po=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ge(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new To;for(const n of t)Oo(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof Ge){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Oo(t,e,n,r){const i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=n.lookup(e);t instanceof Ge?it({baseGrammar:o,selfGrammar:i},r):Xt(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(t.scopeName);if(s)for(const a of s)r.add(new Ge(a))}function Xt(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];lt([r],e,n)}}function it(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&<(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&<(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function lt(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?vr({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&<(r.patterns,{...e,repository:i},n);const o=r.include;if(!o)continue;const s=Pr(o);switch(s.kind){case 0:it({...e,selfGrammar:e.baseGrammar},n);break;case 1:it(e,n);break;case 2:Xt(s.ruleName,{...e,repository:i},n);break;case 3:case 4:const a=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:i};s.kind===4?Xt(s.ruleName,l,n):it(l,n)}else s.kind===4?n.add(new Lo(s.scopeName,s.ruleName)):n.add(new Ge(s.scopeName));break}}}var xo=class{constructor(){g(this,"kind",0)}},Do=class{constructor(){g(this,"kind",1)}},No=class{constructor(t){g(this,"kind",2);this.ruleName=t}},Vo=class{constructor(t){g(this,"kind",3);this.scopeName=t}},$o=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function Pr(t){if(t==="$base")return new xo;if(t==="$self")return new Do;const e=t.indexOf("#");if(e===-1)return new Vo(t);if(e===0)return new No(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new $o(n,r)}}var Mo=/\\(\d+)/,Tn=/\\(\d+)/g,Go=-1,Or=-2;var qe=class{constructor(t,e,n,r){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=Je.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Je.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Cr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Je.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Je.replaceCaptures(this._contentName,t,e)}},Bo=class extends qe{constructor(e,n,r,i,o){super(e,n,r,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,i){throw new Error("Not supported!")}},Uo=class extends qe{constructor(e,n,r,i,o){super(e,n,r,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Be(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ue,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pn=class extends qe{constructor(e,n,r,i,o){super(e,n,r,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ue,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kt=class extends qe{constructor(e,n,r,i,o,s,a,l,u,p){super(e,n,r,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Be(o,this.id),this.beginCaptures=s,this._end=new Be(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.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(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ue;for(const r of this.patterns)e.getRule(r).collectPatterns(e,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},ut=class extends qe{constructor(e,n,r,i,o,s,a,l,u){super(e,n,r,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Be(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new Be(a,Or),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ue;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ue,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},xr=class G{static createCaptureRule(e,n,r,i,o){return e.registerRule(s=>new Bo(n,s,r,i,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new Uo(e.$vscodeTextmateLocation,e.id,e.name,e.match,G._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=vr({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Pn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,G._compilePatterns(o,n,r))}return e.while?new ut(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,G._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,G._compileCaptures(e.whileCaptures||e.captures,n,r),G._compilePatterns(e.patterns,n,r)):new Kt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,G._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,G._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,G._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;e[s].patterns&&(l=G.getCompiledRuleId(e[s],n,r)),i[a]=G.createCaptureRule(n,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,l)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const a=e[o];let l=-1;if(a.include){const u=Pr(a.include);switch(u.kind){case 0:case 1:l=G.getCompiledRuleId(r[a.include],n,r);break;case 2:let p=r[u.ruleName];p&&(l=G.getCompiledRuleId(p,n,r));break;case 3:case 4:const d=u.scopeName,h=u.kind===4?u.ruleName:null,f=n.getExternalGrammar(d,r);if(f)if(h){let m=f.repository[h];m&&(l=G.getCompiledRuleId(m,n,f.repository))}else l=G.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else l=G.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let p=!1;if((u instanceof Pn||u instanceof Kt||u instanceof ut)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},Be=class Dr{constructor(e,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let i=0,o=[],s=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){const u=e.charAt(a+1);u==="z"?(o.push(e.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Mo.test(this.source):this.hasBackReferences=!1}clone(){return new Dr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>e.substring(i.start,i.end));return Tn.lastIndex=0,this.source.replace(Tn,(i,o)=>Sr(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],i=[],o,s,a,l;for(o=0,s=this.source.length;o<s;o++)a=this.source.charAt(o),e[o]=a,n[o]=a,r[o]=a,i[o]=a,a==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="",n[o+1]="",r[o+1]="A",i[o+1]="A"):l==="G"?(e[o+1]="",n[o+1]="G",r[o+1]="",i[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,i[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ue=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new On(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(i=>i.resolveAnchors(e,n));return new On(t,r,this._items.map(i=>i.ruleId))}},On=class{constructor(t,e,n){g(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
2
|
+
var Vi=Object.defineProperty;var $i=Object.getPrototypeOf;var Mi=Reflect.get;var Sn=t=>{throw TypeError(t)};var Gi=(t,e,n)=>e in t?Vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var g=(t,e,n)=>Gi(t,typeof e!="symbol"?e+"":e,n),It=(t,e,n)=>e.has(t)||Sn("Cannot "+n);var U=(t,e,n)=>(It(t,e,"read from private field"),n?n.call(t):e.get(t)),fe=(t,e,n)=>e.has(t)?Sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Q=(t,e,n,r)=>(It(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Lt=(t,e,n)=>(It(t,e,"access private method"),n);var Rn=(t,e,n)=>Mi($i(t),n,e);import{_ as c}from"./index-CeSHvqfR.js";var Wt=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Ui=Object.getOwnPropertyNames,Fi=Object.prototype.hasOwnProperty,ji=(t,e)=>{let n={};for(var r in t)Wt(n,r,{get:t[r],enumerable:!0});return Wt(n,Symbol.toStringTag,{value:"Module"}),n},Hi=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var i=Ui(e),o=0,s=i.length,a;o<s;o++)a=i[o],!Fi.call(t,a)&&a!==n&&Wt(t,a,{get:(l=>e[l]).bind(null,a),enumerable:!(r=Bi(e,a))||r.enumerable});return t},Wi=(t,e,n)=>(Hi(t,e,"default"),n);const _r=[{id:"abap",name:"ABAP",import:()=>c(()=>import("./abap-BdImnpbu.js"),[])},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:()=>c(()=>import("./actionscript-3-B3316cI-.js"),[])},{id:"ada",name:"Ada",import:()=>c(()=>import("./ada-bCR0ucgS.js"),[])},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:()=>c(()=>import("./ahk-CsyLZFj1.js"),[])},{id:"ahk2",name:"AutoHotkey2",import:()=>c(()=>import("./ahk2-8Zs4aa1G.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>c(()=>import("./angular-html-DA-rfuFy.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>c(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>c(()=>import("./apache-Pmp26Uib.js"),[])},{id:"apex",name:"Apex",import:()=>c(()=>import("./apex-DhZFqWV2.js"),[])},{id:"apl",name:"APL",import:()=>c(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>c(()=>import("./applescript-Co6uUVPk.js"),[])},{id:"ara",name:"Ara",import:()=>c(()=>import("./ara-BRHolxvo.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c(()=>import("./asciidoc-CSVQ5wI8.js"),[])},{id:"asm",name:"Assembly",import:()=>c(()=>import("./asm-D_Q5rh1f.js"),[])},{id:"astro",name:"Astro",import:()=>c(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>c(()=>import("./awk-DMzUqQB5.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>c(()=>import("./ballerina-BFfxhgS-.js"),[])},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:()=>c(()=>import("./bat-CickPsom.js"),[])},{id:"beancount",name:"Beancount",import:()=>c(()=>import("./beancount-k_qm7-4y.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>c(()=>import("./berry-uYugtg8r.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>c(()=>import("./bibtex-CHM0blh-.js"),[])},{id:"bicep",name:"Bicep",import:()=>c(()=>import("./bicep-Bmn6On1c.js"),[])},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>c(()=>import("./bird2-Bx8U0n9b.js"),[])},{id:"blade",name:"Blade",import:()=>c(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>c(()=>import("./c-BIGW1oBm.js"),[])},{id:"c3",name:"C3",import:()=>c(()=>import("./c3-Dp5svz6Z.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c(()=>import("./cadence-Bv_4Rxtq.js"),[])},{id:"cairo",name:"Cairo",import:()=>c(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:()=>c(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22]))},{id:"clarity",name:"Clarity",import:()=>c(()=>import("./clarity-Dn5IMItf.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c(()=>import("./clojure-P80f7IUj.js"),[])},{id:"cmake",name:"CMake",import:()=>c(()=>import("./cmake-D1j8_8rp.js"),[])},{id:"cobol",name:"COBOL",import:()=>c(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>c(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c(()=>import("./codeql-DsOJ9woJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>c(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[])},{id:"coq",name:"Rocq",import:()=>c(()=>import("./coq-C7JzOVbR.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>c(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22]))},{id:"crystal",name:"Crystal",import:()=>c(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c(()=>import("./csharp-DSvCPggb.js"),[])},{id:"css",name:"CSS",import:()=>c(()=>import("./css-CLj8gQPS.js"),[])},{id:"csv",name:"CSV",import:()=>c(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>c(()=>import("./cue-D82EKSYY.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c(()=>import("./cypher-COkxafJQ.js"),[])},{id:"d",name:"D",import:()=>c(()=>import("./d-85-TOEBH.js"),[])},{id:"dart",name:"Dart",import:()=>c(()=>import("./dart-bE4Kk8sk.js"),[])},{id:"dax",name:"DAX",import:()=>c(()=>import("./dax-CEL-wOlO.js"),[])},{id:"desktop",name:"Desktop",import:()=>c(()=>import("./desktop-BmXAJ9_W.js"),[])},{id:"diff",name:"Diff",import:()=>c(()=>import("./diff-D97Zzqfu.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>c(()=>import("./dotenv-Da5cRb03.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[])},{id:"edge",name:"Edge",import:()=>c(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>c(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3]))},{id:"elm",name:"Elm",import:()=>c(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c(()=>import("./emacs-lisp-C_m_b--Z.js"),[])},{id:"erb",name:"ERB",import:()=>c(()=>import("./erb-DXfck5VN.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>c(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41]))},{id:"fennel",name:"Fennel",import:()=>c(()=>import("./fennel-BYunw83y.js"),[])},{id:"fish",name:"Fish",import:()=>c(()=>import("./fish-BvzEVeQv.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c(()=>import("./fluent-C4IJs8-o.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>c(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41]))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>c(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47]))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>c(()=>import("./gdscript-DqcFQ5yU.js"),[])},{id:"gdshader",name:"GDShader",import:()=>c(()=>import("./gdshader-DkwncUOv.js"),[])},{id:"genie",name:"Genie",import:()=>c(()=>import("./genie-D0YGMca9.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>c(()=>import("./gherkin-DyxjwDmM.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>c(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>c(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29]))},{id:"gleam",name:"Gleam",import:()=>c(()=>import("./gleam-BspZqrRM.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>c(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>c(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>c(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22]))},{id:"gn",name:"GN",import:()=>c(()=>import("./gn-n2N0HUVH.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>c(()=>import("./gnuplot-DdkO51Og.js"),[])},{id:"go",name:"Go",import:()=>c(()=>import("./go-C27-OAKa.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>c(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13]))},{id:"groovy",name:"Groovy",import:()=>c(()=>import("./groovy-gcz8RCvz.js"),[])},{id:"hack",name:"Hack",import:()=>c(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>c(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>c(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c(()=>import("./haskell-Df6bDoY_.js"),[])},{id:"haxe",name:"Haxe",import:()=>c(()=>import("./haxe-CfZj7gIn.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>c(()=>import("./hcl-BWvSN4gD.js"),[])},{id:"hjson",name:"Hjson",import:()=>c(()=>import("./hjson-D5-asLiD.js"),[])},{id:"hlsl",name:"HLSL",import:()=>c(()=>import("./hlsl-D3lLCCz7.js"),[])},{id:"html",name:"HTML",import:()=>c(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>c(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>c(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13]))},{id:"hurl",name:"Hurl",import:()=>c(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57]))},{id:"hxml",name:"HXML",import:()=>c(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59]))},{id:"hy",name:"Hy",import:()=>c(()=>import("./hy-DFXneXwc.js"),[])},{id:"imba",name:"Imba",import:()=>c(()=>import("./imba-DGztddWO.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>c(()=>import("./ini-BEwlwnbL.js"),[])},{id:"java",name:"Java",import:()=>c(()=>import("./java-CylS5w8V.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>c(()=>import("./javascript-wDzz0qaB.js"),[])},{id:"jinja",name:"Jinja",import:()=>c(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3]))},{id:"jison",name:"Jison",import:()=>c(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2]))},{id:"json",name:"JSON",import:()=>c(()=>import("./json-Cp-IABpG.js"),[])},{id:"json5",name:"JSON5",import:()=>c(()=>import("./json5-C9tS-k6U.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>c(()=>import("./jsonc-Des-eS-w.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>c(()=>import("./jsonl-DcaNXYhu.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>c(()=>import("./jsonnet-DFQXde-d.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c(()=>import("./jssm-C2t-YnRu.js"),[])},{id:"jsx",name:"JSX",import:()=>c(()=>import("./jsx-g9-lgVsj.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>c(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16]))},{id:"just",name:"Just",aliases:["justfile"],import:()=>c(()=>import("./just-Cwhn7H3k.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39]))},{id:"kdl",name:"KDL",import:()=>c(()=>import("./kdl-DV7GczEv.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c(()=>import("./kotlin-BdnUsdx6.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c(()=>import("./kusto-wEQ09or8.js"),[])},{id:"latex",name:"LaTeX",import:()=>c(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c(()=>import("./lean-BZvkOJ9d.js"),[])},{id:"less",name:"Less",import:()=>c(()=>import("./less-B1dDrJ26.js"),[])},{id:"liquid",name:"Liquid",import:()=>c(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>c(()=>import("./llvm-BZoOZj88.js"),[])},{id:"log",name:"Log file",import:()=>c(()=>import("./log-2UxHyX5q.js"),[])},{id:"logo",name:"Logo",import:()=>c(()=>import("./logo-BtOb2qkB.js"),[])},{id:"lua",name:"Lua",import:()=>c(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22]))},{id:"luau",name:"Luau",import:()=>c(()=>import("./luau-BnpPk5vE.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c(()=>import("./make-CHLpvVh8.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c(()=>import("./markdown-Cvjx9yec.js"),[])},{id:"marko",name:"Marko",import:()=>c(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11]))},{id:"matlab",name:"MATLAB",import:()=>c(()=>import("./matlab-D7o27uSR.js"),[])},{id:"mdc",name:"MDC",import:()=>c(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c(()=>import("./mermaid-CQcHuHx7.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[])},{id:"mojo",name:"Mojo",import:()=>c(()=>import("./mojo-DJz3ZmWd.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>c(()=>import("./moonbit-CHtswR0a.js"),[])},{id:"move",name:"Move",import:()=>c(()=>import("./move-el3G9tDJ.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c(()=>import("./narrat-DRg8JJMk.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73]))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>c(()=>import("./nextflow-groovy-vE_lwT2v.js"),[])},{id:"nginx",name:"Nginx",import:()=>c(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22]))},{id:"nim",name:"Nim",import:()=>c(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41]))},{id:"nix",name:"Nix",import:()=>c(()=>import("./nix-CwoSXNpI.js"),[])},{id:"nsis",name:"NSIS",import:()=>c(()=>import("./nsis-BlV79W_Q.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c(()=>import("./nushell-D3jzshHO.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c(()=>import("./objective-c-DXmwc3jG.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[])},{id:"ocaml",name:"OCaml",import:()=>c(()=>import("./ocaml-C0hk2d4L.js"),[])},{id:"odin",name:"Odin",import:()=>c(()=>import("./odin-BBf5iR-q.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>c(()=>import("./openscad-C4EeE6gA.js"),[])},{id:"org",name:"Org Markup",import:()=>c(()=>import("./org-DM6o9KBp.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67]))},{id:"pascal",name:"Pascal",import:()=>c(()=>import("./pascal-D93ZcfNL.js"),[])},{id:"perl",name:"Perl",import:()=>c(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>c(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>c(()=>import("./pkl-u5AG7uiY.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>c(()=>import("./plsql-ChMvpjG-.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c(()=>import("./po-BTJTHyun.js"),[])},{id:"polar",name:"Polar",import:()=>c(()=>import("./polar-C0HS_06l.js"),[])},{id:"postcss",name:"PostCSS",import:()=>c(()=>import("./postcss-CXtECtnM.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>c(()=>import("./powerquery-CEu0bR-o.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:()=>c(()=>import("./powershell-BmBUJMz7.js"),[])},{id:"prisma",name:"Prisma",import:()=>c(()=>import("./prisma-Vru482bI.js"),[])},{id:"prolog",name:"Prolog",import:()=>c(()=>import("./prolog-CbFg5uaA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c(()=>import("./proto-C7zT0LnQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>c(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>c(()=>import("./puppet-BMWR74SV.js"),[])},{id:"purescript",name:"PureScript",import:()=>c(()=>import("./purescript-CklMAg4u.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>c(()=>import("./python-B6aJPvgy.js"),[])},{id:"qml",name:"QML",import:()=>c(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2]))},{id:"qmldir",name:"QML Directory",import:()=>c(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>c(()=>import("./qss-IeuSbFQv.js"),[])},{id:"r",name:"R",import:()=>c(()=>import("./r-Cf5RLm7j.js"),[])},{id:"racket",name:"Racket",import:()=>c(()=>import("./racket-BqYA7rlc.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c(()=>import("./raku-DXvB9xmW.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>c(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89]))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:()=>c(()=>import("./rbs-CpoqiR4B.js"),[])},{id:"reg",name:"Windows Registry Script",import:()=>c(()=>import("./reg-C-SQnVFl.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c(()=>import("./regexp-CDVJQ6XC.js"),[])},{id:"rel",name:"Rel",import:()=>c(()=>import("./rel-C3B-1QV4.js"),[])},{id:"riscv",name:"RISC-V",import:()=>c(()=>import("./riscv-BM1_JUlF.js"),[])},{id:"ron",name:"RON",import:()=>c(()=>import("./ron-D8l8udqQ.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[])},{id:"rst",name:"reStructuredText",import:()=>c(()=>import("./rst-bs7f0vWN.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>c(()=>import("./ruby-C0TQ7zu5.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c(()=>import("./rust-B1yitclQ.js"),[])},{id:"sas",name:"SAS",import:()=>c(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16]))},{id:"sass",name:"Sass",import:()=>c(()=>import("./sass-Cj5Yp3dK.js"),[])},{id:"scala",name:"Scala",import:()=>c(()=>import("./scala-CqE71os6.js"),[])},{id:"scheme",name:"Scheme",import:()=>c(()=>import("./scheme-C98Dy4si.js"),[])},{id:"scss",name:"SCSS",import:()=>c(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c(()=>import("./sdbl-DVxCFoDh.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c(()=>import("./shellscript-Yzrsuije.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>c(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29]))},{id:"smalltalk",name:"GNU Smalltalk",import:()=>c(()=>import("./smalltalk-BOQMe2GC.js"),[])},{id:"smithy",name:"Smithy",import:()=>c(()=>import("./smithy-cds9vsN8.js"),[])},{id:"solidity",name:"Solidity",import:()=>c(()=>import("./solidity-DijEV5ha.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>c(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>c(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c(()=>import("./splunk-BtCnVYZw.js"),[])},{id:"sql",name:"SQL",import:()=>c(()=>import("./sql-CRqJ_cUM.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[])},{id:"stata",name:"Stata",import:()=>c(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c(()=>import("./stylus-BEDo0Tqx.js"),[])},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>c(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2]))},{id:"svelte",name:"Svelte",import:()=>c(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>c(()=>import("./swift-C2oV4EkX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>c(()=>import("./system-verilog-0hqHdDBg.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>c(()=>import("./systemd-4A_iFExJ.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c(()=>import("./talonscript-CkByrt1z.js"),[])},{id:"tasl",name:"Tasl",import:()=>c(()=>import("./tasl-QIJgUcNo.js"),[])},{id:"tcl",name:"Tcl",import:()=>c(()=>import("./tcl-dwOrl1Do.js"),[])},{id:"templ",name:"Templ",import:()=>c(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c(()=>import("./terraform-BETggiCN.js"),[])},{id:"tex",name:"TeX",import:()=>c(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63]))},{id:"toml",name:"TOML",import:()=>c(()=>import("./toml-vGWfd6FD.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>c(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>c(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>c(()=>import("./tsx-COt5Ahok.js"),[])},{id:"turtle",name:"Turtle",import:()=>c(()=>import("./turtle-BsS91CYL.js"),[])},{id:"twig",name:"Twig",import:()=>c(()=>import("./twig-27uCiNez.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>c(()=>import("./typescript-BPQ3VLAy.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c(()=>import("./typespec-CAFt9gP4.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c(()=>import("./typst-BUadGCkm.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80]))},{id:"v",name:"V",import:()=>c(()=>import("./v-BGw2Nkan.js"),[])},{id:"vala",name:"Vala",import:()=>c(()=>import("./vala-CsfeWuGM.js"),[])},{id:"vb",name:"Visual Basic",import:()=>c(()=>import("./vb-Cu-pLBUe.js"),[])},{id:"verilog",name:"Verilog",import:()=>c(()=>import("./verilog-nZwndyjY.js"),[])},{id:"vhdl",name:"VHDL",import:()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c(()=>import("./viml-CJc9bBzg.js"),[])},{id:"vue",name:"Vue",import:()=>c(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>c(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>c(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c(()=>import("./vyper-CDx5xZoG.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>c(()=>import("./wasm-MzD3tlZU.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c(()=>import("./wenyan-BV7otONQ.js"),[])},{id:"wgsl",name:"WGSL",import:()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c(()=>import("./wikitext-BhOHFoWU.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>c(()=>import("./wit-5i3qLPDT.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c(()=>import("./wolfram-lXgVvXCa.js"),[])},{id:"xml",name:"XML",import:()=>c(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>c(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c(()=>import("./yaml-Buea-lGh.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>c(()=>import("./zenscript-DVFEvuxE.js"),[])},{id:"zig",name:"Zig",import:()=>c(()=>import("./zig-VOosw3JB.js"),[])}],zi=Object.fromEntries(_r.map(t=>[t.id,t.import])),qi=Object.fromEntries(_r.flatMap(t=>{var e;return((e=t.aliases)==null?void 0:e.map(n=>[n,t.import]))||[]})),Xi={...zi,...qi},Ki=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./andromeeda-C4gqWexZ.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./ayu-dark-DYE7WIF3.js"),[])},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>c(()=>import("./ayu-light-BA47KaF1.js"),[])},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>c(()=>import("./ayu-mirage-32ctXXKs.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>c(()=>import("./horizon-BUw7H-hv.js"),[])},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>c(()=>import("./horizon-bright-CUuTKBJd.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./kanagawa-lotus-C3DzagqV.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./kanagawa-wave-DFGoQZhC.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./monokai-BRVnQi9A.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>c(()=>import("./night-owl-light-CMTm3GFP.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./one-light-C3Wv6jpd.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./red-hvxz__6c.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./rose-pine-5qJOZa0Y.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./rose-pine-moon-C9pEdX9L.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./solarized-dark-CpvCGNkr.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./solarized-light-Dlz6yCKv.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./vesper-DRje8inN.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Qi=Object.fromEntries(Ki.map(t=>[t.id,t.import]));var cn=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ji(){return 2147483648}function Yi(){return typeof performance<"u"?performance.now():Date.now()}const Zi=(t,e)=>t+(e-t%e)%e;async function eo(t){let e,n;const r={};function i(f){n=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function o(f,m,y){r.HEAPU8.copyWithin(f,m,m+y)}function s(f){try{return e.grow(f-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}function a(f){const m=r.HEAPU8.length;f=f>>>0;const y=Ji();if(f>y)return!1;for(let w=1;w<=4;w*=2){let v=m*(1+.2/w);v=Math.min(v,f+100663296);const E=Math.min(y,Zi(Math.max(f,v),65536));if(s(E))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(f,m,y=1024){const w=m+y;let v=m;for(;f[v]&&!(v>=w);)++v;if(v-m>16&&f.buffer&&l)return l.decode(f.subarray(m,v));let E="";for(;m<v;){let b=f[m++];if(!(b&128)){E+=String.fromCharCode(b);continue}const C=f[m++]&63;if((b&224)===192){E+=String.fromCharCode((b&31)<<6|C);continue}const k=f[m++]&63;if((b&240)===224?b=(b&15)<<12|C<<6|k:b=(b&7)<<18|C<<12|k<<6|f[m++]&63,b<65536)E+=String.fromCharCode(b);else{const R=b-65536;E+=String.fromCharCode(55296|R>>10,56320|R&1023)}}return E}function p(f,m){return f?u(r.HEAPU8,f,m):""}const d={emscripten_get_now:Yi,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const m=await t({env:d,wasi_snapshot_preview1:d});e=m.memory,i(e.buffer),Object.assign(r,m),r.UTF8ToString=p}return await h(),r}var to=Object.defineProperty,no=(t,e,n)=>e in t?to(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x=(t,e,n)=>no(t,typeof e!="symbol"?e+"":e,n);let V=null;function ro(t){throw new cn(t.UTF8ToString(t.getLastOnigError()))}class gt{constructor(e){x(this,"utf16Length"),x(this,"utf8Length"),x(this,"utf16Value"),x(this,"utf8Value"),x(this,"utf16OffsetToUtf8"),x(this,"utf8OffsetToUtf16");const n=e.length,r=gt._utf8ByteLength(e),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=new Uint8Array(r);let l=0;for(let u=0;u<n;u++){const p=e.charCodeAt(u);let d=p,h=!1;if(p>=55296&&p<=56319&&u+1<n){const f=e.charCodeAt(u+1);f>=56320&&f<=57343&&(d=(p-55296<<10)+65536|f-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),d<=127?s[l+0]=u:d<=2047?(s[l+0]=u,s[l+1]=u):d<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),d<=127?a[l++]=d:d<=2047?(a[l++]=192|(d&1984)>>>6,a[l++]=128|(d&63)>>>0):d<=65535?(a[l++]=224|(d&61440)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0):(a[l++]=240|(d&1835008)>>>18,a[l++]=128|(d&258048)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0),h&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const o=e.charCodeAt(r);let s=o,a=!1;if(o>=55296&&o<=56319&&r+1<i){const l=e.charCodeAt(r+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,a&&r++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const _t=class ee{constructor(e){if(x(this,"id",++ee.LAST_ID),x(this,"_onigBinding"),x(this,"content"),x(this,"utf16Length"),x(this,"utf8Length"),x(this,"utf16OffsetToUtf8"),x(this,"utf8OffsetToUtf16"),x(this,"ptr"),!V)throw new cn("Must invoke loadWasm first.");this._onigBinding=V,this.content=e;const n=new gt(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ee._sharedPtrInUse?(ee._sharedPtr||(ee._sharedPtr=V.omalloc(1e4)),ee._sharedPtrInUse=!0,V.HEAPU8.set(n.utf8Value,ee._sharedPtr),this.ptr=ee._sharedPtr):this.ptr=n.createString(V)}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===ee._sharedPtr?ee._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};x(_t,"LAST_ID",0);x(_t,"_sharedPtr",0);x(_t,"_sharedPtrInUse",!1);let yr=_t;class io{constructor(e){if(x(this,"_onigBinding"),x(this,"_ptr"),!V)throw new cn("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=e.length;a<l;a++){const u=new gt(e[a]);n[a]=u.createString(V),r[a]=u.utf8Length}const i=V.omalloc(4*e.length);V.HEAPU32.set(n,i/4);const o=V.omalloc(4*e.length);V.HEAPU32.set(r,o/4);const s=V.createOnigScanner(i,o,e.length);for(let a=0,l=e.length;a<l;a++)V.ofree(n[a]);V.ofree(o),V.ofree(i),s===0&&ro(V),this._onigBinding=V,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new yr(e);const o=this._findNextMatchSync(e,n,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,n,!1,i)}_findNextMatchSync(e,n,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const u=a[l++],p=a[l++],d=[];for(let h=0;h<p;h++){const f=e.convertUtf8OffsetToUtf16(a[l++]),m=e.convertUtf8OffsetToUtf16(a[l++]);d[h]={start:f,end:m,length:m-f}}return{index:u,captureIndices:d}}}function oo(t){return typeof t.instantiator=="function"}function so(t){return typeof t.default=="function"}function ao(t){return typeof t.data<"u"}function lo(t){return typeof Response<"u"&&t instanceof Response}function uo(t){var e;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Qe;function Er(t){if(Qe)return Qe;async function e(){V=await eo(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),oo(r)?r=await r.instantiator(n):so(r)?r=await r.default(n):(ao(r)&&(r=r.data),lo(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await co(r)(n):r=await po(r)(n):uo(r)?r=await Tt(r)(n):r instanceof WebAssembly.Module?r=await Tt(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Tt(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Qe=e(),Qe}function Tt(t){return e=>WebAssembly.instantiate(t,e)}function co(t){return e=>WebAssembly.instantiateStreaming(t,e)}function po(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}let br;function ho(t){br=t}function fo(){return br}async function mo(t){return t&&await Er(t),{createScanner(e){return new io(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new yr(e)}}}const go=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:mo,getDefaultWasmLoader:fo,loadWasm:Er,setDefaultWasmLoader:ho},Symbol.toStringTag,{value:"Module"}));var wr=ji({});Wi(wr,go);var T=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function _o(t){return dn(t)}function dn(t){return Array.isArray(t)?yo(t):t instanceof RegExp?t:typeof t=="object"?Eo(t):t}function yo(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=dn(t[n]);return e}function Eo(t){let e={};for(let n in t)e[n]=dn(t[n]);return e}function vr(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function Cr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Cr(t.substring(0,t.length-1)):t.substr(~e+1)}var Pt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Je=class{static hasCaptures(t){return t===null?!1:(Pt.lastIndex=0,Pt.test(t))}static replaceCaptures(t,e,n){return t.replace(Pt,(r,i,o,s)=>{let a=n[parseInt(i||o,10)];if(a){let l=e.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Ar(t,e){return t<e?-1:t>e?1:0}function kr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let o=Ar(t[i],e[i]);if(o!==0)return o}return 0}return n-r}function In(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Sr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Rr=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},st=class{constructor(t,e,n){g(this,"_cachedMatchRoot",new Rr(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(vo(t),e)}static createFromParsedTheme(t,e){return Ao(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,r=this._cachedMatchRoot.get(e).find(i=>bo(t.parent,i.parentScopes));return r?new Ir(r.fontStyle,r.foreground,r.background):null}},Ot=class rt{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const r of n)e=new rt(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new rt(n,e[r]);return n}push(e){return new rt(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function bo(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],i=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],i=!0}for(;t&&!wo(t.scopeName,r);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function wo(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Ir=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function vo(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),a=d.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let d=s.settings.fontStyle.split(" ");for(let h=0,f=d.length;h<f;h++)switch(d[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&In(s.settings.foreground)&&(u=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&In(s.settings.background)&&(p=s.settings.background);for(let d=0,h=a.length;d<h;d++){let m=a[d].trim().split(" "),y=m[m.length-1],w=null;m.length>1&&(w=m.slice(0,m.length-1),w.reverse()),n[r++]=new Co(y,w,i,l,u,p)}}return n}var Co=class{constructor(t,e,n,r,i,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},B=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(B||{});function Ao(t,e){t.sort((l,u)=>{let p=Ar(l.scope,u.scope);return p!==0||(p=kr(l.parentScopes,u.parentScopes),p!==0)?p:l.index-u.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let o=new ko(e),s=new Ir(n,o.getId(r),o.getId(i)),a=new Ro(new zt(0,null,-1,0,0),[]);for(let l=0,u=t.length;l<u;l++){let p=t[l];a.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new st(o,s,a)}var ko=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},So=Object.freeze([]),zt=class Lr{constructor(e,n,r,i,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=n||So,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Lr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},Ro=class qt{constructor(e,n=[],r={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-e.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,o;if(r===-1?(i=e,o=""):(i=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(qt._cmpBySpecificity),n}insert(e,n,r,i,o,s){if(n===""){this._doInsertHere(e,r,i,o,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let p;this._children.hasOwnProperty(l)?p=this._children[l]:(p=new qt(this._mainRule.clone(),zt.cloneArr(this._rulesWithParentScopes)),this._children[l]=p),p.insert(e+1,u,r,i,o,s)}_doInsertHere(e,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(e,r,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(kr(l.parentScopes,n)===0){l.acceptOverwrite(e,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new zt(e,n,r,i,o))}},we=class z{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=z.getLanguageId(e),r=z.getTokenType(e),i=z.getFontStyle(e),o=z.getForeground(e),s=z.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:s})}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,n,r,i,o,s,a){let l=z.getLanguageId(e),u=z.getTokenType(e),p=z.containsBalancedBrackets(e)?1:0,d=z.getFontStyle(e),h=z.getForeground(e),f=z.getBackground(e);return n!==0&&(l=n),r!==8&&(u=r),i!==null&&(p=i?1:0),o!==-1&&(d=o),s!==0&&(h=s),a!==0&&(f=a),(l<<0|u<<8|p<<10|d<<11|h<<15|f<<24)>>>0}};function at(t,e){const n=[],r=Io(t);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=s();if(n.push({matcher:u,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=r.next();const l=a();return i===")"&&(i=r.next()),l}if(Ln(i)){const l=[];do l.push(i),i=r.next();while(Ln(i));return u=>e(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return p=>l.every(d=>d(p))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=s()}return p=>l.some(d=>d(p))}}function Ln(t){return!!t&&!!t.match(/[\w\.:]+/)}function Io(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}function Tr(t){typeof t.dispose=="function"&&t.dispose()}var Ge=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Lo=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},To=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},Po=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ge(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new To;for(const n of t)Oo(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof Ge){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Oo(t,e,n,r){const i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=n.lookup(e);t instanceof Ge?it({baseGrammar:o,selfGrammar:i},r):Xt(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(t.scopeName);if(s)for(const a of s)r.add(new Ge(a))}function Xt(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];lt([r],e,n)}}function it(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&<(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&<(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function lt(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?vr({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&<(r.patterns,{...e,repository:i},n);const o=r.include;if(!o)continue;const s=Pr(o);switch(s.kind){case 0:it({...e,selfGrammar:e.baseGrammar},n);break;case 1:it(e,n);break;case 2:Xt(s.ruleName,{...e,repository:i},n);break;case 3:case 4:const a=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:i};s.kind===4?Xt(s.ruleName,l,n):it(l,n)}else s.kind===4?n.add(new Lo(s.scopeName,s.ruleName)):n.add(new Ge(s.scopeName));break}}}var xo=class{constructor(){g(this,"kind",0)}},Do=class{constructor(){g(this,"kind",1)}},No=class{constructor(t){g(this,"kind",2);this.ruleName=t}},Vo=class{constructor(t){g(this,"kind",3);this.scopeName=t}},$o=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function Pr(t){if(t==="$base")return new xo;if(t==="$self")return new Do;const e=t.indexOf("#");if(e===-1)return new Vo(t);if(e===0)return new No(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new $o(n,r)}}var Mo=/\\(\d+)/,Tn=/\\(\d+)/g,Go=-1,Or=-2;var qe=class{constructor(t,e,n,r){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=Je.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Je.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Cr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Je.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Je.replaceCaptures(this._contentName,t,e)}},Bo=class extends qe{constructor(e,n,r,i,o){super(e,n,r,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,i){throw new Error("Not supported!")}},Uo=class extends qe{constructor(e,n,r,i,o){super(e,n,r,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Be(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ue,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pn=class extends qe{constructor(e,n,r,i,o){super(e,n,r,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ue,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kt=class extends qe{constructor(e,n,r,i,o,s,a,l,u,p){super(e,n,r,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Be(o,this.id),this.beginCaptures=s,this._end=new Be(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.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(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ue;for(const r of this.patterns)e.getRule(r).collectPatterns(e,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},ut=class extends qe{constructor(e,n,r,i,o,s,a,l,u){super(e,n,r,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Be(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new Be(a,Or),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ue;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ue,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},xr=class G{static createCaptureRule(e,n,r,i,o){return e.registerRule(s=>new Bo(n,s,r,i,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new Uo(e.$vscodeTextmateLocation,e.id,e.name,e.match,G._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=vr({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Pn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,G._compilePatterns(o,n,r))}return e.while?new ut(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,G._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,G._compileCaptures(e.whileCaptures||e.captures,n,r),G._compilePatterns(e.patterns,n,r)):new Kt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,G._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,G._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,G._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;e[s].patterns&&(l=G.getCompiledRuleId(e[s],n,r)),i[a]=G.createCaptureRule(n,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,l)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const a=e[o];let l=-1;if(a.include){const u=Pr(a.include);switch(u.kind){case 0:case 1:l=G.getCompiledRuleId(r[a.include],n,r);break;case 2:let p=r[u.ruleName];p&&(l=G.getCompiledRuleId(p,n,r));break;case 3:case 4:const d=u.scopeName,h=u.kind===4?u.ruleName:null,f=n.getExternalGrammar(d,r);if(f)if(h){let m=f.repository[h];m&&(l=G.getCompiledRuleId(m,n,f.repository))}else l=G.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else l=G.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let p=!1;if((u instanceof Pn||u instanceof Kt||u instanceof ut)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},Be=class Dr{constructor(e,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let i=0,o=[],s=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){const u=e.charAt(a+1);u==="z"?(o.push(e.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Mo.test(this.source):this.hasBackReferences=!1}clone(){return new Dr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>e.substring(i.start,i.end));return Tn.lastIndex=0,this.source.replace(Tn,(i,o)=>Sr(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],i=[],o,s,a,l;for(o=0,s=this.source.length;o<s;o++)a=this.source.charAt(o),e[o]=a,n[o]=a,r[o]=a,i[o]=a,a==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="",n[o+1]="",r[o+1]="A",i[o+1]="A"):l==="G"?(e[o+1]="",n[o+1]="G",r[o+1]="",i[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,i[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ue=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new On(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(i=>i.resolveAnchors(e,n));return new On(t,r,this._items.map(i=>i.ruleId))}},On=class{constructor(t,e,n){g(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
3
|
`)}findNextMatchSync(t,e,n){const r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},xt=class{constructor(t,e){this.languageId=t,this.tokenType=e}},se,Fo=(se=class{constructor(e,n){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new Rr(e=>{const n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new xt(n,r)}));this._defaultAttributes=new xt(e,8),this._embeddedLanguagesMatcher=new jo(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?se._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(se.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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!")}},g(se,"_NULL_SCOPE_METADATA",new xt(0,0)),g(se,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),se),jo=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,r])=>Sr(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},xn=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Nr(t,e,n,r,i,o,s,a){const l=e.content.length;let u=!1,p=-1;if(s){const f=Ho(t,e,n,r,i,o);i=f.stack,r=f.linePos,n=f.isFirstLine,p=f.anchorPosition}const d=Date.now();for(;!u;){if(a!==0&&Date.now()-d>a)return new xn(i,!0);h()}return new xn(i,!1);function h(){const f=Wo(t,e,n,r,i,p);if(!f){o.produce(i,l),u=!0;return}const m=f.captureIndices,y=f.matchedRuleId,w=m&&m.length>0?m[0].end>r:!1;if(y===Go){const v=i.getRule(t);o.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ve(t,e,n,i,o,v.endCaptures,m),o.produce(i,m[0].end);const E=i;if(i=i.parent,p=E.getAnchorPos(),!w&&E.getEnterPos()===r){i=E,o.produce(i,l),u=!0;return}}else{const v=t.getRule(y);o.produce(i,m[0].start);const E=i,b=v.getName(e.content,m),C=i.contentNameScopesList.pushAttributed(b,t);if(i=i.push(y,r,p,m[0].end===l,null,C,C),v instanceof Kt){const k=v;Ve(t,e,n,i,o,k.beginCaptures,m),o.produce(i,m[0].end),p=m[0].end;const R=k.getContentName(e.content,m),L=C.pushAttributed(R,t);if(i=i.withContentNameScopesList(L),k.endHasBackReferences&&(i=i.withEndRule(k.getEndWithResolvedBackReferences(e.content,m))),!w&&E.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(v instanceof ut){const k=v;Ve(t,e,n,i,o,k.beginCaptures,m),o.produce(i,m[0].end),p=m[0].end;const R=k.getContentName(e.content,m),L=C.pushAttributed(R,t);if(i=i.withContentNameScopesList(L),k.whileHasBackReferences&&(i=i.withEndRule(k.getWhileWithResolvedBackReferences(e.content,m))),!w&&E.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(Ve(t,e,n,i,o,v.captures,m),o.produce(i,m[0].end),i=i.pop(),!w){i=i.safePop(),o.produce(i,l),u=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function Ho(t,e,n,r,i,o){let s=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const u=l.getRule(t);u instanceof ut&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:p}=Xo(l.rule,t,l.stack.endRule,n,r===s),d=u.findNextMatchSync(e,r,p);if(d){if(d.ruleId!==Or){i=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),Ve(t,e,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}function Wo(t,e,n,r,i,o){const s=zo(t,e,n,r,i,o),a=t.getInjections();if(a.length===0)return s;const l=qo(a,t,e,n,r,i,o);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,p=l.captureIndices[0].start;return p<u||l.priorityMatch&&p===u?l:s}function zo(t,e,n,r,i,o){const s=i.getRule(t),{ruleScanner:a,findOptions:l}=Vr(s,t,i.endRule,n,r===o),u=a.findNextMatchSync(e,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function qo(t,e,n,r,i,o,s){let a=Number.MAX_VALUE,l=null,u,p=0;const d=o.contentNameScopesList.getScopeNames();for(let h=0,f=t.length;h<f;h++){const m=t[h];if(!m.matcher(d))continue;const y=e.getRule(m.ruleId),{ruleScanner:w,findOptions:v}=Vr(y,e,null,r,i===s),E=w.findNextMatchSync(n,i,v);if(!E)continue;const b=E.captureIndices[0].start;if(!(b>=a)&&(a=b,l=E.captureIndices,u=E.ruleId,p=m.priority,a===i))break}return l?{priorityMatch:p===-1,captureIndices:l,matchedRuleId:u}:null}function Vr(t,e,n,r,i){return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}function Xo(t,e,n,r,i){return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}function Ve(t,e,n,r,i,o,s){if(o.length===0)return;const a=e.content,l=Math.min(o.length,s.length),u=[],p=s[0].end;for(let d=0;d<l;d++){const h=o[d];if(h===null)continue;const f=s[d];if(f.length===0)continue;if(f.start>p)break;for(;u.length>0&&u[u.length-1].endPos<=f.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,f.start):i.produce(r,f.start),h.retokenizeCapturedWithRuleId){const y=h.getName(a,s),w=r.contentNameScopesList.pushAttributed(y,t),v=h.getContentName(a,s),E=w.pushAttributed(v,t),b=r.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,w,E),C=t.createOnigString(a.substring(0,f.end));Nr(t,C,n&&f.start===0,f.start,b,i,!1,0),Tr(C);continue}const m=h.getName(a,s);if(m!==null){const w=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);u.push(new Ko(w,f.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Ko=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function Qo(t,e,n,r,i,o,s,a){return new Yo(t,e,n,r,i,o,s,a)}function Dn(t,e,n,r,i){const o=at(e,ct),s=xr.getCompiledRuleId(n,r,i.repository);for(const a of o)t.push({debugSelector:e,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function ct(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(Jo(e[i],r))return n=i+1,!0;return!1})}function Jo(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var Yo=class{constructor(t,e,n,r,i,o,s,a){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new Fo(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Nn(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=at(l,ct);for(const p of u)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){const i=r.injections;if(i)for(let s in i)Dn(e,s,i[s],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&Dn(e,l,a,this,a)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Nn(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){const r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=xr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Qt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),d=we.set(0,u.languageId,u.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=$e.createRootAndLookUpScopeName(h,d,this):f=$e.createRoot("unknown",d),e=new Qt(null,this._rootId,-1,-1,!1,null,f,f)}else i=!1,e.reset();t=t+`
|
|
4
4
|
`;const o=this.createOnigString(t),s=o.content.length,a=new es(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Nr(this,o,i,0,e,a,!0,r);return Tr(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Nn(t,e){return t=_o(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var $e=class te{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,i=(e==null?void 0:e.scopePath)??null;for(const o of n)i=Ot.push(i,o.scopeNames),r=new te(r,i,o.encodedTokenAttributes);return r}static createRoot(e,n){return new te(null,new Ot(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const i=r.getMetadataForScope(e),o=new Ot(null,e),s=r.themeProvider.themeMatch(o),a=te.mergeAttributes(n,i,s);return new te(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return te.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,o=0,s=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,s=r.backgroundId),we.set(e,n.languageId,n.tokenType,null,i,o,s)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return te._pushAttributed(this,e,n);const r=e.split(/ /g);let i=this;for(const o of r)i=te._pushAttributed(i,o,n);return i}static _pushAttributed(e,n,r){const i=r.getMetadataForScope(n),o=e.scopePath.push(n),s=r.themeProvider.themeMatch(o),a=te.mergeAttributes(e.tokenAttributes,i,s);return new te(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((i=r.parent)==null?void 0:i.scopePath)??null)}),r=r.parent;return r===e?n.reverse():void 0}},q,Qt=(q=class{constructor(e,n,r,i,o,s,a,l){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(e){return e===null?!1:q._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?$e.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){q._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,o,s,a){return new q(this,e,n,r,i,o,s,a)}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,n){var r,i;return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,n}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 q(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var e,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,n){const r=$e.fromExtension((e==null?void 0:e.nameScopesList)??null,n.nameScopesList);return new q(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,$e.fromExtension(r,n.contentNameScopesList))}},g(q,"NULL",new q(null,0,0,0,!1,null,null,null)),q),Zo=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):at(n,ct).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>at(n,ct).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},es=class{constructor(t,e,n,r){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(t==null?void 0:t.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(t==null?void 0:t.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(i=we.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(i=we.set(i,0,8,o,-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 n=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,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(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,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(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},ts=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,Qo(t,o,e,n,r,i,this,this._onigLib))}return this._grammars.get(t)}},ns=class{constructor(e){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new ts(st.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(st.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,r){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,n,r){return this._loadGrammar(e,n,r.embeddedLanguages,r.tokenTypes,new Zo(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,r,i,o){const s=new Po(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(e,n,r,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(e,n=[],r=0,i=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,n=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,n,r,i,o)}},Jt=Qt.NULL;function dt(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function pe(t,e){return t&&((e==null?void 0:e[t==null?void 0:t.toLowerCase()])||t)}function rs(t){return Array.isArray(t)?t:[t]}async function $r(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function yt(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Mr(t){return t==="ansi"||yt(t)}function Et(t){return t==="none"}function Gr(t){return Et(t)}const is=/(\r?\n)/g;function bt(t,e=!1){var o;if(t.length===0)return[["",0]];const n=t.split(is);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const a=e?n[s]+(n[s+1]||""):n[s];i.push([a,r]),r+=n[s].length,r+=((o=n[s+1])==null?void 0:o.length)||0}return i}const Vn={light:"#333333",dark:"#bbbbbb"},$n={light:"#fffffe",dark:"#1e1e1e"},Mn="__shiki_resolved";function pn(t){var a,l,u,p,d;if(t!=null&&t[Mn])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:n,fg:r}=e;if(!n||!r){const h=e.settings?e.settings.find(f=>!f.name&&!f.scope):void 0;(a=h==null?void 0:h.settings)!=null&&a.foreground&&(r=h.settings.foreground),(l=h==null?void 0:h.settings)!=null&&l.background&&(n=h.settings.background),!r&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(r=e.colors["editor.foreground"]),!n&&((p=e==null?void 0:e.colors)!=null&&p["editor.background"])&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?Vn.light:Vn.dark),n||(n=e.type==="light"?$n.light:$n.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function s(h){var m;if(o.has(h))return o.get(h);i+=1;const f=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(m=e.colorReplacements)!=null&&m[`#${f}`]?s(h):(o.set(h,f),f)}e.settings=e.settings.map(h=>{var w,v;const f=((w=h.settings)==null?void 0:w.foreground)&&!h.settings.foreground.startsWith("#"),m=((v=h.settings)==null?void 0:v.background)&&!h.settings.background.startsWith("#");if(!f&&!m)return h;const y={...h,settings:{...h.settings}};if(f){const E=s(h.settings.foreground);e.colorReplacements[E]=h.settings.foreground,y.settings.foreground=E}if(m){const E=s(h.settings.background);e.colorReplacements[E]=h.settings.background,y.settings.background=E}return y});for(const h of Object.keys(e.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((d=e.colors[h])!=null&&d.startsWith("#"))){const f=s(e.colors[h]);e.colorReplacements[f]=e.colors[h],e.colors[h]=f}return Object.defineProperty(e,Mn,{enumerable:!1,writable:!1,value:!0}),e}async function Br(t){return[...new Set((await Promise.all(t.filter(e=>!Mr(e)).map(async e=>await $r(e).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Ur(t){return(await Promise.all(t.map(async e=>Gr(e)?null:pn(await $r(e))))).filter(e=>!!e)}function Fr(t,e){if(!e)return t;if(e[t]){const n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new T(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var os=class extends ns{constructor(e,n,r,i={}){super(e);g(this,"_resolver");g(this,"_themes");g(this,"_langs");g(this,"_alias");g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=e,this._themes=n,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=pn(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=st.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=Fr(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){var o,s,a,l;if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(u=>{var p;return(p=u.embeddedLangsLazy)==null?void 0:p.includes(e.name)}));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(u=>{this._alias[u]=e.name}),this._loadedLanguagesCache=null,n.size)for(const u of n)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(s=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||s.delete(u.scopeName),(l=(a=this._syncRegistry)==null?void 0:a._grammars)==null||l.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=[...this._langGraph.entries()],r=n.filter(([i,o])=>!o);if(r.length){const i=n.filter(([o,s])=>{var a;return s?(a=s.embeddedLanguages||s.embeddedLangs)==null?void 0:a.some(l=>r.map(([u])=>u).includes(l)):!1}).filter(o=>!r.includes(o));throw new T(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of n)this._resolver.addLanguage(o);for(const[i,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}},ss=class{constructor(t,e){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(e=>{this._langs.set(e,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)})}getInjections(t){const e=t.split(".");let n=[];for(let r=1;r<=e.length;r++){const i=e.slice(0,r).join(".");n=[...n,...this._injections.get(i)||[]]}return n}};let Ne=0;function hn(t){Ne+=1,t.warnings!==!1&&Ne>=10&&Ne%10===0&&console.warn(`[Shiki] ${Ne} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new T("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(pn),i=new os(new ss(t.engine,n),r,n,t.langAlias);let o;function s(E){return Fr(E,t.langAlias)}function a(E){w();const b=i.getGrammar(typeof E=="string"?E:E.name);if(!b)throw new T(`Language \`${E}\` not found, you may need to load it first`);return b}function l(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const b=i.getTheme(E);if(!b)throw new T(`Theme \`${E}\` not found, you may need to load it first`);return b}function u(E){w();const b=l(E);return o!==E&&(i.setTheme(b),o=E),{theme:b,colorMap:i.getColorMap()}}function p(){return w(),i.getLoadedThemes()}function d(){return w(),i.getLoadedLanguages()}function h(...E){w(),i.loadLanguages(E.flat(1))}async function f(...E){return h(await Br(E))}function m(...E){w();for(const b of E.flat(1))i.loadTheme(b)}async function y(...E){return w(),m(await Ur(E))}function w(){if(e)throw new T("Shiki instance has been disposed")}function v(){e||(e=!0,i.dispose(),Ne-=1)}return{setTheme:u,getTheme:l,getLanguage:a,getLoadedThemes:p,getLoadedLanguages:d,resolveLangAlias:s,loadLanguage:f,loadLanguageSync:h,loadTheme:y,loadThemeSync:m,dispose:v,[Symbol.dispose]:v}}const oc=hn;async function jr(t){t.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,n,r]=await Promise.all([Ur(t.themes||[]),Br(t.langs||[]),t.engine]);return hn({...t,themes:e,langs:n,engine:r})}const sc=jr,Hr=new WeakMap;function wt(t,e){Hr.set(t,e)}function Fe(t){return Hr.get(t)}var vt=class Wr{constructor(...e){g(this,"_stacks",{});g(this,"lang");if(e.length===2){const[n,r]=e;this.lang=r,this._stacks=n}else{const[n,r,i]=e;this.lang=r,this._stacks={[i]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new Wr(Object.fromEntries(rs(n).map(r=>[r,Jt])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return as(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function as(t){const e=[],n=new Set;function r(i){var s;if(n.has(i))return;n.add(i);const o=(s=i==null?void 0:i.nameScopesList)==null?void 0:s.scopeName;o&&e.push(o),i.parent&&r(i.parent)}return r(t),e}function ls(t,e){if(!(t instanceof vt))throw new T("Invalid grammar state");return t.getInternalStack(e)}const us=/,/,cs=/ /;function zr(t,e,n={}){const{theme:r=t.getLoadedThemes()[0]}=n;if(yt(t.resolveLangAlias(n.lang||"text"))||Et(r))return bt(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:i,colorMap:o}=t.setTheme(r),s=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new T(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(i.name))throw new T(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return ds(e,s,i,o,n)}function qr(...t){if(t.length===2)return Fe(t[1]);const[e,n,r={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=r;if(yt(i)||Et(o))throw new T("Plain language does not have grammar state");if(i==="ansi")throw new T("ANSI language does not have grammar state");const{theme:s,colorMap:a}=e.setTheme(o),l=e.getLanguage(i);return new vt(fn(n,l,s,a,r).stateStack,l.name,s.name)}function ds(t,e,n,r,i){const o=fn(t,e,n,r,i),s=new vt(o.stateStack,e.name,n.name);return wt(o.tokens,s),o.tokens}function fn(t,e,n,r,i){const o=dt(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=i,u=bt(t);let p=i.grammarState?ls(i.grammarState,n.name)??Jt:i.grammarContextCode!=null?fn(i.grammarContextCode,e,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Jt,d=[];const h=[];for(let f=0,m=u.length;f<m;f++){const[y,w]=u[f];if(y===""){d=[],h.push([]);continue}if(s>0&&y.length>=s){d=[],h.push([{content:y,offset:w,color:"",fontStyle:0}]);continue}let v,E,b;l&&l!=="tokenType"&&(v=e.tokenizeLine(y,p,a),E=v.tokens,b=0);const C=e.tokenizeLine2(y,p,a),k=C.tokens.length/2;for(let R=0;R<k;R++){const L=C.tokens[2*R],H=R+1<k?C.tokens[2*R+2]:y.length;if(L===H)continue;const M=C.tokens[2*R+1],Z=pe(r[we.getForeground(M)],o),ke=we.getFontStyle(M),F={content:y.substring(L,H),offset:w+L,color:Z,fontStyle:ke};if(l==="tokenType")F.type=we.getTokenType(M);else if(l){const An=[];if(l!=="scopeName")for(const ne of n.settings){let Se;switch(typeof ne.scope){case"string":Se=ne.scope.split(us).map(Rt=>Rt.trim());break;case"object":Se=ne.scope;break;default:continue}An.push({settings:ne,selectors:Se.map(Rt=>Rt.split(cs))})}F.explanation=[];let kn=0;for(;L+kn<H;){const ne=E[b],Se=y.substring(ne.startIndex,ne.endIndex);kn+=Se.length,F.explanation.push({content:Se,scopes:l==="scopeName"?ps(ne.scopes):hs(An,ne.scopes)}),b+=1}}d.push(F)}h.push(d),d=[],p=C.ruleStack}return{tokens:h,stateStack:p}}function ps(t){return t.map(e=>({scopeName:e}))}function hs(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const o=e[r];n[r]={scopeName:o,themeMatches:ms(t,o,e.slice(0,r))}}return n}function Gn(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function fs(t,e,n){if(!Gn(t.at(-1),e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)Gn(t[r],n[i])&&(r-=1),i-=1;return r===-1}function ms(t,e,n){const r=[];for(const{selectors:i,settings:o}of t)for(const s of i)if(fs(s,e,n)){r.push(o);break}return r}function mn(t,e,n,r=zr){const i=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=i.map(u=>{const p=r(t,e,{...n,theme:u.theme});return{tokens:p,state:Fe(p),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),s=gs(...o.map(u=>u.tokens)),a=s[0].map((u,p)=>u.map((d,h)=>{const f={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(f.explanation=d.explanation),s.forEach((m,y)=>{const{content:w,explanation:v,offset:E,...b}=m[p][h];f.variants[i[y].color]=b}),f})),l=o[0].state?new vt(Object.fromEntries(o.map(u=>{var p;return[u.theme,(p=u.state)==null?void 0:p.getInternalStack(u.theme)]})),o[0].state.lang):void 0;return l&&wt(a,l),a}function gs(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const i=t.map(l=>l[r]),o=e.map(()=>[]);e.forEach((l,u)=>l.push(o[u]));const s=i.map(()=>0),a=i.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const p=a[u];p.content.length===l?(o[u].push(p),s[u]+=1,a[u]=i[u][s[u]]):(o[u].push({...p,content:p.content.slice(0,l)}),a[u]={...p,content:p.content.slice(l),offset:p.offset+l})}}}return e}const _s=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Xe{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}Xe.prototype.normal={};Xe.prototype.property={};Xe.prototype.space=void 0;function Xr(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new Xe(n,r,e)}function Yt(t){return t.toLowerCase()}class j{constructor(e,n){this.attribute=n,this.property=e}}j.prototype.attribute="";j.prototype.booleanish=!1;j.prototype.boolean=!1;j.prototype.commaOrSpaceSeparated=!1;j.prototype.commaSeparated=!1;j.prototype.defined=!1;j.prototype.mustUseProperty=!1;j.prototype.number=!1;j.prototype.overloadedBoolean=!1;j.prototype.property="";j.prototype.spaceSeparated=!1;j.prototype.space=void 0;let ys=0;const A=Ae(),O=Ae(),Zt=Ae(),_=Ae(),I=Ae(),ve=Ae(),W=Ae();function Ae(){return 2**++ys}const en=Object.freeze(Object.defineProperty({__proto__:null,boolean:A,booleanish:O,commaOrSpaceSeparated:W,commaSeparated:ve,number:_,overloadedBoolean:Zt,spaceSeparated:I},Symbol.toStringTag,{value:"Module"})),Dt=Object.keys(en);class gn extends j{constructor(e,n,r,i){let o=-1;if(super(e,n),Bn(this,"space",i),typeof r=="number")for(;++o<Dt.length;){const s=Dt[o];Bn(this,Dt[o],(r&en[s])===en[s])}}}gn.prototype.defined=!0;function Bn(t,e,n){n&&(t[e]=n)}function Oe(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const o=new gn(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[Yt(r)]=r,n[Yt(o.attribute)]=r}return new Xe(e,n,t.space)}const Kr=Oe({properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:O,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:I,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:_,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:I,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:O,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Qr(t,e){return e in t?t[e]:e}function Jr(t,e){return Qr(t,e.toLowerCase())}const Es=Oe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alpha:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:I,autoFocus:A,autoPlay:A,blocking:I,capture:null,charSet:null,checked:A,cite:null,className:I,closedBy:null,colorSpace:null,cols:_,colSpan:_,command:null,commandFor:null,content:null,contentEditable:O,controls:A,controlsList:I,coords:_|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:Zt,draggable:O,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:I,height:_,hidden:Zt,high:_,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:I,itemRef:I,itemScope:A,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:A,optimum:_,pattern:null,ping:I,placeholder:null,playsInline:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:I,required:A,reversed:A,rows:_,rowSpan:_,sandbox:I,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootCustomElementRegistry:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shadowRootSerializable:A,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:O,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:A,useMap:null,value:O,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:O,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:A,disablePictureInPicture:A,disableRemotePlayback:A,exportParts:ve,part:I,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:Jr}),bs=Oe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:W,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:I,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:A,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:W,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:W,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:W,rev:W,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:W,requiredFeatures:W,requiredFonts:W,requiredFormats:W,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:W,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:W,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:W,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qr}),Yr=Oe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Zr=Oe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Jr}),ei=Oe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),ws=/[A-Z]/g,Un=/-[a-z]/g,vs=/^data[-\w.:]+$/i;function Cs(t,e){const n=Yt(e);let r=e,i=j;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&vs.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(Un,ks);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!Un.test(o)){let s=o.replace(ws,As);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=gn}return new i(r,e)}function As(t){return"-"+t.toLowerCase()}function ks(t){return t.charAt(1).toUpperCase()}const Ss=Xr([Kr,Es,Yr,Zr,ei],"html"),ti=Xr([Kr,bs,Yr,Zr,ei],"svg"),Fn={}.hasOwnProperty;function Rs(t,e){const n=e||{};function r(i,...o){let s=r.invalid;const a=r.handlers;if(i&&Fn.call(i,t)){const l=String(i[t]);s=Fn.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Is=/["&'<>`]/g,Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ts=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ps=/[|\\{}()[\]^$+*?.]/g,jn=new WeakMap;function Os(t,e){if(t=t.replace(e.subset?xs(e.subset):Is,r),e.subset||e.escapeOnly)return t;return t.replace(Ls,n).replace(Ts,r);function n(i,o,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function r(i,o,s){return e.format(i.charCodeAt(0),s.charCodeAt(o+1),e)}}function xs(t){let e=jn.get(t);return e||(e=Ds(t),jn.set(t,e)),e}function Ds(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(Ps,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Ns=/[\dA-Fa-f]/;function Vs(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!Ns.test(String.fromCharCode(e))?r:r+";"}const $s=/\d/;function Ms(t,e,n){const r="&#"+String(t);return n&&e&&!$s.test(String.fromCharCode(e))?r:r+";"}const Gs=["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"],Nt={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:"€"},Bs=["cent","copy","divide","gt","lt","not","para","times"],ni={}.hasOwnProperty,tn={};let Ye;for(Ye in Nt)ni.call(Nt,Ye)&&(tn[Nt[Ye]]=Ye);const Us=/[^\dA-Za-z]/;function Fs(t,e,n,r){const i=String.fromCharCode(t);if(ni.call(tn,i)){const o=tn[i],s="&"+o;return n&&Gs.includes(o)&&!Bs.includes(o)&&(!r||e&&e!==61&&Us.test(String.fromCharCode(e)))?s:s+";"}return""}function js(t,e,n){let r=Vs(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Fs(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=Ms(t,e,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Pe(t,e){return Os(t,Object.assign({format:js},e))}const Hs=/^>|^->|<!--|-->|--!>|<!-$/g,Ws=[">"],zs=["<",">"];function qs(t,e,n,r){return r.settings.bogusComments?"<?"+Pe(t.value,Object.assign({},r.settings.characterReferences,{subset:Ws}))+">":"<!--"+t.value.replace(Hs,i)+"-->";function i(o){return Pe(o,Object.assign({},r.settings.characterReferences,{subset:zs}))}}function Xs(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Hn(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function Ks(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Qs(t){return t.join(" ").trim()}const Js=/[ \t\n\f\r]/g;function _n(t){return typeof t=="object"?t.type==="text"?Wn(t.value):!1:Wn(t)}function Wn(t){return t.replace(Js,"")===""}const N=ii(1),ri=ii(-1),Ys=[];function ii(t){return e;function e(n,r,i){const o=n?n.children:Ys;let s=(r||0)+t,a=o[s];if(!i)for(;a&&_n(a);)s+=t,a=o[s];return a}}const Zs={}.hasOwnProperty;function oi(t){return e;function e(n,r,i){return Zs.call(t,n.tagName)&&t[n.tagName](n,r,i)}}const yn=oi({body:ta,caption:Vt,colgroup:Vt,dd:oa,dt:ia,head:Vt,html:ea,li:ra,optgroup:sa,option:aa,p:na,rp:zn,rt:zn,tbody:ua,td:qn,tfoot:ca,th:qn,thead:la,tr:da});function Vt(t,e,n){const r=N(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&_n(r.value.charAt(0)))}function ea(t,e,n){const r=N(n,e);return!r||r.type!=="comment"}function ta(t,e,n){const r=N(n,e);return!r||r.type!=="comment"}function na(t,e,n){const r=N(n,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"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function ra(t,e,n){const r=N(n,e);return!r||r.type==="element"&&r.tagName==="li"}function ia(t,e,n){const r=N(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function oa(t,e,n){const r=N(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function zn(t,e,n){const r=N(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function sa(t,e,n){const r=N(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function aa(t,e,n){const r=N(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function la(t,e,n){const r=N(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function ua(t,e,n){const r=N(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function ca(t,e,n){return!N(n,e)}function da(t,e,n){const r=N(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function qn(t,e,n){const r=N(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const pa=oi({body:ma,colgroup:ga,head:fa,html:ha,tbody:_a});function ha(t){const e=N(t,-1);return!e||e.type!=="comment"}function fa(t){const e=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const n=t.children[0];return!n||n.type==="element"}function ma(t){const e=N(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&_n(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ga(t,e,n){const r=ri(n,e),i=N(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&yn(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function _a(t,e,n){const r=ri(n,e),i=N(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&yn(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ze={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
package/dist/view/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<meta name="referrer" content="no-referrer" />
|
|
14
14
|
<link rel="icon" type="image/svg+xml" href="/qtype-mark.svg" />
|
|
15
15
|
<title>qtype — 打字复习</title>
|
|
16
|
-
<script type="module" crossorigin src="/assets/index
|
|
16
|
+
<script type="module" crossorigin src="/assets/index-CeSHvqfR.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/index-_1m9NuFe.css">
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|