mastra 1.33.0 → 1.33.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-cli-mastra.md +20 -3
- package/dist/factory/assets/{CodeDiff.es-D8Et0K1G.js → CodeDiff.es-BNXFou-B.js} +1 -1
- package/dist/factory/assets/{core-BX7n0QLR.js → core-BiUoJP1a.js} +1 -1
- package/dist/factory/assets/index-B4NXq5o6.js +1354 -0
- package/dist/factory/assets/index-DOqg1V5n.css +1 -0
- package/dist/factory/assets/{index-BcpgB0Ld.js → index-DdkBUecK.js} +1 -1
- package/dist/factory/index.html +2 -2
- package/dist/index.js +1 -1
- package/dist/studio/assets/{CodeDiff.es-CB_gYanJ.js → CodeDiff.es-BUEAwTY9.js} +1 -1
- package/dist/studio/assets/{core-DERPlZmN.js → core-D6sPYRLF.js} +1 -1
- package/dist/studio/assets/{index-BGtB2z61.js → index-BOJ7M8q7.js} +2 -2
- package/dist/studio/assets/{index-8LAG8mz_.js → index-DvXxX4lL.js} +1 -1
- package/dist/studio/assets/{main-BdkpmTmk.js → main-CoO-OdbX.js} +269 -267
- package/dist/studio/assets/style-LvQT5f1g.css +1 -0
- package/dist/studio/index.html +2 -2
- package/package.json +6 -6
- package/dist/factory/assets/index-4H_JoGzC.css +0 -1
- package/dist/factory/assets/index-BaghZlUk.js +0 -1349
- package/dist/studio/assets/style-CHBrMQnG.css +0 -1
package/dist/docs/SKILL.md
CHANGED
|
@@ -917,11 +917,13 @@ mastra auth tokens revoke <token-id>
|
|
|
917
917
|
|
|
918
918
|
Manages provider connections for the linked platform project, so agents using `@mastra/connect` pick up provider toolsets without leaving the terminal.
|
|
919
919
|
|
|
920
|
+
Commands use the organization you're signed in to with `mastra auth login`. Switch organizations with `mastra auth orgs switch`.
|
|
921
|
+
|
|
920
922
|
The target project resolves from the `--project` flag, the `MASTRA_PROJECT_ID` environment variable, or the `.mastra-project.json` written by `mastra deploy`, in that order. All subcommands accept `--project <name|slug|id>`.
|
|
921
923
|
|
|
922
924
|
### `mastra connect list`
|
|
923
925
|
|
|
924
|
-
Lists
|
|
926
|
+
Lists providers with connected providers first. Active connections are shown in green, connections needing reauthorization in yellow, and unconnected providers in grey. Providers that aren't available yet are marked as coming soon.
|
|
925
927
|
|
|
926
928
|
```bash
|
|
927
929
|
mastra connect list
|
|
@@ -931,9 +933,11 @@ mastra connect list
|
|
|
931
933
|
|
|
932
934
|
Connects a provider to the project. When the organization already has connections for the provider that aren't attached to the project, the command lists them and lets you attach an existing connection or create a new one. With no existing connections it goes straight to the provider's auth flow.
|
|
933
935
|
|
|
934
|
-
OAuth providers open the provider's consent screen in your browser
|
|
936
|
+
OAuth providers open the provider's consent screen in your browser and print its URL if you need to open it manually. API key and Basic auth providers prompt for credentials in the terminal and verify them before completing the connection. Providers with other auth types open a hosted connect page. The command waits until the connection becomes active before exiting.
|
|
937
|
+
|
|
938
|
+
Credential prompts require an interactive terminal, even with `--yes`. Run the command outside CI or connect through the platform UI. See [provider setup](https://mastra.ai/docs/mastra-platform/connect/providers) for API keys and required permissions.
|
|
935
939
|
|
|
936
|
-
Once a new connection is active, the command offers to set a display name so you can tell connections to the same provider apart. It lists the provider's existing connections, suggests a name that doesn't collide with them, and asks for confirmation if the chosen name duplicates another connection's name. Leave the field blank to skip naming.
|
|
940
|
+
Once a new connection is active, the command offers to set a display name so you can tell connections to the same provider apart. It lists the provider's existing connections, suggests a name that doesn't collide with them, and asks for confirmation if the chosen name duplicates another connection's name. Leave the field blank to skip naming. Setting a display name requires the organization admin role; if naming fails, the connection remains active.
|
|
937
941
|
|
|
938
942
|
```bash
|
|
939
943
|
mastra connect add <provider>
|
|
@@ -951,6 +955,19 @@ mastra connect remove <provider>
|
|
|
951
955
|
|
|
952
956
|
When a provider has multiple connections, the command prompts for which one to remove. Pass `--yes` to skip confirmation. Without a terminal, or with `--yes`, removing several connections at once requires `--all`, and `--connection <id>` removes a single one.
|
|
953
957
|
|
|
958
|
+
### Replace a connection that needs reauthorization
|
|
959
|
+
|
|
960
|
+
`mastra connect list` marks connections that need reauthorization, for example after a provider API key is revoked. Connect tool resolution skips these connections with a warning.
|
|
961
|
+
|
|
962
|
+
Unlink the affected connection, then add a new one:
|
|
963
|
+
|
|
964
|
+
```bash
|
|
965
|
+
mastra connect remove posthog
|
|
966
|
+
mastra connect add posthog
|
|
967
|
+
```
|
|
968
|
+
|
|
969
|
+
If the project has multiple connections, select the affected one when removing it. When `add` offers to reuse an organization connection, choose **Create a new connection** and authorize it with valid credentials.
|
|
970
|
+
|
|
954
971
|
## `mastra lint`
|
|
955
972
|
|
|
956
973
|
The `mastra lint` command validates the structure and code of your Mastra project.
|
|
@@ -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 ha=Object.defineProperty;var pa=Object.getPrototypeOf;var ma=Reflect.get;var or=e=>{throw TypeError(e)};var ga=(e,t,n)=>t in e?ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var C=(e,t,n)=>ga(e,typeof t!="symbol"?t+"":t,n),$n=(e,t,n)=>t.has(e)||or("Cannot "+n);var ie=(e,t,n)=>($n(e,t,"read from private field"),n?n.call(e):t.get(e)),et=(e,t,n)=>t.has(e)?or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ge=(e,t,n,i)=>($n(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Un=(e,t,n)=>($n(e,t,"access private method"),n);var sr=(e,t,n)=>ma(pa(e),n,t);import{r as X,j as G,_ as p,u as va,d as _a}from"./index-BaghZlUk.js";import{I as gi,E as zn,R as ba,T as ya,t as Me,F as oe}from"./index-BcpgB0Ld.js";import{r as Ro,C as Xe,h as jt,g as Ea,f as Ao}from"./index-2BQyy0xI.js";function Wt(e){const t=X.useRef(e);return X.useInsertionEffect(()=>void(t.current=e)),X.useCallback((...n)=>t.current(...n),[])}const Sa=X.createContext(void 0);function La(){return X.useContext(Sa)}const Ca={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},wa={display:"contents"};function ar(){return null}const Wi="diffs-container";(()=>{try{return!1}catch{return!1}})();const ka=/(?=^From [a-f0-9]+ .+$)/m,Io=/(?=^diff --git)/gm,xa=new RegExp("(?<=\\n)"),Ta=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Ra=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Do="header-prefix",Po="header-filename-suffix",Oo="header-metadata",qi="header-custom",Ce={dark:"pierre-dark",light:"pierre-light"},Aa="data-theme-css",Ia="data-unsafe-css",Da="data-diffs-scrollbar-measure",Mo="--diffs-scrollbar-gutter-measured",Pa=1e5,Oa={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Ma=Object.freeze({fromStart:0,fromEnd:0}),lr={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Na={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function rt(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function Ha({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function he(e,t){return e-(t===0?0:1)}function le(e,t){return he(e,t)+t}function Va(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:Fa(n,e.startContentIndex)}}function Fa(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function No({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:o,renderAnnotation:s,renderGutterUtility:l,renderMergeConflictUtility:a,lineAnnotations:d,getHoveredLine:c,getInstance:u,getAnnotationSlotName:f=rt}){const h=n==null?void 0:n(e),m=i==null?void 0:i(e),v=r==null?void 0:r(e),b=o==null?void 0:o(e);return G.jsxs(G.Fragment,{children:[h!=null?G.jsx("div",{slot:qi,children:h}):G.jsxs(G.Fragment,{children:[m!=null&&G.jsx("div",{slot:"header-prefix",children:m}),v!=null&&G.jsx("div",{slot:"header-filename-suffix",children:v}),b!=null&&G.jsx("div",{slot:"header-metadata",children:b})]}),s!=null&&(d==null?void 0:d.map((g,_)=>G.jsx("div",{slot:f(g),children:s(g)},_))),t!=null&&a!=null&&u!=null&&t.map(g=>{if(g==null)return;const _=$a(g,e);return G.jsx("div",{slot:_,style:wa,children:a(g,u)},_)}),l!=null&&G.jsx("div",{slot:"gutter-utility-slot",style:Ca,children:l(c)})]})}function $a(e,t){const n=Va(e,t);return n!=null?Ha({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}const Vt=new Map,Gn=new Map,Ua=new Map,vi=new Set;function _i(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!vi.has(t))return!1;return!0}function Ki(e=Ce){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const bi=new Set;function Ft(e){const t=[],n=new Set;for(const u of za(e.themes)){const f=Ho(u)?u.getThemes():[u];for(const h of f){if(n.has(h.name))throw new Error(`Theme collection already contains theme "${h.name}"`);n.add(h.name),t.push(h)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(u=>u.colorScheme==="light")),o=Object.freeze(i.filter(u=>u.colorScheme==="dark")),s=new Map(i.map(u=>[u.name,u])),l=Object.freeze(i.map(u=>u.name)),a=Object.freeze(r.map(u=>u.name)),d=Object.freeze(o.map(u=>u.name));function c(u){if(u==null)return i;const{colorScheme:f,collection:h}=u;return h==null?f==="light"?r:f==="dark"?o:i:i.filter(m=>m.collection!==h?!1:f==null||m.colorScheme===f)}return{getTheme(u){return s.get(u)},getThemes(u){return c(u)},getThemeNames(u){return(u==null?void 0:u.collection)==null?(u==null?void 0:u.colorScheme)==="light"?a:(u==null?void 0:u.colorScheme)==="dark"?d:l:c(u).map(f=>f.name)},hasTheme(u){return s.has(u)},orderBy(u){return Ft({themes:i.map((f,h)=>({descriptor:f,index:h})).sort((f,h)=>{const m=u(f.descriptor,h.descriptor);return m!==0?m:f.index-h.index}).map(f=>f.descriptor)})},pick(u){const f=[],h=new Set;for(const m of u){if(h.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);h.add(m);const v=s.get(m);if(v==null)throw new Error(`Theme collection does not contain theme "${m}"`);f.push(v)}return Ft({themes:f})},registerInto(u){for(const f of i)u.registerThemeIfAbsent(f.name,f.load)}}}function za(e){return Ga(e)?[e]:e}function Ga(e){return Ho(e)||Ba(e)}function Ba(e){return typeof e.name=="string"&&typeof e.load=="function"}function Ho(e){return typeof e.getThemes=="function"}function Vo(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var ja=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Wa=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},qa=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Ka(){const e=new Map,t=new Map,n=new Map;let i=0;function r(g,_){if(e.has(g))throw new ja(g);e.set(g,_)}function o(g,_){return e.has(g)?!1:(e.set(g,_),!0)}function s(g){return e.has(g)}function l(g){const _=t.get(g);if(_!==void 0)return Promise.resolve(_);const y=n.get(g);if(y!==void 0)return y;const L=e.get(g);if(L===void 0)return Promise.reject(new Wa(g));const E=i,S=L().then(w=>{const x=Vo(w);return E===i&&t.set(g,x),n.get(g)===S&&n.delete(g),x}).catch(w=>{throw n.get(g)===S&&n.delete(g),w});return n.set(g,S),S}function a(g){return Promise.all(g.map(_=>l(_)))}function d(g,_){t.set(g,_)}function c(g){for(const[_,y]of g)d(_,y)}function u(g){return t.get(g)}function f(g){const _=[];for(const y of g){const L=t.get(y);if(L===void 0)throw new qa(y);_.push(L)}return _}function h(g){return t.has(g)}function m(g){for(const _ of g)if(!t.has(_))return!1;return!0}function v(g){const _=t.get(g);return _!==void 0?_:l(g)}function b(){i++,t.clear(),n.clear()}return{clearResolvedThemes:b,getResolvedOrResolveTheme:v,getResolvedTheme:u,getResolvedThemes:f,hasRegisteredTheme:s,hasResolvedTheme:h,hasResolvedThemes:m,registerTheme:r,registerThemeIfAbsent:o,resolveTheme:l,resolveThemes:a,seedResolvedTheme:d,seedResolvedThemes:c}}const Je=Ka();function dr(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=Je.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,Je.getResolvedTheme(n)==null&&Je.seedResolvedTheme(n,i);bi.has(n)||(bi.add(n),t.loadThemeSync(i))}}function ur(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(vi.has(n.name))continue;let i=Vt.get(n.name);i==null&&(i=n,Vt.set(n.name,i));const r=i.data.find(o=>{var s;return o.name===i.name||((s=o.aliases)==null?void 0:s.includes(i.name))===!0});if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);t.loadLanguageSync(i.data);try{t.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}vi.add(i.name)}}function Fo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var yi=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,Ja=Object.getOwnPropertyNames,Qa=Object.prototype.hasOwnProperty,Za=(e,t)=>{let n={};for(var i in e)yi(n,i,{get:e[i],enumerable:!0});return yi(n,Symbol.toStringTag,{value:"Module"}),n},Ya=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Ja(t),o=0,s=r.length,l;o<s;o++)l=r[o],!Qa.call(e,l)&&l!==n&&yi(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(i=Xa(t,l))||i.enumerable});return e},el=(e,t,n)=>(Ya(e,t,"default"),n);const $o=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>p(()=>import("./actionscript-3-B3316cI-.js"),[]))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>p(()=>import("./ahk-CsyLZFj1.js"),[]))},{id:"ahk2",name:"AutoHotkey2",import:(()=>p(()=>import("./ahk2-8Zs4aa1G.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./apex-DhZFqWV2.js"),[]))},{id:"apl",name:"APL",import:(()=>p(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./asciidoc-CSVQ5wI8.js"),[]))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>p(()=>import("./bat-CickPsom.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>p(()=>import("./bird2-Bx8U0n9b.js"),[]))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>p(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>p(()=>import("./c3-Dp5svz6Z.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>p(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22])))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./clarity-Dn5IMItf.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Rocq",import:(()=>p(()=>import("./coq-C7JzOVbR.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22])))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./csharp-DSvCPggb.js"),[]))},{id:"css",name:"CSS",import:(()=>p(()=>import("./css-CLj8gQPS.js"),[]))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>p(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./dart-bE4Kk8sk.js"),[]))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3])))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./emacs-lisp-C_m_b--Z.js"),[]))},{id:"erb",name:"ERB",import:(()=>p(()=>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:(()=>p(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41])))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>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:(()=>p(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./gdscript-DqcFQ5yU.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29])))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22])))},{id:"gn",name:"GN",import:(()=>p(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>p(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13])))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./haxe-CfZj7gIn.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>p(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13])))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57])))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59])))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>p(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3])))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2])))},{id:"json",name:"JSON",import:(()=>p(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16])))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>p(()=>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:(()=>p(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>p(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./llvm-BZoOZj88.js"),[]))},{id:"log",name:"Log file",import:(()=>p(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22])))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./luau-BnpPk5vE.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./mermaid-CQcHuHx7.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./mojo-DJz3ZmWd.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./moonbit-CHtswR0a.js"),[]))},{id:"move",name:"Move",import:(()=>p(()=>import("./move-el3G9tDJ.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>p(()=>import("./nextflow-groovy-vE_lwT2v.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22])))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41])))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nsis",name:"NSIS",import:(()=>p(()=>import("./nsis-BlV79W_Q.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./nushell-D3jzshHO.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"org",name:"Org Markup",import:(()=>p(()=>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:(()=>p(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>p(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>p(()=>import("./powershell-BmBUJMz7.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./prisma-Vru482bI.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>p(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2])))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>p(()=>import("./r-Cf5RLm7j.js"),[]))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89])))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>p(()=>import("./rbs-CpoqiR4B.js"),[]))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>p(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>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:(()=>p(()=>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:(()=>p(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16])))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./scala-CqE71os6.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29])))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>p(()=>import("./smalltalk-BOQMe2GC.js"),[]))},{id:"smithy",name:"Smithy",import:(()=>p(()=>import("./smithy-cds9vsN8.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./solidity-DijEV5ha.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./sql-CRqJ_cUM.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2])))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./swift-C2oV4EkX.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./system-verilog-0hqHdDBg.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63])))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>p(()=>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:(()=>p(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./typespec-CAFt9gP4.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>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:(()=>p(()=>import("./v-BGw2Nkan.js"),[]))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",import:(()=>p(()=>import("./vb-Cu-pLBUe.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./verilog-nZwndyjY.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>p(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./zig-VOosw3JB.js"),[]))}],tl=Object.fromEntries($o.map(e=>[e.id,e.import])),nl=Object.fromEntries($o.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Ei={...tl,...nl},il=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./github-dark-vbPMK5nw.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./github-light-CBO01_j6.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>p(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./kanagawa-lotus-C3DzagqV.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./kanagawa-wave-DFGoQZhC.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./monokai-BRVnQi9A.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./red-hvxz__6c.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./rose-pine-5qJOZa0Y.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./rose-pine-moon-C9pEdX9L.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./solarized-dark-CpvCGNkr.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./solarized-light-Dlz6yCKv.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./vesper-DRje8inN.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],rl=Object.fromEntries(il.map(e=>[e.id,e.import]));var Xi=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ol(){return 2147483648}function sl(){return typeof performance<"u"?performance.now():Date.now()}const al=(e,t)=>e+(t-e%t)%t;async function ll(e){let t,n;const i={};function r(h){n=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,m,v){i.HEAPU8.copyWithin(h,m,m+v)}function s(h){try{return t.grow(h-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(h){const m=i.HEAPU8.length;h=h>>>0;const v=ol();if(h>v)return!1;for(let b=1;b<=4;b*=2){let g=m*(1+.2/b);g=Math.min(g,h+100663296);const _=Math.min(v,al(Math.max(h,g),65536));if(s(_))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(h,m,v=1024){const b=m+v;let g=m;for(;h[g]&&!(g>=b);)++g;if(g-m>16&&h.buffer&&a)return a.decode(h.subarray(m,g));let _="";for(;m<g;){let y=h[m++];if(!(y&128)){_+=String.fromCharCode(y);continue}const L=h[m++]&63;if((y&224)===192){_+=String.fromCharCode((y&31)<<6|L);continue}const E=h[m++]&63;if((y&240)===224?y=(y&15)<<12|L<<6|E:y=(y&7)<<18|L<<12|E<<6|h[m++]&63,y<65536)_+=String.fromCharCode(y);else{const S=y-65536;_+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return _}function c(h,m){return h?d(i.HEAPU8,h,m):""}const u={emscripten_get_now:sl,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function f(){const m=await e({env:u,wasi_snapshot_preview1:u});t=m.memory,r(t.buffer),Object.assign(i,m),i.UTF8ToString=c}return await f(),i}var dl=Object.defineProperty,ul=(e,t,n)=>t in e?dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>ul(e,typeof t!="symbol"?t+"":t,n);let ee=null;function cl(e){throw new Xi(e.UTF8ToString(e.getLastOnigError()))}class wn{constructor(t){Q(this,"utf16Length"),Q(this,"utf8Length"),Q(this,"utf16Value"),Q(this,"utf8Value"),Q(this,"utf16OffsetToUtf8"),Q(this,"utf8OffsetToUtf16");const n=t.length,i=wn._utf8ByteLength(t),r=i!==n,o=r?new Uint32Array(n+1):null;r&&(o[n]=i);const s=r?new Uint32Array(i+1):null;r&&(s[i]=n);const l=new Uint8Array(i);let a=0;for(let d=0;d<n;d++){const c=t.charCodeAt(d);let u=c,f=!1;if(c>=55296&&c<=56319&&d+1<n){const h=t.charCodeAt(d+1);h>=56320&&h<=57343&&(u=(c-55296<<10)+65536|h-56320,f=!0)}r&&(o[d]=a,f&&(o[d+1]=a),u<=127?s[a+0]=d:u<=2047?(s[a+0]=d,s[a+1]=d):u<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),u<=127?l[a++]=u:u<=2047?(l[a++]=192|(u&1984)>>>6,l[a++]=128|(u&63)>>>0):u<=65535?(l[a++]=224|(u&61440)>>>12,l[a++]=128|(u&4032)>>>6,l[a++]=128|(u&63)>>>0):(l[a++]=240|(u&1835008)>>>18,l[a++]=128|(u&258048)>>>12,l[a++]=128|(u&4032)>>>6,l[a++]=128|(u&63)>>>0),f&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const o=t.charCodeAt(i);let s=o,l=!1;if(o>=55296&&o<=56319&&i+1<r){const a=t.charCodeAt(i+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const kn=class Se{constructor(t){if(Q(this,"id",++Se.LAST_ID),Q(this,"_onigBinding"),Q(this,"content"),Q(this,"utf16Length"),Q(this,"utf8Length"),Q(this,"utf16OffsetToUtf8"),Q(this,"utf8OffsetToUtf16"),Q(this,"ptr"),!ee)throw new Xi("Must invoke loadWasm first.");this._onigBinding=ee,this.content=t;const n=new wn(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Se._sharedPtrInUse?(Se._sharedPtr||(Se._sharedPtr=ee.omalloc(1e4)),Se._sharedPtrInUse=!0,ee.HEAPU8.set(n.utf8Value,Se._sharedPtr),this.ptr=Se._sharedPtr):this.ptr=n.createString(ee)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Se._sharedPtr?Se._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Q(kn,"LAST_ID",0);Q(kn,"_sharedPtr",0);Q(kn,"_sharedPtrInUse",!1);let Uo=kn;class fl{constructor(t){if(Q(this,"_onigBinding"),Q(this,"_ptr"),!ee)throw new Xi("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,a=t.length;l<a;l++){const d=new wn(t[l]);n[l]=d.createString(ee),i[l]=d.utf8Length}const r=ee.omalloc(4*t.length);ee.HEAPU32.set(n,r/4);const o=ee.omalloc(4*t.length);ee.HEAPU32.set(i,o/4);const s=ee.createOnigScanner(r,o,t.length);for(let l=0,a=t.length;l<a;l++)ee.ofree(n[l]);ee.ofree(o),ee.ofree(r),s===0&&cl(ee),this._onigBinding=ee,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new Uo(t);const o=this._findNextMatchSync(t,n,!1,r);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],c=l[a++],u=[];for(let f=0;f<c;f++){const h=t.convertUtf8OffsetToUtf16(l[a++]),m=t.convertUtf8OffsetToUtf16(l[a++]);u[f]={start:h,end:m,length:m-h}}return{index:d,captureIndices:u}}}function hl(e){return typeof e.instantiator=="function"}function pl(e){return typeof e.default=="function"}function ml(e){return typeof e.data<"u"}function gl(e){return typeof Response<"u"&&e instanceof Response}function vl(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let qt;function zo(e){if(qt)return qt;async function t(){ee=await ll(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),hl(i)?i=await i.instantiator(n):pl(i)?i=await i.default(n):(ml(i)&&(i=i.data),gl(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await _l(i)(n):i=await bl(i)(n):vl(i)?i=await Bn(i)(n):i instanceof WebAssembly.Module?i=await Bn(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Bn(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return qt=t(),qt}function Bn(e){return t=>WebAssembly.instantiate(e,t)}function _l(e){return t=>WebAssembly.instantiateStreaming(e,t)}function bl(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Go;function yl(e){Go=e}function El(){return Go}async function Bo(e){return e&&await zo(e),{createScanner(t){return new fl(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Uo(t)}}}const Sl=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:Bo,getDefaultWasmLoader:El,loadWasm:zo,setDefaultWasmLoader:yl},Symbol.toStringTag,{value:"Module"}));var jo=Za({});el(jo,Sl);var B=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function pn(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[r]=o:r===i&&Object.assign(n,o);return n}function Qe(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function Ll(e){return Array.isArray(e)?e:[e]}async function Wo(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function xn(e){return!e||["plaintext","txt","text","plain"].includes(e)}function qo(e){return e==="ansi"||xn(e)}function Tn(e){return e==="none"}function Ko(e){return Tn(e)}const Cl=/(\r?\n)/g;function Rn(e,t=!1){var o;if(e.length===0)return[["",0]];const n=e.split(Cl);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];r.push([l,i]),i+=n[s].length,i+=((o=n[s+1])==null?void 0:o.length)||0}return r}const cr={light:"#333333",dark:"#bbbbbb"},fr={light:"#fffffe",dark:"#1e1e1e"},hr="__shiki_resolved";function An(e){var l,a,d,c,u;if(e!=null&&e[hr])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:i}=t;if(!n||!i){const f=t.settings?t.settings.find(h=>!h.name&&!h.scope):void 0;(l=f==null?void 0:f.settings)!=null&&l.foreground&&(i=f.settings.foreground),(a=f==null?void 0:f.settings)!=null&&a.background&&(n=f.settings.background),!i&&((d=t==null?void 0:t.colors)!=null&&d["editor.foreground"])&&(i=t.colors["editor.foreground"]),!n&&((c=t==null?void 0:t.colors)!=null&&c["editor.background"])&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?cr.light:cr.dark),n||(n=t.type==="light"?fr.light:fr.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const o=new Map;function s(f){var m;if(o.has(f))return o.get(f);r+=1;const h=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return(m=t.colorReplacements)!=null&&m[`#${h}`]?s(f):(o.set(f,h),h)}t.settings=t.settings.map(f=>{var b,g;const h=((b=f.settings)==null?void 0:b.foreground)&&!f.settings.foreground.startsWith("#"),m=((g=f.settings)==null?void 0:g.background)&&!f.settings.background.startsWith("#");if(!h&&!m)return f;const v={...f,settings:{...f.settings}};if(h){const _=s(f.settings.foreground);t.colorReplacements[_]=f.settings.foreground,v.settings.foreground=_}if(m){const _=s(f.settings.background);t.colorReplacements[_]=f.settings.background,v.settings.background=_}return v});for(const f of Object.keys(t.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((u=t.colors[f])!=null&&u.startsWith("#"))){const h=s(t.colors[f]);t.colorReplacements[h]=t.colors[f],t.colors[f]=h}return Object.defineProperty(t,hr,{enumerable:!1,writable:!1,value:!0}),t}async function Xo(e){return[...new Set((await Promise.all(e.filter(t=>!qo(t)).map(async t=>await Wo(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Jo(e){return(await Promise.all(e.map(async t=>Ko(t)?null:An(await Wo(t))))).filter(t=>!!t)}function Qo(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new B(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var wl=class extends ba{constructor(t,n,i,r={}){super(t);C(this,"_resolver");C(this,"_themes");C(this,"_langs");C(this,"_alias");C(this,"_resolvedThemes",new Map);C(this,"_resolvedGrammars",new Map);C(this,"_langMap",new Map);C(this,"_langGraph",new Map);C(this,"_textmateThemeCache",new WeakMap);C(this,"_loadedThemesCache",null);C(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=i,this._alias=r,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=An(t);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(t){let n=this._textmateThemeCache.get(t);n||(n=ya.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Qo(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var o,s,l,a;if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(d=>{var c;return(c=d.embeddedLangsLazy)==null?void 0:c.includes(t.name)}));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,n.size)for(const d of n)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(s=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||s.delete(d.scopeName),(a=(l=this._syncRegistry)==null?void 0:l._grammars)==null||a.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=[...this._langGraph.entries()],i=n.filter(([r,o])=>!o);if(i.length){const r=n.filter(([o,s])=>{var l;return s?(l=s.embeddedLanguages||s.embeddedLangs)==null?void 0:l.some(a=>i.map(([d])=>d).includes(a)):!1}).filter(o=>!i.includes(o));throw new B(`Missing languages ${i.map(([o])=>`\`${o}\``).join(", ")}, required by ${r.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[r,o]of n)this._resolver.addLanguage(o);for(const[r,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}},kl=class{constructor(e,t){C(this,"_langs",new Map);C(this,"_scopeToLang",new Map);C(this,"_injections",new Map);C(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const r=t.slice(0,i).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let Rt=0;function xl(e){Rt+=1,e.warnings!==!1&&Rt>=10&&Rt%10===0&&console.warn(`[Shiki] ${Rt} 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 t=!1;if(!e.engine)throw new B("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(An),r=new wl(new kl(e.engine,n),i,n,e.langAlias);let o;function s(_){return Qo(_,e.langAlias)}function l(_){b();const y=r.getGrammar(typeof _=="string"?_:_.name);if(!y)throw new B(`Language \`${_}\` not found, you may need to load it first`);return y}function a(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const y=r.getTheme(_);if(!y)throw new B(`Theme \`${_}\` not found, you may need to load it first`);return y}function d(_){b();const y=a(_);return o!==_&&(r.setTheme(y),o=_),{theme:y,colorMap:r.getColorMap()}}function c(){return b(),r.getLoadedThemes()}function u(){return b(),r.getLoadedLanguages()}function f(..._){b(),r.loadLanguages(_.flat(1))}async function h(..._){return f(await Xo(_))}function m(..._){b();for(const y of _.flat(1))r.loadTheme(y)}async function v(..._){return b(),m(await Jo(_))}function b(){if(t)throw new B("Shiki instance has been disposed")}function g(){t||(t=!0,r.dispose(),Rt-=1)}return{setTheme:d,getTheme:a,getLanguage:l,getLoadedThemes:c,getLoadedLanguages:u,resolveLangAlias:s,loadLanguage:h,loadLanguageSync:f,loadTheme:v,loadThemeSync:m,dispose:g,[Symbol.dispose]:g}}async function Tl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([Jo(e.themes||[]),Xo(e.langs||[]),e.engine]);return xl({...e,themes:t,langs:n,engine:i})}const Zo=new WeakMap;function In(e,t){Zo.set(e,t)}function $t(e){return Zo.get(e)}var Dn=class Yo{constructor(...t){C(this,"_stacks",{});C(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Yo(Object.fromEntries(Ll(n).map(i=>[i,gi])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Rl(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Rl(e){const t=[],n=new Set;function i(r){var s;if(n.has(r))return;n.add(r);const o=(s=r==null?void 0:r.nameScopesList)==null?void 0:s.scopeName;o&&t.push(o),r.parent&&i(r.parent)}return i(e),t}function Al(e,t){if(!(e instanceof Dn))throw new B("Invalid grammar state");return e.getInternalStack(t)}const Il=/,/,Dl=/ /;function es(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n;if(xn(e.resolveLangAlias(n.lang||"text"))||Tn(i))return Rn(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:r,colorMap:o}=e.setTheme(i),s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new B(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(r.name))throw new B(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return Ol(t,s,r,o,n)}function Pl(...e){if(e.length===2)return $t(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=i;if(xn(r)||Tn(o))throw new B("Plain language does not have grammar state");if(r==="ansi")throw new B("ANSI language does not have grammar state");const{theme:s,colorMap:l}=t.setTheme(o),a=t.getLanguage(r);return new Dn(Ji(n,a,s,l,i).stateStack,a.name,s.name)}function Ol(e,t,n,i,r){const o=Ji(e,t,n,i,r),s=new Dn(o.stateStack,t.name,n.name);return In(o.tokens,s),o.tokens}function Ji(e,t,n,i,r){const o=pn(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500,includeExplanation:a=!1}=r,d=Rn(e);let c=r.grammarState?Al(r.grammarState,n.name)??gi:r.grammarContextCode!=null?Ji(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:gi,u=[];const f=[];for(let h=0,m=d.length;h<m;h++){const[v,b]=d[h];if(v===""){u=[],f.push([]);continue}if(s>0&&v.length>=s){u=[],f.push([{content:v,offset:b,color:"",fontStyle:0}]);continue}let g,_,y;a&&a!=="tokenType"&&(g=t.tokenizeLine(v,c,l),_=g.tokens,y=0);const L=t.tokenizeLine2(v,c,l),E=L.tokens.length/2;for(let S=0;S<E;S++){const w=L.tokens[2*S],x=S+1<E?L.tokens[2*S+2]:v.length;if(w===x)continue;const k=L.tokens[2*S+1],A=Qe(i[zn.getForeground(k)],o),O=zn.getFontStyle(k),R={content:v.substring(w,x),offset:b+w,color:A,fontStyle:O};if(a==="tokenType")R.type=zn.getTokenType(k);else if(a){const T=[];if(a!=="scopeName")for(const $ of n.settings){let U;switch(typeof $.scope){case"string":U=$.scope.split(Il).map(D=>D.trim());break;case"object":U=$.scope;break;default:continue}T.push({settings:$,selectors:U.map(D=>D.split(Dl))})}R.explanation=[];let P=0;for(;w+P<x;){const $=_[y],U=v.substring($.startIndex,$.endIndex);P+=U.length,R.explanation.push({content:U,scopes:a==="scopeName"?Ml($.scopes):Nl(T,$.scopes)}),y+=1}}u.push(R)}f.push(u),u=[],c=L.ruleStack}return{tokens:f,stateStack:c}}function Ml(e){return e.map(t=>({scopeName:t}))}function Nl(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const o=t[i];n[i]={scopeName:o,themeMatches:Vl(e,o,t.slice(0,i))}}return n}function pr(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Hl(e,t,n){if(!pr(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)pr(e[i],n[r])&&(i-=1),r-=1;return i===-1}function Vl(e,t,n){const i=[];for(const{selectors:r,settings:o}of e)for(const s of r)if(Hl(s,t,n)){i.push(o);break}return i}function ts(e,t,n,i=es){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=r.map(d=>{const c=i(e,t,{...n,theme:d.theme});return{tokens:c,state:$t(c),theme:typeof d.theme=="string"?d.theme:d.theme.name}}),s=Fl(...o.map(d=>d.tokens)),l=s[0].map((d,c)=>d.map((u,f)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),s.forEach((m,v)=>{const{content:b,explanation:g,offset:_,...y}=m[c][f];h.variants[r[v].color]=y}),h})),a=o[0].state?new Dn(Object.fromEntries(o.map(d=>{var c;return[d.theme,(c=d.state)==null?void 0:c.getInternalStack(d.theme)]})),o[0].state.lang):void 0;return a&&In(l,a),l}function Fl(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(a=>a[i]),o=t.map(()=>[]);t.forEach((a,d)=>a.push(o[d]));const s=r.map(()=>0),l=r.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const c=l[d];c.content.length===a?(o[d].push(c),s[d]+=1,l[d]=r[d][s[d]]):(o[d].push({...c,content:c.content.slice(0,a)}),l[d]={...c,content:c.content.slice(a),offset:c.offset+a})}}}return t}const mr=/\s+/g;function ns(e,t){var i;if(!t)return e;e.properties||(e.properties={}),(i=e.properties).class||(i.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(mr)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(mr);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function $l(e){const t=Rn(e,!0).map(([r])=>r);function n(r){if(r===e.length)return{line:t.length-1,character:t.at(-1).length};let o=r,s=0;for(const l of t){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function i(r,o){let s=0;for(let l=0;l<r;l++)s+=t[l].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:i}}const Ul=["color","background-color"];function zl(e,t){let n=0;const i=[];for(const r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function Gl(e,t){let n=0,i=e.length;for(;n<i;){const r=n+(i-n>>1);e[r]<=t?n=r+1:i=r}return n}function Bl(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((i,r)=>i-r);return n.length?e.map(i=>i.flatMap(r=>{const o=r.offset+r.content.length,s=Gl(n,r.offset);let l=s;for(;l<n.length&&n[l]<o;)l++;if(s===l)return r;const a=n.slice(s,l);for(let d=0;d<a.length;d++)a[d]-=r.offset;return zl(r,a)})):e}function jl(e,t,n,i,r="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(c=>mn(e.variants[c])),l=new Set(s.flatMap(c=>Object.keys(c))),a={},d=(c,u)=>{const f=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+t[c]+(u==="color"?"":f)};return s.forEach((c,u)=>{for(const f of l){const h=c[f]||"inherit";if(u===0&&i&&Ul.includes(f))if(i==="light-dark()"&&s.length>1){const m=t.findIndex(_=>_==="light"),v=t.findIndex(_=>_==="dark");if(m===-1||v===-1)throw new B('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=s[m][f]||"inherit",g=s[v][f]||"inherit";a[f]=`light-dark(${b}, ${g})`,r==="css-vars"&&(a[d(u,f)]=h)}else a[f]=h;else r==="css-vars"&&(a[d(u,f)]=h)}}),o.htmlStyle=a,o}function mn(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&oe.Italic&&(t["font-style"]="italic"),e.fontStyle&oe.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&oe.Underline&&n.push("underline"),e.fontStyle&oe.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Si(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Wl(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new B(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...i.indexToPos(s),offset:s}}else{const l=i.lines[s.line];if(l===void 0)throw new B(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new B(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:i.posToIndex(s.line,a)}}};const i=$l(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));ql(o),e.set(n.meta,{decorations:o,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if((i=this.options.decorations)!=null&&i.length)return Bl(n,t(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){var c;if(!((c=this.options.decorations)!=null&&c.length))return;const i=t(this),r=[...n.children].filter(u=>u.type==="element"&&u.tagName==="span");if(r.length!==i.converter.lines.length)throw new B(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(u,f,h,m){const v=r[u];let b="",g=-1,_=-1;if(f===0&&(g=0),h===0&&(_=0),h===Number.POSITIVE_INFINITY&&(_=v.children.length),g===-1||_===-1)for(let L=0;L<v.children.length;L++)b+=is(v.children[L]),g===-1&&b.length===f&&(g=L+1),_===-1&&b.length===h&&(_=L+1);if(g===-1)throw new B(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(_===-1)throw new B(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const y=v.children.slice(g,_);if(!m.alwaysWrap&&y.length===v.children.length)l(v,m,"line");else if(!m.alwaysWrap&&y.length===1&&y[0].type==="element")l(y[0],m,"token");else{const L={type:"element",tagName:"span",properties:{},children:y};l(L,m,"wrapper"),v.children.splice(g,y.length,L)}}function s(u,f){r[u]=l(r[u],f,"line")}function l(u,f,h){var b;const m=f.properties||{},v=f.transform||(g=>g);return u.tagName=f.tagName||"span",u.properties={...u.properties,...m,class:u.properties.class},(b=f.properties)!=null&&b.class&&ns(u,f.properties.class),u=v(u,h)||u,u}const a=[],d=i.decorations.sort((u,f)=>f.start.offset-u.start.offset||u.end.offset-f.end.offset);for(const u of d){const{start:f,end:h}=u;if(f.line===h.line)o(f.line,f.character,h.character,u);else if(f.line<h.line){o(f.line,f.character,Number.POSITIVE_INFINITY,u);for(let m=f.line+1;m<h.line;m++)a.unshift(()=>s(m,u));o(h.line,0,h.character,u)}}a.forEach(u=>u())}}}function ql(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new B(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const r=e[i],o=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,s=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,l=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,a=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&n.start.offset===n.end.offset||s&&r.start.offset===r.end.offset)continue;throw new B(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function is(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(is).join(""):""}const Kl=[Wl()];function gn(e){const t=Xl(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Kl]}function Xl(e){const t=[],n=[],i=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}var ot=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Jl(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function gr(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Ql(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)jn[i]&&t.push({type:"setDecoration",value:jn[i]});else if(i<=29){const r=jn[i-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ot[i-30]}});else if(i===38){const r=gr(e);r&&t.push({type:"setForegroundColor",value:r})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ot[i-40]}});else if(i===48){const r=gr(e);r&&t.push({type:"setBackgroundColor",value:r})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ot[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ot[i-100+8]}})}return t}function Zl(){let e=null,t=null,n=new Set;return{parse(i){const r=[];let o=0;do{const s=Jl(i,o),l=s.sequence?i.substring(o,s.startPosition):i.substring(o);if(l.length>0&&r.push({value:l,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const a=Ql(s.sequence);for(const d of a)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of a)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=s.position}while(o<i.length);return r}}}var Yl={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ed(e=Yl){function t(l){return e[l]}function n(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let d=0;d<ot.length;d++)i.push(t(ot[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let c=0;c<6;c++)for(let u=0;u<6;u++)i.push(n([l[d],l[c],l[u]]));let a=8;for(let d=0;d<24;d++,a+=10)i.push(n([a,a,a]));return i}function o(l){return r()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:s}}const td=/#([0-9a-f]{3,8})/i,nd=/var\((--[\w-]+-ansi-[\w-]+)\)/,id={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function rd(e,t,n){const i=pn(e,n),r=Rn(t),o=ed(Object.fromEntries(ot.map(l=>{var d;const a=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`;return[l,((d=e.colors)==null?void 0:d[a])||id[l]]}))),s=Zl();return r.map(l=>s.parse(l[0]).map(a=>{let d,c;a.decorations.has("reverse")?(d=a.background?o.value(a.background):e.bg,c=a.foreground?o.value(a.foreground):e.fg):(d=a.foreground?o.value(a.foreground):e.fg,c=a.background?o.value(a.background):void 0),d=Qe(d,i),c=Qe(c,i),a.decorations.has("dim")&&(d=od(d));let u=oe.None;return a.decorations.has("bold")&&(u|=oe.Bold),a.decorations.has("italic")&&(u|=oe.Italic),a.decorations.has("underline")&&(u|=oe.Underline),a.decorations.has("strikethrough")&&(u|=oe.Strikethrough),{content:a.value,offset:l[1],color:d,bgColor:c,fontStyle:u}}))}function od(e){const t=e.match(td);if(t){const i=t[1];if(i.length===8){const r=Math.round(Number.parseInt(i.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${i.slice(0,6)}${r}`}else{if(i.length===6)return`#${i}80`;if(i.length===4){const r=i[0],o=i[1],s=i[2],l=i[3];return`#${r}${r}${o}${o}${s}${s}${Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0")}`}else if(i.length===3){const r=i[0],o=i[1],s=i[2];return`#${r}${r}${o}${o}${s}${s}80`}}}const n=e.match(nd);return n?`var(${n[1]}-dim)`:e}function Li(e,t,n={}){const i=e.resolveLangAlias(n.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=n;if(!xn(i)&&!Tn(r)&&i==="ansi"){const{theme:o}=e.setTheme(r);return rd(o,t,n)}return es(e,t,n)}function vn(e,t,n){let i,r,o,s,l,a;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:c="--shiki-",colorsRendering:u="css-vars"}=n,f=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,_)=>g.color===d?-1:_.color===d?1:0);if(f.length===0)throw new B("`themes` option must not be empty");const h=ts(e,t,n,Li);if(a=$t(h),d&&d!=="light-dark()"&&!f.some(g=>g.color===d))throw new B(`\`themes\` option must contain the defaultColor key \`${d}\``);const m=f.map(g=>e.getTheme(g.theme)),v=f.map(g=>g.color);o=h.map(g=>g.map(_=>jl(_,v,c,d,u))),a&&In(o,a);const b=f.map(g=>pn(g.theme,n));r=vr(f,m,b,c,d,"fg",u),i=vr(f,m,b,c,d,"bg",u),s=`shiki-themes ${m.map(g=>g.name).join(" ")}`,l=d?void 0:[r,i].join(";")}else if("theme"in n){const d=pn(n.theme,n);o=Li(e,t,n);const c=e.getTheme(n.theme);i=Qe(c.bg,d),r=Qe(c.fg,d),s=c.name,a=$t(o)}else throw new B("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l,grammarState:a}}function vr(e,t,n,i,r,o,s){return e.map((l,a)=>{const d=Qe(t[a][o],n[a])||"inherit",c=`${i+l.color}${o==="bg"?"-bg":""}:${d}`;if(a===0&&r){if(r==="light-dark()"&&e.length>1){const u=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(u===-1||f===-1)throw new B('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Qe(t[u][o],n[u])||"inherit"}, ${Qe(t[f][o],n[f])||"inherit"});${c}`}return d}return s==="css-vars"?c:null}).filter(l=>!!l).join(";")}const rs=/^\s+$/,sd=/^(\s*)(.*?)(\s*)$/;function _n(e,t,n,i={meta:{},options:n,codeToHast:(r,o)=>_n(e,r,o),codeToTokens:(r,o)=>vn(e,r,o)}){var m,v;let r=t;for(const b of gn(n))r=((m=b.preprocess)==null?void 0:m.call(i,r,n))||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:d,grammarState:c}=vn(e,r,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:f=!1}=n;u===!0?o=ld(o):u==="never"&&(o=dd(o)),f&&(o=ud(o));const h={...i,get source(){return r}};for(const b of gn(n))o=((v=b.tokens)==null?void 0:v.call(h,o))||o;return ad(o,{...n,fg:s,bg:l,themeName:a,rootStyle:n.rootStyle===!1?!1:n.rootStyle??d},h,c)}function ad(e,t,n,i=$t(e)){var v,b,g,_;const r=gn(t),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),a!==!1&&a!=null&&(d.tabindex=a.toString());for(const[y,L]of Object.entries(t.meta||{}))y.startsWith("_")||(d[y]=L);let c={type:"element",tagName:"pre",properties:d,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:l,addClassToHast:ns,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return u},get lines(){return f}};if(e.forEach((y,L)=>{var w,x;L&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
2
|
+
var ha=Object.defineProperty;var pa=Object.getPrototypeOf;var ma=Reflect.get;var or=e=>{throw TypeError(e)};var ga=(e,t,n)=>t in e?ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var C=(e,t,n)=>ga(e,typeof t!="symbol"?t+"":t,n),$n=(e,t,n)=>t.has(e)||or("Cannot "+n);var ie=(e,t,n)=>($n(e,t,"read from private field"),n?n.call(e):t.get(e)),et=(e,t,n)=>t.has(e)?or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ge=(e,t,n,i)=>($n(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Un=(e,t,n)=>($n(e,t,"access private method"),n);var sr=(e,t,n)=>ma(pa(e),n,t);import{r as X,j as G,_ as p,u as va,d as _a}from"./index-B4NXq5o6.js";import{I as gi,E as zn,R as ba,T as ya,t as Me,F as oe}from"./index-DdkBUecK.js";import{r as Ro,C as Xe,h as jt,g as Ea,f as Ao}from"./index-2BQyy0xI.js";function Wt(e){const t=X.useRef(e);return X.useInsertionEffect(()=>void(t.current=e)),X.useCallback((...n)=>t.current(...n),[])}const Sa=X.createContext(void 0);function La(){return X.useContext(Sa)}const Ca={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},wa={display:"contents"};function ar(){return null}const Wi="diffs-container";(()=>{try{return!1}catch{return!1}})();const ka=/(?=^From [a-f0-9]+ .+$)/m,Io=/(?=^diff --git)/gm,xa=new RegExp("(?<=\\n)"),Ta=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Ra=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Do="header-prefix",Po="header-filename-suffix",Oo="header-metadata",qi="header-custom",Ce={dark:"pierre-dark",light:"pierre-light"},Aa="data-theme-css",Ia="data-unsafe-css",Da="data-diffs-scrollbar-measure",Mo="--diffs-scrollbar-gutter-measured",Pa=1e5,Oa={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Ma=Object.freeze({fromStart:0,fromEnd:0}),lr={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Na={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function rt(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function Ha({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function he(e,t){return e-(t===0?0:1)}function le(e,t){return he(e,t)+t}function Va(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:Fa(n,e.startContentIndex)}}function Fa(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function No({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:o,renderAnnotation:s,renderGutterUtility:l,renderMergeConflictUtility:a,lineAnnotations:d,getHoveredLine:c,getInstance:u,getAnnotationSlotName:f=rt}){const h=n==null?void 0:n(e),m=i==null?void 0:i(e),v=r==null?void 0:r(e),b=o==null?void 0:o(e);return G.jsxs(G.Fragment,{children:[h!=null?G.jsx("div",{slot:qi,children:h}):G.jsxs(G.Fragment,{children:[m!=null&&G.jsx("div",{slot:"header-prefix",children:m}),v!=null&&G.jsx("div",{slot:"header-filename-suffix",children:v}),b!=null&&G.jsx("div",{slot:"header-metadata",children:b})]}),s!=null&&(d==null?void 0:d.map((g,_)=>G.jsx("div",{slot:f(g),children:s(g)},_))),t!=null&&a!=null&&u!=null&&t.map(g=>{if(g==null)return;const _=$a(g,e);return G.jsx("div",{slot:_,style:wa,children:a(g,u)},_)}),l!=null&&G.jsx("div",{slot:"gutter-utility-slot",style:Ca,children:l(c)})]})}function $a(e,t){const n=Va(e,t);return n!=null?Ha({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}const Vt=new Map,Gn=new Map,Ua=new Map,vi=new Set;function _i(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!vi.has(t))return!1;return!0}function Ki(e=Ce){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const bi=new Set;function Ft(e){const t=[],n=new Set;for(const u of za(e.themes)){const f=Ho(u)?u.getThemes():[u];for(const h of f){if(n.has(h.name))throw new Error(`Theme collection already contains theme "${h.name}"`);n.add(h.name),t.push(h)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(u=>u.colorScheme==="light")),o=Object.freeze(i.filter(u=>u.colorScheme==="dark")),s=new Map(i.map(u=>[u.name,u])),l=Object.freeze(i.map(u=>u.name)),a=Object.freeze(r.map(u=>u.name)),d=Object.freeze(o.map(u=>u.name));function c(u){if(u==null)return i;const{colorScheme:f,collection:h}=u;return h==null?f==="light"?r:f==="dark"?o:i:i.filter(m=>m.collection!==h?!1:f==null||m.colorScheme===f)}return{getTheme(u){return s.get(u)},getThemes(u){return c(u)},getThemeNames(u){return(u==null?void 0:u.collection)==null?(u==null?void 0:u.colorScheme)==="light"?a:(u==null?void 0:u.colorScheme)==="dark"?d:l:c(u).map(f=>f.name)},hasTheme(u){return s.has(u)},orderBy(u){return Ft({themes:i.map((f,h)=>({descriptor:f,index:h})).sort((f,h)=>{const m=u(f.descriptor,h.descriptor);return m!==0?m:f.index-h.index}).map(f=>f.descriptor)})},pick(u){const f=[],h=new Set;for(const m of u){if(h.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);h.add(m);const v=s.get(m);if(v==null)throw new Error(`Theme collection does not contain theme "${m}"`);f.push(v)}return Ft({themes:f})},registerInto(u){for(const f of i)u.registerThemeIfAbsent(f.name,f.load)}}}function za(e){return Ga(e)?[e]:e}function Ga(e){return Ho(e)||Ba(e)}function Ba(e){return typeof e.name=="string"&&typeof e.load=="function"}function Ho(e){return typeof e.getThemes=="function"}function Vo(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var ja=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Wa=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},qa=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Ka(){const e=new Map,t=new Map,n=new Map;let i=0;function r(g,_){if(e.has(g))throw new ja(g);e.set(g,_)}function o(g,_){return e.has(g)?!1:(e.set(g,_),!0)}function s(g){return e.has(g)}function l(g){const _=t.get(g);if(_!==void 0)return Promise.resolve(_);const y=n.get(g);if(y!==void 0)return y;const L=e.get(g);if(L===void 0)return Promise.reject(new Wa(g));const E=i,S=L().then(w=>{const x=Vo(w);return E===i&&t.set(g,x),n.get(g)===S&&n.delete(g),x}).catch(w=>{throw n.get(g)===S&&n.delete(g),w});return n.set(g,S),S}function a(g){return Promise.all(g.map(_=>l(_)))}function d(g,_){t.set(g,_)}function c(g){for(const[_,y]of g)d(_,y)}function u(g){return t.get(g)}function f(g){const _=[];for(const y of g){const L=t.get(y);if(L===void 0)throw new qa(y);_.push(L)}return _}function h(g){return t.has(g)}function m(g){for(const _ of g)if(!t.has(_))return!1;return!0}function v(g){const _=t.get(g);return _!==void 0?_:l(g)}function b(){i++,t.clear(),n.clear()}return{clearResolvedThemes:b,getResolvedOrResolveTheme:v,getResolvedTheme:u,getResolvedThemes:f,hasRegisteredTheme:s,hasResolvedTheme:h,hasResolvedThemes:m,registerTheme:r,registerThemeIfAbsent:o,resolveTheme:l,resolveThemes:a,seedResolvedTheme:d,seedResolvedThemes:c}}const Je=Ka();function dr(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=Je.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,Je.getResolvedTheme(n)==null&&Je.seedResolvedTheme(n,i);bi.has(n)||(bi.add(n),t.loadThemeSync(i))}}function ur(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(vi.has(n.name))continue;let i=Vt.get(n.name);i==null&&(i=n,Vt.set(n.name,i));const r=i.data.find(o=>{var s;return o.name===i.name||((s=o.aliases)==null?void 0:s.includes(i.name))===!0});if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);t.loadLanguageSync(i.data);try{t.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}vi.add(i.name)}}function Fo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var yi=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,Ja=Object.getOwnPropertyNames,Qa=Object.prototype.hasOwnProperty,Za=(e,t)=>{let n={};for(var i in e)yi(n,i,{get:e[i],enumerable:!0});return yi(n,Symbol.toStringTag,{value:"Module"}),n},Ya=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Ja(t),o=0,s=r.length,l;o<s;o++)l=r[o],!Qa.call(e,l)&&l!==n&&yi(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(i=Xa(t,l))||i.enumerable});return e},el=(e,t,n)=>(Ya(e,t,"default"),n);const $o=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>p(()=>import("./actionscript-3-B3316cI-.js"),[]))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>p(()=>import("./ahk-CsyLZFj1.js"),[]))},{id:"ahk2",name:"AutoHotkey2",import:(()=>p(()=>import("./ahk2-8Zs4aa1G.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./apex-DhZFqWV2.js"),[]))},{id:"apl",name:"APL",import:(()=>p(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./asciidoc-CSVQ5wI8.js"),[]))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>p(()=>import("./bat-CickPsom.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>p(()=>import("./bird2-Bx8U0n9b.js"),[]))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>p(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>p(()=>import("./c3-Dp5svz6Z.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>p(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22])))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./clarity-Dn5IMItf.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Rocq",import:(()=>p(()=>import("./coq-C7JzOVbR.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22])))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./csharp-DSvCPggb.js"),[]))},{id:"css",name:"CSS",import:(()=>p(()=>import("./css-CLj8gQPS.js"),[]))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>p(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./dart-bE4Kk8sk.js"),[]))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3])))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./emacs-lisp-C_m_b--Z.js"),[]))},{id:"erb",name:"ERB",import:(()=>p(()=>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:(()=>p(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41])))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>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:(()=>p(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./gdscript-DqcFQ5yU.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29])))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22])))},{id:"gn",name:"GN",import:(()=>p(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>p(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13])))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./haxe-CfZj7gIn.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>p(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13])))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57])))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59])))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>p(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3])))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2])))},{id:"json",name:"JSON",import:(()=>p(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16])))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>p(()=>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:(()=>p(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>p(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./llvm-BZoOZj88.js"),[]))},{id:"log",name:"Log file",import:(()=>p(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22])))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./luau-BnpPk5vE.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./mermaid-CQcHuHx7.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./mojo-DJz3ZmWd.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./moonbit-CHtswR0a.js"),[]))},{id:"move",name:"Move",import:(()=>p(()=>import("./move-el3G9tDJ.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>p(()=>import("./nextflow-groovy-vE_lwT2v.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22])))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41])))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nsis",name:"NSIS",import:(()=>p(()=>import("./nsis-BlV79W_Q.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./nushell-D3jzshHO.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"org",name:"Org Markup",import:(()=>p(()=>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:(()=>p(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>p(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>p(()=>import("./powershell-BmBUJMz7.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./prisma-Vru482bI.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>p(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2])))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>p(()=>import("./r-Cf5RLm7j.js"),[]))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89])))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>p(()=>import("./rbs-CpoqiR4B.js"),[]))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>p(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>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:(()=>p(()=>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:(()=>p(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16])))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./scala-CqE71os6.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29])))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>p(()=>import("./smalltalk-BOQMe2GC.js"),[]))},{id:"smithy",name:"Smithy",import:(()=>p(()=>import("./smithy-cds9vsN8.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./solidity-DijEV5ha.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./sql-CRqJ_cUM.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2])))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./swift-C2oV4EkX.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./system-verilog-0hqHdDBg.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63])))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>p(()=>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:(()=>p(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./typespec-CAFt9gP4.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>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:(()=>p(()=>import("./v-BGw2Nkan.js"),[]))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",import:(()=>p(()=>import("./vb-Cu-pLBUe.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./verilog-nZwndyjY.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>p(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./zig-VOosw3JB.js"),[]))}],tl=Object.fromEntries($o.map(e=>[e.id,e.import])),nl=Object.fromEntries($o.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Ei={...tl,...nl},il=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./github-dark-vbPMK5nw.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./github-light-CBO01_j6.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>p(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./kanagawa-lotus-C3DzagqV.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./kanagawa-wave-DFGoQZhC.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./monokai-BRVnQi9A.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./red-hvxz__6c.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./rose-pine-5qJOZa0Y.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./rose-pine-moon-C9pEdX9L.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./solarized-dark-CpvCGNkr.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./solarized-light-Dlz6yCKv.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./vesper-DRje8inN.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],rl=Object.fromEntries(il.map(e=>[e.id,e.import]));var Xi=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ol(){return 2147483648}function sl(){return typeof performance<"u"?performance.now():Date.now()}const al=(e,t)=>e+(t-e%t)%t;async function ll(e){let t,n;const i={};function r(h){n=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,m,v){i.HEAPU8.copyWithin(h,m,m+v)}function s(h){try{return t.grow(h-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(h){const m=i.HEAPU8.length;h=h>>>0;const v=ol();if(h>v)return!1;for(let b=1;b<=4;b*=2){let g=m*(1+.2/b);g=Math.min(g,h+100663296);const _=Math.min(v,al(Math.max(h,g),65536));if(s(_))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(h,m,v=1024){const b=m+v;let g=m;for(;h[g]&&!(g>=b);)++g;if(g-m>16&&h.buffer&&a)return a.decode(h.subarray(m,g));let _="";for(;m<g;){let y=h[m++];if(!(y&128)){_+=String.fromCharCode(y);continue}const L=h[m++]&63;if((y&224)===192){_+=String.fromCharCode((y&31)<<6|L);continue}const E=h[m++]&63;if((y&240)===224?y=(y&15)<<12|L<<6|E:y=(y&7)<<18|L<<12|E<<6|h[m++]&63,y<65536)_+=String.fromCharCode(y);else{const S=y-65536;_+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return _}function c(h,m){return h?d(i.HEAPU8,h,m):""}const u={emscripten_get_now:sl,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function f(){const m=await e({env:u,wasi_snapshot_preview1:u});t=m.memory,r(t.buffer),Object.assign(i,m),i.UTF8ToString=c}return await f(),i}var dl=Object.defineProperty,ul=(e,t,n)=>t in e?dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>ul(e,typeof t!="symbol"?t+"":t,n);let ee=null;function cl(e){throw new Xi(e.UTF8ToString(e.getLastOnigError()))}class wn{constructor(t){Q(this,"utf16Length"),Q(this,"utf8Length"),Q(this,"utf16Value"),Q(this,"utf8Value"),Q(this,"utf16OffsetToUtf8"),Q(this,"utf8OffsetToUtf16");const n=t.length,i=wn._utf8ByteLength(t),r=i!==n,o=r?new Uint32Array(n+1):null;r&&(o[n]=i);const s=r?new Uint32Array(i+1):null;r&&(s[i]=n);const l=new Uint8Array(i);let a=0;for(let d=0;d<n;d++){const c=t.charCodeAt(d);let u=c,f=!1;if(c>=55296&&c<=56319&&d+1<n){const h=t.charCodeAt(d+1);h>=56320&&h<=57343&&(u=(c-55296<<10)+65536|h-56320,f=!0)}r&&(o[d]=a,f&&(o[d+1]=a),u<=127?s[a+0]=d:u<=2047?(s[a+0]=d,s[a+1]=d):u<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),u<=127?l[a++]=u:u<=2047?(l[a++]=192|(u&1984)>>>6,l[a++]=128|(u&63)>>>0):u<=65535?(l[a++]=224|(u&61440)>>>12,l[a++]=128|(u&4032)>>>6,l[a++]=128|(u&63)>>>0):(l[a++]=240|(u&1835008)>>>18,l[a++]=128|(u&258048)>>>12,l[a++]=128|(u&4032)>>>6,l[a++]=128|(u&63)>>>0),f&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const o=t.charCodeAt(i);let s=o,l=!1;if(o>=55296&&o<=56319&&i+1<r){const a=t.charCodeAt(i+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const kn=class Se{constructor(t){if(Q(this,"id",++Se.LAST_ID),Q(this,"_onigBinding"),Q(this,"content"),Q(this,"utf16Length"),Q(this,"utf8Length"),Q(this,"utf16OffsetToUtf8"),Q(this,"utf8OffsetToUtf16"),Q(this,"ptr"),!ee)throw new Xi("Must invoke loadWasm first.");this._onigBinding=ee,this.content=t;const n=new wn(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Se._sharedPtrInUse?(Se._sharedPtr||(Se._sharedPtr=ee.omalloc(1e4)),Se._sharedPtrInUse=!0,ee.HEAPU8.set(n.utf8Value,Se._sharedPtr),this.ptr=Se._sharedPtr):this.ptr=n.createString(ee)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Se._sharedPtr?Se._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Q(kn,"LAST_ID",0);Q(kn,"_sharedPtr",0);Q(kn,"_sharedPtrInUse",!1);let Uo=kn;class fl{constructor(t){if(Q(this,"_onigBinding"),Q(this,"_ptr"),!ee)throw new Xi("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,a=t.length;l<a;l++){const d=new wn(t[l]);n[l]=d.createString(ee),i[l]=d.utf8Length}const r=ee.omalloc(4*t.length);ee.HEAPU32.set(n,r/4);const o=ee.omalloc(4*t.length);ee.HEAPU32.set(i,o/4);const s=ee.createOnigScanner(r,o,t.length);for(let l=0,a=t.length;l<a;l++)ee.ofree(n[l]);ee.ofree(o),ee.ofree(r),s===0&&cl(ee),this._onigBinding=ee,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new Uo(t);const o=this._findNextMatchSync(t,n,!1,r);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],c=l[a++],u=[];for(let f=0;f<c;f++){const h=t.convertUtf8OffsetToUtf16(l[a++]),m=t.convertUtf8OffsetToUtf16(l[a++]);u[f]={start:h,end:m,length:m-h}}return{index:d,captureIndices:u}}}function hl(e){return typeof e.instantiator=="function"}function pl(e){return typeof e.default=="function"}function ml(e){return typeof e.data<"u"}function gl(e){return typeof Response<"u"&&e instanceof Response}function vl(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let qt;function zo(e){if(qt)return qt;async function t(){ee=await ll(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),hl(i)?i=await i.instantiator(n):pl(i)?i=await i.default(n):(ml(i)&&(i=i.data),gl(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await _l(i)(n):i=await bl(i)(n):vl(i)?i=await Bn(i)(n):i instanceof WebAssembly.Module?i=await Bn(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Bn(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return qt=t(),qt}function Bn(e){return t=>WebAssembly.instantiate(e,t)}function _l(e){return t=>WebAssembly.instantiateStreaming(e,t)}function bl(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Go;function yl(e){Go=e}function El(){return Go}async function Bo(e){return e&&await zo(e),{createScanner(t){return new fl(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Uo(t)}}}const Sl=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:Bo,getDefaultWasmLoader:El,loadWasm:zo,setDefaultWasmLoader:yl},Symbol.toStringTag,{value:"Module"}));var jo=Za({});el(jo,Sl);var B=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function pn(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[r]=o:r===i&&Object.assign(n,o);return n}function Qe(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function Ll(e){return Array.isArray(e)?e:[e]}async function Wo(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function xn(e){return!e||["plaintext","txt","text","plain"].includes(e)}function qo(e){return e==="ansi"||xn(e)}function Tn(e){return e==="none"}function Ko(e){return Tn(e)}const Cl=/(\r?\n)/g;function Rn(e,t=!1){var o;if(e.length===0)return[["",0]];const n=e.split(Cl);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];r.push([l,i]),i+=n[s].length,i+=((o=n[s+1])==null?void 0:o.length)||0}return r}const cr={light:"#333333",dark:"#bbbbbb"},fr={light:"#fffffe",dark:"#1e1e1e"},hr="__shiki_resolved";function An(e){var l,a,d,c,u;if(e!=null&&e[hr])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:i}=t;if(!n||!i){const f=t.settings?t.settings.find(h=>!h.name&&!h.scope):void 0;(l=f==null?void 0:f.settings)!=null&&l.foreground&&(i=f.settings.foreground),(a=f==null?void 0:f.settings)!=null&&a.background&&(n=f.settings.background),!i&&((d=t==null?void 0:t.colors)!=null&&d["editor.foreground"])&&(i=t.colors["editor.foreground"]),!n&&((c=t==null?void 0:t.colors)!=null&&c["editor.background"])&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?cr.light:cr.dark),n||(n=t.type==="light"?fr.light:fr.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const o=new Map;function s(f){var m;if(o.has(f))return o.get(f);r+=1;const h=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return(m=t.colorReplacements)!=null&&m[`#${h}`]?s(f):(o.set(f,h),h)}t.settings=t.settings.map(f=>{var b,g;const h=((b=f.settings)==null?void 0:b.foreground)&&!f.settings.foreground.startsWith("#"),m=((g=f.settings)==null?void 0:g.background)&&!f.settings.background.startsWith("#");if(!h&&!m)return f;const v={...f,settings:{...f.settings}};if(h){const _=s(f.settings.foreground);t.colorReplacements[_]=f.settings.foreground,v.settings.foreground=_}if(m){const _=s(f.settings.background);t.colorReplacements[_]=f.settings.background,v.settings.background=_}return v});for(const f of Object.keys(t.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((u=t.colors[f])!=null&&u.startsWith("#"))){const h=s(t.colors[f]);t.colorReplacements[h]=t.colors[f],t.colors[f]=h}return Object.defineProperty(t,hr,{enumerable:!1,writable:!1,value:!0}),t}async function Xo(e){return[...new Set((await Promise.all(e.filter(t=>!qo(t)).map(async t=>await Wo(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Jo(e){return(await Promise.all(e.map(async t=>Ko(t)?null:An(await Wo(t))))).filter(t=>!!t)}function Qo(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new B(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var wl=class extends ba{constructor(t,n,i,r={}){super(t);C(this,"_resolver");C(this,"_themes");C(this,"_langs");C(this,"_alias");C(this,"_resolvedThemes",new Map);C(this,"_resolvedGrammars",new Map);C(this,"_langMap",new Map);C(this,"_langGraph",new Map);C(this,"_textmateThemeCache",new WeakMap);C(this,"_loadedThemesCache",null);C(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=i,this._alias=r,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=An(t);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(t){let n=this._textmateThemeCache.get(t);n||(n=ya.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Qo(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var o,s,l,a;if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(d=>{var c;return(c=d.embeddedLangsLazy)==null?void 0:c.includes(t.name)}));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,n.size)for(const d of n)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(s=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||s.delete(d.scopeName),(a=(l=this._syncRegistry)==null?void 0:l._grammars)==null||a.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=[...this._langGraph.entries()],i=n.filter(([r,o])=>!o);if(i.length){const r=n.filter(([o,s])=>{var l;return s?(l=s.embeddedLanguages||s.embeddedLangs)==null?void 0:l.some(a=>i.map(([d])=>d).includes(a)):!1}).filter(o=>!i.includes(o));throw new B(`Missing languages ${i.map(([o])=>`\`${o}\``).join(", ")}, required by ${r.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[r,o]of n)this._resolver.addLanguage(o);for(const[r,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}},kl=class{constructor(e,t){C(this,"_langs",new Map);C(this,"_scopeToLang",new Map);C(this,"_injections",new Map);C(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const r=t.slice(0,i).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let Rt=0;function xl(e){Rt+=1,e.warnings!==!1&&Rt>=10&&Rt%10===0&&console.warn(`[Shiki] ${Rt} 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 t=!1;if(!e.engine)throw new B("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(An),r=new wl(new kl(e.engine,n),i,n,e.langAlias);let o;function s(_){return Qo(_,e.langAlias)}function l(_){b();const y=r.getGrammar(typeof _=="string"?_:_.name);if(!y)throw new B(`Language \`${_}\` not found, you may need to load it first`);return y}function a(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const y=r.getTheme(_);if(!y)throw new B(`Theme \`${_}\` not found, you may need to load it first`);return y}function d(_){b();const y=a(_);return o!==_&&(r.setTheme(y),o=_),{theme:y,colorMap:r.getColorMap()}}function c(){return b(),r.getLoadedThemes()}function u(){return b(),r.getLoadedLanguages()}function f(..._){b(),r.loadLanguages(_.flat(1))}async function h(..._){return f(await Xo(_))}function m(..._){b();for(const y of _.flat(1))r.loadTheme(y)}async function v(..._){return b(),m(await Jo(_))}function b(){if(t)throw new B("Shiki instance has been disposed")}function g(){t||(t=!0,r.dispose(),Rt-=1)}return{setTheme:d,getTheme:a,getLanguage:l,getLoadedThemes:c,getLoadedLanguages:u,resolveLangAlias:s,loadLanguage:h,loadLanguageSync:f,loadTheme:v,loadThemeSync:m,dispose:g,[Symbol.dispose]:g}}async function Tl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([Jo(e.themes||[]),Xo(e.langs||[]),e.engine]);return xl({...e,themes:t,langs:n,engine:i})}const Zo=new WeakMap;function In(e,t){Zo.set(e,t)}function $t(e){return Zo.get(e)}var Dn=class Yo{constructor(...t){C(this,"_stacks",{});C(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Yo(Object.fromEntries(Ll(n).map(i=>[i,gi])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Rl(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Rl(e){const t=[],n=new Set;function i(r){var s;if(n.has(r))return;n.add(r);const o=(s=r==null?void 0:r.nameScopesList)==null?void 0:s.scopeName;o&&t.push(o),r.parent&&i(r.parent)}return i(e),t}function Al(e,t){if(!(e instanceof Dn))throw new B("Invalid grammar state");return e.getInternalStack(t)}const Il=/,/,Dl=/ /;function es(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n;if(xn(e.resolveLangAlias(n.lang||"text"))||Tn(i))return Rn(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:r,colorMap:o}=e.setTheme(i),s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new B(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(r.name))throw new B(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return Ol(t,s,r,o,n)}function Pl(...e){if(e.length===2)return $t(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=i;if(xn(r)||Tn(o))throw new B("Plain language does not have grammar state");if(r==="ansi")throw new B("ANSI language does not have grammar state");const{theme:s,colorMap:l}=t.setTheme(o),a=t.getLanguage(r);return new Dn(Ji(n,a,s,l,i).stateStack,a.name,s.name)}function Ol(e,t,n,i,r){const o=Ji(e,t,n,i,r),s=new Dn(o.stateStack,t.name,n.name);return In(o.tokens,s),o.tokens}function Ji(e,t,n,i,r){const o=pn(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500,includeExplanation:a=!1}=r,d=Rn(e);let c=r.grammarState?Al(r.grammarState,n.name)??gi:r.grammarContextCode!=null?Ji(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:gi,u=[];const f=[];for(let h=0,m=d.length;h<m;h++){const[v,b]=d[h];if(v===""){u=[],f.push([]);continue}if(s>0&&v.length>=s){u=[],f.push([{content:v,offset:b,color:"",fontStyle:0}]);continue}let g,_,y;a&&a!=="tokenType"&&(g=t.tokenizeLine(v,c,l),_=g.tokens,y=0);const L=t.tokenizeLine2(v,c,l),E=L.tokens.length/2;for(let S=0;S<E;S++){const w=L.tokens[2*S],x=S+1<E?L.tokens[2*S+2]:v.length;if(w===x)continue;const k=L.tokens[2*S+1],A=Qe(i[zn.getForeground(k)],o),O=zn.getFontStyle(k),R={content:v.substring(w,x),offset:b+w,color:A,fontStyle:O};if(a==="tokenType")R.type=zn.getTokenType(k);else if(a){const T=[];if(a!=="scopeName")for(const $ of n.settings){let U;switch(typeof $.scope){case"string":U=$.scope.split(Il).map(D=>D.trim());break;case"object":U=$.scope;break;default:continue}T.push({settings:$,selectors:U.map(D=>D.split(Dl))})}R.explanation=[];let P=0;for(;w+P<x;){const $=_[y],U=v.substring($.startIndex,$.endIndex);P+=U.length,R.explanation.push({content:U,scopes:a==="scopeName"?Ml($.scopes):Nl(T,$.scopes)}),y+=1}}u.push(R)}f.push(u),u=[],c=L.ruleStack}return{tokens:f,stateStack:c}}function Ml(e){return e.map(t=>({scopeName:t}))}function Nl(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const o=t[i];n[i]={scopeName:o,themeMatches:Vl(e,o,t.slice(0,i))}}return n}function pr(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Hl(e,t,n){if(!pr(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)pr(e[i],n[r])&&(i-=1),r-=1;return i===-1}function Vl(e,t,n){const i=[];for(const{selectors:r,settings:o}of e)for(const s of r)if(Hl(s,t,n)){i.push(o);break}return i}function ts(e,t,n,i=es){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=r.map(d=>{const c=i(e,t,{...n,theme:d.theme});return{tokens:c,state:$t(c),theme:typeof d.theme=="string"?d.theme:d.theme.name}}),s=Fl(...o.map(d=>d.tokens)),l=s[0].map((d,c)=>d.map((u,f)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),s.forEach((m,v)=>{const{content:b,explanation:g,offset:_,...y}=m[c][f];h.variants[r[v].color]=y}),h})),a=o[0].state?new Dn(Object.fromEntries(o.map(d=>{var c;return[d.theme,(c=d.state)==null?void 0:c.getInternalStack(d.theme)]})),o[0].state.lang):void 0;return a&&In(l,a),l}function Fl(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(a=>a[i]),o=t.map(()=>[]);t.forEach((a,d)=>a.push(o[d]));const s=r.map(()=>0),l=r.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const c=l[d];c.content.length===a?(o[d].push(c),s[d]+=1,l[d]=r[d][s[d]]):(o[d].push({...c,content:c.content.slice(0,a)}),l[d]={...c,content:c.content.slice(a),offset:c.offset+a})}}}return t}const mr=/\s+/g;function ns(e,t){var i;if(!t)return e;e.properties||(e.properties={}),(i=e.properties).class||(i.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(mr)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(mr);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function $l(e){const t=Rn(e,!0).map(([r])=>r);function n(r){if(r===e.length)return{line:t.length-1,character:t.at(-1).length};let o=r,s=0;for(const l of t){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function i(r,o){let s=0;for(let l=0;l<r;l++)s+=t[l].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:i}}const Ul=["color","background-color"];function zl(e,t){let n=0;const i=[];for(const r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function Gl(e,t){let n=0,i=e.length;for(;n<i;){const r=n+(i-n>>1);e[r]<=t?n=r+1:i=r}return n}function Bl(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((i,r)=>i-r);return n.length?e.map(i=>i.flatMap(r=>{const o=r.offset+r.content.length,s=Gl(n,r.offset);let l=s;for(;l<n.length&&n[l]<o;)l++;if(s===l)return r;const a=n.slice(s,l);for(let d=0;d<a.length;d++)a[d]-=r.offset;return zl(r,a)})):e}function jl(e,t,n,i,r="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(c=>mn(e.variants[c])),l=new Set(s.flatMap(c=>Object.keys(c))),a={},d=(c,u)=>{const f=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+t[c]+(u==="color"?"":f)};return s.forEach((c,u)=>{for(const f of l){const h=c[f]||"inherit";if(u===0&&i&&Ul.includes(f))if(i==="light-dark()"&&s.length>1){const m=t.findIndex(_=>_==="light"),v=t.findIndex(_=>_==="dark");if(m===-1||v===-1)throw new B('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=s[m][f]||"inherit",g=s[v][f]||"inherit";a[f]=`light-dark(${b}, ${g})`,r==="css-vars"&&(a[d(u,f)]=h)}else a[f]=h;else r==="css-vars"&&(a[d(u,f)]=h)}}),o.htmlStyle=a,o}function mn(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&oe.Italic&&(t["font-style"]="italic"),e.fontStyle&oe.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&oe.Underline&&n.push("underline"),e.fontStyle&oe.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Si(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Wl(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new B(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...i.indexToPos(s),offset:s}}else{const l=i.lines[s.line];if(l===void 0)throw new B(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new B(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:i.posToIndex(s.line,a)}}};const i=$l(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));ql(o),e.set(n.meta,{decorations:o,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if((i=this.options.decorations)!=null&&i.length)return Bl(n,t(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){var c;if(!((c=this.options.decorations)!=null&&c.length))return;const i=t(this),r=[...n.children].filter(u=>u.type==="element"&&u.tagName==="span");if(r.length!==i.converter.lines.length)throw new B(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(u,f,h,m){const v=r[u];let b="",g=-1,_=-1;if(f===0&&(g=0),h===0&&(_=0),h===Number.POSITIVE_INFINITY&&(_=v.children.length),g===-1||_===-1)for(let L=0;L<v.children.length;L++)b+=is(v.children[L]),g===-1&&b.length===f&&(g=L+1),_===-1&&b.length===h&&(_=L+1);if(g===-1)throw new B(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(_===-1)throw new B(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const y=v.children.slice(g,_);if(!m.alwaysWrap&&y.length===v.children.length)l(v,m,"line");else if(!m.alwaysWrap&&y.length===1&&y[0].type==="element")l(y[0],m,"token");else{const L={type:"element",tagName:"span",properties:{},children:y};l(L,m,"wrapper"),v.children.splice(g,y.length,L)}}function s(u,f){r[u]=l(r[u],f,"line")}function l(u,f,h){var b;const m=f.properties||{},v=f.transform||(g=>g);return u.tagName=f.tagName||"span",u.properties={...u.properties,...m,class:u.properties.class},(b=f.properties)!=null&&b.class&&ns(u,f.properties.class),u=v(u,h)||u,u}const a=[],d=i.decorations.sort((u,f)=>f.start.offset-u.start.offset||u.end.offset-f.end.offset);for(const u of d){const{start:f,end:h}=u;if(f.line===h.line)o(f.line,f.character,h.character,u);else if(f.line<h.line){o(f.line,f.character,Number.POSITIVE_INFINITY,u);for(let m=f.line+1;m<h.line;m++)a.unshift(()=>s(m,u));o(h.line,0,h.character,u)}}a.forEach(u=>u())}}}function ql(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new B(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const r=e[i],o=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,s=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,l=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,a=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&n.start.offset===n.end.offset||s&&r.start.offset===r.end.offset)continue;throw new B(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function is(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(is).join(""):""}const Kl=[Wl()];function gn(e){const t=Xl(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Kl]}function Xl(e){const t=[],n=[],i=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}var ot=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Jl(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function gr(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Ql(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)jn[i]&&t.push({type:"setDecoration",value:jn[i]});else if(i<=29){const r=jn[i-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ot[i-30]}});else if(i===38){const r=gr(e);r&&t.push({type:"setForegroundColor",value:r})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ot[i-40]}});else if(i===48){const r=gr(e);r&&t.push({type:"setBackgroundColor",value:r})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ot[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ot[i-100+8]}})}return t}function Zl(){let e=null,t=null,n=new Set;return{parse(i){const r=[];let o=0;do{const s=Jl(i,o),l=s.sequence?i.substring(o,s.startPosition):i.substring(o);if(l.length>0&&r.push({value:l,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const a=Ql(s.sequence);for(const d of a)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of a)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=s.position}while(o<i.length);return r}}}var Yl={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ed(e=Yl){function t(l){return e[l]}function n(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let d=0;d<ot.length;d++)i.push(t(ot[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let c=0;c<6;c++)for(let u=0;u<6;u++)i.push(n([l[d],l[c],l[u]]));let a=8;for(let d=0;d<24;d++,a+=10)i.push(n([a,a,a]));return i}function o(l){return r()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:s}}const td=/#([0-9a-f]{3,8})/i,nd=/var\((--[\w-]+-ansi-[\w-]+)\)/,id={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function rd(e,t,n){const i=pn(e,n),r=Rn(t),o=ed(Object.fromEntries(ot.map(l=>{var d;const a=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`;return[l,((d=e.colors)==null?void 0:d[a])||id[l]]}))),s=Zl();return r.map(l=>s.parse(l[0]).map(a=>{let d,c;a.decorations.has("reverse")?(d=a.background?o.value(a.background):e.bg,c=a.foreground?o.value(a.foreground):e.fg):(d=a.foreground?o.value(a.foreground):e.fg,c=a.background?o.value(a.background):void 0),d=Qe(d,i),c=Qe(c,i),a.decorations.has("dim")&&(d=od(d));let u=oe.None;return a.decorations.has("bold")&&(u|=oe.Bold),a.decorations.has("italic")&&(u|=oe.Italic),a.decorations.has("underline")&&(u|=oe.Underline),a.decorations.has("strikethrough")&&(u|=oe.Strikethrough),{content:a.value,offset:l[1],color:d,bgColor:c,fontStyle:u}}))}function od(e){const t=e.match(td);if(t){const i=t[1];if(i.length===8){const r=Math.round(Number.parseInt(i.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${i.slice(0,6)}${r}`}else{if(i.length===6)return`#${i}80`;if(i.length===4){const r=i[0],o=i[1],s=i[2],l=i[3];return`#${r}${r}${o}${o}${s}${s}${Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0")}`}else if(i.length===3){const r=i[0],o=i[1],s=i[2];return`#${r}${r}${o}${o}${s}${s}80`}}}const n=e.match(nd);return n?`var(${n[1]}-dim)`:e}function Li(e,t,n={}){const i=e.resolveLangAlias(n.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=n;if(!xn(i)&&!Tn(r)&&i==="ansi"){const{theme:o}=e.setTheme(r);return rd(o,t,n)}return es(e,t,n)}function vn(e,t,n){let i,r,o,s,l,a;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:c="--shiki-",colorsRendering:u="css-vars"}=n,f=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,_)=>g.color===d?-1:_.color===d?1:0);if(f.length===0)throw new B("`themes` option must not be empty");const h=ts(e,t,n,Li);if(a=$t(h),d&&d!=="light-dark()"&&!f.some(g=>g.color===d))throw new B(`\`themes\` option must contain the defaultColor key \`${d}\``);const m=f.map(g=>e.getTheme(g.theme)),v=f.map(g=>g.color);o=h.map(g=>g.map(_=>jl(_,v,c,d,u))),a&&In(o,a);const b=f.map(g=>pn(g.theme,n));r=vr(f,m,b,c,d,"fg",u),i=vr(f,m,b,c,d,"bg",u),s=`shiki-themes ${m.map(g=>g.name).join(" ")}`,l=d?void 0:[r,i].join(";")}else if("theme"in n){const d=pn(n.theme,n);o=Li(e,t,n);const c=e.getTheme(n.theme);i=Qe(c.bg,d),r=Qe(c.fg,d),s=c.name,a=$t(o)}else throw new B("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l,grammarState:a}}function vr(e,t,n,i,r,o,s){return e.map((l,a)=>{const d=Qe(t[a][o],n[a])||"inherit",c=`${i+l.color}${o==="bg"?"-bg":""}:${d}`;if(a===0&&r){if(r==="light-dark()"&&e.length>1){const u=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(u===-1||f===-1)throw new B('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Qe(t[u][o],n[u])||"inherit"}, ${Qe(t[f][o],n[f])||"inherit"});${c}`}return d}return s==="css-vars"?c:null}).filter(l=>!!l).join(";")}const rs=/^\s+$/,sd=/^(\s*)(.*?)(\s*)$/;function _n(e,t,n,i={meta:{},options:n,codeToHast:(r,o)=>_n(e,r,o),codeToTokens:(r,o)=>vn(e,r,o)}){var m,v;let r=t;for(const b of gn(n))r=((m=b.preprocess)==null?void 0:m.call(i,r,n))||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:d,grammarState:c}=vn(e,r,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:f=!1}=n;u===!0?o=ld(o):u==="never"&&(o=dd(o)),f&&(o=ud(o));const h={...i,get source(){return r}};for(const b of gn(n))o=((v=b.tokens)==null?void 0:v.call(h,o))||o;return ad(o,{...n,fg:s,bg:l,themeName:a,rootStyle:n.rootStyle===!1?!1:n.rootStyle??d},h,c)}function ad(e,t,n,i=$t(e)){var v,b,g,_;const r=gn(t),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),a!==!1&&a!=null&&(d.tabindex=a.toString());for(const[y,L]of Object.entries(t.meta||{}))y.startsWith("_")||(d[y]=L);let c={type:"element",tagName:"pre",properties:d,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:l,addClassToHast:ns,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return u},get lines(){return f}};if(e.forEach((y,L)=>{var w,x;L&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
3
3
|
`}));let E={type:"element",tagName:"span",properties:{class:"line"},children:[]},S=0;for(const k of y){let A={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const O=Si(k.htmlStyle||mn(k));O&&(A.properties.style=O);for(const R of r)A=((w=R==null?void 0:R.span)==null?void 0:w.call(h,A,L+1,S,E,k))||A;l==="inline"?s.children.push(A):l==="classic"&&E.children.push(A),S+=k.content.length}if(l==="classic"){for(const k of r)E=((x=k==null?void 0:k.line)==null?void 0:x.call(h,E,L+1))||E;f.push(E),o.push(E)}else l==="inline"&&f.push(E)}),l==="classic"){for(const y of r)u=((v=y==null?void 0:y.code)==null?void 0:v.call(h,u))||u;c.children.push(u);for(const y of r)c=((b=y==null?void 0:y.pre)==null?void 0:b.call(h,c))||c;s.children.push(c)}else if(l==="inline"){const y=[];let L={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const S of s.children)S.type==="element"&&S.tagName==="br"?(y.push(L),L={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(S.type==="element"||S.type==="text")&&L.children.push(S);y.push(L);let E={type:"element",tagName:"code",properties:{},children:y};for(const S of r)E=((g=S==null?void 0:S.code)==null?void 0:g.call(h,E))||E;s.children=[];for(let S=0;S<E.children.length;S++){S>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const w=E.children[S];w.type==="element"&&s.children.push(...w.children)}}let m=s;for(const y of r)m=((_=y==null?void 0:y.root)==null?void 0:_.call(h,m))||m;return i&&In(m,i),m}function ld(e){return e.map(t=>{const n=[];let i="",r;return t.forEach((o,s)=>{const l=!(o.fontStyle&&(o.fontStyle&oe.Underline||o.fontStyle&oe.Strikethrough));l&&rs.test(o.content)&&t[s+1]?(r===void 0&&(r=o.offset),i+=o.content):i?(l?n.push({...o,offset:r,content:i+o.content}):n.push({content:i,offset:r},o),r=void 0,i=""):n.push(o)}),n})}function dd(e){return e.map(t=>t.flatMap(n=>{if(rs.test(n.content))return n;const i=n.content.match(sd);if(!i)return n;const[,r,o,s]=i;if(!r&&!s)return n;const l=[{...n,offset:n.offset+r.length,content:o}];return r&&l.unshift({content:r,offset:n.offset}),s&&l.push({content:s,offset:n.offset+r.length+o.length}),l}))}function ud(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const r=n.at(-1),o=Si(r.htmlStyle||mn(r)),s=Si(i.htmlStyle||mn(i)),l=r.fontStyle&&(r.fontStyle&oe.Underline||r.fontStyle&oe.Strikethrough),a=i.fontStyle&&(i.fontStyle&oe.Underline||i.fontStyle&oe.Strikethrough);!l&&!a&&o===s?r.content+=i.content:n.push({...i})}return n})}const cd=Me;function fd(e,t,n){var o;const i={meta:{},options:n,codeToHast:(s,l)=>_n(e,s,l),codeToTokens:(s,l)=>vn(e,s,l)};let r=cd(_n(e,t,n,i));for(const s of gn(n))r=((o=s.postprocess)==null?void 0:o.call(i,r,n))||r;return r}async function hd(e){const t=await Tl(e);return{getLastGrammarState:(...n)=>Pl(t,...n),codeToTokensBase:(n,i)=>Li(t,n,i),codeToTokensWithThemes:(n,i)=>ts(t,n,i),codeToTokens:(n,i)=>vn(t,n,i),codeToHast:(n,i)=>_n(t,n,i),codeToHtml:(n,i)=>fd(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function pd(e){const t=e.langs,n=e.themes,i=e.engine;async function r(o){function s(u){var f;if(typeof u=="string"){if(u=((f=o.langAlias)==null?void 0:f[u])||u,qo(u))return[];const h=t[u];if(!h)throw new B(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}function l(u){if(Ko(u))return"none";if(typeof u=="string"){const f=n[u];if(!f)throw new B(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}const a=(o.themes??[]).map(u=>l(u)),d=(o.langs??[]).map(u=>s(u)),c=await hd({engine:o.engine??i(),...o,themes:a,langs:d});return{...c,loadLanguage(...u){return c.loadLanguage(...u.map(s))},loadTheme(...u){return c.loadTheme(...u.map(l))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return r}const md=pd({langs:Ei,themes:rl,engine:()=>(0,jo.createOnigurumaEngine)(p(()=>import("./wasm-CG6Dc4jp.js"),[]))}),_r=4294967295;var gd=class{constructor(e,t={}){C(this,"patterns");C(this,"options");C(this,"regexps");this.patterns=e,this.options=t;const{forgiving:n=!1,cache:i,regexConstructor:r}=t;if(!r)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const s=i==null?void 0:i.get(o);if(s){if(s instanceof RegExp)return s;if(n)return null;throw s}try{const l=r(o);return i==null||i.set(o,l),l}catch(l){if(i==null||i.set(o,l),n)return null;throw l}})}findNextMatchSync(e,t,n){const i=typeof e=="string"?e:e.content,r=[];function o(s,l,a=0){return{index:s,captureIndices:l.indices.map(d=>d==null?{start:_r,end:_r,length:0}:{start:d[0]+a,end:d[1]+a,length:d[1]-d[0]})}}for(let s=0;s<this.regexps.length;s++){const l=this.regexps[s];if(l)try{l.lastIndex=t;const a=l.exec(i);if(!a)continue;if(a.index===t)return o(s,a,0);r.push([s,a,0])}catch(a){if(this.options.forgiving)continue;throw a}}if(r.length){const s=Math.min(...r.map(l=>l[1].index));for(const[l,a,d]of r)if(a.index===s)return o(l,a,d)}return null}};function Lt(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function vd(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const Qi=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),te=String.raw;function Ct(e,t){if(e==null)throw new Error(t??"Value expected");return e}const os=te`\[\^?`,ss=`c.? | C(?:-.?)?|${te`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${te`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${te`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${te`o\{[^\}]*\}?`}|${te`\d{1,3}`}`,Zi=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Kt=new RegExp(te`
|
|
4
4
|
\\ (?:
|
|
5
5
|
${ss}
|