Plugin Directory

Changeset 3064975

Timestamp:
04/04/2024 05:53:20 PM (3 months ago)
Author:
kbat82
Message:

Update to version 1.26.2 from GitHub

Location:
code-block-pro
Files:
4 added
50 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code-block-pro/tags/1.26.2/.wp-env.json

    r2822432 r3064975  
    11{
    22    "core": null,
    3     "plugins": ["."],
    4     "mappings": {
    5         "wp-content/plugins/prismatic": "https://downloads.wordpress.org/plugin/prismatic.zip"
    6     }
     3    "plugins": ["."]
    74}
  • code-block-pro/tags/1.26.2/build/front/front.asset.php

    r3023112 r3064975  
    1 <?php return array('dependencies' => array(), 'version' => '3753b142d9458e73e42a');
     1<?php return array('dependencies' => array(), 'version' => '');
  • code-block-pro/tags/1.26.2/build/front/front.js

    r3023112 r3064975  
    1 (()=>{var e={640:(e,t,o)=>{"use strict";var r=o(742),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var o,n,c,s,l,i,d=!1;t||(t={}),o=t.debug||!1;try{if(c=r(),s=document.createRange(),l=document.getSelection(),(i=document.createElement("span")).textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=a[t.format]||a.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(i),s.selectNodeContents(i),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(r){o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),i&&document.body.removeChild(i),c()}return d}},742:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],r=0;r<e.rangeCount;r++)o.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||o.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}},t={};function o(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(640),t=o.n(e);const r=".wp-block-kevinbatdorf-code-block-pro",a=()=>{(()=>{if(!window.codeBlockPro?.pluginUrl)return;const e=Array.from(document.querySelectorAll("[data-code-block-pro-font-family]:not(.cbp-ff-loaded)")||[]);e.forEach((e=>e.classList.add("cbp-ff-loaded"))),[...new Set(e.map((e=>e.dataset.codeBlockProFontFamily)).filter(Boolean))].forEach((async e=>{const[t,o]=e.split("."),r=`url(${window.codeBlockPro.pluginUrl}/build/fonts/${t}.${o||"woff2"})`,a=new FontFace(t,r);await a.load().catch((e=>console.error(e))),document.fonts.add(a)}))})(),Array.from(document.querySelectorAll(`${r}:not(.cbp-see-more-loaded) .cbp-see-more-line`)).forEach((e=>{const t=e.closest(r);t.classList.add("cbp-see-more-loaded");const o=e.closest("pre"),a=o.offsetHeight;let n=0;if(e.classList.contains("cbp-see-more-transition")){const t=o.querySelectorAll("code > *").length,r=Array.from(e.closest("code").children).filter((t=>t.offsetTop<e.offsetTop))?.length;n=.5+.01*(t-r),o.style.transition=`max-height ${n}s ease-out`}const c="SPAN"===t.children[0].tagName?t.children[0].offsetHeight:0,s=parseFloat(window.getComputedStyle(e).lineHeight);o.style.maxHeight=e.offsetTop+s-c+"px";const l=e.closest(r).querySelector(".cbp-see-more-container");if(!l)return;l.style.display="flex";const i=l.querySelector(".cbp-see-more-simple-btn");if(!i)return;t.classList.contains("padding-disabled")&&i.classList.remove("cbp-see-more-simple-btn-hover"),i.style.transition=`all ${Math.max(n,1)/1.5}s linear`;const d=e=>{e.preventDefault(),i.classList.remove("cbp-see-more-simple-btn-hover"),o.style.maxHeight=a+"px",setTimeout((()=>{i.style.opacity=0,i.style.transform="translateY(-100%)",setTimeout((()=>i.remove()),1e3*Math.max(n,1))}),1e3*n)};i.addEventListener("click",d),i.addEventListener("keydown",(e=>{"Enter"===e.key&&d(e)}))})),Array.from(document.querySelectorAll(".code-block-pro-copy-button:not(.cbp-cb-loaded)")).forEach((e=>{e.classList.add("cbp-cb-loaded"),e.style.display="block";const o=o=>{var r;const{type:a,key:n,target:c}=o;if("keydown"===a&&!["Enter"," "].includes(n))return;o.preventDefault();const s=c?.closest("span[data-code]"),l=s?.dataset?.encoded?decodeURIComponent(decodeURIComponent(s?.dataset?.code)):s?.dataset?.code,i=null!==(r=window.cbpCopyOverride?.(l,e))&&void 0!==r?r:l;t()(null!=i?i:"",{format:"text/plain",onCopy:t=>{window.cbpCopyCallback?.(t,e),s.classList.add("cbp-copying");const o=s.dataset.copiedText,r=s.querySelector("span");o&&(r.innerText=o),setTimeout((()=>{s.classList.remove("cbp-copying"),o&&(r.innerText=s.getAttribute("aria-label"))}),2e3)}})};["click","keydown"].forEach((t=>e.addEventListener(t,o)))})),Array.from(document.querySelectorAll(`${r}:not(.cbp-hl-loaded)`)).forEach((e=>{e.classList.add("cbp-hl-loaded");const t=new Set(e.querySelectorAll(".cbp-line-highlight"));e.classList.contains("cbp-highlight-hover")&&e.querySelectorAll("span.line").forEach((e=>t.add(e))),t.size&&(new ResizeObserver((()=>{const t=e.querySelectorAll("span.line");e.style.setProperty("--cbp-block-width","unset");const o=Array.from(t).reduce(((e,t)=>e.offsetWidth>t.offsetWidth?e:t)),r=Array.from(t).reduce(((e,t)=>e.offsetHeight>t.offsetHeight?e:t));e.style.setProperty("--cbp-block-height",r.offsetHeight+"px"),e.style.setProperty("--cbp-block-width",o.offsetWidth+"px")})).observe(e),t.forEach((e=>{e.querySelector(".cbp-line-highlighter")||e.insertAdjacentHTML("beforeend",'<span aria-hidden="true" class="cbp-line-highlighter"></span>')})))}))};a(),window.codeBlockProInit=a,window.addEventListener("DOMContentLoaded",a),window.addEventListener("load",a)})()})();
     1(()=>{var e={),t=o.n(e);const r=".wp-block-kevinbatdorf-code-block-pro",a=()=>{(()=>{if(!window.codeBlockPro?.pluginUrl)return;const e=Array.from(document.querySelectorAll("[data-code-block-pro-font-family]:not(.cbp-ff-loaded)")||[]);e.forEach((e=>e.classList.add("cbp-ff-loaded"))),[...new Set(e.map((e=>e.dataset.codeBlockProFontFamily)).filter(Boolean))].forEach((async e=>{const[t,o]=e.split("."),r=`url(${window.codeBlockPro.pluginUrl}/build/fonts/${t}.${o||"woff2"})`,a=new FontFace(t,r);await a.load().catch((e=>console.error(e))),document.fonts.add(a)}))})(),Array.from(document.querySelectorAll(`${r}:not(.cbp-see-more-loaded) .cbp-see-more-line`)).forEach((e=>{const t=e.closest(r);t.classList.add("cbp-see-more-loaded");const o=e.closest("pre"),a=o.offsetHeight;let n=0;if(e.classList.contains("cbp-see-more-transition")){const t=o.querySelectorAll("code > *").length,r=Array.from(e.closest("code").children).filter((t=>t.offsetTop<e.offsetTop))?.length;n=.5+.01*(t-r),o.style.transition=`max-height ${n}s ease-out`}const c="SPAN"===t.children[0].tagName?t.children[0].offsetHeight:0,s=parseFloat(window.getComputedStyle(e).lineHeight);o.style.maxHeight=e.offsetTop+s-c+"px";const l=e.closest(r).querySelector(".cbp-see-more-container");if(!l)return;l.style.display="flex";const i=l.querySelector(".cbp-see-more-simple-btn");if(!i)return;t.classList.contains("padding-disabled")&&i.classList.remove("cbp-see-more-simple-btn-hover"),i.style.transition=`all ${Math.max(n,1)/1.5}s linear`;const d=e=>{e.preventDefault(),i.classList.remove("cbp-see-more-simple-btn-hover"),o.style.maxHeight=a+"px",setTimeout((()=>{i.style.opacity=0,i.style.transform="translateY(-100%)",setTimeout((()=>i.remove()),1e3*Math.max(n,1))}),1e3*n)};i.addEventListener("click",d),i.addEventListener("keydown",(e=>{"Enter"===e.key&&d(e)}))})),Array.from(document.querySelectorAll(".code-block-pro-copy-button:not(.cbp-cb-loaded)")).forEach((e=>{e.classList.add("cbp-cb-loaded"),e.style.display="block";const o=o=>{var r;const{type:a,key:n,target:c}=o;if("keydown"===a&&!["Enter"," "].includes(n))return;o.preventDefault();const s=c?.closest("span[data-code]"),l=s?.dataset?.encoded?decodeURIComponent(decodeURIComponent(s?.dataset?.code)):s?.dataset?.code,i=null!==(r=window.cbpCopyOverride?.(l,e))&&void 0!==r?r:l;t()(null!=i?i:"",{format:"text/plain",onCopy:t=>{window.cbpCopyCallback?.(t,e),s.classList.add("cbp-copying");const o=s.dataset.copiedText,r=s.querySelector("span");o&&(r.innerText=o),setTimeout((()=>{s.classList.remove("cbp-copying"),o&&(r.innerText=s.getAttribute("aria-label"))}),2e3)}})};["click","keydown"].forEach((t=>e.addEventListener(t,o)))})),Array.from(document.querySelectorAll(`${r}:not(.cbp-hl-loaded)`)).forEach((e=>{e.classList.add("cbp-hl-loaded");const t=new Set(e.querySelectorAll(".cbp-line-highlight"));e.classList.contains("cbp-highlight-hover")&&e.querySelectorAll("span.line").forEach((e=>t.add(e))),t.size&&(new ResizeObserver((()=>{const t=e.querySelectorAll("span.line");e.style.setProperty("--cbp-block-width","unset");const o=Array.from(t).reduce(((e,t)=>e.offsetWidth>t.offsetWidth?e:t)),r=Array.from(t).reduce(((e,t)=>e.offsetHeight>t.offsetHeight?e:t));e.style.setProperty("--cbp-block-height",r.offsetHeight+"px"),e.style.setProperty("--cbp-block-width",o.offsetWidth+"px")})).observe(e),t.forEach((e=>{e.querySelector(".cbp-line-highlighter")||e.insertAdjacentHTML("beforeend",'<span aria-hidden="true" class="cbp-line-highlighter"></span>')})))}))};a(),window.codeBlockProInit=a,window.addEventListener("DOMContentLoaded",a),window.addEventListener("load",a)})()})();
  • code-block-pro/tags/1.26.2/build/index.asset.php

    r3029109 r3064975  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-primitives'), 'version' => 'd389b3cc14657c16a1de');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-primitives'), 'version' => '');
  • code-block-pro/tags/1.26.2/build/index.css

    r3023112 r3064975  
    1 .code-block-pro-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.code-block-pro-editor *,.code-block-pro-editor :after,.code-block-pro-editor :before{box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.code-block-pro-editor :is(.sr-only){clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.code-block-pro-editor :is(.pointer-events-none){pointer-events:none}.code-block-pro-editor :is(.visible){visibility:visible}.code-block-pro-editor :is(.absolute){position:absolute}.code-block-pro-editor :is(.relative){position:relative}.code-block-pro-editor :is(.inset-0){inset:0}.code-block-pro-editor :is(.left-auto){left:auto}.code-block-pro-editor :is(.right-0){right:0}.code-block-pro-editor :is(.top-0){top:0}.code-block-pro-editor :is(.z-10){z-index:10}.code-block-pro-editor :is(.m-0){margin:0}.code-block-pro-editor :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.code-block-pro-editor :is(.my-2){margin-bottom:.5rem;margin-top:.5rem}.code-block-pro-editor :is(.-mt-3){margin-top:-.75rem}.code-block-pro-editor :is(.-mt-4){margin-top:-1rem}.code-block-pro-editor :is(.mb-2){margin-bottom:.5rem}.code-block-pro-editor :is(.mb-4){margin-bottom:1rem}.code-block-pro-editor :is(.mt-2){margin-top:.5rem}.code-block-pro-editor :is(.mt-6){margin-top:1.5rem}.code-block-pro-editor :is(.block){display:block}.code-block-pro-editor :is(.inline-block){display:inline-block}.code-block-pro-editor :is(.flex){display:flex}.code-block-pro-editor :is(.inline-flex){display:inline-flex}.code-block-pro-editor :is(.h-3){height:.75rem}.code-block-pro-editor :is(.h-8){height:2rem}.code-block-pro-editor :is(.max-h-80){max-height:20rem}.code-block-pro-editor :is(.w-3){width:.75rem}.code-block-pro-editor :is(.w-full){width:100%}.code-block-pro-editor :is(.-translate-x-1){--tw-translate-x:-0.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.cursor-pointer){cursor:pointer}.code-block-pro-editor :is(.grid-cols-2){grid-template-columns:repeat(2,minmax(0,1fr))}.code-block-pro-editor :is(.flex-col){flex-direction:column}.code-block-pro-editor :is(.flex-wrap){flex-wrap:wrap}.code-block-pro-editor :is(.items-start){align-items:flex-start}.code-block-pro-editor :is(.items-center){align-items:center}.code-block-pro-editor :is(.justify-center){justify-content:center}.code-block-pro-editor :is(.gap-1){gap:.25rem}.code-block-pro-editor :is(.gap-2){gap:.5rem}.code-block-pro-editor :is(.gap-3){gap:.75rem}.code-block-pro-editor :is(.gap-4){gap:1rem}.code-block-pro-editor :is(.overflow-x-auto){overflow-x:auto}.code-block-pro-editor :is(.overflow-y-hidden){overflow-y:hidden}.code-block-pro-editor :is(.rounded-full){border-radius:9999px}.code-block-pro-editor :is(.border){border-width:1px}.code-block-pro-editor :is(.border-0){border-width:0}.code-block-pro-editor :is(.border-solid){border-style:solid}.code-block-pro-editor :is(.border-none){border-style:none}.code-block-pro-editor :is(.border-gray-400){--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.code-block-pro-editor :is(.border-gray-900){--tw-border-opacity:1;border-color:rgb(30 30 30/var(--tw-border-opacity))}.code-block-pro-editor :is(.bg-gray-100){--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.code-block-pro-editor :is(.bg-transparent){background-color:transparent}.code-block-pro-editor :is(.p-0){padding:0}.code-block-pro-editor :is(.p-1){padding:.25rem}.code-block-pro-editor :is(.p-4){padding:1rem}.code-block-pro-editor :is(.p-6){padding:1.5rem}.code-block-pro-editor :is(.px-3){padding-left:.75rem;padding-right:.75rem}.code-block-pro-editor :is(.px-4){padding-left:1rem;padding-right:1rem}.code-block-pro-editor :is(.pt-2){padding-top:.5rem}.code-block-pro-editor :is(.text-left){text-align:left}.code-block-pro-editor :is(.text-center){text-align:center}.code-block-pro-editor :is(.text-base){font-size:1rem;line-height:1.5rem}.code-block-pro-editor :is(.text-sm){font-size:.875rem;line-height:1.25rem}.code-block-pro-editor :is(.font-semibold){font-weight:600}.code-block-pro-editor :is(.italic){font-style:italic}.code-block-pro-editor :is(.leading-none){line-height:1}.code-block-pro-editor :is(.no-underline){text-decoration-line:none}.code-block-pro-editor :is(.opacity-90){opacity:.9}.code-block-pro-editor :is(.outline-none){outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor :is(.ring-wp){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.code-block-pro-editor :is(.ring-wp-theme-500){--tw-ring-color:var(--wp-admin-theme-color)}.code-block-pro-editor :is(.ring-offset-2){--tw-ring-offset-width:2px}.code-block-pro-editor :is(.ring-offset-white){--tw-ring-offset-color:#fff}.code-block-pro-editor :is(.blur){--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.transition){transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.transition-opacity){transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.duration-200){transition-duration:.2s}.code-block-pro-editor :is(.ease-in-out){transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor .npm__react-simple-code-editor__textarea{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor pre,.code-block-pro-editor pre *{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}.code-block-pro-editor pre,.code-block-pro-editor textarea{margin:0;text-align:left}.code-block-pro-editor pre:focus,.code-block-pro-editor textarea:focus{outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor pre,.code-block-pro-editor textarea{direction:ltr!important;min-height:36px}.code-block-pro-editor.cbp-has-line-numbers pre{counter-increment:step calc(var(--cbp-line-number-start, 1) - 1);counter-reset:step;padding-right:0}.code-block-pro-editor pre .line{display:inline-block;position:relative;width:100%}.code-block-pro-editor pre .line:empty{display:block}.code-block-pro-editor pre .line span:empty{display:inline-block}.code-block-pro-editor.cbp-has-line-numbers pre .line:not(.cbp-line-number-disabled):before{color:var(--cbp-line-number-color,#999);content:counter(step);counter-increment:step;display:inline-block;left:calc(var(--cbp-line-number-width, 0)*-1 - 16px);margin-right:12px;opacity:.5;position:absolute;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--cbp-line-number-width,auto)}.code-block-pro-editor.padding-disabled:not(.cbp-has-line-numbers) pre{padding:0}.code-block-pro-editor.padding-disabled.cbp-has-line-numbers pre{padding-bottom:0;padding-top:0}.code-block-pro-editor .cbp-footer-link{pointer-events:none;text-decoration-line:none}.code-block-pro-editor pre .line.cbp-line-highlight:after{background:var(--cbp-line-highlight-color,rgb(14 165 233/.2));content:"";height:100%;left:-100%!important;min-height:var(--cbp-line-height)!important;position:absolute;top:0;width:1000%!important}.code-block-pro-editor code{background-color:transparent;color:inherit;font-family:inherit!important;margin:0;padding:0}.cbp-input-error{--tw-ring-color:#ef4444;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#ef4444!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.code-block-pro-editor .code-block-pro-copy-button{display:block!important;pointer-events:none}.code-block-pro-editor .sidebar-copy-button svg{display:block}.code-block-pro-editor .sidebar-copy-button .with-check{display:none}.cbp-theme-preview{direction:ltr;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}@font-face{font-family:Code-Pro-Fira-Code;src:url(fonts/Code-Pro-Fira-Code.bf5ea52f.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono;src:url(fonts/Code-Pro-JetBrains-Mono.1e66c47a.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono-NL;src:url(fonts/Code-Pro-JetBrains-Mono-NL.432a7b10.ttf) format("truetype")}@font-face{font-family:Code-Pro-Comic-Mono;src:url(fonts/Code-Pro-Comic-Mono.53a3d0c4.ttf) format("truetype")}@font-face{font-family:Code-Pro-Roboto-Mono;src:url(fonts/Code-Pro-Roboto-Mono.94ffabb1.ttf) format("truetype")}@font-face{font-family:Code-Pro-Fantasque-Sans-Mono;src:url(fonts/Code-Pro-Fantasque-Sans-Mono.6c511db2.woff2) format("woff2")}@font-face{font-family:Code-Pro-Cozette;src:url(fonts/Code-Pro-Cozette.6a7d67c5.woff2) format("woff2")}@font-face{font-family:Code-Pro-Deja-Vu-Mono;src:url(fonts/Code-Pro-Deja-Vu-Mono.7ba86537.ttf) format("truetype")}@font-face{font-family:Code-Pro-Monaspace-Argon;src:url(fonts/Code-Pro-Monaspace-Argon.102d94d0.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Krypton;src:url(fonts/Code-Pro-Monaspace-Krypton.44966aaa.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Neon;src:url(fonts/Code-Pro-Monaspace-Neon.257144c3.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Radon;src:url(fonts/Code-Pro-Monaspace-Radon.9f755736.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Xenon;src:url(fonts/Code-Pro-Monaspace-Xenon.bad9f4b9.woff) format("woff")}@font-face{font-family:Code-Pro-Geist-Mono;src:url(fonts/Code-Pro-Geist-Mono.8f5e9544.woff2) format("woff2")}@font-face{font-family:Code-Pro-Hack;src:url(fonts/Code-Pro-Hack.fe74d490.woff2) format("woff2")}.code-block-pro-editor :is(.focus\:shadow-none:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor :is(.focus\:ring-wp:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}@media (min-width:782px){.code-block-pro-editor :is(.md\:grid){display:grid}}@media (min-width:1080px){.code-block-pro-editor :is(.lg\:grid-cols-3){grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1280px){.code-block-pro-editor :is(.xl\:grid-cols-4){grid-template-columns:repeat(4,minmax(0,1fr))}}
     1.code-block-pro-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.code-block-pro-editor *,.code-block-pro-editor :after,.code-block-pro-editor :before{box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.code-block-pro-editor :is(.pointer-events-none){pointer-events:none}.code-block-pro-editor :is(.visible){visibility:visible}.code-block-pro-editor :is(.absolute){position:absolute}.code-block-pro-editor :is(.relative){position:relative}.code-block-pro-editor :is(.inset-0){inset:0}.code-block-pro-editor :is(.left-auto){left:auto}.code-block-pro-editor :is(.right-0){right:0}.code-block-pro-editor :is(.top-0){top:0}.code-block-pro-editor :is(.z-10){z-index:10}.code-block-pro-editor :is(.m-0){margin:0}.code-block-pro-editor :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.code-block-pro-editor :is(.my-2){margin-bottom:.5rem;margin-top:.5rem}.code-block-pro-editor :is(.-mt-3){margin-top:-.75rem}.code-block-pro-editor :is(.-mt-4){margin-top:-1rem}.code-block-pro-editor :is(.mb-2){margin-bottom:.5rem}.code-block-pro-editor :is(.mb-4){margin-bottom:1rem}.code-block-pro-editor :is(.mt-2){margin-top:.5rem}.code-block-pro-editor :is(.mt-6){margin-top:1.5rem}.code-block-pro-editor :is(.block){display:block}.code-block-pro-editor :is(.inline-block){display:inline-block}.code-block-pro-editor :is(.flex){display:flex}.code-block-pro-editor :is(.inline-flex){display:inline-flex}.code-block-pro-editor :is(.h-3){height:.75rem}.code-block-pro-editor :is(.h-8){height:2rem}.code-block-pro-editor :is(.max-h-80){max-height:20rem}.code-block-pro-editor :is(.w-3){width:.75rem}.code-block-pro-editor :is(.w-full){width:100%}.code-block-pro-editor :is(.-translate-x-1){--tw-translate-x:-0.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.cursor-pointer){cursor:pointer}.code-block-pro-editor :is(.grid-cols-2){grid-template-columns:repeat(2,minmax(0,1fr))}.code-block-pro-editor :is(.flex-col){flex-direction:column}.code-block-pro-editor :is(.flex-wrap){flex-wrap:wrap}.code-block-pro-editor :is(.items-start){align-items:flex-start}.code-block-pro-editor :is(.items-center){align-items:center}.code-block-pro-editor :is(.justify-center){justify-content:center}.code-block-pro-editor :is(.gap-1){gap:.25rem}.code-block-pro-editor :is(.gap-2){gap:.5rem}.code-block-pro-editor :is(.gap-3){gap:.75rem}.code-block-pro-editor :is(.gap-4){gap:1rem}.code-block-pro-editor :is(.overflow-x-auto){overflow-x:auto}.code-block-pro-editor :is(.overflow-y-hidden){overflow-y:hidden}.code-block-pro-editor :is(.rounded-full){border-radius:9999px}.code-block-pro-editor :is(.border){border-width:1px}.code-block-pro-editor :is(.border-0){border-width:0}.code-block-pro-editor :is(.border-solid){border-style:solid}.code-block-pro-editor :is(.border-none){border-style:none}.code-block-pro-editor :is(.border-gray-400){--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.code-block-pro-editor :is(.border-gray-900){--tw-border-opacity:1;border-color:rgb(30 30 30/var(--tw-border-opacity))}.code-block-pro-editor :is(.bg-gray-100){--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.code-block-pro-editor :is(.bg-transparent){background-color:transparent}.code-block-pro-editor :is(.p-0){padding:0}.code-block-pro-editor :is(.p-1){padding:.25rem}.code-block-pro-editor :is(.p-4){padding:1rem}.code-block-pro-editor :is(.p-6){padding:1.5rem}.code-block-pro-editor :is(.px-3){padding-left:.75rem;padding-right:.75rem}.code-block-pro-editor :is(.px-4){padding-left:1rem;padding-right:1rem}.code-block-pro-editor :is(.pt-2){padding-top:.5rem}.code-block-pro-editor :is(.text-left){text-align:left}.code-block-pro-editor :is(.text-center){text-align:center}.code-block-pro-editor :is(.text-base){font-size:1rem;line-height:1.5rem}.code-block-pro-editor :is(.text-sm){font-size:.875rem;line-height:1.25rem}.code-block-pro-editor :is(.font-semibold){font-weight:600}.code-block-pro-editor :is(.italic){font-style:italic}.code-block-pro-editor :is(.leading-none){line-height:1}.code-block-pro-editor :is(.no-underline){text-decoration-line:none}.code-block-pro-editor :is(.opacity-90){opacity:.9}.code-block-pro-editor :is(.outline-none){outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor :is(.ring-wp){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.code-block-pro-editor :is(.ring-wp-theme-500){--tw-ring-color:var(--wp-admin-theme-color)}.code-block-pro-editor :is(.ring-offset-2){--tw-ring-offset-width:2px}.code-block-pro-editor :is(.ring-offset-white){--tw-ring-offset-color:#fff}.code-block-pro-editor :is(.blur){--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.transition){transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.transition-opacity){transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.duration-200){transition-duration:.2s}.code-block-pro-editor :is(.ease-in-out){transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor .npm__react-simple-code-editor__textarea{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor pre,.code-block-pro-editor pre *{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}.code-block-pro-editor pre,.code-block-pro-editor textarea{margin:0;text-align:left}.code-block-pro-editor pre:focus,.code-block-pro-editor textarea:focus{outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor pre,.code-block-pro-editor textarea{direction:ltr!important;min-height:36px}.code-block-pro-editor.cbp-has-line-numbers pre{counter-increment:step calc(var(--cbp-line-number-start, 1) - 1);counter-reset:step;padding-right:0}.code-block-pro-editor pre .line{display:inline-block;position:relative;width:100%}.code-block-pro-editor pre .line:empty{display:block}.code-block-pro-editor pre .line span:empty{display:inline-block}.code-block-pro-editor.cbp-has-line-numbers pre .line:not(.cbp-line-number-disabled):before{color:var(--cbp-line-number-color,#999);content:counter(step);counter-increment:step;display:inline-block;left:calc(var(--cbp-line-number-width, 0)*-1 - 16px);margin-right:12px;opacity:.5;position:absolute;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--cbp-line-number-width,auto)}.code-block-pro-editor.padding-disabled:not(.cbp-has-line-numbers) pre{padding:0}.code-block-pro-editor.padding-disabled.cbp-has-line-numbers pre{padding-bottom:0;padding-top:0}.code-block-pro-editor .cbp-footer-link{pointer-events:none;text-decoration-line:none}.code-block-pro-editor pre .line.cbp-line-highlight:after{background:var(--cbp-line-highlight-color,rgb(14 165 233/.2));content:"";height:100%;left:-100%!important;min-height:var(--cbp-line-height)!important;position:absolute;top:0;width:1000%!important}.code-block-pro-editor code{background-color:transparent;color:inherit;font-family:inherit!important;margin:0;padding:0}.cbp-input-error{--tw-ring-color:#ef4444;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#ef4444!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.code-block-pro-editor .code-block-pro-copy-button{display:block!important;pointer-events:none}.code-block-pro-editor .sidebar-copy-button svg{display:block}.code-block-pro-editor .sidebar-copy-button .with-check{display:none}.cbp-theme-preview{direction:ltr;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}@font-face{font-family:Code-Pro-Fira-Code;src:url(fonts/Code-Pro-Fira-Code.bf5ea52f.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono;src:url(fonts/Code-Pro-JetBrains-Mono.1e66c47a.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono-NL;src:url(fonts/Code-Pro-JetBrains-Mono-NL.432a7b10.ttf) format("truetype")}@font-face{font-family:Code-Pro-Comic-Mono;src:url(fonts/Code-Pro-Comic-Mono.53a3d0c4.ttf) format("truetype")}@font-face{font-family:Code-Pro-Roboto-Mono;src:url(fonts/Code-Pro-Roboto-Mono.94ffabb1.ttf) format("truetype")}@font-face{font-family:Code-Pro-Fantasque-Sans-Mono;src:url(fonts/Code-Pro-Fantasque-Sans-Mono.6c511db2.woff2) format("woff2")}@font-face{font-family:Code-Pro-Cozette;src:url(fonts/Code-Pro-Cozette.6a7d67c5.woff2) format("woff2")}@font-face{font-family:Code-Pro-Deja-Vu-Mono;src:url(fonts/Code-Pro-Deja-Vu-Mono.7ba86537.ttf) format("truetype")}@font-face{font-family:Code-Pro-Monaspace-Argon;src:url(fonts/Code-Pro-Monaspace-Argon.102d94d0.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Krypton;src:url(fonts/Code-Pro-Monaspace-Krypton.44966aaa.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Neon;src:url(fonts/Code-Pro-Monaspace-Neon.257144c3.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Radon;src:url(fonts/Code-Pro-Monaspace-Radon.9f755736.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Xenon;src:url(fonts/Code-Pro-Monaspace-Xenon.bad9f4b9.woff) format("woff")}@font-face{font-family:Code-Pro-Geist-Mono;src:url(fonts/Code-Pro-Geist-Mono.8f5e9544.woff2) format("woff2")}@font-face{font-family:Code-Pro-Hack;src:url(fonts/Code-Pro-Hack.fe74d490.woff2) format("woff2")}.code-block-pro-editor :is(.focus\:shadow-none:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor :is(.focus\:ring-wp:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}@media (min-width:782px){.code-block-pro-editor :is(.md\:grid){display:grid}}@media (min-width:1080px){.code-block-pro-editor :is(.lg\:grid-cols-3){grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1280px){.code-block-pro-editor :is(.xl\:grid-cols-4){grid-template-columns:repeat(4,minmax(0,1fr))}}
  • code-block-pro/tags/1.26.2/build/index.js

    r3029109 r3064975  
    1 (()=>{var e,t={461:(e,t,n)=>{"use strict";var r=n(196);const a=window.wp.blocks,o=window.wp.hooks,s=window.wp.i18n,i=window.wp.blockEditor;var l=n(184),c=n.n(l);const u=JSON.parse('{"dark-plus":{"name":"Dark Plus"},"dracula-soft":{"name":"Dracula Soft"},"dracula":{"name":"Dracula"},"github-dark-dimmed":{"name":"GitHub Dark Dimmed"},"github-dark":{"name":"Github Dark"},"github-light":{"name":"Github Light"},"light-plus":{"name":"Light Plus"},"material-darker":{"name":"Material Darker","alias":"material-theme-darker"},"material-default":{"name":"Material Default","alias":"material-theme"},"material-lighter":{"name":"Material Lighter","alias":"material-theme-lighter"},"material-ocean":{"name":"Material Ocean","alias":"material-theme-ocean"},"material-palenight":{"name":"Material Palenight","alias":"material-theme-palenight"},"min-dark":{"name":"Min Dark"},"min-light":{"name":"Min Light"},"monokai":{"name":"Monokai"},"nord":{"name":"Nord"},"one-dark-pro":{"name":"One Dark Pro"},"poimandres":{"name":"Poimandres"},"rose-pine-dawn":{"name":"Rose Pine Dawn"},"rose-pine-moon":{"name":"Rose Pine Moon"},"rose-pine":{"name":"Rose Pine"},"slack-dark":{"name":"Slack Dark"},"slack-ochin":{"name":"Slack Ochin"},"solarized-dark":{"name":"Solarized Dark"},"solarized-light":{"name":"Solarized Light"},"vitesse-dark":{"name":"Vitesse Dark"},"vitesse-light":{"name":"Vitesse Light"}}'),p=window.wp.element;var d=n(460),h=n.n(d);const m=window.wp.apiFetch;var g=n.n(m),f=n(688);const b=()=>{},y=b(),k=Object,v=e=>e===y,_=e=>"function"==typeof e,S=(e,t)=>({...e,...t}),C=new WeakMap;let N=0;const w=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,o;if(k(e)!==e||r||n==RegExp)a=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=C.get(e),a)return a;if(a=++N+"~",C.set(e,a),n==Array){for(a="@",o=0;o<e.length;o++)a+=w(e[o])+",";C.set(e,a)}if(n==k){a="#";const t=k.keys(e).sort();for(;!v(o=t.pop());)v(e[o])||(a+=o+":"+w(e[o])+",");C.set(e,a)}}return a},x=new WeakMap,E={},L={},P="undefined",T=typeof window!=P,j=typeof document!=P,A=(e,t)=>{const n=x.get(e);return[()=>!v(t)&&e.get(t)||E,r=>{if(!v(t)){const a=e.get(t);t in L||(L[t]=a),n[5](t,S(a,r),a||E)}},n[6],()=>!v(t)&&t in L?L[t]:!v(t)&&e.get(t)||E]};let R=!0;const[O,B]=T&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[b,b],M={isOnline:()=>R,isVisible:()=>{const e=j&&document.visibilityState;return v(e)||"hidden"!==e}},I={initFocus:e=>(j&&document.addEventListener("visibilitychange",e),O("focus",e),()=>{j&&document.removeEventListener("visibilitychange",e),B("focus",e)}),initReconnect:e=>{const t=()=>{R=!0,e()},n=()=>{R=!1};return O("online",t),O("offline",n),()=>{B("online",t),B("offline",n)}}},F=!r.useId,H=!T||"Deno"in window,D=H?r.useEffect:r.useLayoutEffect,G="undefined"!=typeof navigator&&navigator.connection,$=!H&&G&&(["slow-2g","2g"].includes(G.effectiveType)||G.saveData),z=e=>{if(_(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]};let W=0;const U=()=>++W;async function q(...e){const[t,n,r,a]=e,o=S({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{});let s=o.populateCache;const i=o.rollbackOnError;let l=o.optimisticData;const c=!1!==o.revalidate,u=o.throwOnError;if(_(n)){const e=n,r=[],a=t.keys();for(const n of a)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(p))}return p(n);async function p(n){const[a]=z(n);if(!a)return;const[o,p]=A(t,a),[d,h,m,g]=x.get(t),f=()=>{const e=d[a];return c&&(delete m[a],delete g[a],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return f();let b,k=r;const S=U();h[a]=[S,0];const C=!v(l),N=o(),w=N.data,E=N._c,L=v(E)?w:E;if(C&&(l=_(l)?l(L,w):l,p({data:l,_c:L})),_(k))try{k=k(L)}catch(e){b=e}if(k&&(e=>_(e.then))(k)){if(k=await k.catch((e=>{b=e})),S!==h[a][0]){if(b)throw b;return k}b&&C&&(e=>"function"==typeof i?i(e):!1!==i)(b)&&(s=!0,p({data:L,_c:y}))}if(s&&!b)if(_(s)){const e=s(k,L);p({data:e,error:y,_c:y})}else p({data:k,error:y,_c:y});if(h[a][1]=U(),Promise.resolve(f()).then((()=>{p({_c:y})})),!b)return k;if(u)throw b}}const V=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},J=(e,t)=>{if(!x.has(e)){const n=S(I,t),r={},a=q.bind(y,e);let o=b;const s={},i=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const a=s[t];if(a)for(const e of a)e(n,r)},c=()=>{if(!x.has(e)&&(x.set(e,[r,{},{},{},a,l,i]),!H)){const t=n.initFocus(setTimeout.bind(y,V.bind(y,r,0))),a=n.initReconnect(setTimeout.bind(y,V.bind(y,r,1)));o=()=>{t&&t(),a&&a(),x.delete(e)}}};return c(),[e,a,c,o]}return[e,x.get(e)[4]]},[K,Q]=J(new Map),X=S({onLoadingSlow:b,onSuccess:b,onError:b,onErrorRetry:(e,__,t,n,r)=>{const a=t.errorRetryCount,o=r.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!v(a)&&o>a||setTimeout(n,s,r)},onDiscarded:b,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:$?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:K,mutate:Q,fallback:{}},M),Y=(e,t)=>{const n=S(e,t);if(t){const{use:r,fallback:a}=e,{use:o,fallback:s}=t;r&&o&&(n.use=r.concat(o)),a&&s&&(n.fallback=S(a,s))}return n},Z=(0,r.createContext)({}),ee=T&&window.__SWR_DEVTOOLS_USE__,te=ee?window.__SWR_DEVTOOLS_USE__:[],ne=e=>_(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],re=te.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=z(t),[,,,a]=x.get(K);if(r.startsWith("$inf$"))return n(...e);const o=a[r];return v(o)?n(...e):(delete a[r],o)}),r)));ee&&(window.__SWR_DEVTOOLS_REACT__=r);const ae=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),oe={dedupe:!0},se=(k.defineProperty((e=>{const{value:t}=e,n=(0,r.useContext)(Z),a=_(t),o=(0,r.useMemo)((()=>a?t(n):t),[a,n,t]),s=(0,r.useMemo)((()=>a?o:Y(n,o)),[a,n,o]),i=o&&o.provider,l=(0,r.useRef)(y);i&&!l.current&&(l.current=J(i(s.cache||K),o));const c=l.current;return c&&(s.cache=c[0],s.mutate=c[1]),D((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,r.createElement)(Z.Provider,S(e,{value:s}))}),"defaultValue",{value:X}),ie=(e,t,n)=>{const{cache:a,compare:o,suspense:s,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:d,keepPreviousData:h}=n,[m,g,b,k]=x.get(a),[C,N]=z(e),w=(0,r.useRef)(!1),E=(0,r.useRef)(!1),L=(0,r.useRef)(C),j=(0,r.useRef)(t),R=(0,r.useRef)(n),O=()=>R.current,B=()=>O().isVisible()&&O().isOnline(),[M,I,G,$]=A(a,C),W=(0,r.useRef)({}).current,V=v(i)?n.fallback[C]:i,J=(e,t)=>{for(const n in W){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!v(e[r]))return!1;if(!o(re,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},K=(0,r.useMemo)((()=>{const e=!!C&&!!t&&(v(l)?!O().isPaused()&&!s&&(!!v(c)||c):l),n=t=>{const n=S(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=M(),a=$(),o=n(r),i=r===a?o:n(a);let u=o;return[()=>{const e=n(M());return J(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[a,C]),Q=(0,f.useSyncExternalStore)((0,r.useCallback)((e=>G(C,((t,n)=>{J(n,t)||e()}))),[a,C]),K[0],K[1]),X=!w.current,Y=m[C]&&m[C].length>0,Z=Q.data,ee=v(Z)?V:Z,te=Q.error,ne=(0,r.useRef)(ee),re=h?v(Z)?ne.current:Z:ee,se=!(Y&&!v(te))&&(X&&!v(l)?l:!O().isPaused()&&(s?!v(ee)&&c:v(ee)||c)),ie=!!(C&&t&&X&&se),le=v(Q.isValidating)?ie:Q.isValidating,ce=v(Q.isLoading)?ie:Q.isLoading,ue=(0,r.useCallback)((async e=>{const t=j.current;if(!C||!t||E.current||O().isPaused())return!1;let r,a,s=!0;const i=e||{},l=!b[C]||!i.dedupe,c=()=>F?!E.current&&C===L.current&&w.current:C===L.current,u={isValidating:!1,isLoading:!1},p=()=>{I(u)},d=()=>{const e=b[C];e&&e[1]===a&&delete b[C]},h={isValidating:!0};v(M().data)&&(h.isLoading=!0);try{if(l&&(I(h),n.loadingTimeout&&v(M().data)&&setTimeout((()=>{s&&c()&&O().onLoadingSlow(C,n)}),n.loadingTimeout),b[C]=[t(N),U()]),[r,a]=b[C],r=await r,l&&setTimeout(d,n.dedupingInterval),!b[C]||b[C][1]!==a)return l&&c()&&O().onDiscarded(C),!1;u.error=y;const e=g[C];if(!v(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return p(),l&&c()&&O().onDiscarded(C),!1;const i=M().data;u.data=o(i,r)?i:r,l&&c()&&O().onSuccess(r,C,n)}catch(e){d();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,C,t),(!0===n||_(n)&&n(e))&&B()&&t.onErrorRetry(e,C,t,(e=>{const t=m[C];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return s=!1,p(),!0}),[C,a]),pe=(0,r.useCallback)(((...e)=>q(a,L.current,...e)),[]);if(D((()=>{j.current=t,R.current=n,v(Z)||(ne.current=Z)})),D((()=>{if(!C)return;const e=ue.bind(y,oe);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(C,m,((n,r={})=>{if(0==n){const n=Date.now();O().revalidateOnFocus&&n>t&&B()&&(t=n+O().focusThrottleInterval,e())}else if(1==n)O().revalidateOnReconnect&&B()&&e();else{if(2==n)return ue();if(3==n)return ue(r)}}));return E.current=!1,L.current=C,w.current=!0,I({_k:N}),se&&(v(ee)||H?e():(e=>{T&&typeof window.requestAnimationFrame!=P?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{E.current=!0,n()}}),[C]),D((()=>{let e;function t(){const t=_(u)?u(M().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){M().error||!p&&!O().isVisible()||!d&&!O().isOnline()?t():ue(oe).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,d,C]),(0,r.useDebugValue)(re),s&&v(ee)&&C){if(!F&&H)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,R.current=n,E.current=!1;const e=k[C];if(!v(e)){const t=pe(e);ae(t)}if(!v(te))throw te;{const e=ue(oe);v(re)||(e.status="fulfilled",e.value=!0),ae(e)}}return{mutate:pe,get data(){return W.data=!0,re},get error(){return W.error=!0,te},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ce}}},function(...e){const t=S(X,(0,r.useContext)(Z)),[n,a,o]=ne(e),s=Y(t,o);let i=ie;const{use:l}=s,c=(l||[]).concat(re);for(let e=c.length;e--;)i=c[e](i);return i(n,a||s.fetcher||null,s)});var ie;const le=((e,t)=>(...n)=>{const[r,a,o]=ne(n),s=(o.use||[]).concat(t);return e(r,a,{...o,use:s})})(se,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))),ce=e=>g()({path:e}),ue=()=>{const{data:e}=le("/code-block-pro/v1/can-save-html",ce);return e},pe=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,o={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,a,o),o};var de=n(798);const{useDebugValue:he}=r,{useSyncExternalStoreWithSelector:me}=de;let ge=!1;const fe=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?pe(e):pe)(e):e,n=(e,n)=>function(e,t=e.getState,n){n&&!ge&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ge=!0);const r=me(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return he(r),r}(t,e,n);return Object.assign(n,t),n},be=e=>e?fe(e):fe,ye=new Map,ke=e=>{const t=ye.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},ve=(e,t={})=>(n,r,a)=>{const{enabled:o,anonymousActionType:s,store:i,...l}=t;let c;try{c=(null==o||o)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,a);const{connection:u,...p}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=ye.get(n.name);if(r)return{type:"tracked",store:e,...r};const a={connection:t.connect(n),stores:{}};return ye.set(n.name,a),{type:"tracked",store:e,...a}})(i,c,l);let d=!0;a.setState=(e,t,o)=>{const c=n(e,t);if(!d)return c;const p=void 0===o?{type:s||"anonymous"}:"string"==typeof o?{type:o}:o;return void 0===i?(null==u||u.send(p,r()),c):(null==u||u.send({...p,type:`${i}/${p.type}`},{...ke(l.name),[i]:a.getState()}),c)};const h=(...e)=>{const t=d;d=!1,n(...e),d=t},m=e(a.setState,r,a);if("untracked"===p.type?null==u||u.init(m):(p.stores[p.store]=a,null==u||u.init(Object.fromEntries(Object.entries(p.stores).map((([e,t])=>[e,e===p.store?m:t.getState()]))))),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):_e(e.payload,(e=>{if("__setState"!==e.type)a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e);else{if(void 0===i)return void h(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[i];if(null==t)return;JSON.stringify(a.getState())!==JSON.stringify(t)&&h(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(m),void 0===i?null==u?void 0:u.init(a.getState()):null==u?void 0:u.init(ke(l.name));case"COMMIT":return void 0===i?void(null==u||u.init(a.getState())):null==u?void 0:u.init(ke(l.name));case"ROLLBACK":return _e(e.state,(e=>{if(void 0===i)return h(e),void(null==u||u.init(a.getState()));h(e[i]),null==u||u.init(ke(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return _e(e.state,(e=>{void 0!==i?JSON.stringify(a.getState())!==JSON.stringify(e[i])&&h(e[i]):h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(void 0===i?r:r[i]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return d=!d}return}})),m},_e=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function Se(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(a):a(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const Ce=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Ce(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Ce(t)(e)}}},Ne=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,l=new Set;let c;try{c=o.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=Ce(o.serialize),p=()=>{const e=o.partialize({...r()});let t;const n=u({state:e,version:o.version}).then((e=>c.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=a.setState;a.setState=(e,t)=>{d(e,t),p()};const h=e(((...e)=>{n(...e),p()}),r,a);let m;const g=()=>{var e;if(!c)return;s=!1,i.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return Ce(c.getItem.bind(c))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=o.merge(e,null!=(t=r())?t:h),n(m,!0),p()})).then((()=>{null==t||t(m,void 0),s=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return a.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},g(),m||h})(e,t)):((e,t)=>(n,r,a)=>{let o={storage:Se((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,l=new Set;let c=o.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=()=>{const e=o.partialize({...r()});return c.setItem(o.name,{state:e,version:o.version})},p=a.setState;a.setState=(e,t)=>{p(e,t),u()};const d=e(((...e)=>{n(...e),u()}),r,a);let h;const m=()=>{var e,t;if(!c)return;s=!1,i.forEach((e=>{var t;return e(null!=(t=r())?t:d)}));const a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:d))||void 0;return Ce(c.getItem.bind(c))(o.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=o.merge(e,null!=(t=r())?t:d),n(h,!0),u()})).then((()=>{null==a||a(h,void 0),h=r(),s=!0,l.forEach((e=>e(h)))})).catch((e=>{null==a||a(void 0,e)}))};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||m(),h||d})(e,t),we="/code-block-pro/v1/settings",xe=async e=>{const t=await g()({path:we});return t?.[e]},Ee={previousTheme:"nord",previousLineHeight:"1.25rem",previousFontFamily:"Code-Pro-JetBrains-Mono",previousFontSize:".875rem",previousHeaderType:"headlights",previousFooterType:"none",previousClampFonts:!1,previousDisablePadding:!1,previousLineNumbers:!1,previousHighlightingHover:!1,previousCopyButton:!0,previousCopyButtonType:"heroicons",previousCopyButtonString:(0,s.__)("Copy","code-block-pro"),previusCopyButtonStringCopied:(0,s.__)("Copied","code-block-pro"),previousTabSize:2,previousUseTabs:!1,previousSeeMoreType:"",previousSeeMoreString:"",previousSeeMoreTransition:!1},Le={getItem:async e=>{var t;const n=await xe(e);return JSON.stringify({version:null!==(t=n?.version)&&void 0!==t?t:0,state:n||Ee})},setItem:async(e,t)=>{const{state:n,version:r}=JSON.parse(t),a={[e]:Object.assign(await xe(e)||Ee,n,r)};await g()({path:we,method:"POST",data:a})},removeItem:async e=>{const t={[e]:null};await g()({path:we,method:"POST",data:t})}},Pe=be()(Ne(ve((e=>({...Ee,updateThemeHistory(t){e((e=>Object.keys(t).reduce(((n,r)=>{const a=r,o=`previous${r.charAt(0).toUpperCase()+r.slice(1)}`;return Object.keys(e).includes(o)?{...n,[o]:t[a]}:n}),{...e})))}})),{name:"Code Block Pro Theme Settings"}),{name:"code_block_pro_settings",storage:Se((()=>Le))}));var Te=n(930),je=n(190),Ae="/";const Re=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var Oe,Be,Me,Ie,Fe=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(Fe||{});class He{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=He.getLanguageId(e),n=He.getTokenType(e),r=He.getFontStyle(e),a=He.getForeground(e),o=He.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:r,foreground:a,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,a,o){let s=He.getLanguageId(e),i=He.getTokenType(e),l=He.getFontStyle(e),c=He.getForeground(e),u=He.getBackground(e);return 0!==t&&(s=t),0!==n&&(i=8===n?0:n),-1!==r&&(l=r),0!==a&&(c=a),0!==o&&(u=o),(s<<0|i<<8|l<<11|(He.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function De(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Ge(e){return e.startsWith("./")?e.slice(2):e}function $e(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function ze(...e){return e.map(De).map(Ge).join("/")}function We(e){return 32===e||9===e}function Ue(e){return 10===e||13===e}function qe(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(Oe||(Oe={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(Be||(Be={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(Me||(Me={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(Ie||(Ie={}));const Ve=function(e,t=[],n=Be.DEFAULT){let r=null,a=[];const o=[];function s(e){Array.isArray(a)?a.push(e):null!==r&&(a[r]=e)}return function(e,t,n=Be.DEFAULT){const r=function(e,t=!1){const n=e.length;let r=0,a="",o=0,s=16,i=0,l=0,c=0,u=0,p=0;function d(t,n){let a=0,o=0;for(;a<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,a++}return a<t&&(o=-1),o}function h(){if(a="",p=0,o=r,l=i,u=c,r>=n)return o=n,s=17;let t=e.charCodeAt(r);if(We(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(We(t));return s=15}if(Ue(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),i++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,a=function(){let t="",a=r;for(;;){if(r>=n){t+=e.substring(a,r),p=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(a,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Ue(o)){t+=e.substring(a,r),p=2;break}p=6}r++}else{if(t+=e.substring(a,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=d(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}a=r}}return t}(),s=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!Ue(e.charCodeAt(r));)r++;return a=e.substring(l,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,Ue(t)&&(13===t&&10===e.charCodeAt(r)&&r++,i++,c=r)}return o||(r++,p=1),a=e.substring(l,r),s=13}return a+=String.fromCharCode(t),r++,s=16;case 45:if(a+=String.fromCharCode(t),r++,r===n||!qe(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&qe(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&qe(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&qe(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&qe(e.charCodeAt(r))){for(r++;r<e.length&&qe(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(a=e.substring(o,r),a){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return a+=String.fromCharCode(t),r++,s=16}}function m(e){if(We(e)||Ue(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,a="",o=0,s=16,p=0},getPosition:()=>r,scan:t?function(){let e;do{e=h()}while(e>=12&&e<=15);return e}:h,getToken:()=>s,getTokenValue:()=>a,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-u,getTokenError:()=>p}}(e,!1),a=[];function o(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>a.slice())):()=>!0}function i(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>a.slice())):()=>!0}const c=s(t.onObjectBegin),u=l(t.onObjectProperty),p=o(t.onObjectEnd),d=s(t.onArrayBegin),h=o(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=o(t.onComment),b=i(t.onError),y=n&&n.disallowComments,k=n&&n.allowTrailingComma;function v(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:y||_(11);break;case 2:_(12);break;case 6:_(16)}switch(e){case 12:case 13:y?_(10):f();break;case 16:_(1);break;case 15:case 14:break;default:return e}}}function _(e,t=[],n=[]){if(b(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){v();break}if(-1!==n.indexOf(e))break;e=v()}}}function S(e){const t=r.getTokenValue();return e?m(t):(u(t),a.push(t)),v(),!0}function C(){switch(r.getToken()){case 3:return function(){d(),v();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||_(4,[],[]),g(","),v(),4===r.getToken()&&k)break}else t&&_(6,[],[]);e?(a.push(0),e=!1):a[a.length-1]++,C()||_(4,[],[4,5]),t=!0}return h(),e||a.pop(),4!==r.getToken()?_(8,[4],[]):v(),!0}();case 1:return function(){c(),v();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||_(4,[],[]),g(","),v(),2===r.getToken()&&k)break}else e&&_(6,[],[]);(10!==r.getToken()?(_(3,[],[2,5]),!1):(S(!1),6===r.getToken()?(g(":"),v(),C()||_(4,[],[2,5])):_(5,[],[2,5]),a.pop(),!0))||_(4,[],[2,5]),e=!0}return p(),2!==r.getToken()?_(7,[2],[]):v(),!0}();case 10:return S(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(_(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return v(),!0}()}}v(),17===r.getToken()?!!n.allowEmptyContent||_(4,[],[]):C()?17!==r.getToken()&&_(9,[],[]):_(4,[],[])}(e,{onObjectBegin:()=>{const e={};s(e),o.push(a),a=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{a=o.pop()},onArrayBegin:()=>{const e=[];s(e),o.push(a),a=e,r=null},onArrayEnd:()=>{a=o.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),a[0]};var Je;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(Je||(Je={}));const Ke="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,Qe="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,Xe="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,Ye=Ke||!Qe&&!Xe;let Ze="",et="";let tt=null;function nt(e){if(Ye)return`${Ze}${e}`;{const t=n(318);return t.isAbsolute(e)?e:t.resolve(Ae,"..",e)}}async function rt(e){const t=[],r=await async function(e){const t=nt(e);if(Ye)return await fetch(t).then((e=>e.text()));{const e=n(799);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(r)}catch(e){if(a=Ve(r,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function at(e){const t=ot(await rt(e));if(t.include){const n=await at(ze(...$e(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function ot(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...lt(e)};var r;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(r=n).settings||(r.settings=[]),r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}}),n}const st={light:"#333333",dark:"#bbbbbb"},it={light:"#fffffe",dark:"#1e1e1e"};function lt(e){let t,n,r=e.settings?e.settings:e.tokenColors;const a=r?r.find((e=>!e.name&&!e.scope)):void 0;return a?.settings?.foreground&&(t=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?st.light:st.dark),n||(n="light"===e.type?it.light:it.dark),{fg:t,bg:n}}class ct{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await rt(e)}(Re.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function ut(e,t){let n=[];for(let r=0,a=t.length;r<a;r++){let a=t.slice(0,r),o=t[r];n[r]={scopeName:o,themeMatches:ht(e,o,a)}}return n}function pt(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function dt(e,t,n,r){if(!pt(e,n))return!1;let a=t.length-1,o=r.length-1;for(;a>=0&&o>=0;)pt(t[a],r[o])&&a--,o--;return-1===a}function ht(e,t,n){let r=[],a=0;for(let o=0,s=e.settings.length;o<s;o++){let s,i=e.settings[o];if("string"==typeof i.scope)s=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;s=i.scope}for(let e=0,o=s.length;e<o;e++){let l=s[e].split(/ /);dt(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[a++]=i,e=o)}}return r}var mt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],gt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function ft(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function bt(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function yt(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)gt[r]&&t.push({type:"setDecoration",value:gt[r]});else if(r<=29){const e=gt[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:mt[r-30]}});else if(38===r){const n=bt(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:mt[r-40]}});else if(48===r){const n=bt(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:mt[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:mt[r-100+8]}})}return t}var kt={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 vt(e=kt){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return a=e.index,function(){if(r)return r;r=[];for(let e=0;e<mt.length;e++)r.push(t(mt[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let a=0;a<6;a++)for(let o=0;o<6;o++)r.push(n([e[t],e[a],e[o]]));let a=8;for(let e=0;e<24;e++,a+=10)r.push(n([a,a,a]));return r}()[a]}var a}}}const _t={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function St(e,t={}){const n=t.bg||"#fff",r=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),a=t.elements||{};function o(e="",t={},n){const r=a[e]||_t[e];return r?(n=n.filter(Boolean),r({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((n,a)=>{const s=a+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(r.get(s)??[]).join(" "),lines:e,line:n,index:a},n.map(((e,r)=>{const a=[`color: ${e.color||t.fg}`];return e.fontStyle&Fe.Italic&&a.push("font-style: italic"),e.fontStyle&Fe.Bold&&a.push("font-weight: bold"),e.fontStyle&Fe.Underline&&a.push("text-decoration: underline"),o("token",{style:a.join("; "),tokens:n,token:e,index:r},[(s=e.content,s.replace(/[&<>"']/g,(e=>Ct[e])))]);var s})))})))])}const Ct={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Nt extends je.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Re.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await at(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=ot(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function wt(e){return"string"==typeof e?Re.find((t=>t.id===e||t.aliases?.includes(e))):e}async function xt(e){const{_languages:t,_themes:r,_wasmPath:a}=function(e){let t=Re,n=e.themes||[],r=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(wt)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:r}}(e),o=new ct(async function(e){if(!tt){let t;if(Ye)t="string"==typeof et?(0,Te.loadWASM)({data:await fetch(nt(ze(...$e(e),"onig.wasm")))}):(0,Te.loadWASM)({data:et});else{const e=n(318).join(930,"../onig.wasm"),r=n(799).readFileSync(e).buffer;t=(0,Te.loadWASM)(r)}tt=t.then((()=>({createOnigScanner:e=>(0,Te.createOnigScanner)(e),createOnigString:e=>(0,Te.createOnigString)(e)})))}return tt}(a),"vscode-oniguruma"),s=new Nt(o);e.paths?.themes&&(s.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await s.loadThemes(r))[0];let l;await s.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<mt.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,r=mt[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${r})`}return e}();function u(e){const t=e?s.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(s.setTheme(t),l=t);const n=s.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,r={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:a}=function(e){const t=s.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,r,a){let o=n.split(/\r\n|\r|\n/),s=je.INITIAL,i=[],l=[];for(let n=0,c=o.length;n<c;n++){let c,u,p,d=o[n];if(""===d){i=[],l.push([]);continue}a.includeExplanation&&(c=r.tokenizeLine(d,s),u=c.tokens,p=0);let h=r.tokenizeLine2(d,s),m=h.tokens.length/2;for(let n=0;n<m;n++){let r=h.tokens[2*n],o=n+1<m?h.tokens[2*n+2]:d.length;if(r===o)continue;let s=h.tokens[2*n+1],l=t[He.getForeground(s)],c=He.getFontStyle(s),g=[];if(a.includeExplanation){let t=0;for(;r+t<o;){let n=u[p],r=d.substring(n.startIndex,n.endIndex);t+=r.length,g.push({content:r,scopes:ut(e,n.scopes)}),p++}}i.push({content:d.substring(r,o),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],s=h.ruleStack}return l}(o,i,e,a,r)}function d(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),r=vt(Object.fromEntries(mt.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),a=function(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=ft(r,o),i=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(i.length>0&&a.push({value:i,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const r=yt(s.sequence);for(const a of r)"resetAll"===a.type?(e=null,t=null,n.clear()):"resetForegroundColor"===a.type?e=null:"resetBackgroundColor"===a.type?t=null:"resetDecoration"===a.type&&n.delete(a.value);for(const a of r)"setForegroundColor"===a.type?e=a.value:"setBackgroundColor"===a.type?t=a.value:"setDecoration"===a.type&&n.add(a.value)}o=s.position}while(o<r.length);return a}}}();return n.map((t=>a.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let a=Fe.None;return t.decorations.has("bold")&&(a|=Fe.Bold),t.decorations.has("italic")&&(a|=Fe.Italic),t.decorations.has("underline")&&(a|=Fe.Underline),{content:t.value,color:n,fontStyle:a}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let r;r="object"==typeof t?t:{lang:t,theme:n};const a=p(e,r.lang,r.theme,{includeExplanation:!1}),{_theme:o}=u(r.theme);return St(a,{fg:o.fg,bg:o.bg,lineOptions:r?.lineOptions,themeName:o.name})},ansiToThemedTokens:d,ansiToHtml:function(e,t){const n=d(e,t?.theme),{_theme:r}=u(t?.theme);return St(n,{fg:r.fg,bg:r.bg,lineOptions:t?.lineOptions,themeName:r.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await s.loadTheme(e)},loadLanguage:async function(e){const t=wt(e);o.addLanguage(t),await s.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return s.getLoadedThemes()},getLoadedLanguages:function(){return s.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}const Et=JSON.parse('{"abap":"ABAP","actionscript-3":"ActionScript 3","ada":"Ada","ansi":"ANSI","apache":"Apache","apex":"Apex","apl":"APL","applescript":"AppleScript","ara":"Ara","asm":"ASM","astro":"Astro","awk":"Awk","ballerina":"Ballerina","bat":"BAT (Batchfile)","batch":"BAT (Batchfile)","beancount":"Ledger (Beancount)","berry":"Berry","be":"Berry","bibtex":"BibTeX","bicep":"BICEP","blade":"Blade","c":"C","cadence":"Cadence","cdc":"Cadence","clarity":"Clarity","clj":"Clojure","clojure":"Clojure","cmake":"CMake","cobol":"COBOL","codeql":"CodeQL","console":"Console","shellsession":"ShellSession","cypher":"Cypher","cql":"Cypher","ql":"CodeQL","coffee":"CoffeeScript","cpp":"C++","crystal":"Crystal","csharp":"C#","c#":"C#","cs":"C#","css":"CSS","cue":"CUE","d":"D","dart":"Dart","dax":"DAX","diff":"Diff","docker":"Dockerfile","dockerfile":"Dockerfile","dream-maker":"DreamMaker","elixir":"Elixir","elm":"Elm","erb":"ERB","erlang":"Erlang","erl":"Erlang","fish":"Fish","fsharp":"F#","f#":"F#","fs":"F#","gdresource":"GDResource","gdscript":"GDScript","gdshader":"GDShader","gherkin":"Gherkin","git-commit":"Git Commit","git-rebase":"Git Rebase","glsl":"GLSL","glimmer-js":"Glimmer (JS)","gjs":"Glimmer (JS)","glimmer-ts":"Glimmer (TS)","gts":"Glimmer (TS)","gnuplot":"Gnuplot","go":"Go","graphql":"GraphQL","groovy":"Groovy","hack":"Hack","haml":"HAML","handlebars":"Handlebars","hbs":"Handlebars","haskell":"Haskell","hs":"Haskell","hcl":"HCL","hjson":"Hjson","hlsl":"HLSL","html":"HTML","http":"HTTP","imba":"Imba","ini":"INI","properties":"INI","java":"Java","javascript":"JavaScript","js":"JavaScript","jinja-html":"Jinja HTML","jison":"Jison","json":"JSON","json5":"JSON5","jsonc":"JSONC","jsonl":"JSONL","jsonnet":"JSONnet","jssm":"JSSM","fsl":"JSSM","jsx":"JSX","julia":"Julia","kotlin":"Kotlin","kusto":"Kusto","kql":"Kusto","latex":"LaTeX","less":"LESS","liquid":"Liquid","lisp":"Lisp","logo":"Logo","lua":"Lua","make":"Makefile","makefile":"Makefile","markdown":"Markdown","md":"Markdown","marko":"Marko","matlab":"MATLAB","mdx":"MDX","mermaid":"Mermaid","mojo":"Mojo","narrat":"Narrat","nar":"Narrat","nextflow":"Nextflow","nf":"Nextflow","nginx":"Nginx","nim":"Nim","nix":"Nix","objective-c":"Objective-C","objc":"Objective-C","objective-cpp":"Objective-C++","ocaml":"OCaml","pascal":"Pascal","perl":"Perl","php":"PHP","plaintext":"Plaintext","plsql":"PLSQL","postcss":"PostCSS","powerquery":"Power Query","powershell":"PowerShell","ps":"PowerShell","ps1":"PowerShell","prisma":"Prisma","prolog":"Prolog","proto":"Protocol Buffers","pug":"Pug","jade":"Pug","puppet":"Puppet","purescript":"PureScript","python":"Python","py":"Python","r":"R","raku":"Raku","perl6":"Raku","razor":"Razor","reg":"Windows Registry","rel":"Rel","riscv":"RISC-V","rst":"RST","ruby":"Ruby","rb":"Ruby","rust":"Rust","rs":"Rust","sas":"SAS","sass":"Sass","scala":"Scala","scheme":"Scheme","scss":"SCSS","shaderlab":"ShaderLab","shader":"Shader","shellscript":"ShellScript","splunk":"Splunk SPL","bash":"Bash","shell":"ShellScript","sh":"ShellScript","zsh":"Zsh","smalltalk":"Smalltalk","solidity":"Solidity","sparql":"SPARQL","sql":"SQL","ssh-config":"SSH Config","stata":"Stata","stylus":"Stylus","styl":"Stylus","svelte":"Svelte","swift":"Swift","system-verilog":"SystemVerilog","tasl":"TASL","tcl":"TCL","tex":"TeX","toml":"TOML","tsx":"TSX","turtle":"Turtle","twig":"Twig","typescript":"TypeScript","ts":"TypeScript","v":"V","vb":"VB","cmd":"VB","verilog":"Verilog","vhdl":"VHDL","viml":"VimL","vim":"VimL","vimscript":"VimL","vue-html":"Vue HTML","vue":"Vue","vyper":"Vyper","vy":"Vyper","wasm":"WASM","wenyan":"Wenyan","文言":"Wenyan","wgsl":"WGSL","wolfram":"Wolfram","xml":"XML","xsl":"XSL","yaml":"YAML","yml":"YAML","zig":"Zig","zenscript":"ZenScript"}'),Lt={"actionscript-3":["as3"],bat:["batch"],berry:["be"],cadence:["cdc"],clojure:["clj"],codeql:["ql"],cpp:["arduino"],csharp:["c#","cs"],cypher:["cql"],docker:["dockerfile"],erlang:["erl"],fsharp:["f#","fs"],gjs:["glimmer-js"],gts:["glimmer-ts"],haskell:["hs"],handlebars:["hbs"],"html-ruby-erb":["erb"],ini:["properties"],java:["javafx"],javascript:["jscript","js"],jssm:["fsl"],kusto:["kql"],make:["makefile"],markdown:["md"],matlab:["matlabkey"],narrat:["nar"],nextflow:["nf"],"objective-c":["objc"],pascal:["delphi"],powershell:["ps","ps1"],pug:["jade"],python:["py"],raku:["perl6"],ruby:["rb"],rust:["rs"],shaderlab:["shader"],shellscript:["shell","sh","git-commit","git-rebase"],sellsession:["console"],stylus:["styl"],typescript:["ts"],vb:["cmd"],viml:["vim","vimscript"],vyper:["vy"],wenyan:["文言"],xml:["coldfusion"],yaml:["yml"]},Pt=e=>{if(e)return Object.keys(Lt).find((t=>Lt[t].includes(e)))},Tt=(e=>{const t=Object.values(Lt).flat();return Object.keys(e).reduce(((n,r)=>(t.includes(r)||(n[r]=e[r]),n)),{})})(Et),jt=e=>"ansi"===e?"shellscript":e,At=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;const r=(0,o.applyFilters)("blocks.codeBlockPro.theme",e),a=u?.[r]?.alias;return xt({langs:"plaintext"===t?[]:[jt(t)],theme:null!=a?a:r})};let Rt=!1;const Ot=({theme:e,lang:t,ready:n=!0})=>{const[r,a]=(0,p.useState)(!1),s=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);if(!Rt){Rt=!0;const e=window.codeBlockPro?.pluginUrl+"build/shiki/";i=(0,o.applyFilters)("blocks.codeBlockPro.assetDir",e),Ze=i.endsWith("/")?i:i+"/"}var i;s[e]?.custom&&(e="css-variables");const{data:l,error:c}=le({theme:e,lang:t,ready:n&&r},At);return(0,p.useEffect)((()=>{const e=window.codeBlockPro?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{et=e,a(!0)}))}),[]),{highlighter:l,error:c,loading:!l&&!c||!r}},Bt=be()(Ne(ve(((e,t)=>({previousLanguage:"javascript",setPreviousLanguage(n){e({previousLanguage:n}),t().addRecentLanguage(n)},recentLanguages:[],addRecentLanguage(t){e((e=>{var n;return e.recentLanguages.includes(t)?e:{recentLanguages:[...null!==(n=e.recentLanguages?.slice(-2))&&void 0!==n?n:[],t]}}))}})),{name:"Code Block Pro Language"}),{name:"code-block-pro-last-language"})),Mt=(e,t)=>{try{return JSON.parse(`[${null!=e?e:""}]`).map((e=>{const n=isNaN(Number(t))?0:Math.max(Number(t)-1,0);return"number"==typeof e?e-n:Array.from({length:e[1]-e[0]+1},((t,r)=>e[0]+r-n))})).filter((e=>!Array.isArray(e)||e?.length>0)).flat().filter((e=>e>=0))}catch(e){return[]}},It=e=>{const t=JSON.parse(`[${null!=e?e:""}]`).filter((e=>Array.isArray(e))),n=t.some((e=>e.some((e=>Array.isArray(e)))));if(n)throw new Error("Nested arrays not allowed");if(t.some((e=>e[0]>=e[1])))throw new Error("Nested arrays must be in order");return!0},Ft=window.wp.escapeHtml,Ht=window.wp.htmlEntities,Dt=(e,{useDecodeURI:t})=>{if(t)try{return encodeURIComponent(e)}catch(t){return e}return(0,Ft.escapeHTML)(e)},Gt=(e,{useDecodeURI:t})=>{if(t)try{return decodeURIComponent(e)}catch(t){return e}return(0,Ht.decodeEntities)(e)};var $t={grad:.9,turn:360,rad:360/(2*Math.PI)},zt=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Wt=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Ut=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},qt=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Vt=function(e){return{r:Ut(e.r,0,255),g:Ut(e.g,0,255),b:Ut(e.b,0,255),a:Ut(e.a)}},Jt=function(e){return{r:Wt(e.r),g:Wt(e.g),b:Wt(e.b),a:Wt(e.a,3)}},Kt=/^#([0-9a-f]{3,8})$/i,Qt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Xt=function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),i=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(i<0?i+6:i),s:o?s/o*100:0,v:o/255*100,a}},Yt=function(e){var t=e.h,n=e.s,r=e.v,a=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),i=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:255*[r,i,s,s,l,r][c],g:255*[l,r,r,i,s,s][c],b:255*[s,s,l,r,r,i][c],a}},Zt=function(e){return{h:qt(e.h),s:Ut(e.s,0,100),l:Ut(e.l,0,100),a:Ut(e.a)}},en=function(e){return{h:Wt(e.h),s:Wt(e.s),l:Wt(e.l),a:Wt(e.a,3)}},tn=function(e){return Yt((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},nn=function(e){return{h:(t=Xt(e)).h,s:(a=(200-(n=t.s))*(r=t.v)/100)>0&&a<200?n*r/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,r,a},rn=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,an=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,on=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sn=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ln={string:[[function(e){var t=Kt.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Wt(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Wt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=on.exec(e)||sn.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Vt({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=rn.exec(e)||an.exec(e);if(!t)return null;var n,r,a=Zt({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*($t[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return tn(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=void 0===a?1:a;return zt(t)&&zt(n)&&zt(r)?Vt({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,o=void 0===a?1:a;if(!zt(t)||!zt(n)||!zt(r))return null;var s=Zt({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return tn(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,o=void 0===a?1:a;if(!zt(t)||!zt(n)||!zt(r))return null;var s=function(e){return{h:qt(e.h),s:Ut(e.s,0,100),v:Ut(e.v,0,100),a:Ut(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return Yt(s)},"hsv"]]},cn=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},un=function(e,t){var n=nn(e);return{h:n.h,s:Ut(n.s+100*t,0,100),l:n.l,a:n.a}},pn=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},dn=function(e,t){var n=nn(e);return{h:n.h,s:n.s,l:Ut(n.l+100*t,0,100),a:n.a}},hn=function(){function e(e){this.parsed=function(e){return"string"==typeof e?cn(e.trim(),ln.string):"object"==typeof e&&null!==e?cn(e,ln.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Wt(pn(this.rgba),2)},e.prototype.isDark=function(){return pn(this.rgba)<.5},e.prototype.isLight=function(){return pn(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Jt(this.rgba)).r,n=e.g,r=e.b,o=(a=e.a)<1?Qt(Wt(255*a)):"","#"+Qt(t)+Qt(n)+Qt(r)+o;var e,t,n,r,a,o},e.prototype.toRgb=function(){return Jt(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Jt(this.rgba)).r,n=e.g,r=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+r+", "+a+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,a},e.prototype.toHsl=function(){return en(nn(this.rgba))},e.prototype.toHslString=function(){return t=(e=en(nn(this.rgba))).h,n=e.s,r=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+a+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,a},e.prototype.toHsv=function(){return e=Xt(this.rgba),{h:Wt(e.h),s:Wt(e.s),v:Wt(e.v),a:Wt(e.a,3)};var e},e.prototype.invert=function(){return mn({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),mn(un(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),mn(un(this.rgba,-e))},e.prototype.grayscale=function(){return mn(un(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),mn(dn(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),mn(dn(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?mn({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Wt(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=nn(this.rgba);return"number"==typeof e?mn({h:e,s:t.s,l:t.l,a:t.a}):Wt(t.h)},e.prototype.isEqual=function(e){return this.toHex()===mn(e).toHex()},e}(),mn=function(e){return e instanceof hn?e:new hn(e)},gn=[];!function(e){e.forEach((function(e){gn.indexOf(e)<0&&(e(hn,ln),gn.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var a in n)r[n[a]]=a;var o={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,s,i=r[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!o.length)for(var p in n)o[p]=new e(n[p]).toRgb();for(var d in n){var h=(a=l,s=o[d],Math.pow(a.r-s.r,2)+Math.pow(a.g-s.g,2)+Math.pow(a.b-s.b,2));h<c&&(c=h,u=d)}return u}},t.string.push([function(t){var r=t.toLowerCase(),a="transparent"===r?"#0000":n[r];return a?new e(a).toRgb():null},"name"])}]);const fn=(e,t)=>{const n=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);if(n?.[t.theme]?.styles?.["line-background"])return n?.[t?.theme]?.styles?.["line-background"];if(e.startsWith("var")){const t=document.documentElement,n=getComputedStyle(t).getPropertyValue(e.replace(/^var\((--[\w-]+)\)$/,"$1")).trim()||getComputedStyle(t).getPropertyValue("--cbp-text");return mn(n).saturate(.5).alpha(.2).toRgbString()}return mn(e).saturate(.5).alpha(.2).toRgbString()},bn=e=>{const t=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);return t?.[e.theme]?.styles?.["line-number-color"]?t?.[e?.theme]?.styles?.["line-number-color"]:e.textColor},yn=e=>{const t=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);return e?.theme&&t?.[e?.theme]?.styles?.["color-background"]?t?.[e?.theme]?.styles?.["color-background"]:e.bgColor},kn=e=>{const t=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);return e?.theme&&t?.[e?.theme]?.styles?.["color-text"]?t?.[e?.theme]?.styles?.["color-text"]:e.textColor},vn=e=>{if(e)return[e.split(".")[0],"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","monospace"].join(",")},Sn=(e,t)=>{if(e)return t&&parseFloat(e)?`clamp(${16*parseFloat(e)}px, ${e}, ${24*parseFloat(e)}px)`:e},Cn=window.wp.components,Nn=()=>(0,r.createElement)(Cn.Card,null,(0,r.createElement)(Cn.CardBody,null,(0,r.createElement)(Cn.Tip,null,(0,r.createElement)("span",{className:"text-sm",dangerouslySetInnerHTML:{__html:(0,s.sprintf)((0,s.__)("Read-only mode: The %s capability is required.","code-block-pro"),"<code>unfiltered_html</code>")}})))),wn=({attributes:e,setAttributes:t})=>{const{language:n,theme:a,code:i="",bgColor:l,textColor:c,disablePadding:u,lineNumbers:d,startingLineNumber:m,footerType:g,fontSize:f,lineBlurs:b,lineHighlights:y,enableBlurring:k,enableHighlighting:v,seeMoreAfterLine:_,seeMoreTransition:S,enableMaxHeight:C,editorHeight:N,useDecodeURI:w,tabSize:x,useTabs:E}=e,L=(0,p.useRef)(null),P=ue(),[T,j]=(0,p.useState)(0),A=(0,p.useRef)(null),{previousLanguage:R}=Bt(),{highlighter:O,error:B,loading:M}=Ot({theme:a,lang:null!=n?n:R}),I=g&&"none"!==g;(({attributes:e,setAttributes:t})=>{const{theme:n,fontSize:r,fontFamily:a,lineHeight:o,copyButton:s,copyButtonType:i,copyButtonString:l,copyButtonStringCopied:c,headerType:u,footerType:d,clampFonts:h,disablePadding:m,lineNumbers:g,highlightingHover:f,tabSize:b,useTabs:y,seeMoreType:k,seeMoreString:v,seeMoreTransition:_}=e,{previousTheme:S,previousFontSize:C,previousFontFamily:N,previousLineHeight:w,previousHeaderType:x,previousFooterType:E,previousClampFonts:L,previousDisablePadding:P,previousLineNumbers:T,previousHighlightingHover:j,previousCopyButton:A,previousCopyButtonType:R,previousCopyButtonString:O,previousCopyButtonStringCopied:B,previousTabSize:M,previousUseTabs:I,previousSeeMoreType:F,previousSeeMoreString:H,previousSeeMoreTransition:D}=Pe(),G=(()=>{const[e,t]=(0,p.useState)(Pe.persist.hasHydrated);return(0,p.useEffect)((()=>{const e=Pe.persist.onFinishHydration((()=>t(!0)));return()=>{e()}}),[]),e})(),$=(0,p.useRef)(!1);(0,p.useEffect)((()=>{$.current||void 0===s&&A&&t({copyButton:A})}),[A,s,t]),(0,p.useEffect)((()=>{$.current||i||t({copyButtonType:R})}),[R,i,t]),(0,p.useEffect)((()=>{$.current||l||void 0===l||t({copyButtonString:O})}),[O,l,t]),(0,p.useEffect)((()=>{$.current||c||void 0===c||t({copyButtonStringCopied:B})}),[B,c,t]),(0,p.useEffect)((()=>{$.current||n||t({theme:S})}),[S,n,t]),(0,p.useEffect)((()=>{$.current||r||t({fontSize:C})}),[C,r,t]),(0,p.useEffect)((()=>{$.current||a||""===a||t({fontFamily:N})}),[N,a,t]),(0,p.useEffect)((()=>{$.current||o||t({lineHeight:w})}),[w,o,t]),(0,p.useEffect)((()=>{$.current||u||t({headerType:x})}),[x,u,t]),(0,p.useEffect)((()=>{$.current||void 0===d&&t({footerType:E})}),[E,d,t]),(0,p.useEffect)((()=>{$.current||void 0===h&&t({clampFonts:L})}),[L,h,t]),(0,p.useEffect)((()=>{$.current||void 0===m&&t({disablePadding:P})}),[P,m,t]),(0,p.useEffect)((()=>{$.current||void 0===g&&t({lineNumbers:T})}),[T,g,t]),(0,p.useEffect)((()=>{$.current||void 0===b&&t({tabSize:M})}),[M,b,t]),(0,p.useEffect)((()=>{$.current||void 0===y&&t({useTabs:I})}),[I,y,t]),(0,p.useEffect)((()=>{$.current||void 0===k&&t({seeMoreType:F})}),[F,k,t]),(0,p.useEffect)((()=>{$.current||void 0===v&&t({seeMoreString:H})}),[H,v,t]),(0,p.useEffect)((()=>{$.current||void 0===_&&t({seeMoreTransition:D})}),[D,_,t]),(0,p.useEffect)((()=>{$.current||void 0===f&&t({highlightingHover:j})}),[j,f,t]),(0,p.useEffect)((()=>{requestAnimationFrame((()=>{$.current=!0}))}),[G])})({attributes:e,setAttributes:t});const F=(0,p.useCallback)((()=>v?Mt(y,m).map((e=>({line:e,classes:["cbp-line-highlight"]}))):[]),[v,y,m]),H=(0,p.useCallback)((()=>k?Mt(b,m).map((e=>({line:e,classes:["cbp-no-blur"]}))):[]),[k,b,m]);return(0,p.useEffect)((()=>{O&&t({bgColor:O.getBackgroundColor(),textColor:O.getForegroundColor()})}),[a,O,t,P]),(0,p.useEffect)((()=>{if(!O)return;const r=null!=n?n:R,a=jt(r),s=Gt(i,{useDecodeURI:w}),l=[...F(),...H(),C&&!Number.isNaN(_)?{line:Number(_),classes:["cbp-see-more-line",S?"cbp-see-more-transition":""]}:{}],u="ansi"===r?O.ansiToHtml(s,{lineOptions:l}):O.codeToHtml(s,{lang:a,lineOptions:l}),p=(0,o.applyFilters)("blocks.codeBlockPro.codeHTML",u,e),d=fn(c,e);t({codeHTML:p,lineHighlightColor:d})}),[O,_,S,P,c,i,C,n,t,R,e,y,b,H,F,w]),(0,p.useLayoutEffect)((()=>{var e;if(!A.current)return;if(!d)return void t({lineNumbersWidth:void 0});const n=A?.current?.querySelectorAll(".line"),r=Number(null!=m?m:0)+(null!==(e=n?.length)&&void 0!==e?e:0);if(!n?.[0])return;t({highestLineNumber:r});const{font:a}=getComputedStyle(n?.[0]);j(((e,t)=>{const n=document.createElement("canvas").getContext("2d");return n?(n.font=t||getComputedStyle(document.body).font,n.measureText(e).width):0})(String(r),a))}),[d,m,i,M,P,B,L,A,t,f,M]),M||O?M&&i||B?(0,r.createElement)("div",{className:"px-4 text-left flex items-center",style:{backgroundColor:l,color:c,minHeight:36}},null!==(D=B?.message)&&void 0!==D?D:""):void 0===P?null:(0,r.createElement)("div",{ref:A,style:{maxHeight:Number(N)?Number(N):void 0,overflow:Number(N)?"auto":void 0}},P?null:(0,r.createElement)("div",{className:"absolute inset-0 z-10"},(0,r.createElement)(Nn,null)),(0,r.createElement)(h(),{value:Gt(i,{useDecodeURI:w}),onValueChange:n=>t({code:Dt(n,e)}),autoFocus:!i,tabSize:E?1:x||2,insertSpaces:!E,padding:{top:u?0:16,bottom:u||I?0:16,left:!d&&u?0:d?u?(null!=T?T:0)+16:(null!=T?T:0)+32:16,right:0},style:{backgroundColor:l,color:c,minHeight:P?void 0:200},onKeyDown:e=>"Tab"===e.key&&A.current?.querySelector("textarea")?.focus(),highlight:e=>O?.codeToHtml(Gt(e,{useDecodeURI:w}),{lang:jt(null!=n?n:R),lineOptions:[...F(),...H()]})?.replace(/<\/?[pre|code][^>]*>/g,"")})):(0,r.createElement)("div",{className:"px-4 text-left flex items-center",style:{backgroundColor:l,color:c,minHeight:36}},(0,s.sprintf)((0,s.__)("Theme %s not found. Please select a different theme.","code-block-pro"),a));var D},xn=e=>{var t,n;const{language:a,bgColor:o,textColor:s,footerString:i,footerLink:l,footerLinkTarget:c,disablePadding:u}=e,p=mn(s),d=s?.startsWith("var(")?null!==(t=kn(e))&&void 0!==t?t:s:p.isDark()?p.lighten(.05).toHex():p.darken(.05).toHex();return(0,r.createElement)("span",{style:{display:"flex",alignItems:"flex-end",padding:u?"10px 0 0 0":"10px",width:"100%",justifyContent:"flex-end",backgroundColor:null!==(n=yn(e))&&void 0!==n?n:o,color:d,fontSize:"12px",lineHeight:"1",position:"relative"}},(0,r.createElement)(En,{text:i||Tt[a],color:d,link:l,linkTarget:c}))},En=({text:e,color:t,link:n,linkTarget:a})=>{if(!n)return(0,r.createElement)(r.Fragment,null,e);const o={color:t,textDecoration:"none",fontWeight:"normal",border:"none",background:"none",borderRadius:"0",padding:"0",margin:"0"};return a?(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o,target:"_blank",rel:"noopener noreferrer"},e):(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o},e)},Ln=e=>{var t,n;const{language:a,bgColor:o,textColor:s,footerString:i,footerLink:l,footerLinkTarget:c,disablePadding:u}=e,p=mn(s),d=s?.startsWith("var(")?null!==(t=kn(e))&&void 0!==t?t:s:p.isDark()?p.lighten(.05).toHex():p.darken(.05).toHex();return(0,r.createElement)("span",{style:{display:"flex",alignItems:"flex-end",padding:u?"10px 0 0 0":"10px",width:"100%",justifyContent:"flex-start",backgroundColor:null!==(n=yn(e))&&void 0!==n?n:o,color:d,fontSize:"12px",lineHeight:"1",position:"relative"}},(0,r.createElement)(Pn,{text:i||Tt[a],color:d,link:l,linkTarget:c}))},Pn=({text:e,color:t,link:n,linkTarget:a})=>{if(!n)return(0,r.createElement)(r.Fragment,null,e);const o={color:t,textDecoration:"none",fontWeight:"normal",border:"none",background:"none",borderRadius:"0",padding:"0",margin:"0"};return a?(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o,target:"_blank",rel:"noopener noreferrer"},e):(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o},e)},Tn=({attributes:e,onClick:t})=>{const{footerType:n,...a}=e,{bgColor:o}=e,i={none:(0,s.__)("None","code-block-pro"),simpleStringEnd:(0,s.__)("Simple string end","code-block-pro"),simpleStringStart:(0,s.__)("Simple string start","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(i).map((([e,i])=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-footer-${e}`,label:n===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),i):i,help:["simpleStringEnd","simpleStringStart"].includes(e)?(0,s.__)("Set the text at the top of this panel.","code-block-pro"):void 0,key:e},(0,r.createElement)("button",{id:`code-block-pro-footer-${e}`,type:"button",onClick:()=>t(e),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}),(0,r.createElement)(jn,{footerType:e,...a})))))))},jn=e=>{const{footerType:t}=e;return"simpleStringEnd"===t?(0,r.createElement)(xn,{...e}):"simpleStringStart"===t?(0,r.createElement)(Ln,{...e}):null},An=e=>(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:yn(e)}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:"#FF5F56",stroke:"#E0443E",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:"#FFBD2E",stroke:"#DEA123",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:"#27C93F",stroke:"#1AAB29",strokeWidth:".5"})))),Rn=e=>{const{textColor:t}=e;return(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:yn(e)}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:mn(t).alpha(.2).toHex(),stroke:mn(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:mn(t).alpha(.2).toHex(),stroke:mn(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:mn(t).alpha(.2).toHex(),stroke:mn(t).alpha(.3).toHex(),strokeWidth:".5"}))))},On=({bgColor:e})=>{const t=mn(e),n=t.isDark()?t.lighten(.05):t.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:n.toHex()}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:62,height:20,viewBox:"0 0 62 20"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"8",cy:"8",r:"8",fill:e,stroke:e,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"30",cy:"8",r:"8",fill:e,stroke:e,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"52",cy:"8",r:"8",fill:e,stroke:e,strokeWidth:".5"}))))},Bn=e=>{const{language:t,bgColor:n,textColor:a,headerString:o}=e;let s=mn(n).toHex();const i=mn(a);let l=i.isDark()?i.lighten(.05).toHex():i.darken(.05).toHex();var c,u;return n?.startsWith("var(")&&(s=null!==(c=yn(e))&&void 0!==c?c:n),a?.startsWith("var(")&&(l=null!==(u=kn(e))&&void 0!==u?u:a),(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"16px 0 0 16px",width:"100%",textAlign:"left",backgroundColor:s}},(0,r.createElement)("span",{style:{background:l,padding:"0.3rem 0.5rem 0.2rem",borderRadius:"1rem",fontSize:"0.8em",lineHeight:1,height:"1.25rem",textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",color:s}},o||Tt[t]))},Mn=e=>{const{language:t,bgColor:n,textColor:a,headerString:o}=e,s=mn(n);let i=s.isDark()?s.lighten(.05).toHex():s.darken(.05).toHex();const l=mn(a);let c=l.isDark()?l.lighten(.05).toHex():l.darken(.05).toHex();var u,p;return n?.startsWith("var(")&&(i=null!==(u=yn(e))&&void 0!==u?u:n),a?.startsWith("var(")&&(c=null!==(p=kn(e))&&void 0!==p?p:a),(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:i,color:c}},o||Tt[t])},In=e=>{const{language:t,bgColor:n,textColor:a,headerString:o}=e;let s=fn(a,e);var i;return a?.startsWith("var(")&&(s=null!==(i=kn(e))&&void 0!==i?i:a),(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 0 16px",fontSize:"0.8em",width:"100%",textAlign:"left",backgroundColor:n,fontStyle:"italic",color:a}},(0,r.createElement)("span",{style:{borderBottom:`1px solid ${s}`}},o||Tt[t]))},Fn=()=>(0,r.createElement)("div",{className:"block w-full h-8 pt-2"},(0,s.__)("Not supported with this theme","code-block-pro")),Hn=["headlightsMutedAlt"],Dn=({attributes:e,onClick:t})=>{const{headerType:n,...a}=e,{bgColor:o}=e,i={none:(0,s.__)("None","code-block-pro"),headlights:(0,s.__)("Headlights","code-block-pro"),headlightsMuted:(0,s.__)("Headlights muted","code-block-pro"),headlightsMutedAlt:(0,s.__)("Headlights muted alt","code-block-pro"),simpleString:(0,s.__)("Simple string","code-block-pro"),stringSmall:(0,s.__)("String muted","code-block-pro"),pillString:(0,s.__)("Pill string","code-block-pro")},l=o?.startsWith("var(");return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(i).map((([e,i])=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-header-${e}`,label:n===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),i):i,help:["simpleString","pillString","stringSmall"].includes(e)?(0,s.__)("Set the text at the top of this panel.","code-block-pro"):void 0,key:e},(0,r.createElement)("button",{id:`code-block-pro-header-${e}`,type:"button",onClick:()=>t(e),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)(Gn,{headerType:e,...a}),(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}))),l&&Hn.includes(e)&&(0,r.createElement)(Fn,null)))))},Gn=e=>{const{headerType:t,bgColor:n}=e,a=n?.startsWith("var(");return a&&Hn.includes(null!=t?t:"")?null:"headlights"===t?(0,r.createElement)(An,{...e}):"headlightsMuted"===t?(0,r.createElement)(Rn,{...e}):"headlightsMutedAlt"===t?(0,r.createElement)(On,{...e}):"simpleString"===t?(0,r.createElement)(Mn,{...e}):"stringSmall"===t?(0,r.createElement)(In,{...e}):"pillString"===t?(0,r.createElement)(Bn,{...e}):null},$n=e=>{const{bgColor:t,textColor:n,seeMoreString:a,disablePadding:o,context:i,footerType:l}=e;let c=mn(t).toHex();const u=mn(n);let p=u.isDark()?u.lighten(.05).toHex():u.darken(.05).toHex();const d="none"!==l,h="editor"===i;var m;return t?.startsWith("var(")&&(c=null!==(m=yn(e))&&void 0!==m?m:t),n?.startsWith("var(")&&(p=n),(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===i?"none":"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",backgroundColor:"transparent",fontSize:"12px",lineHeight:"1",position:"relative",marginBottom:d||h?0:"-16px",height:d&&!h?"16px":"32px"}},(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:p,backgroundColor:c,padding:o?"10px 0 0":"10px 16px",cursor:"default"}},a||(0,s.__)("Expand","code-block-pro")))},zn=e=>{const{bgColor:t,textColor:n,seeMoreString:a,disablePadding:o,context:i,footerType:l}=e;let c=mn(t).toHex();const u=mn(n);let p=u.isDark()?u.lighten(.05).toHex():u.darken(.05).toHex();const d="none"!==l,h="editor"===i;var m,g;return n?.startsWith("var(")&&(p=null!==(m=kn(e))&&void 0!==m?m:n),t?.startsWith("var(")&&(c=null!==(g=yn(e))&&void 0!==g?g:t),(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===i?"none":"flex",flexDirection:"column",alignItems:"flex-end",width:"100%",backgroundColor:"transparent",fontSize:"12px",lineHeight:"1",position:"relative",marginBottom:d||h?0:"-16px",height:d&&!h?"16px":"32px"}},(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:p,backgroundColor:c,padding:o?"10px 0 0":"10px 16px",cursor:"default"}},a||(0,s.__)("Expand","code-block-pro")))},Wn=e=>{const{bgColor:t,textColor:n,seeMoreString:a,context:o,footerType:i}=e;let l,c,u;if(t?.startsWith("var(")){var p,d;l=null!==(p=yn(e))&&void 0!==p?p:t,u=l,c=null!==(d=kn(e))&&void 0!==d?d:n}else{const e=mn(t),r=mn(n);c=e.isDark()?r.lighten(.15).toHex():r.darken(.15).toHex(),u=e.isDark()?e.lighten(.1).toHex():e.darken(.1).toHex(),l=e.toHex()}const h="none"!==i,m="editor"===o;return(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===o?"none":"flex",flexDirection:"column",alignItems:"center",width:"100%",fontSize:"12px",lineHeight:"1",position:"relative",paddingTop:h?0:"4px",marginBottom:h||m?0:"-16px",height:h&&!m?0:"32px"}},!h&&(0,r.createElement)("div",{style:{backgroundColor:l,height:"50%",position:"absolute",top:0,left:0,right:0},"aria-hidden":"true"}),(0,r.createElement)("span",{role:m?"presentation":"button",tabIndex:m?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:c,backgroundColor:u,padding:"6px 14px",cursor:"default",position:"relative",borderRadius:"6px",transform:h?"translateY(-50%)":void 0}},a||(0,s.__)("Expand","code-block-pro")))},Un=({attributes:e,onClick:t})=>{const{seeMoreType:n,...a}=e,{bgColor:o}=e,i={none:(0,s.__)("None","code-block-pro"),roundCenter:(0,s.__)("See more center","code-block-pro"),blockLeft:(0,s.__)("See more left","code-block-pro"),blockRight:(0,s.__)("See more right","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(i).map((([e,i])=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-see-more-${e}`,label:n===e||!n&&"none"===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),i):i,key:e},(0,r.createElement)("button",{id:`code-block-pro-see-more-${e}`,type:"button",onClick:()=>t(e),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}),(0,r.createElement)(qn,{seeMoreType:e,context:"editor",...a})))))))},qn=e=>{const{seeMoreType:t,enableMaxHeight:n,context:a}=e;return n?"roundCenter"===t?(0,r.createElement)(Wn,{...e,context:a}):"blockLeft"===t?(0,r.createElement)($n,{...e,context:a}):"blockRight"===t?(0,r.createElement)(zn,{...e,context:a}):null:null},Vn=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Jn(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Vn,"")}const Kn=(0,p.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,p.cloneElement)(e,{width:t,height:t,...n,ref:r})})),Qn=window.wp.primitives,Xn=(0,r.createElement)(Qn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(Qn.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})),Yn=({text:e,color:t})=>void 0===e?(0,r.createElement)(Kn,{icon:Xn,fill:t,className:"border border-solid border-gray-900"}):(0,r.createElement)("span",{className:"cbp-btn-text"},e||(0,s.__)("Copy","code-block-pro")),Zn={heroicons:{label:(0,s.__)("Clipboard","code-block-pro"),Component:()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},(0,r.createElement)("path",{className:"with-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}),(0,r.createElement)("path",{className:"without-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"}))},twoSquares:{label:(0,s.__)("Two Squares","code-block-pro"),Component:()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},(0,r.createElement)("path",{className:"with-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}),(0,r.createElement)("path",{className:"without-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"}))},textSimple:{label:(0,s.__)("Text Simple","code-block-pro"),Component:e=>(0,r.createElement)(Yn,{...e})}},er=({attributes:e})=>{var t;const{copyButtonType:n,copyButtonString:a,copyButtonStringCopied:o,useDecodeURI:i,code:l,textColor:c,bgColor:u,headerType:p}=e,d="textSimple"===n,h=d?u:c,m=d?c:void 0,{Component:g}=null!==(t=Zn?.[n])&&void 0!==t?t:Zn.heroicons;return(0,r.createElement)("span",{role:"button",tabIndex:0,"data-encoded":!!i||void 0,"data-code":Jn(i?encodeURIComponent(null!=l?l:""):null!=l?l:""),style:{color:null!=h?h:"inherit",display:"none",backgroundColor:m},"aria-label":null!=a?a:(0,s.__)("Copy","code-block-pro"),"data-copied-text":d?null!=o?o:(0,s.__)("Copied!","code-block-pro"):void 0,"data-has-text-button":d?n:void 0,"data-inside-header-type":d?p:void 0,"aria-live":d?"polite":void 0,className:"code-block-pro-copy-button"},(0,r.createElement)(g,{text:a}))},tr=e=>{const{copyButton:t}=e;return t?(0,r.createElement)(er,{attributes:e}):null},nr=window.wp.data,rr=window.wp.editPost,ar=({attributes:e,setAttributes:t})=>{const[n,r]=(0,p.useState)(e.language),{previousLanguage:a,setPreviousLanguage:o}=Bt();return(0,p.useEffect)((()=>{n||t({language:a})}),[n,a,t]),(0,p.useEffect)((()=>{r(e.language)}),[e.language]),[n,e=>{t({language:e}),r(e),o(e)}]},or=be()(ve((e=>({bringAttentionToPanel:!1,setBringAttentionToPanel:t=>{e((()=>({bringAttentionToPanel:t})))}})),{name:"Code Block Pro Globals"})),sr=({attributes:e,setAttributes:t})=>{var n,a;const{updateThemeHistory:o}=Pe();return(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-copy-button"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"copy-button",label:(0,s.__)("Copy Button","code-block-pro"),help:(0,s.__)("Adds a button to copy the code","code-block-pro"),checked:e.copyButton,onChange:e=>{t({copyButton:e}),o({copyButton:e})}}),e.copyButton&&(0,r.createElement)("div",{className:"flex gap-2 -mt-3"},Object.entries(Zn).map((([n,a])=>{const{Component:s}=a,{copyButtonType:i,bgColor:l,textColor:u}=e,p=i===n;return(0,r.createElement)("div",{key:n,style:{backgroundColor:l}},(0,r.createElement)("button",{id:`code-block-pro-copy-button-${n}`,type:"button",onClick:()=>{t({copyButtonType:n}),o({copyButtonType:n})},style:{color:u},"aria-current":p,className:c()("sidebar-copy-button relative border-0 flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none ring-wp-theme-500 focus:ring-wp overflow-x-auto top-0 right-0 left-auto bg-transparent border-none transition-opacity duration-200 ease-in-out leading-none z-10 p-1 opacity-90",{"ring-wp":p})},(0,r.createElement)("span",{className:"sr-only"},a.label),(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)(s,{color:u}))))}))),e.copyButton&&(0,r.createElement)("div",{style:{marginTop:"1rem"}},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-copy-button-text",autoComplete:"off",label:(0,s.__)("Button label","code-block-pro"),placeholder:(0,s.__)("Copy","code-block-pro"),onChange:e=>{t({copyButtonString:e})},value:null!==(n=e.copyButtonString)&&void 0!==n?n:""}),"textSimple"===e.copyButtonType&&(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-copy-button-text-copied",autoComplete:"off",label:(0,s.__)("Copied Text","code-block-pro"),placeholder:(0,s.__)("Copied!","code-block-pro"),onChange:e=>{t({copyButtonStringCopied:e})},value:null!==(a=e.copyButtonStringCopied)&&void 0!==a?a:"",help:(0,s.__)("Text briefly shown after the code is copied")})))},ir=({attributes:e,setAttributes:t})=>(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Buttons","code-block-pro"),initialOpen:!1},(0,r.createElement)(sr,{attributes:e,setAttributes:t}))),lr=({value:e,onChange:t})=>(0,r.createElement)(Cn.FontSizePicker,{onChange:e=>{t(null!=e?e:".875rem")},value:e,fontSizes:[{name:"Tiny",size:".75rem",slug:"tiny"},{name:"Small",size:".875rem",slug:"small"},{name:"Normal",size:"1rem",slug:"normal"},{name:"Big",size:"1.125rem",slug:"big"}]}),cr=({value:e,onChange:t})=>(0,r.createElement)(Cn.FontSizePicker,{onChange:e=>{t(null!=e?e:".875rem")},value:e,fontSizes:[{name:"None",size:"1rem",slug:"none"},{name:"Tight",size:"1.25rem",slug:"tight"},{name:"Normal",size:"1.5rem",slug:"normal"},{name:"Relaxed",size:"1.625rem",slug:"relaxed"}]}),ur=({value:e,onChange:t})=>{const n={"":(0,s.__)("System Default","code-block-pro"),"Code-Pro-Comic-Mono.ttf":"Comic Mono","Code-Pro-Cozette":"Cozette","Code-Pro-Deja-Vu-Mono.ttf":"DejaVu Mono","Code-Pro-Fantasque-Sans-Mono":"Fantasque Sans Mono","Code-Pro-Fira-Code":"Fira Code","Code-Pro-Geist-Mono":"Geist Mono","Code-Pro-Hack":"Hack","Code-Pro-JetBrains-Mono":"JetBrains Mono","Code-Pro-JetBrains-Mono-NL.ttf":"JetBrains Mono (No Ligatures)","Code-Pro-Monaspace-Argon.woff":"Monaspace Argon","Code-Pro-Monaspace-Krypton.woff":"Monaspace Krypton","Code-Pro-Monaspace-Neon.woff":"Monaspace Neon","Code-Pro-Monaspace-Radon.woff":"Monaspace Radon","Code-Pro-Monaspace-Xenon.woff":"Monaspace Xenon","Code-Pro-Roboto-Mono.ttf":"Roboto Mono"};return(0,r.createElement)(Cn.SelectControl,{id:"code-block-pro-font-family",label:(0,s.__)("Font Family","code-block-pro"),value:e,onChange:t,options:Object.entries(n).map((([e,t])=>({label:t,value:e})))})},pr=({attributes:e,setAttributes:t})=>{var n,a,o,i;const[l,c]=(0,p.useState)(e?.editorHeight),[u,d]=(0,p.useState)(null!==(n=e?.enableMaxHeight)&&void 0!==n&&n),[h,m]=(0,p.useState)(null!==(a=e?.seeMoreString)&&void 0!==a?a:""),[g,f]=(0,p.useState)(null!==(o=e?.seeMoreAfterLine)&&void 0!==o?o:""),[b,y]=(0,p.useState)(null!==(i=e?.seeMoreTransition)&&void 0!==i&&i),k=(0,p.useRef)(Number(e?.editorHeight)>0),{updateThemeHistory:v}=Pe();return(0,p.useEffect)((()=>{t({editorHeight:l,seeMoreString:h,seeMoreAfterLine:g,seeMoreTransition:b,enableMaxHeight:u})}),[l,h,g,b,t,u]),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Max Height","code-block-pro"),initialOpen:k.current},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-editor-height"},(0,r.createElement)(Cn.TextControl,{spellCheck:!1,autoComplete:"off","data-cy-cbp":"editor-height",type:"number",label:(0,s.__)("Max editor height (admin only)","code-block-pro"),help:(0,s.__)("Set to 0 to disable.","code-block-pro"),placeholder:"0",onChange:e=>{c(e)},value:l})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-enabled"},(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Enable frontend max height","code-block-pro"),help:(0,s.__)("Enable this, then select a specific line number below.","code-block-pro"),"data-cy":"enable-max-height",checked:u,onChange:e=>{d(e)}})),u&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-line"},(0,r.createElement)(Cn.TextControl,{"data-cy":"see-more-line",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Hide after line","code-block-pro"),help:(0,s.__)("Enter the last visible line number.","code-block-pro"),onChange:e=>{f(e)},value:g})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-text"},(0,r.createElement)(Cn.TextControl,{"data-cy":"see-more-text",spellCheck:!1,autoComplete:"off",label:(0,s.__)("See more text","code-block-pro"),placeholder:(0,s.__)("Expand","code-block-pro"),onChange:e=>{m(e),v({seeMoreString:e})},value:null!=h?h:""})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-transition"},(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Animate height transition","code-block-pro"),checked:b,onChange:e=>{y(e),v({seeMoreTransition:e})}})),(0,r.createElement)(Un,{attributes:e,onClick:e=>{t({seeMoreType:e}),v({seeMoreType:e})}})))},dr=({name:e,attributes:t,setAttributes:n})=>{const{Slot:a}=(0,p.useMemo)((()=>(0,Cn.createSlotFill)(e)),[e]);return(0,r.createElement)(a,{fillProps:{attributes:t,setAttributes:n,languages:Tt,getCode:()=>Gt(t.code,t),setCode:e=>n({code:Dt(e,t)})}})},hr="/code-block-pro/v1/settings",mr=async e=>{const t=await g()({path:hr});return t?.[e]},gr={seenNotices:[],hiddenThemes:[]},fr={getItem:async e=>{var t;const n=await mr(e);return JSON.stringify({version:null!==(t=n?.version)&&void 0!==t?t:0,state:n||gr})},setItem:async(e,t)=>{const{state:n,version:r}=JSON.parse(t),a={[e]:Object.assign(await mr(e)||gr,n,{version:r})};await g()({path:hr,method:"POST",data:a})},removeItem:async e=>{const t={[e]:null};await g()({path:hr,method:"POST",data:t})}},br=be()(Ne(ve((e=>({...gr,setSeenNotice(t){e((e=>e.seenNotices.includes(t)?e:{seenNotices:[...e.seenNotices,t]}))},toggleHiddenTheme(t){e((e=>({hiddenThemes:e.hiddenThemes.includes(t)?e.hiddenThemes.filter((e=>e!==t)):[...e.hiddenThemes,t]})))}})),{name:"Code Block Pro Settings"}),{name:"code_block_pro_settings_2",storage:Se((()=>fr))})),yr=()=>Object.entries((0,o.applyFilters)("blocks.codeBlockPro.themes",u)).map((([e,{name:t,priority:n,custom:r}])=>({name:t,slug:e,priority:n,custom:r}))),kr=()=>yr().filter((({priority:e})=>e)),vr=({search:e,setSearch:t})=>{const[n,a]=(0,p.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-filter-themes"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-search-themes",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Search themes","code-block-pro"),onChange:t,value:e}),(0,r.createElement)("div",{className:"-mt-4 mb-4 flex flex-wrap gap-2"},(0,r.createElement)(Cn.Button,{"data-cy":"manage-themes",variant:"secondary",isSmall:!0,onClick:()=>a(!0)},(0,s.__)("Manage themes","code-block-pro")),(0,o.applyFilters)("blocks.codeBlockPro.themesPanelButtons",null)))),n&&(0,r.createElement)(_r,{closeModal:()=>a(!1)}))},_r=({closeModal:e})=>{const{hiddenThemes:t,toggleHiddenTheme:n}=br(),a=kr();return(0,r.createElement)(Cn.Modal,{title:(0,s.__)("Manage Themes","code-block-pro"),onRequestClose:e,className:"code-block-pro-editor"},(0,r.createElement)("div",{id:"code-block-pro-theme-manager",className:"flex flex-col gap-4 mt-2"},a?.length>0?(0,r.createElement)("div",{className:"flex flex-col gap-4 bg-gray-100 p-4"},(0,r.createElement)("h2",{className:"m-0 my-2 text-center"},(0,s.__)("Priority themes","code-block-pro")),(0,r.createElement)("div",{className:"md:grid gap-3 grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},[...yr().filter((({custom:e})=>e)),...a].map((({name:e,slug:a})=>(0,r.createElement)(Cn.ToggleControl,{key:a,checked:!t.includes(a),label:e,onChange:()=>n(a)}))))):null,(0,r.createElement)("div",{className:c()("md:grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",{"p-4":a?.length>0})},yr().filter((({priority:e,custom:t})=>!e&&!t)).map((({name:e,slug:a})=>(0,r.createElement)(Cn.ToggleControl,{key:a,checked:!t.includes(a),label:e,onChange:()=>n(a)})))),a?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=manage-themes"},(0,s.__)("Get 25+ more themes here","code-block-pro")))))},Sr=({id:e,theme:t,lang:n,onClick:a,code:o,fontSize:i,lineHeight:l,fontFamily:c,clampFonts:u,styles:d})=>{const[h,m]=(0,p.useState)(!1),{highlighter:g,error:f,loading:b}=Ot({theme:t,lang:o?n:"c",ready:h}),[y,k]=(0,p.useState)(""),[v,_]=(0,p.useState)("#ffffff"),S=(0,p.useRef)(new IntersectionObserver((([e])=>{e.isIntersecting&&(m(!0),S.current.disconnect())}))),C="\nfloat Q_rsqrt( float number )\n{\n    long i;\n    float x2, y;\n    const float threehalfs = 1.5F;\n\n    x2 = number * 0.5F;\n    y  = number;\n    i  = * ( long * ) &y;                       // evil floating point bit level hacking\n    i  = 0x5f3759df - ( i >> 1 );               // what the frack?\n    y  = * ( float * ) &i;\n    y  = y * ( threehalfs - ( x2 * y * y ) );   // 1st iteration\n//  y  = y * ( threehalfs - ( x2 * y * y ) );   // 2nd iteration, this can be removed\n\n    return y;\n}".trim();return(0,p.useEffect)((()=>{if(!g)return;if("ansi"===n&&o)return k(g.ansiToHtml(o)),void _(g.getBackgroundColor());const e=o?g.codeToHtml((0,Ht.decodeEntities)(o),{lang:n}):g.codeToHtml((0,Ht.decodeEntities)(C),{lang:"c"});k(e),_(g.getBackgroundColor())}),[g,n,o,C]),(0,r.createElement)("button",{id:e,type:"button",onClick:a,className:"cbp-theme-preview p-4 px-3 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto max-h-80 overflow-y-hidden",style:{backgroundColor:v,minHeight:"50px",...Object.entries(null!=d?d:{}).reduce(((e,[t,n])=>({...e,[`--shiki-${t}`]:n})),{})}},b||f||!h?(0,r.createElement)("span",{id:e,ref:e=>{e&&S.current.observe(e)},style:{minHeight:"200px"},className:"flex items-center justify-center p-6 w-full"},f?.message||(0,s.__)("Loading...","code-block-pro")):(0,r.createElement)("span",{className:"pointer-events-none",style:{fontSize:Sn(i,u),fontFamily:vn(c),lineHeight:Sn(l,u)},dangerouslySetInnerHTML:{__html:y}}))},Cr=e=>{const{hiddenThemes:t}=br(),n=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),a=Object.entries(n).filter((([e])=>!t.includes(e))).filter((([t])=>t.includes(e.search.toLocaleLowerCase()))).map((([e,t])=>({slug:e,...t}))).sort(((e,t)=>e.priority===t.priority?0:e.priority?-1:1)).sort(((e,t)=>e.custom===t.custom?0:e.custom?-1:1)),i=kr();return(0,r.createElement)("div",{className:"code-block-pro-editor",style:{tabSize:e.tabSize}},e.search?.length>0?(0,r.createElement)(Cn.BaseControl,{id:"add-on-themes"},i?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/?utm_campaign=notice&utm_source=search"},(0,s.__)("Get 25+ more themes here","code-block-pro")))):i?.length>0?null:(0,r.createElement)("div",{className:"text-sm mb-4"},(0,r.createElement)(Cn.ExternalLink,{href:"https://github.com/KevinBatdorf/code-block-pro/discussions/168"},(0,s.__)("Need both light and dark mode?","code-block-pro"))),a.slice(0,9).map((t=>(0,r.createElement)(Nr,{key:t.slug,...t,...e}))),e.search?.length>0?null:(0,r.createElement)(Cn.BaseControl,{id:"add-on-themes"},i?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=mid-themes"},(0,s.__)("Get 25+ more themes here","code-block-pro")))),a.slice(9).map((t=>(0,r.createElement)(Nr,{key:t.slug,...t,...e}))),e.search?.length>0?null:(0,r.createElement)(Cn.BaseControl,{id:"add-on-themes"},i?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=below-themes"},(0,s.__)("Get 25+ more themes here","code-block-pro")))))},Nr=({slug:e,name:t,theme:n,language:a,code:o,fontSize:i,lineHeight:l,fontFamily:c,clampFonts:u,onClick:p,styles:d,helpUrl:h})=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-theme-${e}`,label:n===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),t):t},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Sr,{id:`code-block-pro-theme-${e}`,theme:e,lang:a,fontSize:i,lineHeight:l,fontFamily:c,clampFonts:u,styles:d,onClick:()=>{p(e)},code:o}),h?.url?(0,r.createElement)("div",{className:"mt-2"},(0,r.createElement)(Cn.ExternalLink,{href:h.url},h?.text||(0,s.__)("Read more","code-block-pro"))):null)),wr=({bringAttentionToThemes:e,attributes:t,setAttributes:n})=>{const{updateThemeHistory:a}=Pe(),[o,i]=(0,p.useState)(""),l=(()=>{const[e,t]=(0,p.useState)(br.persist.hasHydrated);return(0,p.useEffect)((()=>{const e=br.persist.onFinishHydration((()=>t(!0)));return()=>{e()}}),[]),e})();return(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Theme","code-block-pro"),initialOpen:null!=e&&e},l&&(0,r.createElement)(vr,{search:o,setSearch:i}),l&&(0,r.createElement)(Cr,{...t,search:o,onClick:e=>{n({theme:e}),a({theme:e})}}))},xr=({attributes:e,setAttributes:t})=>{var n,a,o;const i=(0,p.useRef)(null);return(0,p.useEffect)((()=>{try{It(e.lineBlurs),i.current?.querySelector("input")?.classList.remove("cbp-input-error")}catch(e){console.error(e),i.current?.querySelector("input")?.classList.add("cbp-input-error")}}),[e.lineBlurs]),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-blurring"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"enable-blur",label:(0,s.__)("Line blurring","code-block-pro"),help:(0,s.__)("Blur surrounding code to focus on specific lines.","code-block-pro"),checked:null!==(n=e.enableBlurring)&&void 0!==n&&n,onChange:e=>{t({enableBlurring:e})}}),e.enableBlurring&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-blurred-lines"},(0,r.createElement)("div",{ref:i},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-show-blurred-lines",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Focus on the following","code-block-pro"),help:(0,s.sprintf)((0,s.__)("Try %1$s or %2$s for a range.","code-block-pro"),"1,5","1,[3,5]"),onChange:e=>{t({lineBlurs:e})},value:null!==(a=e?.lineBlurs)&&void 0!==a?a:""})),(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Remove blur on hover","code-block-pro"),checked:null!==(o=e.removeBlurOnHover)&&void 0!==o&&o,onChange:e=>{t({removeBlurOnHover:e})}})))},Er=({attributes:e,setAttributes:t})=>{var n,a,o;const i=(0,p.useRef)(null);return(0,p.useEffect)((()=>{try{It(e.lineHighlights),i.current?.querySelector("input")?.classList.remove("cbp-input-error")}catch(e){console.error(e),i.current?.querySelector("input")?.classList.add("cbp-input-error")}}),[e.lineHighlights]),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-highlighting"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"enable-highlighting",label:(0,s.__)("Line highlights","code-block-pro"),help:(0,s.__)("Highlight individual lines to bring attention to specific code.","code-block-pro"),checked:null!==(n=e.enableHighlighting)&&void 0!==n&&n,onChange:e=>{t({enableHighlighting:e})}}),e.enableHighlighting&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-highlighted-lines"},(0,r.createElement)("div",{ref:i},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-show-highlighted-lines",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Highlight the following","code-block-pro"),help:(0,s.sprintf)((0,s.__)("Try %1$s or %2$s for a range.","code-block-pro"),"1,5","1,[3,5]"),onChange:e=>{t({lineHighlights:e})},value:null!==(a=e?.lineHighlights)&&void 0!==a?a:""}))),(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"enable-highlighting-hover",label:(0,s.__)("Line highlights on hover","code-block-pro"),help:(0,s.__)("Every line will be highlighted when hovered.","code-block-pro"),checked:null!==(o=e.highlightingHover)&&void 0!==o&&o,onChange:e=>{t({highlightingHover:e})}}))},Lr=({attributes:e,setAttributes:t})=>{var n,a,o;const[l,c]=ar({attributes:e,setAttributes:t}),{recentLanguages:u}=Bt(),{updateThemeHistory:d}=Pe(),{bringAttentionToPanel:h}=or(),{headerType:m,footerType:g}=e,f=new Map(Object.entries(Tt).sort(((e,t)=>e[1].localeCompare(t[1])))),b=ue(),y=["simpleStringEnd","simpleStringStart"],k=["simpleString","pillString","stringSmall"].includes(m),v=y.includes(null!=g?g:""),_=y.includes(null!=g?g:""),S=y.includes(null!=g?g:""),[C,N]=(0,p.useState)(!1),{openGeneralSidebar:w,closeGeneralSidebar:x}=(0,nr.useDispatch)(rr.store);return(0,p.useEffect)((()=>{h&&x("edit-post/block").then((()=>{N(h),w("edit-post/block")}))}),[h,x,w]),b?(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(dr,{name:"CodeBlockPro.Sidebar.Start",attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Line Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-line-numbers"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"show-line-numbers",label:(0,s.__)("Line numbers","code-block-pro"),help:(0,s.__)("Enable line numbers and set a starting number.","code-block-pro"),checked:e.lineNumbers,onChange:e=>{t({lineNumbers:e}),d({lineNumbers:e})}}),e.lineNumbers&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-line-number-start"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-line-number-start",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Start from","code-block-pro"),onChange:e=>{t({startingLineNumber:e})},value:e.startingLineNumber}))),(0,r.createElement)(Er,{attributes:e,setAttributes:t}),(0,r.createElement)(xr,{attributes:e,setAttributes:t}))),(0,r.createElement)(wr,{bringAttentionToThemes:"theme-select"===C,attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Language","code-block-pro"),initialOpen:"language-select"===C},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-language"},(0,r.createElement)(Cn.SelectControl,{id:"code-block-pro-language",label:(0,s.__)("Code Language","code-block-pro"),"data-cy-cbp":"language-select",value:l,onChange:e=>c(e),help:"ansi"===l?(0,s.__)("Some code themes may not render ANSI correctly. Control sequences render only on the front.","code-block-pro"):null,options:[...f.entries()].map((([e,t])=>({label:t.replace("ANSI","ANSI (experimental)"),value:e})))}),u?.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"mb-2 block"},(0,s.__)("Recently Used","code-block-pro")),(0,r.createElement)("div",{className:"flex flex-col gap-1"},u?.map((e=>{var t;return(0,r.createElement)(Cn.Button,{key:e,variant:"link",onClick:()=>c(e)},null!==(t=Tt[e])&&void 0!==t?t:e)})))):null))),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Header Type","code-block-pro"),initialOpen:!1},k&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-header-text"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-header-text",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Header Text","code-block-pro"),placeholder:Tt[l],onChange:e=>{t({headerString:e})},value:null!==(n=e.headerString)&&void 0!==n?n:""})),(0,r.createElement)(Dn,{attributes:e,onClick:e=>{t({headerType:e}),d({headerType:e})}})),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Footer Type","code-block-pro"),initialOpen:!1},v&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-footer-text"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-footer-text",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Footer Text","code-block-pro"),placeholder:Tt[l],onChange:e=>{t({footerString:e})},value:null!==(a=e.footerString)&&void 0!==a?a:""})),_&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-footer-link"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-footer-link",spellCheck:!1,type:"url",autoComplete:"off",label:(0,s.__)("Footer Link","code-block-pro"),placeholder:"https://example.com",help:(0,s.__)("Leave blank to disable","code-block-pro"),onChange:e=>{t({footerLink:e})},value:null!==(o=e.footerLink)&&void 0!==o?o:""})),S&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-footer-link-target"},(0,r.createElement)(Cn.CheckboxControl,{id:"code-block-pro-footer-link-target",label:(0,s.__)("Open in new tab?","code-block-pro"),checked:e.footerLinkTarget,onChange:e=>{t({footerLinkTarget:e}),d({footerLinkTarget:e})}})),(0,r.createElement)(Tn,{attributes:e,onClick:e=>{t({footerType:e}),d({footerType:e})}})),(0,r.createElement)(dr,{name:"CodeBlockPro.Sidebar.Middle",attributes:e,setAttributes:t}),(0,r.createElement)(ir,{attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Font Styling","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-size-select"},(0,r.createElement)("h2",{className:"m-0"},(0,s.__)("Font Size","code-block-pro")),(0,r.createElement)(lr,{value:e.fontSize,onChange:e=>{t({fontSize:e}),d({fontSize:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-line-height-select"},(0,r.createElement)("h2",{className:"m-0"},(0,s.__)("Line Height","code-block-pro")),(0,r.createElement)(cr,{value:e.lineHeight,onChange:e=>{t({lineHeight:e}),d({lineHeight:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-family-select"},(0,r.createElement)(ur,{value:e.fontFamily,onChange:e=>{t({fontFamily:e}),d({fontFamily:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"clamp-fonts"},(0,r.createElement)("div",{className:"mt-6"},(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Clamp Font Sizes","code-block-pro"),help:(0,s.__)("Check this if your font sizes are unusually large or tiny.","code-block-pro"),checked:e.clampFonts,onChange:e=>{t({clampFonts:e}),d({clampFonts:e})}})))),(0,r.createElement)(pr,{attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Extra Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-disable-padding"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"disable-padding",label:(0,s.__)("Disable Padding","code-block-pro"),help:(0,s.__)("This is useful if you pick a theme that matches your background color, and want the code to line up to the edge of your content. You maybe need to add your own padding with CSS.","code-block-pro"),checked:e.disablePadding,onChange:e=>{t({disablePadding:e}),d({disablePadding:e})}})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-decode-uri"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"use-decode-uri",label:(0,s.__)("Encode special characters","code-block-pro"),help:(0,s.__)("Select this to allow HTML entities such as &lt; and &gt; and others to be displayed. You may need to re-add the code after changing this","code-block-pro"),checked:e.useDecodeURI,onChange:e=>{t({useDecodeURI:e}),d({useDecodeURI:e})}})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-editor-tab-size"},(0,r.createElement)(Cn.TextControl,{spellCheck:!1,autoComplete:"off",type:"number","data-cy":"editor-tab-size",label:(0,s.__)("Editor tab size","code-block-pro"),help:(0,s.__)("The number of spaces to insert when pressing tab key.","code-block-pro"),value:e.tabSize,onChange:e=>{const n=e?Number(e):void 0;t({tabSize:n}),d({tabSize:n})}}),(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"use-tabs",label:(0,s.__)("Use Real Tabs","code-block-pro"),help:(0,s.__)("Inserts an actual tab character instead of a space. The width defined above.","code-block-pro"),checked:e.useTabs,onChange:e=>{t({useTabs:e}),d({useTabs:e})}}))),(0,r.createElement)(dr,{name:"CodeBlockPro.Sidebar.End",attributes:e,setAttributes:t})):(0,r.createElement)(i.InspectorControls,null,b?null:(0,r.createElement)(Nn,null))},Pr=({attributes:e,setAttributes:t})=>{var n,a;const[l]=ar({attributes:e,setAttributes:t}),{theme:c,bgColor:p,textColor:d}=e,h=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),{setBringAttentionToPanel:m}=or();return void 0===ue()?null:(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(Cn.ToolbarGroup,{className:"code-block-pro-editor"},(0,r.createElement)(Cn.ToolbarButton,{icon:()=>{var e;return(null!==(e=Tt[l])&&void 0!==e?e:l)?.replace("ANSI","ANSI (experimental)")},onClick:()=>m("language-select"),label:(0,s.__)("Press to open sidebar panel","code-block-pro")})),h[c]?.name&&(0,r.createElement)(Cn.ToolbarGroup,{className:"code-block-pro-editor"},(0,r.createElement)(Cn.ToolbarButton,{icon:()=>h[c]?.name,onClick:()=>m("theme-select"),label:(0,s.__)("Press to open sidebar panel","code-block-pro")},(0,r.createElement)("span",{className:"flex mx-2"},(0,r.createElement)("span",{style:{backgroundColor:null!==(n=h[c]?.styles?.["color-background"])&&void 0!==n?n:p},className:"w-3 h-3 border border-gray-400 border-solid border-1 rounded-full inline-block"}),(0,r.createElement)("span",{style:{backgroundColor:null!==(a=h[c]?.styles?.["color-text"])&&void 0!==a?a:d},className:"w-3 h-3 border border-gray-400 border-solid border-1 rounded-full inline-block transform -translate-x-1"})))))},Tr=({attributes:e,setAttributes:t})=>{const{clampFonts:n,disablePadding:a,enableBlurring:s,enableHighlighting:l,footerType:p,fontSize:d,fontFamily:h,highestLineNumber:m,highlightingHover:g,lineHeight:f,lineHighlightColor:b,lineNumbers:y,lineNumbersWidth:k,removeBlurOnHover:v,startingLineNumber:_,tabSize:S,theme:C,useTabs:N}=e,w=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),x=w[C]?.styles;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Lr,{attributes:e,setAttributes:t}),(0,r.createElement)(Pr,{attributes:e,setAttributes:t}),(0,r.createElement)("div",{...(0,i.useBlockProps)({className:c()("code-block-pro-editor",{"padding-disabled":a,"padding-bottom-disabled":p&&"none"!==p,"cbp-has-line-numbers":y,"cbp-blur-enabled":s,"cbp-unblur-on-hover":v,"cbp-highlight-hover":g}),style:{fontSize:Sn(d,n),"--cbp-line-number-color":y?bn(e):void 0,"--cbp-line-number-start":Number(_)>1?_:void 0,"--cbp-line-number-width":m?`calc(${String(m).length} * ${d})`:k?`${k}px`:void 0,"--cbp-line-highlight-color":l||g?b:void 0,"--cbp-line-height":f,tabSize:void 0===N?void 0:S,fontFamily:vn(h),lineHeight:Sn(f,n),...Object.entries(null!=x?x:{}).reduce(((e,[t,n])=>({...e,[`--shiki-${t}`]:n})),{}),...(0,o.applyFilters)("blocks.codeBlockPro.additionalEditorAttributes",{},e)}})},(0,r.createElement)(Gn,{...e}),(0,r.createElement)(tr,{...e}),(0,r.createElement)(wn,{attributes:e,setAttributes:t}),(0,r.createElement)(jn,{...e}),(0,r.createElement)(qn,{...e})))},jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"kevinbatdorf/code-block-pro","version":"1.13.0","title":"Code Block Pro - Beautiful syntax highlighting","category":"common","description":"Code highlighting powered by the VS Code engine. No overhead.","attributes":{"code":{"type":"string"},"codeHTML":{"type":"string"},"language":{"type":"string"},"theme":{"type":"string"},"align":{"type":"string"},"bgColor":{"type":"string","default":"#282a37"},"textColor":{"type":"string","default":"#f8f8f2"},"fontSize":{"type":"string"},"fontFamily":{"type":"string"},"lineHeight":{"type":"string"},"lineNumbers":{"type":"boolean"},"clampFonts":{"type":"boolean"},"editorHeight":{"type":"string"},"headerType":{"type":"string"},"footerType":{"type":"string"},"headerString":{"type":"string"},"disablePadding":{"type":"boolean"},"footerString":{"type":"string"},"footerLink":{"type":"string"},"enableMaxHeight":{"type":"boolean"},"seeMoreType":{"type":"string"},"seeMoreString":{"type":"string"},"seeMoreAfterLine":{"type":"string"},"seeMoreTransition":{"type":"boolean"},"footerLinkTarget":{"type":"boolean"},"startingLineNumber":{"type":"number","default":1},"lineNumbersWidth":{"type":"number"},"enableHighlighting":{"type":"boolean"},"highlightingHover":{"type":"boolean"},"lineHighlights":{"type":"string"},"lineHighlightColor":{"type":"string"},"enableBlurring":{"type":"boolean"},"lineBlurs":{"type":"string"},"removeBlurOnHover":{"type":"boolean"},"frame":{"type":"boolean"},"renderType":{"type":"string","default":"code"},"label":{"type":"string","default":""},"copyButton":{"type":"boolean"},"copyButtonType":{"type":"string"},"copyButtonString":{"type":"string"},"copyButtonStringCopied":{"type":"string"},"tabSize":{"type":"number"},"useTabs":{"type":"boolean"}},"supports":{"html":false,"align":["wide","full"]},"textdomain":"code-block-pro","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./front/front.js"}'),Ar=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"#1e1e1e",strokeWidth:"2"},(0,r.createElement)("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})),Rr=({attributes:e})=>{const{clampFonts:t,code:n,codeHTML:a,disablePadding:s,enableBlurring:l,enableHighlighting:p,footerType:d,fontSize:h,fontFamily:m,highestLineNumber:g,highlightingHover:f,lineHeight:b,lineHighlightColor:y,lineNumbers:k,lineNumbersWidth:v,removeBlurOnHover:_,startingLineNumber:S,tabSize:C,theme:N,useTabs:w}=e,x=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),E=x[N]?.styles;return(0,r.createElement)("div",{...i.useBlockProps.save({className:c()({"padding-disabled":s,"padding-bottom-disabled":d&&"none"!==d,"cbp-has-line-numbers":k,"cbp-blur-enabled":l,"cbp-unblur-on-hover":_,"cbp-highlight-hover":f})}),"data-code-block-pro-font-family":m,style:{fontSize:Sn(h,t),fontFamily:vn(m),"--cbp-line-number-color":k?bn(e):void 0,"--cbp-line-number-start":Number(S)>1?S:void 0,"--cbp-line-number-width":g?`calc(${String(g).length} * ${(e=>"Code-Pro-Fantasque-Sans-Mono"===e?.5:.6)(m)} * ${h})`:v?`${v}px`:void 0,"--cbp-line-highlight-color":p||f?y:void 0,lineHeight:Sn(b,t),"--cbp-tab-width":void 0===w?void 0:String(C),tabSize:void 0===w?void 0:"var(--cbp-tab-width, 2)",...Object.entries(null!=E?E:{}).reduce(((e,[t,n])=>({...e,[`--shiki-${t}`]:n})),{}),...(0,o.applyFilters)("blocks.codeBlockPro.additionalOutputAttributes",{},e)}},n?.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Gn,{...e}),(0,r.createElement)(tr,{...e}),(0,r.createElement)(i.RichText.Content,{value:a}),(0,r.createElement)(jn,{...e}),(0,r.createElement)(qn,{...e})):null)};(0,a.registerBlockType)(jr.name,{...jr,icon:Ar,attributes:{code:{type:"string"},codeHTML:{type:"string"},language:{type:"string"},theme:{type:"string"},align:{type:"string"},bgColor:{type:"string",default:"#282a37"},textColor:{type:"string",default:"#f8f8f2"},fontSize:{type:"string"},fontFamily:{type:"string"},lineHeight:{type:"string"},clampFonts:{type:"boolean"},editorHeight:{type:"string"},lineNumbers:{type:"boolean"},headerType:{type:"string"},headerString:{type:"string"},disablePadding:{type:"boolean"},footerType:{type:"string"},footerString:{type:"string"},footerLink:{type:"string"},footerLinkTarget:{type:"boolean"},enableMaxHeight:{type:"boolean"},seeMoreType:{type:"string"},seeMoreString:{type:"string"},seeMoreAfterLine:{type:"string"},seeMoreTransition:{type:"boolean"},startingLineNumber:{type:"string"},lineNumbersWidth:{type:"number"},highestLineNumber:{type:"number"},enableHighlighting:{type:"boolean"},highlightingHover:{type:"boolean"},lineHighlights:{type:"string"},lineHighlightColor:{type:"string"},enableBlurring:{type:"boolean"},lineBlurs:{type:"string"},removeBlurOnHover:{type:"boolean"},frame:{type:"boolean"},renderType:{type:"string",default:"code"},label:{type:"string",default:""},copyButton:{type:"boolean"},copyButtonType:{type:"string"},copyButtonString:{type:"string",default:(0,s.__)("Copy","code-block-pro")},copyButtonStringCopied:{type:"string",default:(0,s.__)("Copied!","code-block-pro")},useDecodeURI:{type:"boolean",default:!1},tabSize:{type:"number",default:2},useTabs:{type:"boolean"}},supports:{html:!1,align:["wide","full"]},title:(0,s.__)("Code Pro","code-block-pro"),edit:({attributes:e,setAttributes:t})=>(0,r.createElement)(Tr,{attributes:e,setAttributes:t}),save:({attributes:e})=>(0,r.createElement)(Rr,{attributes:e}),transforms:{from:[{type:"block",blocks:["core/code","syntaxhighlighter/code"],transform:e=>{const{content:t,language:n}=e;return(0,a.createBlock)(jr.name,{code:t?(0,Ft.escapeHTML)((e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(t)):void 0,language:Pt(n)})}}],to:[{type:"block",blocks:["core/code"],transform:e=>{const{code:t}=e;return(0,a.createBlock)("core/code",{content:t})}}]}}),(0,o.addFilter)("editor.BlockEdit",jr.name,(e=>t=>((e,t)=>{const{attributes:n,clientId:o}=t,{previousLanguage:l}=Bt(),c=(0,nr.useSelect)((e=>{const t=e(i.store).getBlock(o);return["core/code","syntaxhighlighter/code"].includes(t.name)}),[o]),{replaceBlock:u}=(0,nr.useDispatch)(i.store),p=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value};return c?(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(e,{...t}),(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(Cn.ToolbarGroup,null,(0,r.createElement)(Cn.ToolbarButton,{icon:Ar,label:(0,s.__)("Convert to Code Pro","code-block-pro"),onClick:()=>{var e;const t=(0,a.createBlock)(jr.name,{code:n?.content?p(n.content):void 0,language:null!==(e=Pt(n?.language))&&void 0!==e?e:l});u(o,[t])}})))):(0,r.createElement)(e,{...t})})(e,t)))},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=a.apply(null,n);s&&e.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},460:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(196)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),d="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),h="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(h,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(h," {\n    color: transparent !important;\n  }\n\n  .").concat(h,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,r=e.selectionStart,a=e.selectionEnd;t._recordChange({value:n,selectionStart:r,selectionEnd:a})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var r,a,s;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var d=Date.now();if(n){var h=t._history.stack[t._history.offset];if(h&&d-h.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(r=t._getLines(h.value,h.selectionStart).pop())||void 0===r?void 0:r.match(m),f=null===(a=t._getLines(e.value,e.selectionStart).pop())||void 0===a?void 0:a.match(m);if((null==g?void 0:g[1])&&(null===(s=null==f?void 0:f[1])||void 0===s?void 0:s.startsWith(g[1])))return void(t._history.stack[t._history.offset]=o(o({},e),{timestamp:d}))}}t._history.stack.push(o(o({},e),{timestamp:d})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=o(o({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,r=e.offset,a=n[r-1];a&&(t._updateInput(a),t._history.offset=Math.max(r-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,a=n[r+1];a&&(t._updateInput(a),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,a=n.insertSpaces,o=n.ignoreTabKey,s=n.onKeyDown;if(!s||(s(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,h=(a?" ":"\t").repeat(r);if(9===e.keyCode&&!o&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(y=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(h)?e.substring(h.length):e})).join("\n");if(l!==f){var b=y[m];t._applyEdits({value:f,selectionStart:(null==b?void 0:b.startsWith(h))?c-h.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var y,k=(y=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;b=y[k],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=k&&t<=v?h+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?c+h.length:c,selectionEnd:u+h.length*(v-k+1)})}else{var _=c+h.length;t._applyEdits({value:l.substring(0,c)+h+l.substring(u),selectionStart:_,selectionEnd:_})}else if(8===e.keyCode){var S=c!==u;l.substring(0,c).endsWith(h)&&!S&&(e.preventDefault(),_=c-h.length,t._applyEdits({value:l.substring(0,c-h.length)+l.substring(u),selectionStart:_,selectionEnd:_}))}else if(13===e.keyCode){if(c===u){var C=t._getLines(l,c).pop(),N=null==C?void 0:C.match(/^\s+/);if(null==N?void 0:N[0]){e.preventDefault();var w="\n"+N[0];_=c+w.length,t._applyEdits({value:l.substring(0,c)+w+l.substring(u),selectionStart:_,selectionEnd:_})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var x=void 0;57===e.keyCode&&e.shiftKey?x=["(",")"]:219===e.keyCode?x=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?x=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(x=["`","`"]),c!==u&&x&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+x[0]+l.substring(c,u)+x[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(d?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(d?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||d&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value,a=n.selectionStart,o=n.selectionEnd;t._recordChange({value:r,selectionStart:a,selectionEnd:o},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return a(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,a=t.padding,s=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,d=t.disabled,g=t.form,b=t.maxLength,y=t.minLength,k=t.name,v=t.placeholder,_=t.readOnly,S=t.required,C=t.onClick,N=t.onFocus,w=t.onBlur,x=t.onKeyUp,E=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),L=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:"object"==typeof a?a.top:a,paddingRight:"object"==typeof a?a.right:a,paddingBottom:"object"==typeof a?a.bottom:a,paddingLeft:"object"==typeof a?a.left:a},T=s(n);return u.createElement("div",o({},L,{style:o(o({},f.container),r)}),u.createElement("pre",o({className:E,"aria-hidden":"true",style:o(o(o({},f.editor),f.highlight),P)},"string"==typeof T?{dangerouslySetInnerHTML:{__html:T+"<br />"}}:{children:T})),u.createElement("textarea",{ref:function(t){return e._input=t},style:o(o(o({},f.editor),f.textarea),P),className:h+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:C,onKeyUp:x,onFocus:N,onBlur:w,disabled:d,form:g,maxLength:b,minLength:y,name:k,placeholder:v,readOnly:_,required:S,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},250:(e,t,n)=>{"use strict";var r=n(196),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,i=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return i((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),s((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(196),a=n(688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=a.useSyncExternalStore,i=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var p=i(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=c((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==a&&d.hasValue){var t=d.value;if(a(t,e))return i=t}return i=e}if(t=i,o(s,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(s=e,i=n)}var s,i,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,a]);var h=s(e,p[0],p[1]);return l((function(){d.hasValue=!0,d.value=h}),[h]),u(h),h}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},930:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const a=r(n(418));let o=null,s=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const a=e.charCodeAt(n);let o=a,s=!1;if(a>=55296&&a<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=65536+(a-55296<<10)|t-56320,s=!0)}t+=o<=127?1:o<=2047?2:o<=65535?3:4,s&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),r=n!==t,a=r?new Uint32Array(t+1):null;r&&(a[t]=n);const o=r?new Uint32Array(n+1):null;r&&(o[n]=t);const s=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}r&&(a[n]=l,u&&(a[n+1]=l),c<=127?o[l+0]=n:c<=2047?(o[l+0]=n,o[l+1]=n):c<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),c<=127?s[l++]=c:c<=2047?(s[l++]=192|(1984&c)>>>6,s[l++]=128|(63&c)>>>0):c<=65535?(s[l++]=224|(61440&c)>>>12,s[l++]=128|(4032&c)>>>6,s[l++]=128|(63&c)>>>0):(s[l++]=240|(1835008&c)>>>18,s[l++]=128|(258048&c)>>>12,s[l++]=128|(4032&c)>>>6,s[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!o)throw new Error("Must invoke loadWASM first.");this._onigBinding=o,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=o._omalloc(1e4)),l._sharedPtrInUse=!0,o.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(o)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!o)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let r=0,a=e.length;r<a;r++){const a=new i(e[r]);t[r]=a.createString(o),n[r]=a.utf8Length}const r=o._omalloc(4*e.length);o.HEAPU32.set(t,r/4);const a=o._omalloc(4*e.length);o.HEAPU32.set(n,a/4);const s=o._createOnigScanner(r,a,e.length);for(let n=0,r=e.length;n<r;n++)o._ofree(t[n]);o._ofree(a),o._ofree(r),0===s&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(o),this._onigBinding=o,this._ptr=s}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=s,a=0;if("number"==typeof n?(8&n&&(r=!0),a=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,r,a);return e.dispose(),n}return this._findNextMatchSync(e,t,r,a)}_findNextMatchSync(e,t,n,r){const a=this._onigBinding;let o;if(o=n?a._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):a._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===o)return null;const s=a.HEAPU32;let i=o/4;const l=s[i++],c=s[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(s[i++]),r=e.convertUtf8OffsetToUtf16(s[i++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,r,s;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return p=new Promise(((e,t)=>{r=e,s=t})),function(e,t,n,r){(0,a.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{o=e,n()}))}(t,n,r,s),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){s=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,r=void 0!==(e=e||{})?e:{};r.ready=new Promise((function(e,r){t=e,n=r}));var a,o=Object.assign({},r),s=[];a=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||x(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=r.print||console.log.bind(console),u=r.printErr||console.warn.bind(console);Object.assign(r,o),o=null,r.arguments&&(s=r.arguments),r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(i=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&x("no native wasm support detected");var p,d,h,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&g)return g.decode(e.subarray(t,a));for(var o="";t<a;){var s=e[t++];if(128&s){var i=63&e[t++];if(192!=(224&s)){var l=63&e[t++];if((s=224==(240&s)?(15&s)<<12|i<<6|l:(7&s)<<18|i<<12|l<<6|63&e[t++])<65536)o+=String.fromCharCode(s);else{var c=s-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&s)<<6|i)}else o+=String.fromCharCode(s)}return o}function b(e){p=e,r.HEAP8=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAP32=new Int32Array(e),r.HEAPU8=d=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=h=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}r.INITIAL_MEMORY;var y=[],k=[],v=[];function _(e){y.unshift(e)}function S(e){v.unshift(e)}var C=0,N=null,w=null;function x(e){r.onAbort&&r.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var E,L;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function T(e){try{if(e==E&&i)return new Uint8Array(i);if(a)return a(e);throw"both async and sync fetching of the wasm failed"}catch(e){x(e)}}function j(e){for(;e.length>0;)e.shift()(r)}function A(e){try{return l.grow(e-p.byteLength+65535>>>16),b(l.buffer),1}catch(e){}}P(E="onig.wasm")||(E=function(e){return r.locateFile?r.locateFile(e,""):""+e}(E)),L="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var B,M={emscripten_get_now:L,emscripten_memcpy_big:function(e,t,n){d.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=d.length,r=2147483648;if((e>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var o=n*(1+.2/a);if(o=Math.min(o,e+100663296),A(Math.min(r,(t=Math.max(e,o))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,r){for(var a=0,o=0;o<n;o++){var s=h[t>>2],i=h[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,d[s+l]);a+=i}return h[r>>2]=a,0}};function I(e){function n(){B||(B=!0,r.calledRun=!0,m||(j(k),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)S(r.postRun.shift());j(v)}()))}e=e||s,C>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)_(r.preRun.shift());j(y)}(),C>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:M,wasi_snapshot_preview1:M};function t(e,t){var n=e.exports;r.asm=n,b((l=r.asm.memory).buffer),r.asm.__indirect_function_table,function(e){k.unshift(e)}(r.asm.__wasm_call_ctors),function(e){if(C--,r.monitorRunDependencies&&r.monitorRunDependencies(C),0==C&&(null!==N&&(clearInterval(N),N=null),w)){var t=w;w=null,t()}}()}function a(e){t(e.instance)}function o(t){return Promise.resolve().then((function(){return T(E)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),x(e)}))}if(C++,r.monitorRunDependencies&&r.monitorRunDependencies(C),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||P(E)||"function"!=typeof fetch?o(a):fetch(E,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(a,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),o(a)}))}))).catch(n)}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=function(e,t){return e?f(d,e,t):""},w=function e(){B||I(),B||(w=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return I(),e.ready});e.exports=t}},t={},function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(770);var e,t},e.exports=t()},190:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),r=n.getTokenType(e),a=n.getFontStyle(e),o=n.getForeground(e),s=n.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:a,foreground:o,background:s})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,a,o,s,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),d=n.getForeground(e),h=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==a&&(u=a?1:0),-1!==o&&(p=o),0!==s&&(d=s),0!==i&&(h=i),(l<<0|c<<8|u<<10|p<<11|d<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class a{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=a;class o{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new a(t,n)})),this._defaultAttributes=new a(e,8),this._embeddedLanguagesMatcher=new s(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?o._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(o.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=o,o._NULL_SCOPE_METADATA=new a(0,0),o.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class s{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const r=n(350),a=n(36),o=n(736),s=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function d(e,t,n,r,a){const s=o.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(n,r,a.repository);for(const n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:a,priority:n.priority})}function h(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(m(t[r],e))return n=r+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,r,a,o,s,i){return new g(e,t,n,r,a,o,s,i)};class g{constructor(e,t,n,r,a,s,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const e of Object.keys(a)){const t=o.createMatchers(e,h);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:a[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)d(e,t,r[t],this,n);const a=this._grammarRepository.injections(t);a&&a.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&d(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),r.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=a.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);let i;i=s?b.createRootAndLookUpScopeName(s,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new k(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=p._tokenizeString(this,l,o,0,t,u,!0,r);return s.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),a=new l.ScopeStack(null,e),o=n.themeProvider.themeMatch(a),s=b.mergeAttributes(t,r,o);return new b(null,a,s)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,s=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,s=n.backgroundId),a.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,s)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const e of n)r=b._pushAttributed(r,e,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),a=e.scopePath.push(t),o=n.themeProvider.themeMatch(a),s=b.mergeAttributes(e.tokenAttributes,r,o);return new b(e,a,s)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,a,o,s,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,a,o,s){return new y(this,e,t,n,r,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):o.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>o.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class k{constructor(e,t,n,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,r.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=a.EncodedTokenAttributes.set(n,0,a.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(n=a.EncodedTokenAttributes.set(n,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(r.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=k},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const r=n(878);class a{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=a;class o{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=o;class s{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof a?c({baseGrammar:s,selfGrammar:o},r):l(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const i=n.injections(e.scopeName);if(i)for(const e of i)r.add(new a(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const s of e){if(n.visitedRule.has(s))continue;n.visitedRule.add(s);const e=s.repository?r.mergeObjects({},t.repository,s.repository):t.repository;Array.isArray(s.patterns)&&u(s.patterns,{...t,repository:e},n);const i=s.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const a={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===p.kind?l(p.ruleName,a,n):c(a,n)}else 4===p.kind?n.add(new o(p.scopeName,p.ruleName)):n.add(new a(p.scopeName))}}}t.ExternalReferenceCollector=s,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new a(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new s;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof a){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class d{constructor(){this.kind=1}}t.SelfReference=d;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new d;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new h(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g(n,r)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const r=n(350),a=n(44),o=n(792),s=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,a,l,p,h,m){const g=t.content.length;let f=!1,b=-1;if(h){const s=function(e,t,n,a,s,i){let l=s.beginRuleCapturedEOL?0:-1;const c=[];for(let t=s;t;t=t.pop()){const n=t.getRule(e);n instanceof o.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:h}=u(p.rule,e,p.stack.endRule,n,a===l),m=c.findNextMatchSync(t,a,h);if(r.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){r.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),s=p.stack.pop();break}if(m.ruleId!==o.whileRuleId){s=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),d(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>a&&(a=m.captureIndices[0].end,n=!1))}return{stack:s,linePos:a,anchorPosition:l,isFirstLine:n}}(e,t,n,a,l,p);l=s.stack,a=s.linePos,n=s.isFirstLine,b=s.anchorPosition}const y=Date.now();for(;!f;){if(0!==m&&Date.now()-y>m)return new i(l,!0);k()}return new i(l,!1);function k(){r.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${a}: |${t.content.substr(a).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,a,o,i){const l=function(e,t,n,a,o,i){const l=o.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,o.endRule,n,a===i);let d=0;r.DebugFlags.InDebugMode&&(d=s.performanceNow());const h=u.findNextMatchSync(t,a,p);if(r.DebugFlags.InDebugMode){const e=s.performanceNow()-d;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${a}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,n,a,o,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,a,o,s,i){let l,u=Number.MAX_VALUE,p=null,d=0;const h=s.contentNameScopesList.getScopeNames();for(let s=0,m=e.length;s<m;s++){const m=e[s];if(!m.matcher(h))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:b}=c(g,t,null,a,o===i),y=f.findNextMatchSync(n,o,b);if(!y)continue;r.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const k=y.captureIndices[0].start;if(!(k>=u)&&(u=k,p=y.captureIndices,l=y.ruleId,d=m.priority,u===o))break}return p?{priorityMatch:-1===d,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,a,o,i);if(!p)return l;if(!l)return p;const d=l.captureIndices[0].start,h=p.captureIndices[0].start;return h<d||p.priorityMatch&&h===d?p:l}(e,t,n,a,l,b);if(!i)return r.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>a;if(h===o.endRuleId){const o=l.getRule(e);r.DebugFlags.InDebugMode&&console.log("  popping "+o.debugName+" - "+o.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),d(e,t,n,l,p,o.endCaptures,u),p.produce(l,u[0].end);const s=l;if(l=l.parent,b=s.getAnchorPos(),!m&&s.getEnterPos()===a)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=s,p.produce(l,g),void(f=!0)}else{const s=e.getRule(h);p.produce(l,u[0].start);const i=l,c=s.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,a,b,u[0].end===g,null,y,y),s instanceof o.BeginEndRule){const a=s;r.DebugFlags.InDebugMode&&console.log("  pushing "+a.debugName+" - "+a.debugBeginRegExp),d(e,t,n,l,p,a.beginCaptures,u),p.produce(l,u[0].end),b=u[0].end;const o=a.getContentName(t.content,u),c=y.pushAttributed(o,e);if(l=l.withContentNameScopesList(c),a.endHasBackReferences&&(l=l.withEndRule(a.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(s instanceof o.BeginWhileRule){const a=s;r.DebugFlags.InDebugMode&&console.log("  pushing "+a.debugName),d(e,t,n,l,p,a.beginCaptures,u),p.produce(l,u[0].end),b=u[0].end;const o=a.getContentName(t.content,u),c=y.pushAttributed(o,e);if(l=l.withContentNameScopesList(c),a.whileHasBackReferences&&(l=l.withEndRule(a.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const a=s;if(r.DebugFlags.InDebugMode&&console.log("  matched "+a.debugName+" - "+a.debugMatchRegExp),d(e,t,n,l,p,a.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>a&&(a=u[0].end,n=!1)}}function c(e,t,n,a,o){return r.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(a,o)}:{ruleScanner:e.compileAG(t,n,a,o),findOptions:0}}function u(e,t,n,a,o){return r.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(a,o)}:{ruleScanner:e.compileWhileAG(t,n,a,o),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function d(e,t,n,r,o,s,i){if(0===s.length)return;const c=t.content,u=Math.min(s.length,i.length),p=[],d=i[0].end;for(let t=0;t<u;t++){const u=s[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>d)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)o.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?o.produceFromScopes(p[p.length-1].scopes,m.start):o.produce(r,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),s=r.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),d=s.pushAttributed(p,e),h=r.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,s,d),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,h,o,!1,0),a.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);p.push(new h(t,m.end))}}for(;p.length>0;)o.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,s){let i=new r(e),l=new a,c=0,u=null,p=[],d=[];function h(){p.push(c),d.push(u)}function m(){c=p.pop(),u=d.pop()}function g(e){n(i,e)}for(;o(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},s&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(o(i,l)&&6===l.type||g("expected colon"),o(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let n={};s&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,h(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};s&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==d.length&&g("unclosed constructs"),u};class r{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class a{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function o(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,a=e.source,o=e.pos,s=e.len,i=e.line,l=e.char;for(;;){if(o>=s)return!1;if(r=a.charCodeAt(o),32!==r&&9!==r&&13!==r){if(10!==r)break;o++,i++,l=0}else o++,l++}if(t.offset=o,t.line=i,t.char=l,34===r){for(t.type=1,o++,l++;;){if(o>=s)return!1;if(r=a.charCodeAt(o),o++,l++,92!==r){if(34===r)break}else o++,l++}t.value=a.substring(t.offset+1,o-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,o++,l++;else if(123===r)t.type=3,o++,l++;else if(93===r)t.type=4,o++,l++;else if(125===r)t.type=5,o++,l++;else if(58===r)t.type=6,o++,l++;else if(44===r)t.type=7,o++,l++;else if(110===r){if(t.type=8,o++,l++,r=a.charCodeAt(o),117!==r)return!1;if(o++,l++,r=a.charCodeAt(o),108!==r)return!1;if(o++,l++,r=a.charCodeAt(o),108!==r)return!1;o++,l++}else if(116===r){if(t.type=9,o++,l++,r=a.charCodeAt(o),114!==r)return!1;if(o++,l++,r=a.charCodeAt(o),117!==r)return!1;if(o++,l++,r=a.charCodeAt(o),101!==r)return!1;o++,l++}else if(102===r){if(t.type=10,o++,l++,r=a.charCodeAt(o),97!==r)return!1;if(o++,l++,r=a.charCodeAt(o),108!==r)return!1;if(o++,l++,r=a.charCodeAt(o),115!==r)return!1;if(o++,l++,r=a.charCodeAt(o),101!==r)return!1;o++,l++}else for(t.type=11;;){if(o>=s)return!1;if(r=a.charCodeAt(o),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;o++,l++}return t.len=o-t.offset,null===t.value&&(t.value=a.substr(t.offset,t.len)),e.pos=o,e.line=i,e.char=l,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const o=n(391),s=n(50),i=n(652),l=n(583),c=n(965);a(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new o.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,a){const o=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;o.Q.length>0;)await Promise.all(o.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),o.processQueue();return this._grammarForScopeName(e,t,n,r,a)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,a)}},t.INITIAL=o.StateStack.NULL,t.parseRawGrammar=s.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const r=[],a=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=i();if(r.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return r;function s(){if("-"===o){o=a.next();const e=s();return t=>!!e&&!e(t)}if("("===o){o=a.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===o||","===o);){do{o=a.next()}while("|"===o||","===o);t=i()}return t=>e.some((e=>e(t)))}();return")"===o&&(o=a.next()),e}if(n(o)){const e=[];do{e.push(o),o=a.next()}while(n(o));return n=>t(e,n)}return null}function i(){const e=[];let t=s();for(;t;)e.push(t),t=s();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),a=n(350),o=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,s=t,a.DebugFlags.InDebugMode?o.parseJSON(n,s,!0):JSON.parse(n)):function(e,t){return a.DebugFlags.InDebugMode?r.parseWithLocation(e,t,"$vscodeTextmateLocation"):r.parsePLIST(e)}(e,t);var n,s}},69:(e,t)=>{function n(e,t,n){const r=e.length;let a=0,o=1,s=0;function i(t){if(null===n)a+=t;else for(;t>0;)10===e.charCodeAt(a)?(a++,o++,s=0):(a++,s++),t--}function l(e){null===n?a=e:i(e-a)}function c(){for(;a<r;){let t=e.charCodeAt(a);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(a,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,a);l(-1!==n?n+t.length:r)}function d(t){let n=e.indexOf(t,a);if(-1!==n){let r=e.substring(a,n);return l(n+t.length),r}{let t=e.substr(a);return l(r),t}}r>0&&65279===e.charCodeAt(0)&&(a=1);let h=0,m=null,g=[],f=[],b=null;function y(e,t){g.push(h),f.push(m),h=e,m=t}function k(){if(0===g.length)return v("illegal state stack");h=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+a+": "+t+" ~~~"+e.substr(a,50)+"~~~")}const _=function(){if(null===b)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:o,char:s}),m[b]=e,b=null,y(1,e)},S=function(){if(null===b)return v("missing <key>");let e=[];m[b]=e,b=null,y(2,e)},C=function(){let e={};null!==n&&(e[n]={filename:t,line:o,char:s}),m.push(e),y(1,e)},N=function(){let e=[];m.push(e),y(2,e)};function w(){if(1!==h)return v("unexpected </dict>");k()}function x(){return 1===h||2!==h?v("unexpected </array>"):void k()}function E(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function L(e){if(isNaN(e))return v("cannot parse float");if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function P(e){if(isNaN(e))return v("cannot parse integer");if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function T(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function j(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function A(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function R(){let e=d(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=d("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;a<r&&(c(),!(a>=r));){const l=e.charCodeAt(a);if(i(1),60!==l)return v("expected <");if(a>=r)return v("unexpected end of input");const d=e.charCodeAt(a);if(63===d){i(1),p("?>");continue}if(33===d){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===d){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),w();continue}if(u("array")){p(">"),x();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===h?_():2===h?C():(m={},null!==n&&(m[n]={filename:t,line:o,char:s}),y(1,m)),g.isClosed&&w();continue;case"array":1===h?S():2===h?N():(m=[],y(2,m)),g.isClosed&&x();continue;case"key":B=O(g),1!==h?v("unexpected <key>"):null!==b?v("too many <key>"):b=B;continue;case"string":E(O(g));continue;case"real":L(parseFloat(O(g)));continue;case"integer":P(parseInt(O(g),10));continue;case"date":T(new Date(O(g)));continue;case"data":j(O(g));continue;case"true":O(g),A(!0);continue;case"false":O(g),A(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var B;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,a,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,r.createGrammar(e,s,t,n,a,o,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),a=n(965),o=/\\(\d+)/,s=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,a){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,r,a){super(e,t,n,null),this._match=new m(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,r,a,o,s,i,l,c){super(e,t,n,r),this._begin=new m(a,this.id),this.beginCaptures=o,this._end=new m(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class d extends i{constructor(e,n,r,a,o,s,i,l,c){super(e,n,r,a),this._begin=new m(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=d;class h{static createCaptureRule(e,t,n,r,a){return e.registerRule((e=>new l(t,e,n,r,a)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((a=>{if(e.id=a,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let a=e.patterns;return void 0===a&&e.include&&(a=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(a,t,n))}return e.while?new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,n),h._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,h._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let a=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>a&&(a=e)}for(let e=0;e<=a;e++)r[e]=null;for(const a in e){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let s=0;e[a].patterns&&(s=h.getCompiledRuleId(e[a],t,n)),r[o]=h.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let o=0,s=e.length;o<s;o++){const s=e[o];let i=-1;if(s.include){const e=a.parseInclude(s.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(n[s.include],t,n);break;case 2:let r=n[e.ruleName];r&&(i=h.getCompiledRuleId(r,t,n));break;case 3:case 4:const a=e.scopeName,o=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(a,n);if(l)if(o){let e=l.repository[o];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(s,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof d)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(i)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}t.RuleFactory=h;class m{constructor(e,t){if(e){const t=e.length;let n=0,r=[],a=!1;for(let o=0;o<t;o++)if("\\"===e.charAt(o)&&o+1<t){const t=e.charAt(o+1);"z"===t?(r.push(e.substring(n,o)),r.push("$(?!\\n)(?<!\\n)"),n=o+2):"A"!==t&&"G"!==t||(a=!0),o++}this.hasAnchor=a,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=o.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return s.lastIndex=0,this.source.replace(s,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,a=[],o=[],s=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),a[e]=n,o[e]=n,s[e]=n,i[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(a[e+1]="￿",o[e+1]="￿",s[e+1]="A",i[e+1]="A"):"G"===r?(a[e+1]="￿",o[e+1]="G",s[e+1]="￿",i[e+1]="G"):(a[e+1]=r,o[e+1]=r,s[e+1]=r,i[e+1]=r),e++);return{A0_G0:a.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const r=n(878);class a{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new r.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=r.strcmp(e.scope,t.scope);return 0!==n?n:(n=r.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,o="#000000",s="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(o=t.foreground),null!==t.background&&(s=t.background)}let l=new u(t),c=new i(n,l.getId(o),l.getId(s)),h=new d(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];h.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new a(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,r=t[n];for(;e;){if(s(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=a;class o{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new o(t,e[n]);return t}push(e){return new o(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function s(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=o;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],a=0;for(let e=0,o=t.length;e<o;e++){let o,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),o=e.split(",")}else o=Array.isArray(s.scope)?s.scope:[""];let i=-1;if("string"==typeof s.settings.fontStyle){i=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof s.settings.foreground&&r.isValidHexColor(s.settings.foreground)&&(l=s.settings.foreground);let u=null;"string"==typeof s.settings.background&&r.isValidHexColor(s.settings.background)&&(u=s.settings.background);for(let t=0,r=o.length;t<r;t++){let r=o[t].trim().split(" "),s=r[r.length-1],p=null;r.length>1&&(p=r.slice(0,r.length-1),p.reverse()),n[a++]=new c(s,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,n,r,a){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=a}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=p;class d{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let a=null===n?0:n.length,o=null===r?0:r.length;if(a===o)for(let e=0;e<a;e++){const t=n[e].length,a=r[e].length;if(t!==a)return a-t}return o-a}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return d._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):d._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,a,o){if(""===t)return void this._doInsertHere(e,n,r,a,o);let s,i,l,c=t.indexOf(".");-1===c?(s=t,i=""):(s=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(s)?l=this._children[s]:(l=new d(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[s]=l),l.insert(e+1,i,n,r,a,o)}_doInsertHere(e,t,n,a,o){if(null!==t){for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let i=this._rulesWithParentScopes[s];if(0===r.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,a,o)}-1===n&&(n=this._mainRule.fontStyle),0===a&&(a=this._mainRule.foreground),0===o&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,a,o))}else this._mainRule.acceptOverwrite(e,n,a,o)}}t.ThemeTrieElement=d},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,a=e.length;r<a;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){let t={};for(let r in e)t[r]=n(e[r]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function a(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(r.lastIndex=0,r.test(e))}static replaceCaptures(e,t,n){return e.replace(r,((e,r,a,o)=>{let s=n[parseInt(r||a,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=a,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=a(e[r],t[r]);if(0!==n)return n}return 0}return n-r},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(787)})()},196:e=>{"use strict";e.exports=window.React},799:()=>{},318:()=>{}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,a,o)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,a,o]=e[u],i=!0,l=0;l<n.length;l++)(!1&o||s>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(i=!1,o<s&&(s=o));if(i){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,a,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={826:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var a,o,[s,i,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(l)var u=l(r)}for(t&&t(n);c<s.length;c++)o=s[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=globalThis.webpackChunkcode_block_pro=globalThis.webpackChunkcode_block_pro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=r.O(void 0,[431],(()=>r(461)));a=r.O(a)})();
     1(()=>{var e,t={)));a=r.O(a)})();
  • code-block-pro/tags/1.26.2/build/shiki/dist/index.browser.mjs

    r3023112 r3064975  
    1 const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,a,r,o){let i=n.getLanguageId(e),c=n.getTokenType(e),l=n.getFontStyle(e),u=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==a&&(l=a),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function r(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function o(e){return e.startsWith("./")?e.slice(2):e}function i(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function c(...e){return e.map(r).map(o).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,s=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t};var l,u,p,h,m={exports:{}}.exports=s();function d(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(g(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(g(t));return o=15}if(f(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(f(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!f(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,f(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!y(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&y(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&y(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&y(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&y(e.charCodeAt(a))){for(a++;a<e.length&&y(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(g(e)||f(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function g(e){return 32===e||9===e}function f(e){return 10===e||13===e}function y(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(l||(l={})),(u||(u={})).DEFAULT={allowTrailingComma:!1},function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(p||(p={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(h||(h={}));const b=function(e,t=[],s=u.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=u.DEFAULT){const a=d(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),p=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),g=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(p(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return g(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var _;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(_||(_={}));const N="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,k="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,S=N||!k&&!L;let P="",v="";function j(e){P=e.endsWith("/")?e:e+"/"}function w(e){v=e}let C=null;function x(e){if(S)return`${P}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(S)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=b(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(c(...i(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B,G,F={exports:{}};F.exports=(B={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
     1const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
  • code-block-pro/tags/1.26.2/build/shiki/dist/index.esm.js

    r3023112 r3064975  
    1 import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
     1import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
  • code-block-pro/tags/1.26.2/build/shiki/dist/index.js

    r3023112 r3064975  
    1 "use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
     1"use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
  • code-block-pro/tags/1.26.2/build/shiki/dist/index.jsdelivr.iife.js

    r3023112 r3064975  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://cdn.jsdelivr.net/npm/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • code-block-pro/tags/1.26.2/build/shiki/dist/index.mjs

    r3023112 r3064975  
    1 const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,a,s,r,o){let i=n.getLanguageId(e),l=n.getTokenType(e),c=n.getFontStyle(e),u=n.getForeground(e),m=n.getBackground(e);return 0!==t&&(i=t),0!==a&&(l=8===a?0:a),-1!==s&&(c=s),0!==r&&(u=r),0!==o&&(m=o),(i<<0|l<<8|c<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|m<<24)>>>0}}class r{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];return t?t.grammar?t.grammar:t.import?(t.grammar=await t.import(),t.grammar):void 0:null}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var o,i,l={exports:{}};l.exports=(o={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(a=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},a.print=function(e){const t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})},a.getLanguageId=function(e){return(255&e)>>>0},a.getTokenType=function(e){return(768&e)>>>8},a.containsBalancedBrackets=function(e){return 0!=(1024&e)},a.getFontStyle=function(e){return(30720&e)>>>11},a.getForeground=function(e){return(16744448&e)>>>15},a.getBackground=function(e){return(4278190080&e)>>>24},a.set=function(e,t,s,n,r,o,i){let l=a.getLanguageId(e),c=a.getTokenType(e),u=a.containsBalancedBrackets(e)?1:0,m=a.getFontStyle(e),p=a.getForeground(e),h=a.getBackground(e);return 0!==t&&(l=t),8!==s&&(c=s),null!==n&&(u=n?1:0),-1!==r&&(m=r),0!==o&&(p=o),0!==i&&(h=i),(l<<0|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
     1const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
  • code-block-pro/tags/1.26.2/build/shiki/dist/index.unpkg.iife.js

    r3023112 r3064975  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://unpkg.com/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/README.md

    r2843665 r3064975  
    44[![npm Package](https://img.shields.io/npm/v/jsonc-parser.svg?style=flat-square)](https://www.npmjs.org/package/jsonc-parser)
    55[![NPM Downloads](https://img.shields.io/npm/dm/jsonc-parser.svg)](https://npmjs.org/package/jsonc-parser)
    6 [![Build Status](https://travis-ci.org/microsoft/node-jsonc-parser.svg?branch=main)](https://travis-ci.org/Microsoft/node-jsonc-parser)
     6[![Build Status](https://github.com/microsoft/node-jsonc-parser/workflows/Tests/badge.svg)](https://github.com/microsoft/node-jsonc-parser/workflows/Tests)
     7[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
    78
    89Why?
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/lib/esm/impl/format.js

    r2843665 r3064975  
    1 "use strict";import{createScanner}from"./scanner";export function format(e,t,n){let r,s,i,a,c;if(t){for(a=t.offset,c=a+t.length,i=a;i>0&&!isEOL(e,i-1);)i--;let f=c;for(;f<e.length&&!isEOL(e,f);)f++;s=e.substring(i,f),r=computeIndentLevel(s,n)}else s=e,r=0,i=0,a=0,c=e.length;const f=getEOL(n,e);let o,k=0,l=0;o=n.insertSpaces?repeat(" ",n.tabSize||4):"\t";let p=createScanner(s,!1),L=!1;function u(){return k>1?repeat(f,k)+repeat(o,r+l):f+repeat(o,r+l)}function g(){let e=p.scan();for(k=0;15===e||14===e;)14===e&&n.keepLines?k+=1:14===e&&(k=1),e=p.scan();return L=16===e||0!==p.getTokenError(),e}const h=[];function b(n,r,s){L||t&&!(r<c&&s>a)||e.substring(r,s)===n||h.push({offset:r,length:s-r,content:n})}let O=g();if(n.keepLines&&k>0&&b(repeat(f,k),0,0),17!==O){let e=p.getTokenOffset()+i;b(repeat(o,r),i,e)}for(;17!==O;){let e=p.getTokenOffset()+p.getTokenLength()+i,t=g(),r="",s=!1;for(;0===k&&(12===t||13===t);)b(" ",e,p.getTokenOffset()+i),e=p.getTokenOffset()+p.getTokenLength()+i,s=12===t,r=s?u():"",t=g();if(2===t)1!==O&&l--,n.keepLines&&k>0||!n.keepLines&&1!==O?r=u():n.keepLines&&(r=" ");else if(4===t)3!==O&&l--,n.keepLines&&k>0||!n.keepLines&&3!==O?r=u():n.keepLines&&(r=" ");else{switch(O){case 3:case 1:l++,r=n.keepLines&&k>0||!n.keepLines?u():" ";break;case 5:r=n.keepLines&&k>0||!n.keepLines?u():" ";break;case 12:r=u();break;case 13:k>0?r=u():s||(r=" ");break;case 6:n.keepLines&&k>0?r=u():s||(r=" ");break;case 10:n.keepLines&&k>0?r=u():6!==t||s||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&k>0?r=u():12!==t&&13!==t||s?5!==t&&17!==t&&(L=!0):r=" ";break;case 16:L=!0}k>0&&(12===t||13===t)&&(r=u())}17===t&&(r=n.keepLines&&k>0?u():n.insertFinalNewline?f:""),b(r,e,p.getTokenOffset()+i),O=t}return h}function repeat(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function computeIndentLevel(e,t){let n=0,r=0;const s=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(" "===t)r++;else{if("\t"!==t)break;r+=s}n++}return Math.floor(r/s)}function getEOL(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}export function isEOL(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}
     1"use strict";import{createScanner}from"./scanner";/s)}function getEOL(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}export function isEOL(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/lib/esm/main.d.ts

    r2843665 r3064975  
    140140}
    141141export declare function printParseErrorCode(code: ParseErrorCode): "InvalidSymbol" | "InvalidNumberFormat" | "PropertyNameExpected" | "ValueExpected" | "ColonExpected" | "CommaExpected" | "CloseBraceExpected" | "CloseBracketExpected" | "EndOfFileExpected" | "InvalidCommentToken" | "UnexpectedEndOfComment" | "UnexpectedEndOfString" | "UnexpectedEndOfNumber" | "InvalidUnicode" | "InvalidEscapeCharacter" | "InvalidCharacter" | "<unknown ParseErrorCode>";
    142 export declare type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
     142export type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
    143143export interface Node {
    144144    readonly type: NodeType;
     
    154154 * or a number (starting at 0) for array indices.
    155155 */
    156 export declare type Segment = string | number;
    157 export declare type JSONPath = Segment[];
     156export type Segment = string | number;
     157export type JSONPath = Segment[];
    158158export interface Location {
    159159    /**
     
    243243 * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data.
    244244 */
    245 export declare type EditResult = Edit[];
     245export type EditResult = Edit[];
    246246/**
    247247 * Represents a text modification
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/lib/umd/impl/format.js

    r2843665 r3064975  
    1 !function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define(["require","exports","./scanner"],e)}((function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isEOL=n.format=void 0;const t=e("./scanner");function s(e,n){let t="";for(let s=0;s<n;s++)t+=e;return t}function r(e,n){return-1!=="\r\n".indexOf(e.charAt(n))}n.format=function(e,n,i){let o,f,c,a,l;if(n){for(a=n.offset,l=a+n.length,c=a;c>0&&!r(e,c-1);)c--;let t=l;for(;t<e.length&&!r(e,t);)t++;f=e.substring(c,t),o=function(e,n){let t=0,s=0;const r=n.tabSize||4;for(;t<e.length;){let n=e.charAt(t);if(" "===n)s++;else{if("\t"!==n)break;s+=r}t++}return Math.floor(s/r)}(f,i)}else f=e,o=0,c=0,a=0,l=e.length;const k=function(e,n){for(let e=0;e<n.length;e++){const t=n.charAt(e);if("\r"===t)return e+1<n.length&&"\n"===n.charAt(e+1)?"\r\n":"\r";if("\n"===t)return"\n"}return e&&e.eol||"\n"}(i,e);let u,p=0,L=0;u=i.insertSpaces?s(" ",i.tabSize||4):"\t";let g=(0,t.createScanner)(f,!1),h=!1;function b(){return p>1?s(k,p)+s(u,o+L):k+s(u,o+L)}function d(){let e=g.scan();for(p=0;15===e||14===e;)14===e&&i.keepLines?p+=1:14===e&&(p=1),e=g.scan();return h=16===e||0!==g.getTokenError(),e}const O=[];function T(t,s,r){h||n&&!(s<l&&r>a)||e.substring(s,r)===t||O.push({offset:s,length:r-s,content:t})}let m=d();if(i.keepLines&&p>0&&T(s(k,p),0,0),17!==m){let e=g.getTokenOffset()+c;T(s(u,o),c,e)}for(;17!==m;){let e=g.getTokenOffset()+g.getTokenLength()+c,n=d(),t="",s=!1;for(;0===p&&(12===n||13===n);)T(" ",e,g.getTokenOffset()+c),e=g.getTokenOffset()+g.getTokenLength()+c,s=12===n,t=s?b():"",n=d();if(2===n)1!==m&&L--,i.keepLines&&p>0||!i.keepLines&&1!==m?t=b():i.keepLines&&(t=" ");else if(4===n)3!==m&&L--,i.keepLines&&p>0||!i.keepLines&&3!==m?t=b():i.keepLines&&(t=" ");else{switch(m){case 3:case 1:L++,t=i.keepLines&&p>0||!i.keepLines?b():" ";break;case 5:t=i.keepLines&&p>0||!i.keepLines?b():" ";break;case 12:t=b();break;case 13:p>0?t=b():s||(t=" ");break;case 6:i.keepLines&&p>0?t=b():s||(t=" ");break;case 10:i.keepLines&&p>0?t=b():6!==n||s||(t="");break;case 7:case 8:case 9:case 11:case 2:case 4:i.keepLines&&p>0?t=b():12!==n&&13!==n||s?5!==n&&17!==n&&(h=!0):t=" ";break;case 16:h=!0}p>0&&(12===n||13===n)&&(t=b())}17===n&&(t=i.keepLines&&p>0?b():i.insertFinalNewline?k:""),T(t,e,g.getTokenOffset()+c),m=n}return O},n.isEOL=r}));
     1!function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define(["require","exports","./scanner"},n.isEOL=r}));
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/lib/umd/main.d.ts

    r2843665 r3064975  
    140140}
    141141export declare function printParseErrorCode(code: ParseErrorCode): "InvalidSymbol" | "InvalidNumberFormat" | "PropertyNameExpected" | "ValueExpected" | "ColonExpected" | "CommaExpected" | "CloseBraceExpected" | "CloseBracketExpected" | "EndOfFileExpected" | "InvalidCommentToken" | "UnexpectedEndOfComment" | "UnexpectedEndOfString" | "UnexpectedEndOfNumber" | "InvalidUnicode" | "InvalidEscapeCharacter" | "InvalidCharacter" | "<unknown ParseErrorCode>";
    142 export declare type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
     142export type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
    143143export interface Node {
    144144    readonly type: NodeType;
     
    154154 * or a number (starting at 0) for array indices.
    155155 */
    156 export declare type Segment = string | number;
    157 export declare type JSONPath = Segment[];
     156export type Segment = string | number;
     157export type JSONPath = Segment[];
    158158export interface Location {
    159159    /**
     
    243243 * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data.
    244244 */
    245 export declare type EditResult = Edit[];
     245export type EditResult = Edit[];
    246246/**
    247247 * Represents a text modification
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/lib/umd/main.js

    r2843665 r3064975  
    1 !function(e){if("object"==typeof module&&"object"==typeof module.exports){var r=e(require,exports);void 0!==r&&(module.exports=r)}else"function"==typeof define&&define.amd&&define(["require","exports","./impl/format","./impl/edit","./impl/scanner","./impl/parser"],e)}((function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.applyEdits=r.modify=r.format=r.printParseErrorCode=r.ParseErrorCode=r.stripComments=r.visit=r.getNodeValue=r.getNodePath=r.findNodeAtOffset=r.findNodeAtLocation=r.parseTree=r.parse=r.getLocation=r.SyntaxKind=r.ScanError=r.createScanner=void 0;const n=e("./impl/format"),t=e("./impl/edit"),a=e("./impl/scanner"),o=e("./impl/parser");var d,i,c;r.createScanner=a.createScanner,(c=r.ScanError||(r.ScanError={}))[c.None=0]="None",c[c.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",c[c.UnexpectedEndOfString=2]="UnexpectedEndOfString",c[c.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",c[c.InvalidUnicode=4]="InvalidUnicode",c[c.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",c[c.InvalidCharacter=6]="InvalidCharacter",(i=r.SyntaxKind||(r.SyntaxKind={}))[i.OpenBraceToken=1]="OpenBraceToken",i[i.CloseBraceToken=2]="CloseBraceToken",i[i.OpenBracketToken=3]="OpenBracketToken",i[i.CloseBracketToken=4]="CloseBracketToken",i[i.CommaToken=5]="CommaToken",i[i.ColonToken=6]="ColonToken",i[i.NullKeyword=7]="NullKeyword",i[i.TrueKeyword=8]="TrueKeyword",i[i.FalseKeyword=9]="FalseKeyword",i[i.StringLiteral=10]="StringLiteral",i[i.NumericLiteral=11]="NumericLiteral",i[i.LineCommentTrivia=12]="LineCommentTrivia",i[i.BlockCommentTrivia=13]="BlockCommentTrivia",i[i.LineBreakTrivia=14]="LineBreakTrivia",i[i.Trivia=15]="Trivia",i[i.Unknown=16]="Unknown",i[i.EOF=17]="EOF",r.getLocation=o.getLocation,r.parse=o.parse,r.parseTree=o.parseTree,r.findNodeAtLocation=o.findNodeAtLocation,r.findNodeAtOffset=o.findNodeAtOffset,r.getNodePath=o.getNodePath,r.getNodeValue=o.getNodeValue,r.visit=o.visit,r.stripComments=o.stripComments,(d=r.ParseErrorCode||(r.ParseErrorCode={}))[d.InvalidSymbol=1]="InvalidSymbol",d[d.InvalidNumberFormat=2]="InvalidNumberFormat",d[d.PropertyNameExpected=3]="PropertyNameExpected",d[d.ValueExpected=4]="ValueExpected",d[d.ColonExpected=5]="ColonExpected",d[d.CommaExpected=6]="CommaExpected",d[d.CloseBraceExpected=7]="CloseBraceExpected",d[d.CloseBracketExpected=8]="CloseBracketExpected",d[d.EndOfFileExpected=9]="EndOfFileExpected",d[d.InvalidCommentToken=10]="InvalidCommentToken",d[d.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",d[d.UnexpectedEndOfString=12]="UnexpectedEndOfString",d[d.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",d[d.InvalidUnicode=14]="InvalidUnicode",d[d.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",d[d.InvalidCharacter=16]="InvalidCharacter",r.printParseErrorCode=function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"},r.format=function(e,r,t){return n.format(e,r,t)},r.modify=function(e,r,n,a){return t.setProperty(e,r,n,a)},r.applyEdits=function(e,r){let n=r.slice(0).sort(((e,r)=>{const n=e.offset-r.offset;return 0===n?e.length-r.length:n})),a=e.length;for(let r=n.length-1;r>=0;r--){let o=n[r];if(!(o.offset+o.length<=a))throw new Error("Overlapping edit");e=t.applyEdit(e,o),a=o.offset}return e}}));
     1!function(e){if("object"==typeof module&&"object"==typeof module.exports){var .offset}return e}}));
  • code-block-pro/tags/1.26.2/build/shiki/node_modules/jsonc-parser/package.json

    r2843665 r3064975  
    11{
    22  "name": "jsonc-parser",
    3   "version": "3.2.0",
     3  "version": "3.2.",
    44  "description": "Scanner and parser for JSON with comments.",
    55  "main": "./lib/umd/main.js",
     
    1616  },
    1717  "devDependencies": {
    18     "mocha": "^10.0.0",
    19     "typescript": "^4.8.2",
     18    "mocha": "^10..0",
     19    "typescript": "^",
    2020    "@types/node": "^16.x",
    21     "@types/mocha": "^9.1.1",
    22     "@typescript-eslint/eslint-plugin": "^5.36.0",
    23     "@typescript-eslint/parser": "^5.36.0",
    24     "eslint": "^8.23.0",
    25     "rimraf": "^3.0.2"
     21    "@types/mocha": "^",
     22    "@typescript-eslint/eslint-plugin": "^",
     23    "@typescript-eslint/parser": "^",
     24    "eslint": "^8..0",
     25    "rimraf": "^"
    2626  },
    2727  "scripts": {
    28     "prepublishOnly": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
    29     "postpublish": "node ./build/post-publish.js",
     28    "prepack": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
    3029    "compile": "tsc -p ./src && npm run lint",
    3130    "compile-esm": "tsc -p ./src/tsconfig.esm.json",
     
    3433    "watch": "tsc -w -p ./src",
    3534    "test": "npm run compile && mocha ./lib/umd/test",
    36     "lint": "eslint src/**/*.ts",
    37     "preversion": "npm test",
    38     "postversion": "git push && git push --tags"
     35    "lint": "eslint src/**/*.ts"
    3936  }
    4037}
  • code-block-pro/tags/1.26.2/build/style-index.css

    r3023112 r3064975  
    1 .wp-block-kevinbatdorf-code-block-pro{-webkit-text-size-adjust:100%!important;box-sizing:border-box!important;direction:ltr!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;position:relative!important}.wp-block-kevinbatdorf-code-block-pro *{box-sizing:border-box!important}.wp-block-kevinbatdorf-code-block-pro pre,.wp-block-kevinbatdorf-code-block-pro pre *{font-size:inherit!important;line-height:inherit!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;background-image:none!important;border:0!important;border-radius:0!important;border-style:none!important;border-width:0!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;color:inherit!important;font-family:inherit!important;margin:0!important;overflow:auto!important;overflow-wrap:normal!important;padding:16px 0 16px 16px!important;text-align:left!important;white-space:pre!important}.wp-block-kevinbatdorf-code-block-pro.padding-disabled:not(.code-block-pro-editor) pre{padding:0!important}.wp-block-kevinbatdorf-code-block-pro.padding-bottom-disabled pre{padding-bottom:0!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;background:none!important;background-color:transparent!important;border:0!important;border-radius:0!important;border-style:none!important;border-width:0!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;color:inherit!important;display:block!important;font-family:inherit!important;margin:0!important;overflow-wrap:normal!important;padding:0!important;text-align:left!important;white-space:pre!important;width:100%!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line{display:inline-block!important;min-width:var(--cbp-block-width,100%)!important;vertical-align:top!important}.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line{padding-left:calc(12px + var(--cbp-line-number-width, auto))!important}.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code{counter-increment:step calc(var(--cbp-line-number-start, 1) - 1)!important;counter-reset:step!important}.wp-block-kevinbatdorf-code-block-pro pre code .line{position:relative!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line:before{content:""!important;display:inline-block!important}.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:not(.cbp-line-number-disabled):before{color:var(--cbp-line-number-color,#999)!important;content:counter(step)!important;counter-increment:step!important;left:0!important;opacity:.5!important;position:absolute!important;text-align:right!important;transition-duration:.5s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;width:var(--cbp-line-number-width,auto)!important}.wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover .line{min-height:var(--cbp-block-height,100%)!important}.wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,.wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,.wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{background:var(--cbp-line-highlight-color,rgb(14 165 233/.2))!important;left:-16px!important;min-height:var(--cbp-block-height,100%)!important;min-width:calc(var(--cbp-block-width, 100%) + 16px)!important;pointer-events:none!important;position:absolute!important;top:0!important;width:100%!important}[data-code-block-pro-font-family="Code-Pro-Comic-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Comic-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Comic-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{top:-.125rem!important}[data-code-block-pro-font-family=Code-Pro-Fira-Code].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Fira-Code].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Fira-Code].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{top:-1.5px!important}[data-code-block-pro-font-family="Code-Pro-Deja-Vu-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Deja-Vu-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Deja-Vu-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Cozette].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Cozette].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Cozette].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{top:-1px!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor).padding-disabled pre .line.cbp-line-highlight:after{left:0!important;width:100%!important}.wp-block-kevinbatdorf-code-block-pro.cbp-blur-enabled pre .line:not(.cbp-no-blur){filter:blur(1px)!important;opacity:.4!important;pointer-events:none!important;transition-duration:.2s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.wp-block-kevinbatdorf-code-block-pro.cbp-blur-enabled.cbp-unblur-on-hover:hover pre .line:not(.cbp-no-blur){--tw-blur:blur(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important;opacity:1!important;pointer-events:auto!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre *{font-family:inherit!important}.cbp-see-more-simple-btn-hover{transition-property:none!important}.cbp-see-more-simple-btn-hover:hover{box-shadow:inset 0 0 100px 100px hsla(0,0%,100%,.1)!important}.code-block-pro-copy-button{border:0!important;border-style:none!important;border-width:0!important;cursor:pointer!important;left:auto!important;line-height:1!important;opacity:.1!important;padding:6px!important;position:absolute!important;right:0!important;top:0!important;transition-duration:.2s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;z-index:10!important}.code-block-pro-copy-button:focus{opacity:.4!important}.code-block-pro-copy-button:not([data-has-text-button]){background:none!important;background-color:transparent!important}.wp-block-kevinbatdorf-code-block-pro.padding-disabled .code-block-pro-copy-button{padding:0!important}.wp-block-kevinbatdorf-code-block-pro:hover .code-block-pro-copy-button{opacity:.5!important}.wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button:hover{opacity:.9!important}.code-block-pro-copy-button[data-has-text-button],.wp-block-kevinbatdorf-code-block-pro:hover .code-block-pro-copy-button[data-has-text-button]{opacity:1!important}.wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button[data-has-text-button]:hover{opacity:.8!important}.code-block-pro-copy-button[data-has-text-button]{border-radius:.75rem!important;display:block!important;margin-right:.75rem!important;margin-top:.7rem!important;padding:.125rem .375rem!important}.code-block-pro-copy-button[data-inside-header-type=headlightsMuted],.code-block-pro-copy-button[data-inside-header-type^=headlights]{margin-top:.85rem!important}.code-block-pro-copy-button[data-inside-header-type=headlightsMutedAlt]{margin-top:.65rem!important}.code-block-pro-copy-button[data-inside-header-type=simpleString]{margin-top:.645rem!important}.code-block-pro-copy-button[data-inside-header-type=pillString]{margin-top:1rem!important}.code-block-pro-copy-button[data-inside-header-type=pillString] .cbp-btn-text{position:relative!important;top:1px!important}.cbp-btn-text{font-size:.75rem!important;line-height:1rem!important}.code-block-pro-copy-button .without-check{display:block!important}.code-block-pro-copy-button .with-check{display:none!important}.code-block-pro-copy-button.cbp-copying{opacity:1!important}.code-block-pro-copy-button.cbp-copying .without-check{display:none!important}.code-block-pro-copy-button.cbp-copying .with-check{display:block!important}.cbp-footer-link:hover{text-decoration-line:underline!important}
     1.wp-block-kevinbatdorf-code-block-pro{}
  • code-block-pro/tags/1.26.2/code-block-pro.php

    r3029109 r3064975  
    88 * Requires at least: 6.0
    99 * Requires PHP:      7.0
    10  * Version:           1.26.1
     10 * Version:           1.26.
    1111 * License:           GPL-2.0-or-later
    1212 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
  • code-block-pro/tags/1.26.2/package.json

    r3023112 r3064975  
    2121        "@redux-devtools/extension": "^3.3.0",
    2222        "@trivago/prettier-plugin-sort-imports": "4.3.0",
    23         "@types/wordpress__block-editor": "11.5.9",
    24         "@types/wordpress__blocks": "12.5.13",
     23        "@types/wordpress__block-editor": "11.5.",
     24        "@types/wordpress__blocks": "12.5.1",
    2525        "@types/wordpress__edit-post": "^7.5.6",
    26         "@typescript-eslint/eslint-plugin": "^6.17.0",
    27         "@typescript-eslint/parser": "6.17.0",
    28         "@wordpress/block-editor": "12.16.0",
    29         "@wordpress/env": "8.7.0",
    30         "@wordpress/scripts": "26.19.0",
    31         "@wordpress/url": "3.49.0",
    32         "autoprefixer": "10.4.16",
    33         "copy-webpack-plugin": "11.0.0",
    34         "cypress": "13.6.2",
    35         "cypress-real-events": "^1.11.0",
     26        "@typescript-eslint/eslint-plugin": "^.0",
     27        "@typescript-eslint/parser": ".0",
     28        "@wordpress/block-editor": "12..0",
     29        "@wordpress/env": ".7.0",
     30        "@wordpress/scripts": "2.0",
     31        "@wordpress/url": "3..0",
     32        "autoprefixer": "10.4.1",
     33        "copy-webpack-plugin": "1",
     34        "cypress": "13..2",
     35        "cypress-real-events": "^1.1.0",
    3636        "cypress-wait-until": "3.0.1",
    37         "eslint": "8.56.0",
     37        "eslint": "8.5.0",
    3838        "eslint-config-prettier": "9.1.0",
    3939        "eslint-plugin-cypress": "2.15.1",
    4040        "eslint-plugin-no-only-tests": "^3.1.0",
    41         "eslint-plugin-prettier": "5.1.2",
    42         "eslint-plugin-react": "7.33.2",
     41        "eslint-plugin-prettier": "5.1.",
     42        "eslint-plugin-react": "7.3",
    4343        "eslint-plugin-react-hooks": "4.6.0",
    4444        "fast-glob": "3.3.2",
    45         "glob": "10.3.10",
    46         "postcss-import": "16.0.0",
     45        "glob": "10.3.1",
     46        "postcss-import": "16..0",
    4747        "postcss-safe-important": "2.0.1",
    48         "prettier": "3.1.1",
     48        "prettier": "3.",
    4949        "replace-in-file": "7.1.0",
    50         "tailwindcss": "3.4.1",
    51         "typescript": "5.3.3",
    52         "webpack": "^5.89.0"
     50        "tailwindcss": "3.4.",
     51        "typescript": "5..3",
     52        "webpack": "^5..0"
    5353    },
    5454    "dependencies": {
    55         "@headlessui/react": "1.7.17",
    56         "@wordpress/block-editor": "12.16.0",
    57         "@wordpress/blocks": "12.25.0",
    58         "@wordpress/edit-post": "^7.25.0",
    59         "@wordpress/element": "5.25.0",
    60         "@wordpress/escape-html": "^2.48.0",
    61         "@wordpress/hooks": "3.48.0",
    62         "@wordpress/html-entities": "^3.48.0",
    63         "@wordpress/i18n": "4.48.0",
     55        "@headlessui/react": "1.7.1",
     56        "@wordpress/block-editor": "12..0",
     57        "@wordpress/blocks": "12..0",
     58        "@wordpress/edit-post": "^7..0",
     59        "@wordpress/element": "5..0",
     60        "@wordpress/escape-html": "^2..0",
     61        "@wordpress/hooks": "3..0",
     62        "@wordpress/html-entities": "^3..0",
     63        "@wordpress/i18n": "4..0",
    6464        "copy-to-clipboard": "3.3.3",
    6565        "react-simple-code-editor": "0.13.1",
    6666        "shiki": "0.14.7",
    6767        "strip-ansi": "^7.1.0",
    68         "swr": "2.2.4",
    69         "zustand": "4.4.7"
     68        "swr": "2.2.",
     69        "zustand": "4."
    7070    }
    7171}
  • code-block-pro/tags/1.26.2/readme.txt

    r3029109 r3064975  
    22Contributors:      kbat82, dcooney
    33Tags:              block, code, syntax, snippet, highlighter, JavaScript, php, js, vs code
    4 Tested up to:      6.4
    5 Stable tag:        1.26.1
     4Tested up to:      6.
     5Stable tag:        1.26.
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    311311== Changelog ==
    312312
     313
     314
     315
     316
     317
    313318= 1.26.1 - 2024-01-31 =
    314319- Fix: Fixes a bug where the plaintext language would crash the theme render
  • code-block-pro/tags/1.26.2/src/front/style.css

    r3023112 r3064975  
    233233    @apply hover:underline;
    234234}
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
     246
     247
  • code-block-pro/tags/1.26.2/src/state/language.ts

    r2887252 r3064975  
    2020                recentLanguages: [] as Lang[],
    2121                addRecentLanguage(language: Lang) {
    22                     // Limit to the last 3
     22                    // Limit to the last
    2323                    set((state) => {
    2424                        if (state.recentLanguages.includes(language)) {
     
    2727                        return {
    2828                            recentLanguages: [
    29                                 ...(state.recentLanguages?.slice(-2) ?? []),
     29                                ...(state.recentLanguages?.slice(- []),
    3030                                language,
    3131                            ],
  • code-block-pro/trunk/.wp-env.json

    r2822432 r3064975  
    11{
    22    "core": null,
    3     "plugins": ["."],
    4     "mappings": {
    5         "wp-content/plugins/prismatic": "https://downloads.wordpress.org/plugin/prismatic.zip"
    6     }
     3    "plugins": ["."]
    74}
  • code-block-pro/trunk/build/front/front.asset.php

    r3023112 r3064975  
    1 <?php return array('dependencies' => array(), 'version' => '3753b142d9458e73e42a');
     1<?php return array('dependencies' => array(), 'version' => '');
  • code-block-pro/trunk/build/front/front.js

    r3023112 r3064975  
    1 (()=>{var e={640:(e,t,o)=>{"use strict";var r=o(742),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var o,n,c,s,l,i,d=!1;t||(t={}),o=t.debug||!1;try{if(c=r(),s=document.createRange(),l=document.getSelection(),(i=document.createElement("span")).textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=a[t.format]||a.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(i),s.selectNodeContents(i),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(r){o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),i&&document.body.removeChild(i),c()}return d}},742:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],r=0;r<e.rangeCount;r++)o.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||o.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}},t={};function o(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(640),t=o.n(e);const r=".wp-block-kevinbatdorf-code-block-pro",a=()=>{(()=>{if(!window.codeBlockPro?.pluginUrl)return;const e=Array.from(document.querySelectorAll("[data-code-block-pro-font-family]:not(.cbp-ff-loaded)")||[]);e.forEach((e=>e.classList.add("cbp-ff-loaded"))),[...new Set(e.map((e=>e.dataset.codeBlockProFontFamily)).filter(Boolean))].forEach((async e=>{const[t,o]=e.split("."),r=`url(${window.codeBlockPro.pluginUrl}/build/fonts/${t}.${o||"woff2"})`,a=new FontFace(t,r);await a.load().catch((e=>console.error(e))),document.fonts.add(a)}))})(),Array.from(document.querySelectorAll(`${r}:not(.cbp-see-more-loaded) .cbp-see-more-line`)).forEach((e=>{const t=e.closest(r);t.classList.add("cbp-see-more-loaded");const o=e.closest("pre"),a=o.offsetHeight;let n=0;if(e.classList.contains("cbp-see-more-transition")){const t=o.querySelectorAll("code > *").length,r=Array.from(e.closest("code").children).filter((t=>t.offsetTop<e.offsetTop))?.length;n=.5+.01*(t-r),o.style.transition=`max-height ${n}s ease-out`}const c="SPAN"===t.children[0].tagName?t.children[0].offsetHeight:0,s=parseFloat(window.getComputedStyle(e).lineHeight);o.style.maxHeight=e.offsetTop+s-c+"px";const l=e.closest(r).querySelector(".cbp-see-more-container");if(!l)return;l.style.display="flex";const i=l.querySelector(".cbp-see-more-simple-btn");if(!i)return;t.classList.contains("padding-disabled")&&i.classList.remove("cbp-see-more-simple-btn-hover"),i.style.transition=`all ${Math.max(n,1)/1.5}s linear`;const d=e=>{e.preventDefault(),i.classList.remove("cbp-see-more-simple-btn-hover"),o.style.maxHeight=a+"px",setTimeout((()=>{i.style.opacity=0,i.style.transform="translateY(-100%)",setTimeout((()=>i.remove()),1e3*Math.max(n,1))}),1e3*n)};i.addEventListener("click",d),i.addEventListener("keydown",(e=>{"Enter"===e.key&&d(e)}))})),Array.from(document.querySelectorAll(".code-block-pro-copy-button:not(.cbp-cb-loaded)")).forEach((e=>{e.classList.add("cbp-cb-loaded"),e.style.display="block";const o=o=>{var r;const{type:a,key:n,target:c}=o;if("keydown"===a&&!["Enter"," "].includes(n))return;o.preventDefault();const s=c?.closest("span[data-code]"),l=s?.dataset?.encoded?decodeURIComponent(decodeURIComponent(s?.dataset?.code)):s?.dataset?.code,i=null!==(r=window.cbpCopyOverride?.(l,e))&&void 0!==r?r:l;t()(null!=i?i:"",{format:"text/plain",onCopy:t=>{window.cbpCopyCallback?.(t,e),s.classList.add("cbp-copying");const o=s.dataset.copiedText,r=s.querySelector("span");o&&(r.innerText=o),setTimeout((()=>{s.classList.remove("cbp-copying"),o&&(r.innerText=s.getAttribute("aria-label"))}),2e3)}})};["click","keydown"].forEach((t=>e.addEventListener(t,o)))})),Array.from(document.querySelectorAll(`${r}:not(.cbp-hl-loaded)`)).forEach((e=>{e.classList.add("cbp-hl-loaded");const t=new Set(e.querySelectorAll(".cbp-line-highlight"));e.classList.contains("cbp-highlight-hover")&&e.querySelectorAll("span.line").forEach((e=>t.add(e))),t.size&&(new ResizeObserver((()=>{const t=e.querySelectorAll("span.line");e.style.setProperty("--cbp-block-width","unset");const o=Array.from(t).reduce(((e,t)=>e.offsetWidth>t.offsetWidth?e:t)),r=Array.from(t).reduce(((e,t)=>e.offsetHeight>t.offsetHeight?e:t));e.style.setProperty("--cbp-block-height",r.offsetHeight+"px"),e.style.setProperty("--cbp-block-width",o.offsetWidth+"px")})).observe(e),t.forEach((e=>{e.querySelector(".cbp-line-highlighter")||e.insertAdjacentHTML("beforeend",'<span aria-hidden="true" class="cbp-line-highlighter"></span>')})))}))};a(),window.codeBlockProInit=a,window.addEventListener("DOMContentLoaded",a),window.addEventListener("load",a)})()})();
     1(()=>{var e={),t=o.n(e);const r=".wp-block-kevinbatdorf-code-block-pro",a=()=>{(()=>{if(!window.codeBlockPro?.pluginUrl)return;const e=Array.from(document.querySelectorAll("[data-code-block-pro-font-family]:not(.cbp-ff-loaded)")||[]);e.forEach((e=>e.classList.add("cbp-ff-loaded"))),[...new Set(e.map((e=>e.dataset.codeBlockProFontFamily)).filter(Boolean))].forEach((async e=>{const[t,o]=e.split("."),r=`url(${window.codeBlockPro.pluginUrl}/build/fonts/${t}.${o||"woff2"})`,a=new FontFace(t,r);await a.load().catch((e=>console.error(e))),document.fonts.add(a)}))})(),Array.from(document.querySelectorAll(`${r}:not(.cbp-see-more-loaded) .cbp-see-more-line`)).forEach((e=>{const t=e.closest(r);t.classList.add("cbp-see-more-loaded");const o=e.closest("pre"),a=o.offsetHeight;let n=0;if(e.classList.contains("cbp-see-more-transition")){const t=o.querySelectorAll("code > *").length,r=Array.from(e.closest("code").children).filter((t=>t.offsetTop<e.offsetTop))?.length;n=.5+.01*(t-r),o.style.transition=`max-height ${n}s ease-out`}const c="SPAN"===t.children[0].tagName?t.children[0].offsetHeight:0,s=parseFloat(window.getComputedStyle(e).lineHeight);o.style.maxHeight=e.offsetTop+s-c+"px";const l=e.closest(r).querySelector(".cbp-see-more-container");if(!l)return;l.style.display="flex";const i=l.querySelector(".cbp-see-more-simple-btn");if(!i)return;t.classList.contains("padding-disabled")&&i.classList.remove("cbp-see-more-simple-btn-hover"),i.style.transition=`all ${Math.max(n,1)/1.5}s linear`;const d=e=>{e.preventDefault(),i.classList.remove("cbp-see-more-simple-btn-hover"),o.style.maxHeight=a+"px",setTimeout((()=>{i.style.opacity=0,i.style.transform="translateY(-100%)",setTimeout((()=>i.remove()),1e3*Math.max(n,1))}),1e3*n)};i.addEventListener("click",d),i.addEventListener("keydown",(e=>{"Enter"===e.key&&d(e)}))})),Array.from(document.querySelectorAll(".code-block-pro-copy-button:not(.cbp-cb-loaded)")).forEach((e=>{e.classList.add("cbp-cb-loaded"),e.style.display="block";const o=o=>{var r;const{type:a,key:n,target:c}=o;if("keydown"===a&&!["Enter"," "].includes(n))return;o.preventDefault();const s=c?.closest("span[data-code]"),l=s?.dataset?.encoded?decodeURIComponent(decodeURIComponent(s?.dataset?.code)):s?.dataset?.code,i=null!==(r=window.cbpCopyOverride?.(l,e))&&void 0!==r?r:l;t()(null!=i?i:"",{format:"text/plain",onCopy:t=>{window.cbpCopyCallback?.(t,e),s.classList.add("cbp-copying");const o=s.dataset.copiedText,r=s.querySelector("span");o&&(r.innerText=o),setTimeout((()=>{s.classList.remove("cbp-copying"),o&&(r.innerText=s.getAttribute("aria-label"))}),2e3)}})};["click","keydown"].forEach((t=>e.addEventListener(t,o)))})),Array.from(document.querySelectorAll(`${r}:not(.cbp-hl-loaded)`)).forEach((e=>{e.classList.add("cbp-hl-loaded");const t=new Set(e.querySelectorAll(".cbp-line-highlight"));e.classList.contains("cbp-highlight-hover")&&e.querySelectorAll("span.line").forEach((e=>t.add(e))),t.size&&(new ResizeObserver((()=>{const t=e.querySelectorAll("span.line");e.style.setProperty("--cbp-block-width","unset");const o=Array.from(t).reduce(((e,t)=>e.offsetWidth>t.offsetWidth?e:t)),r=Array.from(t).reduce(((e,t)=>e.offsetHeight>t.offsetHeight?e:t));e.style.setProperty("--cbp-block-height",r.offsetHeight+"px"),e.style.setProperty("--cbp-block-width",o.offsetWidth+"px")})).observe(e),t.forEach((e=>{e.querySelector(".cbp-line-highlighter")||e.insertAdjacentHTML("beforeend",'<span aria-hidden="true" class="cbp-line-highlighter"></span>')})))}))};a(),window.codeBlockProInit=a,window.addEventListener("DOMContentLoaded",a),window.addEventListener("load",a)})()})();
  • code-block-pro/trunk/build/index.asset.php

    r3029109 r3064975  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-primitives'), 'version' => 'd389b3cc14657c16a1de');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-primitives'), 'version' => '');
  • code-block-pro/trunk/build/index.css

    r3023112 r3064975  
    1 .code-block-pro-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.code-block-pro-editor *,.code-block-pro-editor :after,.code-block-pro-editor :before{box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.code-block-pro-editor :is(.sr-only){clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.code-block-pro-editor :is(.pointer-events-none){pointer-events:none}.code-block-pro-editor :is(.visible){visibility:visible}.code-block-pro-editor :is(.absolute){position:absolute}.code-block-pro-editor :is(.relative){position:relative}.code-block-pro-editor :is(.inset-0){inset:0}.code-block-pro-editor :is(.left-auto){left:auto}.code-block-pro-editor :is(.right-0){right:0}.code-block-pro-editor :is(.top-0){top:0}.code-block-pro-editor :is(.z-10){z-index:10}.code-block-pro-editor :is(.m-0){margin:0}.code-block-pro-editor :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.code-block-pro-editor :is(.my-2){margin-bottom:.5rem;margin-top:.5rem}.code-block-pro-editor :is(.-mt-3){margin-top:-.75rem}.code-block-pro-editor :is(.-mt-4){margin-top:-1rem}.code-block-pro-editor :is(.mb-2){margin-bottom:.5rem}.code-block-pro-editor :is(.mb-4){margin-bottom:1rem}.code-block-pro-editor :is(.mt-2){margin-top:.5rem}.code-block-pro-editor :is(.mt-6){margin-top:1.5rem}.code-block-pro-editor :is(.block){display:block}.code-block-pro-editor :is(.inline-block){display:inline-block}.code-block-pro-editor :is(.flex){display:flex}.code-block-pro-editor :is(.inline-flex){display:inline-flex}.code-block-pro-editor :is(.h-3){height:.75rem}.code-block-pro-editor :is(.h-8){height:2rem}.code-block-pro-editor :is(.max-h-80){max-height:20rem}.code-block-pro-editor :is(.w-3){width:.75rem}.code-block-pro-editor :is(.w-full){width:100%}.code-block-pro-editor :is(.-translate-x-1){--tw-translate-x:-0.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.cursor-pointer){cursor:pointer}.code-block-pro-editor :is(.grid-cols-2){grid-template-columns:repeat(2,minmax(0,1fr))}.code-block-pro-editor :is(.flex-col){flex-direction:column}.code-block-pro-editor :is(.flex-wrap){flex-wrap:wrap}.code-block-pro-editor :is(.items-start){align-items:flex-start}.code-block-pro-editor :is(.items-center){align-items:center}.code-block-pro-editor :is(.justify-center){justify-content:center}.code-block-pro-editor :is(.gap-1){gap:.25rem}.code-block-pro-editor :is(.gap-2){gap:.5rem}.code-block-pro-editor :is(.gap-3){gap:.75rem}.code-block-pro-editor :is(.gap-4){gap:1rem}.code-block-pro-editor :is(.overflow-x-auto){overflow-x:auto}.code-block-pro-editor :is(.overflow-y-hidden){overflow-y:hidden}.code-block-pro-editor :is(.rounded-full){border-radius:9999px}.code-block-pro-editor :is(.border){border-width:1px}.code-block-pro-editor :is(.border-0){border-width:0}.code-block-pro-editor :is(.border-solid){border-style:solid}.code-block-pro-editor :is(.border-none){border-style:none}.code-block-pro-editor :is(.border-gray-400){--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.code-block-pro-editor :is(.border-gray-900){--tw-border-opacity:1;border-color:rgb(30 30 30/var(--tw-border-opacity))}.code-block-pro-editor :is(.bg-gray-100){--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.code-block-pro-editor :is(.bg-transparent){background-color:transparent}.code-block-pro-editor :is(.p-0){padding:0}.code-block-pro-editor :is(.p-1){padding:.25rem}.code-block-pro-editor :is(.p-4){padding:1rem}.code-block-pro-editor :is(.p-6){padding:1.5rem}.code-block-pro-editor :is(.px-3){padding-left:.75rem;padding-right:.75rem}.code-block-pro-editor :is(.px-4){padding-left:1rem;padding-right:1rem}.code-block-pro-editor :is(.pt-2){padding-top:.5rem}.code-block-pro-editor :is(.text-left){text-align:left}.code-block-pro-editor :is(.text-center){text-align:center}.code-block-pro-editor :is(.text-base){font-size:1rem;line-height:1.5rem}.code-block-pro-editor :is(.text-sm){font-size:.875rem;line-height:1.25rem}.code-block-pro-editor :is(.font-semibold){font-weight:600}.code-block-pro-editor :is(.italic){font-style:italic}.code-block-pro-editor :is(.leading-none){line-height:1}.code-block-pro-editor :is(.no-underline){text-decoration-line:none}.code-block-pro-editor :is(.opacity-90){opacity:.9}.code-block-pro-editor :is(.outline-none){outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor :is(.ring-wp){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.code-block-pro-editor :is(.ring-wp-theme-500){--tw-ring-color:var(--wp-admin-theme-color)}.code-block-pro-editor :is(.ring-offset-2){--tw-ring-offset-width:2px}.code-block-pro-editor :is(.ring-offset-white){--tw-ring-offset-color:#fff}.code-block-pro-editor :is(.blur){--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.transition){transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.transition-opacity){transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.duration-200){transition-duration:.2s}.code-block-pro-editor :is(.ease-in-out){transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor .npm__react-simple-code-editor__textarea{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor pre,.code-block-pro-editor pre *{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}.code-block-pro-editor pre,.code-block-pro-editor textarea{margin:0;text-align:left}.code-block-pro-editor pre:focus,.code-block-pro-editor textarea:focus{outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor pre,.code-block-pro-editor textarea{direction:ltr!important;min-height:36px}.code-block-pro-editor.cbp-has-line-numbers pre{counter-increment:step calc(var(--cbp-line-number-start, 1) - 1);counter-reset:step;padding-right:0}.code-block-pro-editor pre .line{display:inline-block;position:relative;width:100%}.code-block-pro-editor pre .line:empty{display:block}.code-block-pro-editor pre .line span:empty{display:inline-block}.code-block-pro-editor.cbp-has-line-numbers pre .line:not(.cbp-line-number-disabled):before{color:var(--cbp-line-number-color,#999);content:counter(step);counter-increment:step;display:inline-block;left:calc(var(--cbp-line-number-width, 0)*-1 - 16px);margin-right:12px;opacity:.5;position:absolute;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--cbp-line-number-width,auto)}.code-block-pro-editor.padding-disabled:not(.cbp-has-line-numbers) pre{padding:0}.code-block-pro-editor.padding-disabled.cbp-has-line-numbers pre{padding-bottom:0;padding-top:0}.code-block-pro-editor .cbp-footer-link{pointer-events:none;text-decoration-line:none}.code-block-pro-editor pre .line.cbp-line-highlight:after{background:var(--cbp-line-highlight-color,rgb(14 165 233/.2));content:"";height:100%;left:-100%!important;min-height:var(--cbp-line-height)!important;position:absolute;top:0;width:1000%!important}.code-block-pro-editor code{background-color:transparent;color:inherit;font-family:inherit!important;margin:0;padding:0}.cbp-input-error{--tw-ring-color:#ef4444;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#ef4444!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.code-block-pro-editor .code-block-pro-copy-button{display:block!important;pointer-events:none}.code-block-pro-editor .sidebar-copy-button svg{display:block}.code-block-pro-editor .sidebar-copy-button .with-check{display:none}.cbp-theme-preview{direction:ltr;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}@font-face{font-family:Code-Pro-Fira-Code;src:url(fonts/Code-Pro-Fira-Code.bf5ea52f.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono;src:url(fonts/Code-Pro-JetBrains-Mono.1e66c47a.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono-NL;src:url(fonts/Code-Pro-JetBrains-Mono-NL.432a7b10.ttf) format("truetype")}@font-face{font-family:Code-Pro-Comic-Mono;src:url(fonts/Code-Pro-Comic-Mono.53a3d0c4.ttf) format("truetype")}@font-face{font-family:Code-Pro-Roboto-Mono;src:url(fonts/Code-Pro-Roboto-Mono.94ffabb1.ttf) format("truetype")}@font-face{font-family:Code-Pro-Fantasque-Sans-Mono;src:url(fonts/Code-Pro-Fantasque-Sans-Mono.6c511db2.woff2) format("woff2")}@font-face{font-family:Code-Pro-Cozette;src:url(fonts/Code-Pro-Cozette.6a7d67c5.woff2) format("woff2")}@font-face{font-family:Code-Pro-Deja-Vu-Mono;src:url(fonts/Code-Pro-Deja-Vu-Mono.7ba86537.ttf) format("truetype")}@font-face{font-family:Code-Pro-Monaspace-Argon;src:url(fonts/Code-Pro-Monaspace-Argon.102d94d0.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Krypton;src:url(fonts/Code-Pro-Monaspace-Krypton.44966aaa.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Neon;src:url(fonts/Code-Pro-Monaspace-Neon.257144c3.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Radon;src:url(fonts/Code-Pro-Monaspace-Radon.9f755736.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Xenon;src:url(fonts/Code-Pro-Monaspace-Xenon.bad9f4b9.woff) format("woff")}@font-face{font-family:Code-Pro-Geist-Mono;src:url(fonts/Code-Pro-Geist-Mono.8f5e9544.woff2) format("woff2")}@font-face{font-family:Code-Pro-Hack;src:url(fonts/Code-Pro-Hack.fe74d490.woff2) format("woff2")}.code-block-pro-editor :is(.focus\:shadow-none:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor :is(.focus\:ring-wp:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}@media (min-width:782px){.code-block-pro-editor :is(.md\:grid){display:grid}}@media (min-width:1080px){.code-block-pro-editor :is(.lg\:grid-cols-3){grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1280px){.code-block-pro-editor :is(.xl\:grid-cols-4){grid-template-columns:repeat(4,minmax(0,1fr))}}
     1.code-block-pro-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.code-block-pro-editor *,.code-block-pro-editor :after,.code-block-pro-editor :before{box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.code-block-pro-editor :is(.pointer-events-none){pointer-events:none}.code-block-pro-editor :is(.visible){visibility:visible}.code-block-pro-editor :is(.absolute){position:absolute}.code-block-pro-editor :is(.relative){position:relative}.code-block-pro-editor :is(.inset-0){inset:0}.code-block-pro-editor :is(.left-auto){left:auto}.code-block-pro-editor :is(.right-0){right:0}.code-block-pro-editor :is(.top-0){top:0}.code-block-pro-editor :is(.z-10){z-index:10}.code-block-pro-editor :is(.m-0){margin:0}.code-block-pro-editor :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.code-block-pro-editor :is(.my-2){margin-bottom:.5rem;margin-top:.5rem}.code-block-pro-editor :is(.-mt-3){margin-top:-.75rem}.code-block-pro-editor :is(.-mt-4){margin-top:-1rem}.code-block-pro-editor :is(.mb-2){margin-bottom:.5rem}.code-block-pro-editor :is(.mb-4){margin-bottom:1rem}.code-block-pro-editor :is(.mt-2){margin-top:.5rem}.code-block-pro-editor :is(.mt-6){margin-top:1.5rem}.code-block-pro-editor :is(.block){display:block}.code-block-pro-editor :is(.inline-block){display:inline-block}.code-block-pro-editor :is(.flex){display:flex}.code-block-pro-editor :is(.inline-flex){display:inline-flex}.code-block-pro-editor :is(.h-3){height:.75rem}.code-block-pro-editor :is(.h-8){height:2rem}.code-block-pro-editor :is(.max-h-80){max-height:20rem}.code-block-pro-editor :is(.w-3){width:.75rem}.code-block-pro-editor :is(.w-full){width:100%}.code-block-pro-editor :is(.-translate-x-1){--tw-translate-x:-0.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.code-block-pro-editor :is(.cursor-pointer){cursor:pointer}.code-block-pro-editor :is(.grid-cols-2){grid-template-columns:repeat(2,minmax(0,1fr))}.code-block-pro-editor :is(.flex-col){flex-direction:column}.code-block-pro-editor :is(.flex-wrap){flex-wrap:wrap}.code-block-pro-editor :is(.items-start){align-items:flex-start}.code-block-pro-editor :is(.items-center){align-items:center}.code-block-pro-editor :is(.justify-center){justify-content:center}.code-block-pro-editor :is(.gap-1){gap:.25rem}.code-block-pro-editor :is(.gap-2){gap:.5rem}.code-block-pro-editor :is(.gap-3){gap:.75rem}.code-block-pro-editor :is(.gap-4){gap:1rem}.code-block-pro-editor :is(.overflow-x-auto){overflow-x:auto}.code-block-pro-editor :is(.overflow-y-hidden){overflow-y:hidden}.code-block-pro-editor :is(.rounded-full){border-radius:9999px}.code-block-pro-editor :is(.border){border-width:1px}.code-block-pro-editor :is(.border-0){border-width:0}.code-block-pro-editor :is(.border-solid){border-style:solid}.code-block-pro-editor :is(.border-none){border-style:none}.code-block-pro-editor :is(.border-gray-400){--tw-border-opacity:1;border-color:rgb(204 204 204/var(--tw-border-opacity))}.code-block-pro-editor :is(.border-gray-900){--tw-border-opacity:1;border-color:rgb(30 30 30/var(--tw-border-opacity))}.code-block-pro-editor :is(.bg-gray-100){--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.code-block-pro-editor :is(.bg-transparent){background-color:transparent}.code-block-pro-editor :is(.p-0){padding:0}.code-block-pro-editor :is(.p-1){padding:.25rem}.code-block-pro-editor :is(.p-4){padding:1rem}.code-block-pro-editor :is(.p-6){padding:1.5rem}.code-block-pro-editor :is(.px-3){padding-left:.75rem;padding-right:.75rem}.code-block-pro-editor :is(.px-4){padding-left:1rem;padding-right:1rem}.code-block-pro-editor :is(.pt-2){padding-top:.5rem}.code-block-pro-editor :is(.text-left){text-align:left}.code-block-pro-editor :is(.text-center){text-align:center}.code-block-pro-editor :is(.text-base){font-size:1rem;line-height:1.5rem}.code-block-pro-editor :is(.text-sm){font-size:.875rem;line-height:1.25rem}.code-block-pro-editor :is(.font-semibold){font-weight:600}.code-block-pro-editor :is(.italic){font-style:italic}.code-block-pro-editor :is(.leading-none){line-height:1}.code-block-pro-editor :is(.no-underline){text-decoration-line:none}.code-block-pro-editor :is(.opacity-90){opacity:.9}.code-block-pro-editor :is(.outline-none){outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor :is(.ring-wp){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.code-block-pro-editor :is(.ring-wp-theme-500){--tw-ring-color:var(--wp-admin-theme-color)}.code-block-pro-editor :is(.ring-offset-2){--tw-ring-offset-width:2px}.code-block-pro-editor :is(.ring-offset-white){--tw-ring-offset-color:#fff}.code-block-pro-editor :is(.blur){--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.code-block-pro-editor :is(.transition){transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.transition-opacity){transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor :is(.duration-200){transition-duration:.2s}.code-block-pro-editor :is(.ease-in-out){transition-timing-function:cubic-bezier(.4,0,.2,1)}.code-block-pro-editor .npm__react-simple-code-editor__textarea{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor pre,.code-block-pro-editor pre *{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}.code-block-pro-editor pre,.code-block-pro-editor textarea{margin:0;text-align:left}.code-block-pro-editor pre:focus,.code-block-pro-editor textarea:focus{outline:2px solid transparent;outline-offset:2px}.code-block-pro-editor pre,.code-block-pro-editor textarea{direction:ltr!important;min-height:36px}.code-block-pro-editor.cbp-has-line-numbers pre{counter-increment:step calc(var(--cbp-line-number-start, 1) - 1);counter-reset:step;padding-right:0}.code-block-pro-editor pre .line{display:inline-block;position:relative;width:100%}.code-block-pro-editor pre .line:empty{display:block}.code-block-pro-editor pre .line span:empty{display:inline-block}.code-block-pro-editor.cbp-has-line-numbers pre .line:not(.cbp-line-number-disabled):before{color:var(--cbp-line-number-color,#999);content:counter(step);counter-increment:step;display:inline-block;left:calc(var(--cbp-line-number-width, 0)*-1 - 16px);margin-right:12px;opacity:.5;position:absolute;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--cbp-line-number-width,auto)}.code-block-pro-editor.padding-disabled:not(.cbp-has-line-numbers) pre{padding:0}.code-block-pro-editor.padding-disabled.cbp-has-line-numbers pre{padding-bottom:0;padding-top:0}.code-block-pro-editor .cbp-footer-link{pointer-events:none;text-decoration-line:none}.code-block-pro-editor pre .line.cbp-line-highlight:after{background:var(--cbp-line-highlight-color,rgb(14 165 233/.2));content:"";height:100%;left:-100%!important;min-height:var(--cbp-line-height)!important;position:absolute;top:0;width:1000%!important}.code-block-pro-editor code{background-color:transparent;color:inherit;font-family:inherit!important;margin:0;padding:0}.cbp-input-error{--tw-ring-color:#ef4444;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#ef4444!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.code-block-pro-editor .code-block-pro-copy-button{display:block!important;pointer-events:none}.code-block-pro-editor .sidebar-copy-button svg{display:block}.code-block-pro-editor .sidebar-copy-button .with-check{display:none}.cbp-theme-preview{direction:ltr;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}@font-face{font-family:Code-Pro-Fira-Code;src:url(fonts/Code-Pro-Fira-Code.bf5ea52f.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono;src:url(fonts/Code-Pro-JetBrains-Mono.1e66c47a.woff2) format("woff2")}@font-face{font-family:Code-Pro-JetBrains-Mono-NL;src:url(fonts/Code-Pro-JetBrains-Mono-NL.432a7b10.ttf) format("truetype")}@font-face{font-family:Code-Pro-Comic-Mono;src:url(fonts/Code-Pro-Comic-Mono.53a3d0c4.ttf) format("truetype")}@font-face{font-family:Code-Pro-Roboto-Mono;src:url(fonts/Code-Pro-Roboto-Mono.94ffabb1.ttf) format("truetype")}@font-face{font-family:Code-Pro-Fantasque-Sans-Mono;src:url(fonts/Code-Pro-Fantasque-Sans-Mono.6c511db2.woff2) format("woff2")}@font-face{font-family:Code-Pro-Cozette;src:url(fonts/Code-Pro-Cozette.6a7d67c5.woff2) format("woff2")}@font-face{font-family:Code-Pro-Deja-Vu-Mono;src:url(fonts/Code-Pro-Deja-Vu-Mono.7ba86537.ttf) format("truetype")}@font-face{font-family:Code-Pro-Monaspace-Argon;src:url(fonts/Code-Pro-Monaspace-Argon.102d94d0.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Krypton;src:url(fonts/Code-Pro-Monaspace-Krypton.44966aaa.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Neon;src:url(fonts/Code-Pro-Monaspace-Neon.257144c3.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Radon;src:url(fonts/Code-Pro-Monaspace-Radon.9f755736.woff) format("woff")}@font-face{font-family:Code-Pro-Monaspace-Xenon;src:url(fonts/Code-Pro-Monaspace-Xenon.bad9f4b9.woff) format("woff")}@font-face{font-family:Code-Pro-Geist-Mono;src:url(fonts/Code-Pro-Geist-Mono.8f5e9544.woff2) format("woff2")}@font-face{font-family:Code-Pro-Hack;src:url(fonts/Code-Pro-Hack.fe74d490.woff2) format("woff2")}.code-block-pro-editor :is(.focus\:shadow-none:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.code-block-pro-editor :is(.focus\:ring-wp:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}@media (min-width:782px){.code-block-pro-editor :is(.md\:grid){display:grid}}@media (min-width:1080px){.code-block-pro-editor :is(.lg\:grid-cols-3){grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1280px){.code-block-pro-editor :is(.xl\:grid-cols-4){grid-template-columns:repeat(4,minmax(0,1fr))}}
  • code-block-pro/trunk/build/index.js

    r3029109 r3064975  
    1 (()=>{var e,t={461:(e,t,n)=>{"use strict";var r=n(196);const a=window.wp.blocks,o=window.wp.hooks,s=window.wp.i18n,i=window.wp.blockEditor;var l=n(184),c=n.n(l);const u=JSON.parse('{"dark-plus":{"name":"Dark Plus"},"dracula-soft":{"name":"Dracula Soft"},"dracula":{"name":"Dracula"},"github-dark-dimmed":{"name":"GitHub Dark Dimmed"},"github-dark":{"name":"Github Dark"},"github-light":{"name":"Github Light"},"light-plus":{"name":"Light Plus"},"material-darker":{"name":"Material Darker","alias":"material-theme-darker"},"material-default":{"name":"Material Default","alias":"material-theme"},"material-lighter":{"name":"Material Lighter","alias":"material-theme-lighter"},"material-ocean":{"name":"Material Ocean","alias":"material-theme-ocean"},"material-palenight":{"name":"Material Palenight","alias":"material-theme-palenight"},"min-dark":{"name":"Min Dark"},"min-light":{"name":"Min Light"},"monokai":{"name":"Monokai"},"nord":{"name":"Nord"},"one-dark-pro":{"name":"One Dark Pro"},"poimandres":{"name":"Poimandres"},"rose-pine-dawn":{"name":"Rose Pine Dawn"},"rose-pine-moon":{"name":"Rose Pine Moon"},"rose-pine":{"name":"Rose Pine"},"slack-dark":{"name":"Slack Dark"},"slack-ochin":{"name":"Slack Ochin"},"solarized-dark":{"name":"Solarized Dark"},"solarized-light":{"name":"Solarized Light"},"vitesse-dark":{"name":"Vitesse Dark"},"vitesse-light":{"name":"Vitesse Light"}}'),p=window.wp.element;var d=n(460),h=n.n(d);const m=window.wp.apiFetch;var g=n.n(m),f=n(688);const b=()=>{},y=b(),k=Object,v=e=>e===y,_=e=>"function"==typeof e,S=(e,t)=>({...e,...t}),C=new WeakMap;let N=0;const w=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,o;if(k(e)!==e||r||n==RegExp)a=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=C.get(e),a)return a;if(a=++N+"~",C.set(e,a),n==Array){for(a="@",o=0;o<e.length;o++)a+=w(e[o])+",";C.set(e,a)}if(n==k){a="#";const t=k.keys(e).sort();for(;!v(o=t.pop());)v(e[o])||(a+=o+":"+w(e[o])+",");C.set(e,a)}}return a},x=new WeakMap,E={},L={},P="undefined",T=typeof window!=P,j=typeof document!=P,A=(e,t)=>{const n=x.get(e);return[()=>!v(t)&&e.get(t)||E,r=>{if(!v(t)){const a=e.get(t);t in L||(L[t]=a),n[5](t,S(a,r),a||E)}},n[6],()=>!v(t)&&t in L?L[t]:!v(t)&&e.get(t)||E]};let R=!0;const[O,B]=T&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[b,b],M={isOnline:()=>R,isVisible:()=>{const e=j&&document.visibilityState;return v(e)||"hidden"!==e}},I={initFocus:e=>(j&&document.addEventListener("visibilitychange",e),O("focus",e),()=>{j&&document.removeEventListener("visibilitychange",e),B("focus",e)}),initReconnect:e=>{const t=()=>{R=!0,e()},n=()=>{R=!1};return O("online",t),O("offline",n),()=>{B("online",t),B("offline",n)}}},F=!r.useId,H=!T||"Deno"in window,D=H?r.useEffect:r.useLayoutEffect,G="undefined"!=typeof navigator&&navigator.connection,$=!H&&G&&(["slow-2g","2g"].includes(G.effectiveType)||G.saveData),z=e=>{if(_(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]};let W=0;const U=()=>++W;async function q(...e){const[t,n,r,a]=e,o=S({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{});let s=o.populateCache;const i=o.rollbackOnError;let l=o.optimisticData;const c=!1!==o.revalidate,u=o.throwOnError;if(_(n)){const e=n,r=[],a=t.keys();for(const n of a)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(p))}return p(n);async function p(n){const[a]=z(n);if(!a)return;const[o,p]=A(t,a),[d,h,m,g]=x.get(t),f=()=>{const e=d[a];return c&&(delete m[a],delete g[a],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return f();let b,k=r;const S=U();h[a]=[S,0];const C=!v(l),N=o(),w=N.data,E=N._c,L=v(E)?w:E;if(C&&(l=_(l)?l(L,w):l,p({data:l,_c:L})),_(k))try{k=k(L)}catch(e){b=e}if(k&&(e=>_(e.then))(k)){if(k=await k.catch((e=>{b=e})),S!==h[a][0]){if(b)throw b;return k}b&&C&&(e=>"function"==typeof i?i(e):!1!==i)(b)&&(s=!0,p({data:L,_c:y}))}if(s&&!b)if(_(s)){const e=s(k,L);p({data:e,error:y,_c:y})}else p({data:k,error:y,_c:y});if(h[a][1]=U(),Promise.resolve(f()).then((()=>{p({_c:y})})),!b)return k;if(u)throw b}}const V=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},J=(e,t)=>{if(!x.has(e)){const n=S(I,t),r={},a=q.bind(y,e);let o=b;const s={},i=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const a=s[t];if(a)for(const e of a)e(n,r)},c=()=>{if(!x.has(e)&&(x.set(e,[r,{},{},{},a,l,i]),!H)){const t=n.initFocus(setTimeout.bind(y,V.bind(y,r,0))),a=n.initReconnect(setTimeout.bind(y,V.bind(y,r,1)));o=()=>{t&&t(),a&&a(),x.delete(e)}}};return c(),[e,a,c,o]}return[e,x.get(e)[4]]},[K,Q]=J(new Map),X=S({onLoadingSlow:b,onSuccess:b,onError:b,onErrorRetry:(e,__,t,n,r)=>{const a=t.errorRetryCount,o=r.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!v(a)&&o>a||setTimeout(n,s,r)},onDiscarded:b,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:$?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:K,mutate:Q,fallback:{}},M),Y=(e,t)=>{const n=S(e,t);if(t){const{use:r,fallback:a}=e,{use:o,fallback:s}=t;r&&o&&(n.use=r.concat(o)),a&&s&&(n.fallback=S(a,s))}return n},Z=(0,r.createContext)({}),ee=T&&window.__SWR_DEVTOOLS_USE__,te=ee?window.__SWR_DEVTOOLS_USE__:[],ne=e=>_(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],re=te.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=z(t),[,,,a]=x.get(K);if(r.startsWith("$inf$"))return n(...e);const o=a[r];return v(o)?n(...e):(delete a[r],o)}),r)));ee&&(window.__SWR_DEVTOOLS_REACT__=r);const ae=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),oe={dedupe:!0},se=(k.defineProperty((e=>{const{value:t}=e,n=(0,r.useContext)(Z),a=_(t),o=(0,r.useMemo)((()=>a?t(n):t),[a,n,t]),s=(0,r.useMemo)((()=>a?o:Y(n,o)),[a,n,o]),i=o&&o.provider,l=(0,r.useRef)(y);i&&!l.current&&(l.current=J(i(s.cache||K),o));const c=l.current;return c&&(s.cache=c[0],s.mutate=c[1]),D((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,r.createElement)(Z.Provider,S(e,{value:s}))}),"defaultValue",{value:X}),ie=(e,t,n)=>{const{cache:a,compare:o,suspense:s,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:d,keepPreviousData:h}=n,[m,g,b,k]=x.get(a),[C,N]=z(e),w=(0,r.useRef)(!1),E=(0,r.useRef)(!1),L=(0,r.useRef)(C),j=(0,r.useRef)(t),R=(0,r.useRef)(n),O=()=>R.current,B=()=>O().isVisible()&&O().isOnline(),[M,I,G,$]=A(a,C),W=(0,r.useRef)({}).current,V=v(i)?n.fallback[C]:i,J=(e,t)=>{for(const n in W){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!v(e[r]))return!1;if(!o(re,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},K=(0,r.useMemo)((()=>{const e=!!C&&!!t&&(v(l)?!O().isPaused()&&!s&&(!!v(c)||c):l),n=t=>{const n=S(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=M(),a=$(),o=n(r),i=r===a?o:n(a);let u=o;return[()=>{const e=n(M());return J(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[a,C]),Q=(0,f.useSyncExternalStore)((0,r.useCallback)((e=>G(C,((t,n)=>{J(n,t)||e()}))),[a,C]),K[0],K[1]),X=!w.current,Y=m[C]&&m[C].length>0,Z=Q.data,ee=v(Z)?V:Z,te=Q.error,ne=(0,r.useRef)(ee),re=h?v(Z)?ne.current:Z:ee,se=!(Y&&!v(te))&&(X&&!v(l)?l:!O().isPaused()&&(s?!v(ee)&&c:v(ee)||c)),ie=!!(C&&t&&X&&se),le=v(Q.isValidating)?ie:Q.isValidating,ce=v(Q.isLoading)?ie:Q.isLoading,ue=(0,r.useCallback)((async e=>{const t=j.current;if(!C||!t||E.current||O().isPaused())return!1;let r,a,s=!0;const i=e||{},l=!b[C]||!i.dedupe,c=()=>F?!E.current&&C===L.current&&w.current:C===L.current,u={isValidating:!1,isLoading:!1},p=()=>{I(u)},d=()=>{const e=b[C];e&&e[1]===a&&delete b[C]},h={isValidating:!0};v(M().data)&&(h.isLoading=!0);try{if(l&&(I(h),n.loadingTimeout&&v(M().data)&&setTimeout((()=>{s&&c()&&O().onLoadingSlow(C,n)}),n.loadingTimeout),b[C]=[t(N),U()]),[r,a]=b[C],r=await r,l&&setTimeout(d,n.dedupingInterval),!b[C]||b[C][1]!==a)return l&&c()&&O().onDiscarded(C),!1;u.error=y;const e=g[C];if(!v(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return p(),l&&c()&&O().onDiscarded(C),!1;const i=M().data;u.data=o(i,r)?i:r,l&&c()&&O().onSuccess(r,C,n)}catch(e){d();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,C,t),(!0===n||_(n)&&n(e))&&B()&&t.onErrorRetry(e,C,t,(e=>{const t=m[C];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return s=!1,p(),!0}),[C,a]),pe=(0,r.useCallback)(((...e)=>q(a,L.current,...e)),[]);if(D((()=>{j.current=t,R.current=n,v(Z)||(ne.current=Z)})),D((()=>{if(!C)return;const e=ue.bind(y,oe);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(C,m,((n,r={})=>{if(0==n){const n=Date.now();O().revalidateOnFocus&&n>t&&B()&&(t=n+O().focusThrottleInterval,e())}else if(1==n)O().revalidateOnReconnect&&B()&&e();else{if(2==n)return ue();if(3==n)return ue(r)}}));return E.current=!1,L.current=C,w.current=!0,I({_k:N}),se&&(v(ee)||H?e():(e=>{T&&typeof window.requestAnimationFrame!=P?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{E.current=!0,n()}}),[C]),D((()=>{let e;function t(){const t=_(u)?u(M().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){M().error||!p&&!O().isVisible()||!d&&!O().isOnline()?t():ue(oe).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,d,C]),(0,r.useDebugValue)(re),s&&v(ee)&&C){if(!F&&H)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,R.current=n,E.current=!1;const e=k[C];if(!v(e)){const t=pe(e);ae(t)}if(!v(te))throw te;{const e=ue(oe);v(re)||(e.status="fulfilled",e.value=!0),ae(e)}}return{mutate:pe,get data(){return W.data=!0,re},get error(){return W.error=!0,te},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ce}}},function(...e){const t=S(X,(0,r.useContext)(Z)),[n,a,o]=ne(e),s=Y(t,o);let i=ie;const{use:l}=s,c=(l||[]).concat(re);for(let e=c.length;e--;)i=c[e](i);return i(n,a||s.fetcher||null,s)});var ie;const le=((e,t)=>(...n)=>{const[r,a,o]=ne(n),s=(o.use||[]).concat(t);return e(r,a,{...o,use:s})})(se,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))),ce=e=>g()({path:e}),ue=()=>{const{data:e}=le("/code-block-pro/v1/can-save-html",ce);return e},pe=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,o={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,a,o),o};var de=n(798);const{useDebugValue:he}=r,{useSyncExternalStoreWithSelector:me}=de;let ge=!1;const fe=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?pe(e):pe)(e):e,n=(e,n)=>function(e,t=e.getState,n){n&&!ge&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ge=!0);const r=me(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return he(r),r}(t,e,n);return Object.assign(n,t),n},be=e=>e?fe(e):fe,ye=new Map,ke=e=>{const t=ye.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},ve=(e,t={})=>(n,r,a)=>{const{enabled:o,anonymousActionType:s,store:i,...l}=t;let c;try{c=(null==o||o)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,a);const{connection:u,...p}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=ye.get(n.name);if(r)return{type:"tracked",store:e,...r};const a={connection:t.connect(n),stores:{}};return ye.set(n.name,a),{type:"tracked",store:e,...a}})(i,c,l);let d=!0;a.setState=(e,t,o)=>{const c=n(e,t);if(!d)return c;const p=void 0===o?{type:s||"anonymous"}:"string"==typeof o?{type:o}:o;return void 0===i?(null==u||u.send(p,r()),c):(null==u||u.send({...p,type:`${i}/${p.type}`},{...ke(l.name),[i]:a.getState()}),c)};const h=(...e)=>{const t=d;d=!1,n(...e),d=t},m=e(a.setState,r,a);if("untracked"===p.type?null==u||u.init(m):(p.stores[p.store]=a,null==u||u.init(Object.fromEntries(Object.entries(p.stores).map((([e,t])=>[e,e===p.store?m:t.getState()]))))),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):_e(e.payload,(e=>{if("__setState"!==e.type)a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e);else{if(void 0===i)return void h(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[i];if(null==t)return;JSON.stringify(a.getState())!==JSON.stringify(t)&&h(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(m),void 0===i?null==u?void 0:u.init(a.getState()):null==u?void 0:u.init(ke(l.name));case"COMMIT":return void 0===i?void(null==u||u.init(a.getState())):null==u?void 0:u.init(ke(l.name));case"ROLLBACK":return _e(e.state,(e=>{if(void 0===i)return h(e),void(null==u||u.init(a.getState()));h(e[i]),null==u||u.init(ke(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return _e(e.state,(e=>{void 0!==i?JSON.stringify(a.getState())!==JSON.stringify(e[i])&&h(e[i]):h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(void 0===i?r:r[i]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return d=!d}return}})),m},_e=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function Se(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(a):a(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const Ce=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Ce(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Ce(t)(e)}}},Ne=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,l=new Set;let c;try{c=o.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=Ce(o.serialize),p=()=>{const e=o.partialize({...r()});let t;const n=u({state:e,version:o.version}).then((e=>c.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=a.setState;a.setState=(e,t)=>{d(e,t),p()};const h=e(((...e)=>{n(...e),p()}),r,a);let m;const g=()=>{var e;if(!c)return;s=!1,i.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return Ce(c.getItem.bind(c))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=o.merge(e,null!=(t=r())?t:h),n(m,!0),p()})).then((()=>{null==t||t(m,void 0),s=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return a.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},g(),m||h})(e,t)):((e,t)=>(n,r,a)=>{let o={storage:Se((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,l=new Set;let c=o.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=()=>{const e=o.partialize({...r()});return c.setItem(o.name,{state:e,version:o.version})},p=a.setState;a.setState=(e,t)=>{p(e,t),u()};const d=e(((...e)=>{n(...e),u()}),r,a);let h;const m=()=>{var e,t;if(!c)return;s=!1,i.forEach((e=>{var t;return e(null!=(t=r())?t:d)}));const a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:d))||void 0;return Ce(c.getItem.bind(c))(o.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=o.merge(e,null!=(t=r())?t:d),n(h,!0),u()})).then((()=>{null==a||a(h,void 0),h=r(),s=!0,l.forEach((e=>e(h)))})).catch((e=>{null==a||a(void 0,e)}))};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||m(),h||d})(e,t),we="/code-block-pro/v1/settings",xe=async e=>{const t=await g()({path:we});return t?.[e]},Ee={previousTheme:"nord",previousLineHeight:"1.25rem",previousFontFamily:"Code-Pro-JetBrains-Mono",previousFontSize:".875rem",previousHeaderType:"headlights",previousFooterType:"none",previousClampFonts:!1,previousDisablePadding:!1,previousLineNumbers:!1,previousHighlightingHover:!1,previousCopyButton:!0,previousCopyButtonType:"heroicons",previousCopyButtonString:(0,s.__)("Copy","code-block-pro"),previusCopyButtonStringCopied:(0,s.__)("Copied","code-block-pro"),previousTabSize:2,previousUseTabs:!1,previousSeeMoreType:"",previousSeeMoreString:"",previousSeeMoreTransition:!1},Le={getItem:async e=>{var t;const n=await xe(e);return JSON.stringify({version:null!==(t=n?.version)&&void 0!==t?t:0,state:n||Ee})},setItem:async(e,t)=>{const{state:n,version:r}=JSON.parse(t),a={[e]:Object.assign(await xe(e)||Ee,n,r)};await g()({path:we,method:"POST",data:a})},removeItem:async e=>{const t={[e]:null};await g()({path:we,method:"POST",data:t})}},Pe=be()(Ne(ve((e=>({...Ee,updateThemeHistory(t){e((e=>Object.keys(t).reduce(((n,r)=>{const a=r,o=`previous${r.charAt(0).toUpperCase()+r.slice(1)}`;return Object.keys(e).includes(o)?{...n,[o]:t[a]}:n}),{...e})))}})),{name:"Code Block Pro Theme Settings"}),{name:"code_block_pro_settings",storage:Se((()=>Le))}));var Te=n(930),je=n(190),Ae="/";const Re=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var Oe,Be,Me,Ie,Fe=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(Fe||{});class He{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=He.getLanguageId(e),n=He.getTokenType(e),r=He.getFontStyle(e),a=He.getForeground(e),o=He.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:r,foreground:a,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,a,o){let s=He.getLanguageId(e),i=He.getTokenType(e),l=He.getFontStyle(e),c=He.getForeground(e),u=He.getBackground(e);return 0!==t&&(s=t),0!==n&&(i=8===n?0:n),-1!==r&&(l=r),0!==a&&(c=a),0!==o&&(u=o),(s<<0|i<<8|l<<11|(He.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function De(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Ge(e){return e.startsWith("./")?e.slice(2):e}function $e(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function ze(...e){return e.map(De).map(Ge).join("/")}function We(e){return 32===e||9===e}function Ue(e){return 10===e||13===e}function qe(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(Oe||(Oe={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(Be||(Be={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(Me||(Me={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(Ie||(Ie={}));const Ve=function(e,t=[],n=Be.DEFAULT){let r=null,a=[];const o=[];function s(e){Array.isArray(a)?a.push(e):null!==r&&(a[r]=e)}return function(e,t,n=Be.DEFAULT){const r=function(e,t=!1){const n=e.length;let r=0,a="",o=0,s=16,i=0,l=0,c=0,u=0,p=0;function d(t,n){let a=0,o=0;for(;a<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,a++}return a<t&&(o=-1),o}function h(){if(a="",p=0,o=r,l=i,u=c,r>=n)return o=n,s=17;let t=e.charCodeAt(r);if(We(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(We(t));return s=15}if(Ue(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),i++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,a=function(){let t="",a=r;for(;;){if(r>=n){t+=e.substring(a,r),p=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(a,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Ue(o)){t+=e.substring(a,r),p=2;break}p=6}r++}else{if(t+=e.substring(a,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=d(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}a=r}}return t}(),s=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!Ue(e.charCodeAt(r));)r++;return a=e.substring(l,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,Ue(t)&&(13===t&&10===e.charCodeAt(r)&&r++,i++,c=r)}return o||(r++,p=1),a=e.substring(l,r),s=13}return a+=String.fromCharCode(t),r++,s=16;case 45:if(a+=String.fromCharCode(t),r++,r===n||!qe(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&qe(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&qe(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&qe(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&qe(e.charCodeAt(r))){for(r++;r<e.length&&qe(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(a=e.substring(o,r),a){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return a+=String.fromCharCode(t),r++,s=16}}function m(e){if(We(e)||Ue(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,a="",o=0,s=16,p=0},getPosition:()=>r,scan:t?function(){let e;do{e=h()}while(e>=12&&e<=15);return e}:h,getToken:()=>s,getTokenValue:()=>a,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-u,getTokenError:()=>p}}(e,!1),a=[];function o(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>a.slice())):()=>!0}function i(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>a.slice())):()=>!0}const c=s(t.onObjectBegin),u=l(t.onObjectProperty),p=o(t.onObjectEnd),d=s(t.onArrayBegin),h=o(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=o(t.onComment),b=i(t.onError),y=n&&n.disallowComments,k=n&&n.allowTrailingComma;function v(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:y||_(11);break;case 2:_(12);break;case 6:_(16)}switch(e){case 12:case 13:y?_(10):f();break;case 16:_(1);break;case 15:case 14:break;default:return e}}}function _(e,t=[],n=[]){if(b(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){v();break}if(-1!==n.indexOf(e))break;e=v()}}}function S(e){const t=r.getTokenValue();return e?m(t):(u(t),a.push(t)),v(),!0}function C(){switch(r.getToken()){case 3:return function(){d(),v();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||_(4,[],[]),g(","),v(),4===r.getToken()&&k)break}else t&&_(6,[],[]);e?(a.push(0),e=!1):a[a.length-1]++,C()||_(4,[],[4,5]),t=!0}return h(),e||a.pop(),4!==r.getToken()?_(8,[4],[]):v(),!0}();case 1:return function(){c(),v();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||_(4,[],[]),g(","),v(),2===r.getToken()&&k)break}else e&&_(6,[],[]);(10!==r.getToken()?(_(3,[],[2,5]),!1):(S(!1),6===r.getToken()?(g(":"),v(),C()||_(4,[],[2,5])):_(5,[],[2,5]),a.pop(),!0))||_(4,[],[2,5]),e=!0}return p(),2!==r.getToken()?_(7,[2],[]):v(),!0}();case 10:return S(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(_(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return v(),!0}()}}v(),17===r.getToken()?!!n.allowEmptyContent||_(4,[],[]):C()?17!==r.getToken()&&_(9,[],[]):_(4,[],[])}(e,{onObjectBegin:()=>{const e={};s(e),o.push(a),a=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{a=o.pop()},onArrayBegin:()=>{const e=[];s(e),o.push(a),a=e,r=null},onArrayEnd:()=>{a=o.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),a[0]};var Je;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(Je||(Je={}));const Ke="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,Qe="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,Xe="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,Ye=Ke||!Qe&&!Xe;let Ze="",et="";let tt=null;function nt(e){if(Ye)return`${Ze}${e}`;{const t=n(318);return t.isAbsolute(e)?e:t.resolve(Ae,"..",e)}}async function rt(e){const t=[],r=await async function(e){const t=nt(e);if(Ye)return await fetch(t).then((e=>e.text()));{const e=n(799);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(r)}catch(e){if(a=Ve(r,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function at(e){const t=ot(await rt(e));if(t.include){const n=await at(ze(...$e(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function ot(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...lt(e)};var r;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(r=n).settings||(r.settings=[]),r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}}),n}const st={light:"#333333",dark:"#bbbbbb"},it={light:"#fffffe",dark:"#1e1e1e"};function lt(e){let t,n,r=e.settings?e.settings:e.tokenColors;const a=r?r.find((e=>!e.name&&!e.scope)):void 0;return a?.settings?.foreground&&(t=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?st.light:st.dark),n||(n="light"===e.type?it.light:it.dark),{fg:t,bg:n}}class ct{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await rt(e)}(Re.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function ut(e,t){let n=[];for(let r=0,a=t.length;r<a;r++){let a=t.slice(0,r),o=t[r];n[r]={scopeName:o,themeMatches:ht(e,o,a)}}return n}function pt(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function dt(e,t,n,r){if(!pt(e,n))return!1;let a=t.length-1,o=r.length-1;for(;a>=0&&o>=0;)pt(t[a],r[o])&&a--,o--;return-1===a}function ht(e,t,n){let r=[],a=0;for(let o=0,s=e.settings.length;o<s;o++){let s,i=e.settings[o];if("string"==typeof i.scope)s=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;s=i.scope}for(let e=0,o=s.length;e<o;e++){let l=s[e].split(/ /);dt(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[a++]=i,e=o)}}return r}var mt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],gt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function ft(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function bt(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function yt(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)gt[r]&&t.push({type:"setDecoration",value:gt[r]});else if(r<=29){const e=gt[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:mt[r-30]}});else if(38===r){const n=bt(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:mt[r-40]}});else if(48===r){const n=bt(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:mt[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:mt[r-100+8]}})}return t}var kt={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 vt(e=kt){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return a=e.index,function(){if(r)return r;r=[];for(let e=0;e<mt.length;e++)r.push(t(mt[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let a=0;a<6;a++)for(let o=0;o<6;o++)r.push(n([e[t],e[a],e[o]]));let a=8;for(let e=0;e<24;e++,a+=10)r.push(n([a,a,a]));return r}()[a]}var a}}}const _t={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function St(e,t={}){const n=t.bg||"#fff",r=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),a=t.elements||{};function o(e="",t={},n){const r=a[e]||_t[e];return r?(n=n.filter(Boolean),r({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((n,a)=>{const s=a+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(r.get(s)??[]).join(" "),lines:e,line:n,index:a},n.map(((e,r)=>{const a=[`color: ${e.color||t.fg}`];return e.fontStyle&Fe.Italic&&a.push("font-style: italic"),e.fontStyle&Fe.Bold&&a.push("font-weight: bold"),e.fontStyle&Fe.Underline&&a.push("text-decoration: underline"),o("token",{style:a.join("; "),tokens:n,token:e,index:r},[(s=e.content,s.replace(/[&<>"']/g,(e=>Ct[e])))]);var s})))})))])}const Ct={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Nt extends je.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Re.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await at(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=ot(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function wt(e){return"string"==typeof e?Re.find((t=>t.id===e||t.aliases?.includes(e))):e}async function xt(e){const{_languages:t,_themes:r,_wasmPath:a}=function(e){let t=Re,n=e.themes||[],r=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(wt)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:r}}(e),o=new ct(async function(e){if(!tt){let t;if(Ye)t="string"==typeof et?(0,Te.loadWASM)({data:await fetch(nt(ze(...$e(e),"onig.wasm")))}):(0,Te.loadWASM)({data:et});else{const e=n(318).join(930,"../onig.wasm"),r=n(799).readFileSync(e).buffer;t=(0,Te.loadWASM)(r)}tt=t.then((()=>({createOnigScanner:e=>(0,Te.createOnigScanner)(e),createOnigString:e=>(0,Te.createOnigString)(e)})))}return tt}(a),"vscode-oniguruma"),s=new Nt(o);e.paths?.themes&&(s.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await s.loadThemes(r))[0];let l;await s.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<mt.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,r=mt[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${r})`}return e}();function u(e){const t=e?s.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(s.setTheme(t),l=t);const n=s.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,r={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:a}=function(e){const t=s.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,r,a){let o=n.split(/\r\n|\r|\n/),s=je.INITIAL,i=[],l=[];for(let n=0,c=o.length;n<c;n++){let c,u,p,d=o[n];if(""===d){i=[],l.push([]);continue}a.includeExplanation&&(c=r.tokenizeLine(d,s),u=c.tokens,p=0);let h=r.tokenizeLine2(d,s),m=h.tokens.length/2;for(let n=0;n<m;n++){let r=h.tokens[2*n],o=n+1<m?h.tokens[2*n+2]:d.length;if(r===o)continue;let s=h.tokens[2*n+1],l=t[He.getForeground(s)],c=He.getFontStyle(s),g=[];if(a.includeExplanation){let t=0;for(;r+t<o;){let n=u[p],r=d.substring(n.startIndex,n.endIndex);t+=r.length,g.push({content:r,scopes:ut(e,n.scopes)}),p++}}i.push({content:d.substring(r,o),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],s=h.ruleStack}return l}(o,i,e,a,r)}function d(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),r=vt(Object.fromEntries(mt.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),a=function(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=ft(r,o),i=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(i.length>0&&a.push({value:i,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const r=yt(s.sequence);for(const a of r)"resetAll"===a.type?(e=null,t=null,n.clear()):"resetForegroundColor"===a.type?e=null:"resetBackgroundColor"===a.type?t=null:"resetDecoration"===a.type&&n.delete(a.value);for(const a of r)"setForegroundColor"===a.type?e=a.value:"setBackgroundColor"===a.type?t=a.value:"setDecoration"===a.type&&n.add(a.value)}o=s.position}while(o<r.length);return a}}}();return n.map((t=>a.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let a=Fe.None;return t.decorations.has("bold")&&(a|=Fe.Bold),t.decorations.has("italic")&&(a|=Fe.Italic),t.decorations.has("underline")&&(a|=Fe.Underline),{content:t.value,color:n,fontStyle:a}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let r;r="object"==typeof t?t:{lang:t,theme:n};const a=p(e,r.lang,r.theme,{includeExplanation:!1}),{_theme:o}=u(r.theme);return St(a,{fg:o.fg,bg:o.bg,lineOptions:r?.lineOptions,themeName:o.name})},ansiToThemedTokens:d,ansiToHtml:function(e,t){const n=d(e,t?.theme),{_theme:r}=u(t?.theme);return St(n,{fg:r.fg,bg:r.bg,lineOptions:t?.lineOptions,themeName:r.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await s.loadTheme(e)},loadLanguage:async function(e){const t=wt(e);o.addLanguage(t),await s.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return s.getLoadedThemes()},getLoadedLanguages:function(){return s.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}const Et=JSON.parse('{"abap":"ABAP","actionscript-3":"ActionScript 3","ada":"Ada","ansi":"ANSI","apache":"Apache","apex":"Apex","apl":"APL","applescript":"AppleScript","ara":"Ara","asm":"ASM","astro":"Astro","awk":"Awk","ballerina":"Ballerina","bat":"BAT (Batchfile)","batch":"BAT (Batchfile)","beancount":"Ledger (Beancount)","berry":"Berry","be":"Berry","bibtex":"BibTeX","bicep":"BICEP","blade":"Blade","c":"C","cadence":"Cadence","cdc":"Cadence","clarity":"Clarity","clj":"Clojure","clojure":"Clojure","cmake":"CMake","cobol":"COBOL","codeql":"CodeQL","console":"Console","shellsession":"ShellSession","cypher":"Cypher","cql":"Cypher","ql":"CodeQL","coffee":"CoffeeScript","cpp":"C++","crystal":"Crystal","csharp":"C#","c#":"C#","cs":"C#","css":"CSS","cue":"CUE","d":"D","dart":"Dart","dax":"DAX","diff":"Diff","docker":"Dockerfile","dockerfile":"Dockerfile","dream-maker":"DreamMaker","elixir":"Elixir","elm":"Elm","erb":"ERB","erlang":"Erlang","erl":"Erlang","fish":"Fish","fsharp":"F#","f#":"F#","fs":"F#","gdresource":"GDResource","gdscript":"GDScript","gdshader":"GDShader","gherkin":"Gherkin","git-commit":"Git Commit","git-rebase":"Git Rebase","glsl":"GLSL","glimmer-js":"Glimmer (JS)","gjs":"Glimmer (JS)","glimmer-ts":"Glimmer (TS)","gts":"Glimmer (TS)","gnuplot":"Gnuplot","go":"Go","graphql":"GraphQL","groovy":"Groovy","hack":"Hack","haml":"HAML","handlebars":"Handlebars","hbs":"Handlebars","haskell":"Haskell","hs":"Haskell","hcl":"HCL","hjson":"Hjson","hlsl":"HLSL","html":"HTML","http":"HTTP","imba":"Imba","ini":"INI","properties":"INI","java":"Java","javascript":"JavaScript","js":"JavaScript","jinja-html":"Jinja HTML","jison":"Jison","json":"JSON","json5":"JSON5","jsonc":"JSONC","jsonl":"JSONL","jsonnet":"JSONnet","jssm":"JSSM","fsl":"JSSM","jsx":"JSX","julia":"Julia","kotlin":"Kotlin","kusto":"Kusto","kql":"Kusto","latex":"LaTeX","less":"LESS","liquid":"Liquid","lisp":"Lisp","logo":"Logo","lua":"Lua","make":"Makefile","makefile":"Makefile","markdown":"Markdown","md":"Markdown","marko":"Marko","matlab":"MATLAB","mdx":"MDX","mermaid":"Mermaid","mojo":"Mojo","narrat":"Narrat","nar":"Narrat","nextflow":"Nextflow","nf":"Nextflow","nginx":"Nginx","nim":"Nim","nix":"Nix","objective-c":"Objective-C","objc":"Objective-C","objective-cpp":"Objective-C++","ocaml":"OCaml","pascal":"Pascal","perl":"Perl","php":"PHP","plaintext":"Plaintext","plsql":"PLSQL","postcss":"PostCSS","powerquery":"Power Query","powershell":"PowerShell","ps":"PowerShell","ps1":"PowerShell","prisma":"Prisma","prolog":"Prolog","proto":"Protocol Buffers","pug":"Pug","jade":"Pug","puppet":"Puppet","purescript":"PureScript","python":"Python","py":"Python","r":"R","raku":"Raku","perl6":"Raku","razor":"Razor","reg":"Windows Registry","rel":"Rel","riscv":"RISC-V","rst":"RST","ruby":"Ruby","rb":"Ruby","rust":"Rust","rs":"Rust","sas":"SAS","sass":"Sass","scala":"Scala","scheme":"Scheme","scss":"SCSS","shaderlab":"ShaderLab","shader":"Shader","shellscript":"ShellScript","splunk":"Splunk SPL","bash":"Bash","shell":"ShellScript","sh":"ShellScript","zsh":"Zsh","smalltalk":"Smalltalk","solidity":"Solidity","sparql":"SPARQL","sql":"SQL","ssh-config":"SSH Config","stata":"Stata","stylus":"Stylus","styl":"Stylus","svelte":"Svelte","swift":"Swift","system-verilog":"SystemVerilog","tasl":"TASL","tcl":"TCL","tex":"TeX","toml":"TOML","tsx":"TSX","turtle":"Turtle","twig":"Twig","typescript":"TypeScript","ts":"TypeScript","v":"V","vb":"VB","cmd":"VB","verilog":"Verilog","vhdl":"VHDL","viml":"VimL","vim":"VimL","vimscript":"VimL","vue-html":"Vue HTML","vue":"Vue","vyper":"Vyper","vy":"Vyper","wasm":"WASM","wenyan":"Wenyan","文言":"Wenyan","wgsl":"WGSL","wolfram":"Wolfram","xml":"XML","xsl":"XSL","yaml":"YAML","yml":"YAML","zig":"Zig","zenscript":"ZenScript"}'),Lt={"actionscript-3":["as3"],bat:["batch"],berry:["be"],cadence:["cdc"],clojure:["clj"],codeql:["ql"],cpp:["arduino"],csharp:["c#","cs"],cypher:["cql"],docker:["dockerfile"],erlang:["erl"],fsharp:["f#","fs"],gjs:["glimmer-js"],gts:["glimmer-ts"],haskell:["hs"],handlebars:["hbs"],"html-ruby-erb":["erb"],ini:["properties"],java:["javafx"],javascript:["jscript","js"],jssm:["fsl"],kusto:["kql"],make:["makefile"],markdown:["md"],matlab:["matlabkey"],narrat:["nar"],nextflow:["nf"],"objective-c":["objc"],pascal:["delphi"],powershell:["ps","ps1"],pug:["jade"],python:["py"],raku:["perl6"],ruby:["rb"],rust:["rs"],shaderlab:["shader"],shellscript:["shell","sh","git-commit","git-rebase"],sellsession:["console"],stylus:["styl"],typescript:["ts"],vb:["cmd"],viml:["vim","vimscript"],vyper:["vy"],wenyan:["文言"],xml:["coldfusion"],yaml:["yml"]},Pt=e=>{if(e)return Object.keys(Lt).find((t=>Lt[t].includes(e)))},Tt=(e=>{const t=Object.values(Lt).flat();return Object.keys(e).reduce(((n,r)=>(t.includes(r)||(n[r]=e[r]),n)),{})})(Et),jt=e=>"ansi"===e?"shellscript":e,At=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;const r=(0,o.applyFilters)("blocks.codeBlockPro.theme",e),a=u?.[r]?.alias;return xt({langs:"plaintext"===t?[]:[jt(t)],theme:null!=a?a:r})};let Rt=!1;const Ot=({theme:e,lang:t,ready:n=!0})=>{const[r,a]=(0,p.useState)(!1),s=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);if(!Rt){Rt=!0;const e=window.codeBlockPro?.pluginUrl+"build/shiki/";i=(0,o.applyFilters)("blocks.codeBlockPro.assetDir",e),Ze=i.endsWith("/")?i:i+"/"}var i;s[e]?.custom&&(e="css-variables");const{data:l,error:c}=le({theme:e,lang:t,ready:n&&r},At);return(0,p.useEffect)((()=>{const e=window.codeBlockPro?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{et=e,a(!0)}))}),[]),{highlighter:l,error:c,loading:!l&&!c||!r}},Bt=be()(Ne(ve(((e,t)=>({previousLanguage:"javascript",setPreviousLanguage(n){e({previousLanguage:n}),t().addRecentLanguage(n)},recentLanguages:[],addRecentLanguage(t){e((e=>{var n;return e.recentLanguages.includes(t)?e:{recentLanguages:[...null!==(n=e.recentLanguages?.slice(-2))&&void 0!==n?n:[],t]}}))}})),{name:"Code Block Pro Language"}),{name:"code-block-pro-last-language"})),Mt=(e,t)=>{try{return JSON.parse(`[${null!=e?e:""}]`).map((e=>{const n=isNaN(Number(t))?0:Math.max(Number(t)-1,0);return"number"==typeof e?e-n:Array.from({length:e[1]-e[0]+1},((t,r)=>e[0]+r-n))})).filter((e=>!Array.isArray(e)||e?.length>0)).flat().filter((e=>e>=0))}catch(e){return[]}},It=e=>{const t=JSON.parse(`[${null!=e?e:""}]`).filter((e=>Array.isArray(e))),n=t.some((e=>e.some((e=>Array.isArray(e)))));if(n)throw new Error("Nested arrays not allowed");if(t.some((e=>e[0]>=e[1])))throw new Error("Nested arrays must be in order");return!0},Ft=window.wp.escapeHtml,Ht=window.wp.htmlEntities,Dt=(e,{useDecodeURI:t})=>{if(t)try{return encodeURIComponent(e)}catch(t){return e}return(0,Ft.escapeHTML)(e)},Gt=(e,{useDecodeURI:t})=>{if(t)try{return decodeURIComponent(e)}catch(t){return e}return(0,Ht.decodeEntities)(e)};var $t={grad:.9,turn:360,rad:360/(2*Math.PI)},zt=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Wt=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Ut=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},qt=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Vt=function(e){return{r:Ut(e.r,0,255),g:Ut(e.g,0,255),b:Ut(e.b,0,255),a:Ut(e.a)}},Jt=function(e){return{r:Wt(e.r),g:Wt(e.g),b:Wt(e.b),a:Wt(e.a,3)}},Kt=/^#([0-9a-f]{3,8})$/i,Qt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Xt=function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),i=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(i<0?i+6:i),s:o?s/o*100:0,v:o/255*100,a}},Yt=function(e){var t=e.h,n=e.s,r=e.v,a=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),i=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:255*[r,i,s,s,l,r][c],g:255*[l,r,r,i,s,s][c],b:255*[s,s,l,r,r,i][c],a}},Zt=function(e){return{h:qt(e.h),s:Ut(e.s,0,100),l:Ut(e.l,0,100),a:Ut(e.a)}},en=function(e){return{h:Wt(e.h),s:Wt(e.s),l:Wt(e.l),a:Wt(e.a,3)}},tn=function(e){return Yt((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},nn=function(e){return{h:(t=Xt(e)).h,s:(a=(200-(n=t.s))*(r=t.v)/100)>0&&a<200?n*r/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,r,a},rn=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,an=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,on=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sn=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ln={string:[[function(e){var t=Kt.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Wt(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Wt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=on.exec(e)||sn.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Vt({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=rn.exec(e)||an.exec(e);if(!t)return null;var n,r,a=Zt({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*($t[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return tn(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=void 0===a?1:a;return zt(t)&&zt(n)&&zt(r)?Vt({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,o=void 0===a?1:a;if(!zt(t)||!zt(n)||!zt(r))return null;var s=Zt({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return tn(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,o=void 0===a?1:a;if(!zt(t)||!zt(n)||!zt(r))return null;var s=function(e){return{h:qt(e.h),s:Ut(e.s,0,100),v:Ut(e.v,0,100),a:Ut(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return Yt(s)},"hsv"]]},cn=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},un=function(e,t){var n=nn(e);return{h:n.h,s:Ut(n.s+100*t,0,100),l:n.l,a:n.a}},pn=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},dn=function(e,t){var n=nn(e);return{h:n.h,s:n.s,l:Ut(n.l+100*t,0,100),a:n.a}},hn=function(){function e(e){this.parsed=function(e){return"string"==typeof e?cn(e.trim(),ln.string):"object"==typeof e&&null!==e?cn(e,ln.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Wt(pn(this.rgba),2)},e.prototype.isDark=function(){return pn(this.rgba)<.5},e.prototype.isLight=function(){return pn(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Jt(this.rgba)).r,n=e.g,r=e.b,o=(a=e.a)<1?Qt(Wt(255*a)):"","#"+Qt(t)+Qt(n)+Qt(r)+o;var e,t,n,r,a,o},e.prototype.toRgb=function(){return Jt(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Jt(this.rgba)).r,n=e.g,r=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+r+", "+a+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,a},e.prototype.toHsl=function(){return en(nn(this.rgba))},e.prototype.toHslString=function(){return t=(e=en(nn(this.rgba))).h,n=e.s,r=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+a+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,a},e.prototype.toHsv=function(){return e=Xt(this.rgba),{h:Wt(e.h),s:Wt(e.s),v:Wt(e.v),a:Wt(e.a,3)};var e},e.prototype.invert=function(){return mn({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),mn(un(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),mn(un(this.rgba,-e))},e.prototype.grayscale=function(){return mn(un(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),mn(dn(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),mn(dn(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?mn({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Wt(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=nn(this.rgba);return"number"==typeof e?mn({h:e,s:t.s,l:t.l,a:t.a}):Wt(t.h)},e.prototype.isEqual=function(e){return this.toHex()===mn(e).toHex()},e}(),mn=function(e){return e instanceof hn?e:new hn(e)},gn=[];!function(e){e.forEach((function(e){gn.indexOf(e)<0&&(e(hn,ln),gn.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var a in n)r[n[a]]=a;var o={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,s,i=r[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!o.length)for(var p in n)o[p]=new e(n[p]).toRgb();for(var d in n){var h=(a=l,s=o[d],Math.pow(a.r-s.r,2)+Math.pow(a.g-s.g,2)+Math.pow(a.b-s.b,2));h<c&&(c=h,u=d)}return u}},t.string.push([function(t){var r=t.toLowerCase(),a="transparent"===r?"#0000":n[r];return a?new e(a).toRgb():null},"name"])}]);const fn=(e,t)=>{const n=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);if(n?.[t.theme]?.styles?.["line-background"])return n?.[t?.theme]?.styles?.["line-background"];if(e.startsWith("var")){const t=document.documentElement,n=getComputedStyle(t).getPropertyValue(e.replace(/^var\((--[\w-]+)\)$/,"$1")).trim()||getComputedStyle(t).getPropertyValue("--cbp-text");return mn(n).saturate(.5).alpha(.2).toRgbString()}return mn(e).saturate(.5).alpha(.2).toRgbString()},bn=e=>{const t=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);return t?.[e.theme]?.styles?.["line-number-color"]?t?.[e?.theme]?.styles?.["line-number-color"]:e.textColor},yn=e=>{const t=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);return e?.theme&&t?.[e?.theme]?.styles?.["color-background"]?t?.[e?.theme]?.styles?.["color-background"]:e.bgColor},kn=e=>{const t=(0,o.applyFilters)("blocks.codeBlockPro.themes",u);return e?.theme&&t?.[e?.theme]?.styles?.["color-text"]?t?.[e?.theme]?.styles?.["color-text"]:e.textColor},vn=e=>{if(e)return[e.split(".")[0],"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","monospace"].join(",")},Sn=(e,t)=>{if(e)return t&&parseFloat(e)?`clamp(${16*parseFloat(e)}px, ${e}, ${24*parseFloat(e)}px)`:e},Cn=window.wp.components,Nn=()=>(0,r.createElement)(Cn.Card,null,(0,r.createElement)(Cn.CardBody,null,(0,r.createElement)(Cn.Tip,null,(0,r.createElement)("span",{className:"text-sm",dangerouslySetInnerHTML:{__html:(0,s.sprintf)((0,s.__)("Read-only mode: The %s capability is required.","code-block-pro"),"<code>unfiltered_html</code>")}})))),wn=({attributes:e,setAttributes:t})=>{const{language:n,theme:a,code:i="",bgColor:l,textColor:c,disablePadding:u,lineNumbers:d,startingLineNumber:m,footerType:g,fontSize:f,lineBlurs:b,lineHighlights:y,enableBlurring:k,enableHighlighting:v,seeMoreAfterLine:_,seeMoreTransition:S,enableMaxHeight:C,editorHeight:N,useDecodeURI:w,tabSize:x,useTabs:E}=e,L=(0,p.useRef)(null),P=ue(),[T,j]=(0,p.useState)(0),A=(0,p.useRef)(null),{previousLanguage:R}=Bt(),{highlighter:O,error:B,loading:M}=Ot({theme:a,lang:null!=n?n:R}),I=g&&"none"!==g;(({attributes:e,setAttributes:t})=>{const{theme:n,fontSize:r,fontFamily:a,lineHeight:o,copyButton:s,copyButtonType:i,copyButtonString:l,copyButtonStringCopied:c,headerType:u,footerType:d,clampFonts:h,disablePadding:m,lineNumbers:g,highlightingHover:f,tabSize:b,useTabs:y,seeMoreType:k,seeMoreString:v,seeMoreTransition:_}=e,{previousTheme:S,previousFontSize:C,previousFontFamily:N,previousLineHeight:w,previousHeaderType:x,previousFooterType:E,previousClampFonts:L,previousDisablePadding:P,previousLineNumbers:T,previousHighlightingHover:j,previousCopyButton:A,previousCopyButtonType:R,previousCopyButtonString:O,previousCopyButtonStringCopied:B,previousTabSize:M,previousUseTabs:I,previousSeeMoreType:F,previousSeeMoreString:H,previousSeeMoreTransition:D}=Pe(),G=(()=>{const[e,t]=(0,p.useState)(Pe.persist.hasHydrated);return(0,p.useEffect)((()=>{const e=Pe.persist.onFinishHydration((()=>t(!0)));return()=>{e()}}),[]),e})(),$=(0,p.useRef)(!1);(0,p.useEffect)((()=>{$.current||void 0===s&&A&&t({copyButton:A})}),[A,s,t]),(0,p.useEffect)((()=>{$.current||i||t({copyButtonType:R})}),[R,i,t]),(0,p.useEffect)((()=>{$.current||l||void 0===l||t({copyButtonString:O})}),[O,l,t]),(0,p.useEffect)((()=>{$.current||c||void 0===c||t({copyButtonStringCopied:B})}),[B,c,t]),(0,p.useEffect)((()=>{$.current||n||t({theme:S})}),[S,n,t]),(0,p.useEffect)((()=>{$.current||r||t({fontSize:C})}),[C,r,t]),(0,p.useEffect)((()=>{$.current||a||""===a||t({fontFamily:N})}),[N,a,t]),(0,p.useEffect)((()=>{$.current||o||t({lineHeight:w})}),[w,o,t]),(0,p.useEffect)((()=>{$.current||u||t({headerType:x})}),[x,u,t]),(0,p.useEffect)((()=>{$.current||void 0===d&&t({footerType:E})}),[E,d,t]),(0,p.useEffect)((()=>{$.current||void 0===h&&t({clampFonts:L})}),[L,h,t]),(0,p.useEffect)((()=>{$.current||void 0===m&&t({disablePadding:P})}),[P,m,t]),(0,p.useEffect)((()=>{$.current||void 0===g&&t({lineNumbers:T})}),[T,g,t]),(0,p.useEffect)((()=>{$.current||void 0===b&&t({tabSize:M})}),[M,b,t]),(0,p.useEffect)((()=>{$.current||void 0===y&&t({useTabs:I})}),[I,y,t]),(0,p.useEffect)((()=>{$.current||void 0===k&&t({seeMoreType:F})}),[F,k,t]),(0,p.useEffect)((()=>{$.current||void 0===v&&t({seeMoreString:H})}),[H,v,t]),(0,p.useEffect)((()=>{$.current||void 0===_&&t({seeMoreTransition:D})}),[D,_,t]),(0,p.useEffect)((()=>{$.current||void 0===f&&t({highlightingHover:j})}),[j,f,t]),(0,p.useEffect)((()=>{requestAnimationFrame((()=>{$.current=!0}))}),[G])})({attributes:e,setAttributes:t});const F=(0,p.useCallback)((()=>v?Mt(y,m).map((e=>({line:e,classes:["cbp-line-highlight"]}))):[]),[v,y,m]),H=(0,p.useCallback)((()=>k?Mt(b,m).map((e=>({line:e,classes:["cbp-no-blur"]}))):[]),[k,b,m]);return(0,p.useEffect)((()=>{O&&t({bgColor:O.getBackgroundColor(),textColor:O.getForegroundColor()})}),[a,O,t,P]),(0,p.useEffect)((()=>{if(!O)return;const r=null!=n?n:R,a=jt(r),s=Gt(i,{useDecodeURI:w}),l=[...F(),...H(),C&&!Number.isNaN(_)?{line:Number(_),classes:["cbp-see-more-line",S?"cbp-see-more-transition":""]}:{}],u="ansi"===r?O.ansiToHtml(s,{lineOptions:l}):O.codeToHtml(s,{lang:a,lineOptions:l}),p=(0,o.applyFilters)("blocks.codeBlockPro.codeHTML",u,e),d=fn(c,e);t({codeHTML:p,lineHighlightColor:d})}),[O,_,S,P,c,i,C,n,t,R,e,y,b,H,F,w]),(0,p.useLayoutEffect)((()=>{var e;if(!A.current)return;if(!d)return void t({lineNumbersWidth:void 0});const n=A?.current?.querySelectorAll(".line"),r=Number(null!=m?m:0)+(null!==(e=n?.length)&&void 0!==e?e:0);if(!n?.[0])return;t({highestLineNumber:r});const{font:a}=getComputedStyle(n?.[0]);j(((e,t)=>{const n=document.createElement("canvas").getContext("2d");return n?(n.font=t||getComputedStyle(document.body).font,n.measureText(e).width):0})(String(r),a))}),[d,m,i,M,P,B,L,A,t,f,M]),M||O?M&&i||B?(0,r.createElement)("div",{className:"px-4 text-left flex items-center",style:{backgroundColor:l,color:c,minHeight:36}},null!==(D=B?.message)&&void 0!==D?D:""):void 0===P?null:(0,r.createElement)("div",{ref:A,style:{maxHeight:Number(N)?Number(N):void 0,overflow:Number(N)?"auto":void 0}},P?null:(0,r.createElement)("div",{className:"absolute inset-0 z-10"},(0,r.createElement)(Nn,null)),(0,r.createElement)(h(),{value:Gt(i,{useDecodeURI:w}),onValueChange:n=>t({code:Dt(n,e)}),autoFocus:!i,tabSize:E?1:x||2,insertSpaces:!E,padding:{top:u?0:16,bottom:u||I?0:16,left:!d&&u?0:d?u?(null!=T?T:0)+16:(null!=T?T:0)+32:16,right:0},style:{backgroundColor:l,color:c,minHeight:P?void 0:200},onKeyDown:e=>"Tab"===e.key&&A.current?.querySelector("textarea")?.focus(),highlight:e=>O?.codeToHtml(Gt(e,{useDecodeURI:w}),{lang:jt(null!=n?n:R),lineOptions:[...F(),...H()]})?.replace(/<\/?[pre|code][^>]*>/g,"")})):(0,r.createElement)("div",{className:"px-4 text-left flex items-center",style:{backgroundColor:l,color:c,minHeight:36}},(0,s.sprintf)((0,s.__)("Theme %s not found. Please select a different theme.","code-block-pro"),a));var D},xn=e=>{var t,n;const{language:a,bgColor:o,textColor:s,footerString:i,footerLink:l,footerLinkTarget:c,disablePadding:u}=e,p=mn(s),d=s?.startsWith("var(")?null!==(t=kn(e))&&void 0!==t?t:s:p.isDark()?p.lighten(.05).toHex():p.darken(.05).toHex();return(0,r.createElement)("span",{style:{display:"flex",alignItems:"flex-end",padding:u?"10px 0 0 0":"10px",width:"100%",justifyContent:"flex-end",backgroundColor:null!==(n=yn(e))&&void 0!==n?n:o,color:d,fontSize:"12px",lineHeight:"1",position:"relative"}},(0,r.createElement)(En,{text:i||Tt[a],color:d,link:l,linkTarget:c}))},En=({text:e,color:t,link:n,linkTarget:a})=>{if(!n)return(0,r.createElement)(r.Fragment,null,e);const o={color:t,textDecoration:"none",fontWeight:"normal",border:"none",background:"none",borderRadius:"0",padding:"0",margin:"0"};return a?(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o,target:"_blank",rel:"noopener noreferrer"},e):(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o},e)},Ln=e=>{var t,n;const{language:a,bgColor:o,textColor:s,footerString:i,footerLink:l,footerLinkTarget:c,disablePadding:u}=e,p=mn(s),d=s?.startsWith("var(")?null!==(t=kn(e))&&void 0!==t?t:s:p.isDark()?p.lighten(.05).toHex():p.darken(.05).toHex();return(0,r.createElement)("span",{style:{display:"flex",alignItems:"flex-end",padding:u?"10px 0 0 0":"10px",width:"100%",justifyContent:"flex-start",backgroundColor:null!==(n=yn(e))&&void 0!==n?n:o,color:d,fontSize:"12px",lineHeight:"1",position:"relative"}},(0,r.createElement)(Pn,{text:i||Tt[a],color:d,link:l,linkTarget:c}))},Pn=({text:e,color:t,link:n,linkTarget:a})=>{if(!n)return(0,r.createElement)(r.Fragment,null,e);const o={color:t,textDecoration:"none",fontWeight:"normal",border:"none",background:"none",borderRadius:"0",padding:"0",margin:"0"};return a?(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o,target:"_blank",rel:"noopener noreferrer"},e):(0,r.createElement)("a",{className:"cbp-footer-link",href:n,style:o},e)},Tn=({attributes:e,onClick:t})=>{const{footerType:n,...a}=e,{bgColor:o}=e,i={none:(0,s.__)("None","code-block-pro"),simpleStringEnd:(0,s.__)("Simple string end","code-block-pro"),simpleStringStart:(0,s.__)("Simple string start","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(i).map((([e,i])=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-footer-${e}`,label:n===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),i):i,help:["simpleStringEnd","simpleStringStart"].includes(e)?(0,s.__)("Set the text at the top of this panel.","code-block-pro"):void 0,key:e},(0,r.createElement)("button",{id:`code-block-pro-footer-${e}`,type:"button",onClick:()=>t(e),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}),(0,r.createElement)(jn,{footerType:e,...a})))))))},jn=e=>{const{footerType:t}=e;return"simpleStringEnd"===t?(0,r.createElement)(xn,{...e}):"simpleStringStart"===t?(0,r.createElement)(Ln,{...e}):null},An=e=>(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:yn(e)}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:"#FF5F56",stroke:"#E0443E",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:"#FFBD2E",stroke:"#DEA123",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:"#27C93F",stroke:"#1AAB29",strokeWidth:".5"})))),Rn=e=>{const{textColor:t}=e;return(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:yn(e)}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:mn(t).alpha(.2).toHex(),stroke:mn(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:mn(t).alpha(.2).toHex(),stroke:mn(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:mn(t).alpha(.2).toHex(),stroke:mn(t).alpha(.3).toHex(),strokeWidth:".5"}))))},On=({bgColor:e})=>{const t=mn(e),n=t.isDark()?t.lighten(.05):t.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:n.toHex()}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:62,height:20,viewBox:"0 0 62 20"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"8",cy:"8",r:"8",fill:e,stroke:e,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"30",cy:"8",r:"8",fill:e,stroke:e,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"52",cy:"8",r:"8",fill:e,stroke:e,strokeWidth:".5"}))))},Bn=e=>{const{language:t,bgColor:n,textColor:a,headerString:o}=e;let s=mn(n).toHex();const i=mn(a);let l=i.isDark()?i.lighten(.05).toHex():i.darken(.05).toHex();var c,u;return n?.startsWith("var(")&&(s=null!==(c=yn(e))&&void 0!==c?c:n),a?.startsWith("var(")&&(l=null!==(u=kn(e))&&void 0!==u?u:a),(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"16px 0 0 16px",width:"100%",textAlign:"left",backgroundColor:s}},(0,r.createElement)("span",{style:{background:l,padding:"0.3rem 0.5rem 0.2rem",borderRadius:"1rem",fontSize:"0.8em",lineHeight:1,height:"1.25rem",textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",color:s}},o||Tt[t]))},Mn=e=>{const{language:t,bgColor:n,textColor:a,headerString:o}=e,s=mn(n);let i=s.isDark()?s.lighten(.05).toHex():s.darken(.05).toHex();const l=mn(a);let c=l.isDark()?l.lighten(.05).toHex():l.darken(.05).toHex();var u,p;return n?.startsWith("var(")&&(i=null!==(u=yn(e))&&void 0!==u?u:n),a?.startsWith("var(")&&(c=null!==(p=kn(e))&&void 0!==p?p:a),(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:i,color:c}},o||Tt[t])},In=e=>{const{language:t,bgColor:n,textColor:a,headerString:o}=e;let s=fn(a,e);var i;return a?.startsWith("var(")&&(s=null!==(i=kn(e))&&void 0!==i?i:a),(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 0 16px",fontSize:"0.8em",width:"100%",textAlign:"left",backgroundColor:n,fontStyle:"italic",color:a}},(0,r.createElement)("span",{style:{borderBottom:`1px solid ${s}`}},o||Tt[t]))},Fn=()=>(0,r.createElement)("div",{className:"block w-full h-8 pt-2"},(0,s.__)("Not supported with this theme","code-block-pro")),Hn=["headlightsMutedAlt"],Dn=({attributes:e,onClick:t})=>{const{headerType:n,...a}=e,{bgColor:o}=e,i={none:(0,s.__)("None","code-block-pro"),headlights:(0,s.__)("Headlights","code-block-pro"),headlightsMuted:(0,s.__)("Headlights muted","code-block-pro"),headlightsMutedAlt:(0,s.__)("Headlights muted alt","code-block-pro"),simpleString:(0,s.__)("Simple string","code-block-pro"),stringSmall:(0,s.__)("String muted","code-block-pro"),pillString:(0,s.__)("Pill string","code-block-pro")},l=o?.startsWith("var(");return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(i).map((([e,i])=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-header-${e}`,label:n===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),i):i,help:["simpleString","pillString","stringSmall"].includes(e)?(0,s.__)("Set the text at the top of this panel.","code-block-pro"):void 0,key:e},(0,r.createElement)("button",{id:`code-block-pro-header-${e}`,type:"button",onClick:()=>t(e),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)(Gn,{headerType:e,...a}),(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}))),l&&Hn.includes(e)&&(0,r.createElement)(Fn,null)))))},Gn=e=>{const{headerType:t,bgColor:n}=e,a=n?.startsWith("var(");return a&&Hn.includes(null!=t?t:"")?null:"headlights"===t?(0,r.createElement)(An,{...e}):"headlightsMuted"===t?(0,r.createElement)(Rn,{...e}):"headlightsMutedAlt"===t?(0,r.createElement)(On,{...e}):"simpleString"===t?(0,r.createElement)(Mn,{...e}):"stringSmall"===t?(0,r.createElement)(In,{...e}):"pillString"===t?(0,r.createElement)(Bn,{...e}):null},$n=e=>{const{bgColor:t,textColor:n,seeMoreString:a,disablePadding:o,context:i,footerType:l}=e;let c=mn(t).toHex();const u=mn(n);let p=u.isDark()?u.lighten(.05).toHex():u.darken(.05).toHex();const d="none"!==l,h="editor"===i;var m;return t?.startsWith("var(")&&(c=null!==(m=yn(e))&&void 0!==m?m:t),n?.startsWith("var(")&&(p=n),(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===i?"none":"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",backgroundColor:"transparent",fontSize:"12px",lineHeight:"1",position:"relative",marginBottom:d||h?0:"-16px",height:d&&!h?"16px":"32px"}},(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:p,backgroundColor:c,padding:o?"10px 0 0":"10px 16px",cursor:"default"}},a||(0,s.__)("Expand","code-block-pro")))},zn=e=>{const{bgColor:t,textColor:n,seeMoreString:a,disablePadding:o,context:i,footerType:l}=e;let c=mn(t).toHex();const u=mn(n);let p=u.isDark()?u.lighten(.05).toHex():u.darken(.05).toHex();const d="none"!==l,h="editor"===i;var m,g;return n?.startsWith("var(")&&(p=null!==(m=kn(e))&&void 0!==m?m:n),t?.startsWith("var(")&&(c=null!==(g=yn(e))&&void 0!==g?g:t),(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===i?"none":"flex",flexDirection:"column",alignItems:"flex-end",width:"100%",backgroundColor:"transparent",fontSize:"12px",lineHeight:"1",position:"relative",marginBottom:d||h?0:"-16px",height:d&&!h?"16px":"32px"}},(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:p,backgroundColor:c,padding:o?"10px 0 0":"10px 16px",cursor:"default"}},a||(0,s.__)("Expand","code-block-pro")))},Wn=e=>{const{bgColor:t,textColor:n,seeMoreString:a,context:o,footerType:i}=e;let l,c,u;if(t?.startsWith("var(")){var p,d;l=null!==(p=yn(e))&&void 0!==p?p:t,u=l,c=null!==(d=kn(e))&&void 0!==d?d:n}else{const e=mn(t),r=mn(n);c=e.isDark()?r.lighten(.15).toHex():r.darken(.15).toHex(),u=e.isDark()?e.lighten(.1).toHex():e.darken(.1).toHex(),l=e.toHex()}const h="none"!==i,m="editor"===o;return(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===o?"none":"flex",flexDirection:"column",alignItems:"center",width:"100%",fontSize:"12px",lineHeight:"1",position:"relative",paddingTop:h?0:"4px",marginBottom:h||m?0:"-16px",height:h&&!m?0:"32px"}},!h&&(0,r.createElement)("div",{style:{backgroundColor:l,height:"50%",position:"absolute",top:0,left:0,right:0},"aria-hidden":"true"}),(0,r.createElement)("span",{role:m?"presentation":"button",tabIndex:m?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:c,backgroundColor:u,padding:"6px 14px",cursor:"default",position:"relative",borderRadius:"6px",transform:h?"translateY(-50%)":void 0}},a||(0,s.__)("Expand","code-block-pro")))},Un=({attributes:e,onClick:t})=>{const{seeMoreType:n,...a}=e,{bgColor:o}=e,i={none:(0,s.__)("None","code-block-pro"),roundCenter:(0,s.__)("See more center","code-block-pro"),blockLeft:(0,s.__)("See more left","code-block-pro"),blockRight:(0,s.__)("See more right","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(i).map((([e,i])=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-see-more-${e}`,label:n===e||!n&&"none"===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),i):i,key:e},(0,r.createElement)("button",{id:`code-block-pro-see-more-${e}`,type:"button",onClick:()=>t(e),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}),(0,r.createElement)(qn,{seeMoreType:e,context:"editor",...a})))))))},qn=e=>{const{seeMoreType:t,enableMaxHeight:n,context:a}=e;return n?"roundCenter"===t?(0,r.createElement)(Wn,{...e,context:a}):"blockLeft"===t?(0,r.createElement)($n,{...e,context:a}):"blockRight"===t?(0,r.createElement)(zn,{...e,context:a}):null:null},Vn=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Jn(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Vn,"")}const Kn=(0,p.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,p.cloneElement)(e,{width:t,height:t,...n,ref:r})})),Qn=window.wp.primitives,Xn=(0,r.createElement)(Qn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(Qn.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})),Yn=({text:e,color:t})=>void 0===e?(0,r.createElement)(Kn,{icon:Xn,fill:t,className:"border border-solid border-gray-900"}):(0,r.createElement)("span",{className:"cbp-btn-text"},e||(0,s.__)("Copy","code-block-pro")),Zn={heroicons:{label:(0,s.__)("Clipboard","code-block-pro"),Component:()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},(0,r.createElement)("path",{className:"with-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}),(0,r.createElement)("path",{className:"without-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"}))},twoSquares:{label:(0,s.__)("Two Squares","code-block-pro"),Component:()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},(0,r.createElement)("path",{className:"with-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}),(0,r.createElement)("path",{className:"without-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"}))},textSimple:{label:(0,s.__)("Text Simple","code-block-pro"),Component:e=>(0,r.createElement)(Yn,{...e})}},er=({attributes:e})=>{var t;const{copyButtonType:n,copyButtonString:a,copyButtonStringCopied:o,useDecodeURI:i,code:l,textColor:c,bgColor:u,headerType:p}=e,d="textSimple"===n,h=d?u:c,m=d?c:void 0,{Component:g}=null!==(t=Zn?.[n])&&void 0!==t?t:Zn.heroicons;return(0,r.createElement)("span",{role:"button",tabIndex:0,"data-encoded":!!i||void 0,"data-code":Jn(i?encodeURIComponent(null!=l?l:""):null!=l?l:""),style:{color:null!=h?h:"inherit",display:"none",backgroundColor:m},"aria-label":null!=a?a:(0,s.__)("Copy","code-block-pro"),"data-copied-text":d?null!=o?o:(0,s.__)("Copied!","code-block-pro"):void 0,"data-has-text-button":d?n:void 0,"data-inside-header-type":d?p:void 0,"aria-live":d?"polite":void 0,className:"code-block-pro-copy-button"},(0,r.createElement)(g,{text:a}))},tr=e=>{const{copyButton:t}=e;return t?(0,r.createElement)(er,{attributes:e}):null},nr=window.wp.data,rr=window.wp.editPost,ar=({attributes:e,setAttributes:t})=>{const[n,r]=(0,p.useState)(e.language),{previousLanguage:a,setPreviousLanguage:o}=Bt();return(0,p.useEffect)((()=>{n||t({language:a})}),[n,a,t]),(0,p.useEffect)((()=>{r(e.language)}),[e.language]),[n,e=>{t({language:e}),r(e),o(e)}]},or=be()(ve((e=>({bringAttentionToPanel:!1,setBringAttentionToPanel:t=>{e((()=>({bringAttentionToPanel:t})))}})),{name:"Code Block Pro Globals"})),sr=({attributes:e,setAttributes:t})=>{var n,a;const{updateThemeHistory:o}=Pe();return(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-copy-button"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"copy-button",label:(0,s.__)("Copy Button","code-block-pro"),help:(0,s.__)("Adds a button to copy the code","code-block-pro"),checked:e.copyButton,onChange:e=>{t({copyButton:e}),o({copyButton:e})}}),e.copyButton&&(0,r.createElement)("div",{className:"flex gap-2 -mt-3"},Object.entries(Zn).map((([n,a])=>{const{Component:s}=a,{copyButtonType:i,bgColor:l,textColor:u}=e,p=i===n;return(0,r.createElement)("div",{key:n,style:{backgroundColor:l}},(0,r.createElement)("button",{id:`code-block-pro-copy-button-${n}`,type:"button",onClick:()=>{t({copyButtonType:n}),o({copyButtonType:n})},style:{color:u},"aria-current":p,className:c()("sidebar-copy-button relative border-0 flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none ring-wp-theme-500 focus:ring-wp overflow-x-auto top-0 right-0 left-auto bg-transparent border-none transition-opacity duration-200 ease-in-out leading-none z-10 p-1 opacity-90",{"ring-wp":p})},(0,r.createElement)("span",{className:"sr-only"},a.label),(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)(s,{color:u}))))}))),e.copyButton&&(0,r.createElement)("div",{style:{marginTop:"1rem"}},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-copy-button-text",autoComplete:"off",label:(0,s.__)("Button label","code-block-pro"),placeholder:(0,s.__)("Copy","code-block-pro"),onChange:e=>{t({copyButtonString:e})},value:null!==(n=e.copyButtonString)&&void 0!==n?n:""}),"textSimple"===e.copyButtonType&&(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-copy-button-text-copied",autoComplete:"off",label:(0,s.__)("Copied Text","code-block-pro"),placeholder:(0,s.__)("Copied!","code-block-pro"),onChange:e=>{t({copyButtonStringCopied:e})},value:null!==(a=e.copyButtonStringCopied)&&void 0!==a?a:"",help:(0,s.__)("Text briefly shown after the code is copied")})))},ir=({attributes:e,setAttributes:t})=>(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Buttons","code-block-pro"),initialOpen:!1},(0,r.createElement)(sr,{attributes:e,setAttributes:t}))),lr=({value:e,onChange:t})=>(0,r.createElement)(Cn.FontSizePicker,{onChange:e=>{t(null!=e?e:".875rem")},value:e,fontSizes:[{name:"Tiny",size:".75rem",slug:"tiny"},{name:"Small",size:".875rem",slug:"small"},{name:"Normal",size:"1rem",slug:"normal"},{name:"Big",size:"1.125rem",slug:"big"}]}),cr=({value:e,onChange:t})=>(0,r.createElement)(Cn.FontSizePicker,{onChange:e=>{t(null!=e?e:".875rem")},value:e,fontSizes:[{name:"None",size:"1rem",slug:"none"},{name:"Tight",size:"1.25rem",slug:"tight"},{name:"Normal",size:"1.5rem",slug:"normal"},{name:"Relaxed",size:"1.625rem",slug:"relaxed"}]}),ur=({value:e,onChange:t})=>{const n={"":(0,s.__)("System Default","code-block-pro"),"Code-Pro-Comic-Mono.ttf":"Comic Mono","Code-Pro-Cozette":"Cozette","Code-Pro-Deja-Vu-Mono.ttf":"DejaVu Mono","Code-Pro-Fantasque-Sans-Mono":"Fantasque Sans Mono","Code-Pro-Fira-Code":"Fira Code","Code-Pro-Geist-Mono":"Geist Mono","Code-Pro-Hack":"Hack","Code-Pro-JetBrains-Mono":"JetBrains Mono","Code-Pro-JetBrains-Mono-NL.ttf":"JetBrains Mono (No Ligatures)","Code-Pro-Monaspace-Argon.woff":"Monaspace Argon","Code-Pro-Monaspace-Krypton.woff":"Monaspace Krypton","Code-Pro-Monaspace-Neon.woff":"Monaspace Neon","Code-Pro-Monaspace-Radon.woff":"Monaspace Radon","Code-Pro-Monaspace-Xenon.woff":"Monaspace Xenon","Code-Pro-Roboto-Mono.ttf":"Roboto Mono"};return(0,r.createElement)(Cn.SelectControl,{id:"code-block-pro-font-family",label:(0,s.__)("Font Family","code-block-pro"),value:e,onChange:t,options:Object.entries(n).map((([e,t])=>({label:t,value:e})))})},pr=({attributes:e,setAttributes:t})=>{var n,a,o,i;const[l,c]=(0,p.useState)(e?.editorHeight),[u,d]=(0,p.useState)(null!==(n=e?.enableMaxHeight)&&void 0!==n&&n),[h,m]=(0,p.useState)(null!==(a=e?.seeMoreString)&&void 0!==a?a:""),[g,f]=(0,p.useState)(null!==(o=e?.seeMoreAfterLine)&&void 0!==o?o:""),[b,y]=(0,p.useState)(null!==(i=e?.seeMoreTransition)&&void 0!==i&&i),k=(0,p.useRef)(Number(e?.editorHeight)>0),{updateThemeHistory:v}=Pe();return(0,p.useEffect)((()=>{t({editorHeight:l,seeMoreString:h,seeMoreAfterLine:g,seeMoreTransition:b,enableMaxHeight:u})}),[l,h,g,b,t,u]),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Max Height","code-block-pro"),initialOpen:k.current},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-editor-height"},(0,r.createElement)(Cn.TextControl,{spellCheck:!1,autoComplete:"off","data-cy-cbp":"editor-height",type:"number",label:(0,s.__)("Max editor height (admin only)","code-block-pro"),help:(0,s.__)("Set to 0 to disable.","code-block-pro"),placeholder:"0",onChange:e=>{c(e)},value:l})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-enabled"},(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Enable frontend max height","code-block-pro"),help:(0,s.__)("Enable this, then select a specific line number below.","code-block-pro"),"data-cy":"enable-max-height",checked:u,onChange:e=>{d(e)}})),u&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-line"},(0,r.createElement)(Cn.TextControl,{"data-cy":"see-more-line",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Hide after line","code-block-pro"),help:(0,s.__)("Enter the last visible line number.","code-block-pro"),onChange:e=>{f(e)},value:g})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-text"},(0,r.createElement)(Cn.TextControl,{"data-cy":"see-more-text",spellCheck:!1,autoComplete:"off",label:(0,s.__)("See more text","code-block-pro"),placeholder:(0,s.__)("Expand","code-block-pro"),onChange:e=>{m(e),v({seeMoreString:e})},value:null!=h?h:""})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-see-more-transition"},(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Animate height transition","code-block-pro"),checked:b,onChange:e=>{y(e),v({seeMoreTransition:e})}})),(0,r.createElement)(Un,{attributes:e,onClick:e=>{t({seeMoreType:e}),v({seeMoreType:e})}})))},dr=({name:e,attributes:t,setAttributes:n})=>{const{Slot:a}=(0,p.useMemo)((()=>(0,Cn.createSlotFill)(e)),[e]);return(0,r.createElement)(a,{fillProps:{attributes:t,setAttributes:n,languages:Tt,getCode:()=>Gt(t.code,t),setCode:e=>n({code:Dt(e,t)})}})},hr="/code-block-pro/v1/settings",mr=async e=>{const t=await g()({path:hr});return t?.[e]},gr={seenNotices:[],hiddenThemes:[]},fr={getItem:async e=>{var t;const n=await mr(e);return JSON.stringify({version:null!==(t=n?.version)&&void 0!==t?t:0,state:n||gr})},setItem:async(e,t)=>{const{state:n,version:r}=JSON.parse(t),a={[e]:Object.assign(await mr(e)||gr,n,{version:r})};await g()({path:hr,method:"POST",data:a})},removeItem:async e=>{const t={[e]:null};await g()({path:hr,method:"POST",data:t})}},br=be()(Ne(ve((e=>({...gr,setSeenNotice(t){e((e=>e.seenNotices.includes(t)?e:{seenNotices:[...e.seenNotices,t]}))},toggleHiddenTheme(t){e((e=>({hiddenThemes:e.hiddenThemes.includes(t)?e.hiddenThemes.filter((e=>e!==t)):[...e.hiddenThemes,t]})))}})),{name:"Code Block Pro Settings"}),{name:"code_block_pro_settings_2",storage:Se((()=>fr))})),yr=()=>Object.entries((0,o.applyFilters)("blocks.codeBlockPro.themes",u)).map((([e,{name:t,priority:n,custom:r}])=>({name:t,slug:e,priority:n,custom:r}))),kr=()=>yr().filter((({priority:e})=>e)),vr=({search:e,setSearch:t})=>{const[n,a]=(0,p.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-filter-themes"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-search-themes",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Search themes","code-block-pro"),onChange:t,value:e}),(0,r.createElement)("div",{className:"-mt-4 mb-4 flex flex-wrap gap-2"},(0,r.createElement)(Cn.Button,{"data-cy":"manage-themes",variant:"secondary",isSmall:!0,onClick:()=>a(!0)},(0,s.__)("Manage themes","code-block-pro")),(0,o.applyFilters)("blocks.codeBlockPro.themesPanelButtons",null)))),n&&(0,r.createElement)(_r,{closeModal:()=>a(!1)}))},_r=({closeModal:e})=>{const{hiddenThemes:t,toggleHiddenTheme:n}=br(),a=kr();return(0,r.createElement)(Cn.Modal,{title:(0,s.__)("Manage Themes","code-block-pro"),onRequestClose:e,className:"code-block-pro-editor"},(0,r.createElement)("div",{id:"code-block-pro-theme-manager",className:"flex flex-col gap-4 mt-2"},a?.length>0?(0,r.createElement)("div",{className:"flex flex-col gap-4 bg-gray-100 p-4"},(0,r.createElement)("h2",{className:"m-0 my-2 text-center"},(0,s.__)("Priority themes","code-block-pro")),(0,r.createElement)("div",{className:"md:grid gap-3 grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},[...yr().filter((({custom:e})=>e)),...a].map((({name:e,slug:a})=>(0,r.createElement)(Cn.ToggleControl,{key:a,checked:!t.includes(a),label:e,onChange:()=>n(a)}))))):null,(0,r.createElement)("div",{className:c()("md:grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",{"p-4":a?.length>0})},yr().filter((({priority:e,custom:t})=>!e&&!t)).map((({name:e,slug:a})=>(0,r.createElement)(Cn.ToggleControl,{key:a,checked:!t.includes(a),label:e,onChange:()=>n(a)})))),a?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=manage-themes"},(0,s.__)("Get 25+ more themes here","code-block-pro")))))},Sr=({id:e,theme:t,lang:n,onClick:a,code:o,fontSize:i,lineHeight:l,fontFamily:c,clampFonts:u,styles:d})=>{const[h,m]=(0,p.useState)(!1),{highlighter:g,error:f,loading:b}=Ot({theme:t,lang:o?n:"c",ready:h}),[y,k]=(0,p.useState)(""),[v,_]=(0,p.useState)("#ffffff"),S=(0,p.useRef)(new IntersectionObserver((([e])=>{e.isIntersecting&&(m(!0),S.current.disconnect())}))),C="\nfloat Q_rsqrt( float number )\n{\n    long i;\n    float x2, y;\n    const float threehalfs = 1.5F;\n\n    x2 = number * 0.5F;\n    y  = number;\n    i  = * ( long * ) &y;                       // evil floating point bit level hacking\n    i  = 0x5f3759df - ( i >> 1 );               // what the frack?\n    y  = * ( float * ) &i;\n    y  = y * ( threehalfs - ( x2 * y * y ) );   // 1st iteration\n//  y  = y * ( threehalfs - ( x2 * y * y ) );   // 2nd iteration, this can be removed\n\n    return y;\n}".trim();return(0,p.useEffect)((()=>{if(!g)return;if("ansi"===n&&o)return k(g.ansiToHtml(o)),void _(g.getBackgroundColor());const e=o?g.codeToHtml((0,Ht.decodeEntities)(o),{lang:n}):g.codeToHtml((0,Ht.decodeEntities)(C),{lang:"c"});k(e),_(g.getBackgroundColor())}),[g,n,o,C]),(0,r.createElement)("button",{id:e,type:"button",onClick:a,className:"cbp-theme-preview p-4 px-3 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto max-h-80 overflow-y-hidden",style:{backgroundColor:v,minHeight:"50px",...Object.entries(null!=d?d:{}).reduce(((e,[t,n])=>({...e,[`--shiki-${t}`]:n})),{})}},b||f||!h?(0,r.createElement)("span",{id:e,ref:e=>{e&&S.current.observe(e)},style:{minHeight:"200px"},className:"flex items-center justify-center p-6 w-full"},f?.message||(0,s.__)("Loading...","code-block-pro")):(0,r.createElement)("span",{className:"pointer-events-none",style:{fontSize:Sn(i,u),fontFamily:vn(c),lineHeight:Sn(l,u)},dangerouslySetInnerHTML:{__html:y}}))},Cr=e=>{const{hiddenThemes:t}=br(),n=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),a=Object.entries(n).filter((([e])=>!t.includes(e))).filter((([t])=>t.includes(e.search.toLocaleLowerCase()))).map((([e,t])=>({slug:e,...t}))).sort(((e,t)=>e.priority===t.priority?0:e.priority?-1:1)).sort(((e,t)=>e.custom===t.custom?0:e.custom?-1:1)),i=kr();return(0,r.createElement)("div",{className:"code-block-pro-editor",style:{tabSize:e.tabSize}},e.search?.length>0?(0,r.createElement)(Cn.BaseControl,{id:"add-on-themes"},i?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/?utm_campaign=notice&utm_source=search"},(0,s.__)("Get 25+ more themes here","code-block-pro")))):i?.length>0?null:(0,r.createElement)("div",{className:"text-sm mb-4"},(0,r.createElement)(Cn.ExternalLink,{href:"https://github.com/KevinBatdorf/code-block-pro/discussions/168"},(0,s.__)("Need both light and dark mode?","code-block-pro"))),a.slice(0,9).map((t=>(0,r.createElement)(Nr,{key:t.slug,...t,...e}))),e.search?.length>0?null:(0,r.createElement)(Cn.BaseControl,{id:"add-on-themes"},i?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=mid-themes"},(0,s.__)("Get 25+ more themes here","code-block-pro")))),a.slice(9).map((t=>(0,r.createElement)(Nr,{key:t.slug,...t,...e}))),e.search?.length>0?null:(0,r.createElement)(Cn.BaseControl,{id:"add-on-themes"},i?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(Cn.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=below-themes"},(0,s.__)("Get 25+ more themes here","code-block-pro")))))},Nr=({slug:e,name:t,theme:n,language:a,code:o,fontSize:i,lineHeight:l,fontFamily:c,clampFonts:u,onClick:p,styles:d,helpUrl:h})=>(0,r.createElement)(Cn.BaseControl,{id:`code-block-pro-theme-${e}`,label:n===e?(0,s.sprintf)((0,s.__)("%s (current)","code-block-pro"),t):t},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Sr,{id:`code-block-pro-theme-${e}`,theme:e,lang:a,fontSize:i,lineHeight:l,fontFamily:c,clampFonts:u,styles:d,onClick:()=>{p(e)},code:o}),h?.url?(0,r.createElement)("div",{className:"mt-2"},(0,r.createElement)(Cn.ExternalLink,{href:h.url},h?.text||(0,s.__)("Read more","code-block-pro"))):null)),wr=({bringAttentionToThemes:e,attributes:t,setAttributes:n})=>{const{updateThemeHistory:a}=Pe(),[o,i]=(0,p.useState)(""),l=(()=>{const[e,t]=(0,p.useState)(br.persist.hasHydrated);return(0,p.useEffect)((()=>{const e=br.persist.onFinishHydration((()=>t(!0)));return()=>{e()}}),[]),e})();return(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Theme","code-block-pro"),initialOpen:null!=e&&e},l&&(0,r.createElement)(vr,{search:o,setSearch:i}),l&&(0,r.createElement)(Cr,{...t,search:o,onClick:e=>{n({theme:e}),a({theme:e})}}))},xr=({attributes:e,setAttributes:t})=>{var n,a,o;const i=(0,p.useRef)(null);return(0,p.useEffect)((()=>{try{It(e.lineBlurs),i.current?.querySelector("input")?.classList.remove("cbp-input-error")}catch(e){console.error(e),i.current?.querySelector("input")?.classList.add("cbp-input-error")}}),[e.lineBlurs]),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-blurring"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"enable-blur",label:(0,s.__)("Line blurring","code-block-pro"),help:(0,s.__)("Blur surrounding code to focus on specific lines.","code-block-pro"),checked:null!==(n=e.enableBlurring)&&void 0!==n&&n,onChange:e=>{t({enableBlurring:e})}}),e.enableBlurring&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-blurred-lines"},(0,r.createElement)("div",{ref:i},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-show-blurred-lines",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Focus on the following","code-block-pro"),help:(0,s.sprintf)((0,s.__)("Try %1$s or %2$s for a range.","code-block-pro"),"1,5","1,[3,5]"),onChange:e=>{t({lineBlurs:e})},value:null!==(a=e?.lineBlurs)&&void 0!==a?a:""})),(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Remove blur on hover","code-block-pro"),checked:null!==(o=e.removeBlurOnHover)&&void 0!==o&&o,onChange:e=>{t({removeBlurOnHover:e})}})))},Er=({attributes:e,setAttributes:t})=>{var n,a,o;const i=(0,p.useRef)(null);return(0,p.useEffect)((()=>{try{It(e.lineHighlights),i.current?.querySelector("input")?.classList.remove("cbp-input-error")}catch(e){console.error(e),i.current?.querySelector("input")?.classList.add("cbp-input-error")}}),[e.lineHighlights]),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-highlighting"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"enable-highlighting",label:(0,s.__)("Line highlights","code-block-pro"),help:(0,s.__)("Highlight individual lines to bring attention to specific code.","code-block-pro"),checked:null!==(n=e.enableHighlighting)&&void 0!==n&&n,onChange:e=>{t({enableHighlighting:e})}}),e.enableHighlighting&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-highlighted-lines"},(0,r.createElement)("div",{ref:i},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-show-highlighted-lines",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Highlight the following","code-block-pro"),help:(0,s.sprintf)((0,s.__)("Try %1$s or %2$s for a range.","code-block-pro"),"1,5","1,[3,5]"),onChange:e=>{t({lineHighlights:e})},value:null!==(a=e?.lineHighlights)&&void 0!==a?a:""}))),(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"enable-highlighting-hover",label:(0,s.__)("Line highlights on hover","code-block-pro"),help:(0,s.__)("Every line will be highlighted when hovered.","code-block-pro"),checked:null!==(o=e.highlightingHover)&&void 0!==o&&o,onChange:e=>{t({highlightingHover:e})}}))},Lr=({attributes:e,setAttributes:t})=>{var n,a,o;const[l,c]=ar({attributes:e,setAttributes:t}),{recentLanguages:u}=Bt(),{updateThemeHistory:d}=Pe(),{bringAttentionToPanel:h}=or(),{headerType:m,footerType:g}=e,f=new Map(Object.entries(Tt).sort(((e,t)=>e[1].localeCompare(t[1])))),b=ue(),y=["simpleStringEnd","simpleStringStart"],k=["simpleString","pillString","stringSmall"].includes(m),v=y.includes(null!=g?g:""),_=y.includes(null!=g?g:""),S=y.includes(null!=g?g:""),[C,N]=(0,p.useState)(!1),{openGeneralSidebar:w,closeGeneralSidebar:x}=(0,nr.useDispatch)(rr.store);return(0,p.useEffect)((()=>{h&&x("edit-post/block").then((()=>{N(h),w("edit-post/block")}))}),[h,x,w]),b?(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(dr,{name:"CodeBlockPro.Sidebar.Start",attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Line Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-show-line-numbers"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"show-line-numbers",label:(0,s.__)("Line numbers","code-block-pro"),help:(0,s.__)("Enable line numbers and set a starting number.","code-block-pro"),checked:e.lineNumbers,onChange:e=>{t({lineNumbers:e}),d({lineNumbers:e})}}),e.lineNumbers&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-line-number-start"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-line-number-start",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Start from","code-block-pro"),onChange:e=>{t({startingLineNumber:e})},value:e.startingLineNumber}))),(0,r.createElement)(Er,{attributes:e,setAttributes:t}),(0,r.createElement)(xr,{attributes:e,setAttributes:t}))),(0,r.createElement)(wr,{bringAttentionToThemes:"theme-select"===C,attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Language","code-block-pro"),initialOpen:"language-select"===C},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-language"},(0,r.createElement)(Cn.SelectControl,{id:"code-block-pro-language",label:(0,s.__)("Code Language","code-block-pro"),"data-cy-cbp":"language-select",value:l,onChange:e=>c(e),help:"ansi"===l?(0,s.__)("Some code themes may not render ANSI correctly. Control sequences render only on the front.","code-block-pro"):null,options:[...f.entries()].map((([e,t])=>({label:t.replace("ANSI","ANSI (experimental)"),value:e})))}),u?.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"mb-2 block"},(0,s.__)("Recently Used","code-block-pro")),(0,r.createElement)("div",{className:"flex flex-col gap-1"},u?.map((e=>{var t;return(0,r.createElement)(Cn.Button,{key:e,variant:"link",onClick:()=>c(e)},null!==(t=Tt[e])&&void 0!==t?t:e)})))):null))),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Header Type","code-block-pro"),initialOpen:!1},k&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-header-text"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-header-text",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Header Text","code-block-pro"),placeholder:Tt[l],onChange:e=>{t({headerString:e})},value:null!==(n=e.headerString)&&void 0!==n?n:""})),(0,r.createElement)(Dn,{attributes:e,onClick:e=>{t({headerType:e}),d({headerType:e})}})),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Footer Type","code-block-pro"),initialOpen:!1},v&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-footer-text"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-footer-text",spellCheck:!1,autoComplete:"off",label:(0,s.__)("Footer Text","code-block-pro"),placeholder:Tt[l],onChange:e=>{t({footerString:e})},value:null!==(a=e.footerString)&&void 0!==a?a:""})),_&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-footer-link"},(0,r.createElement)(Cn.TextControl,{id:"code-block-pro-footer-link",spellCheck:!1,type:"url",autoComplete:"off",label:(0,s.__)("Footer Link","code-block-pro"),placeholder:"https://example.com",help:(0,s.__)("Leave blank to disable","code-block-pro"),onChange:e=>{t({footerLink:e})},value:null!==(o=e.footerLink)&&void 0!==o?o:""})),S&&(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-footer-link-target"},(0,r.createElement)(Cn.CheckboxControl,{id:"code-block-pro-footer-link-target",label:(0,s.__)("Open in new tab?","code-block-pro"),checked:e.footerLinkTarget,onChange:e=>{t({footerLinkTarget:e}),d({footerLinkTarget:e})}})),(0,r.createElement)(Tn,{attributes:e,onClick:e=>{t({footerType:e}),d({footerType:e})}})),(0,r.createElement)(dr,{name:"CodeBlockPro.Sidebar.Middle",attributes:e,setAttributes:t}),(0,r.createElement)(ir,{attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Font Styling","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-size-select"},(0,r.createElement)("h2",{className:"m-0"},(0,s.__)("Font Size","code-block-pro")),(0,r.createElement)(lr,{value:e.fontSize,onChange:e=>{t({fontSize:e}),d({fontSize:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-line-height-select"},(0,r.createElement)("h2",{className:"m-0"},(0,s.__)("Line Height","code-block-pro")),(0,r.createElement)(cr,{value:e.lineHeight,onChange:e=>{t({lineHeight:e}),d({lineHeight:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-family-select"},(0,r.createElement)(ur,{value:e.fontFamily,onChange:e=>{t({fontFamily:e}),d({fontFamily:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"clamp-fonts"},(0,r.createElement)("div",{className:"mt-6"},(0,r.createElement)(Cn.CheckboxControl,{label:(0,s.__)("Clamp Font Sizes","code-block-pro"),help:(0,s.__)("Check this if your font sizes are unusually large or tiny.","code-block-pro"),checked:e.clampFonts,onChange:e=>{t({clampFonts:e}),d({clampFonts:e})}})))),(0,r.createElement)(pr,{attributes:e,setAttributes:t}),(0,r.createElement)(Cn.PanelBody,{title:(0,s.__)("Extra Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-disable-padding"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"disable-padding",label:(0,s.__)("Disable Padding","code-block-pro"),help:(0,s.__)("This is useful if you pick a theme that matches your background color, and want the code to line up to the edge of your content. You maybe need to add your own padding with CSS.","code-block-pro"),checked:e.disablePadding,onChange:e=>{t({disablePadding:e}),d({disablePadding:e})}})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-decode-uri"},(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"use-decode-uri",label:(0,s.__)("Encode special characters","code-block-pro"),help:(0,s.__)("Select this to allow HTML entities such as &lt; and &gt; and others to be displayed. You may need to re-add the code after changing this","code-block-pro"),checked:e.useDecodeURI,onChange:e=>{t({useDecodeURI:e}),d({useDecodeURI:e})}})),(0,r.createElement)(Cn.BaseControl,{id:"code-block-pro-editor-tab-size"},(0,r.createElement)(Cn.TextControl,{spellCheck:!1,autoComplete:"off",type:"number","data-cy":"editor-tab-size",label:(0,s.__)("Editor tab size","code-block-pro"),help:(0,s.__)("The number of spaces to insert when pressing tab key.","code-block-pro"),value:e.tabSize,onChange:e=>{const n=e?Number(e):void 0;t({tabSize:n}),d({tabSize:n})}}),(0,r.createElement)(Cn.CheckboxControl,{"data-cy":"use-tabs",label:(0,s.__)("Use Real Tabs","code-block-pro"),help:(0,s.__)("Inserts an actual tab character instead of a space. The width defined above.","code-block-pro"),checked:e.useTabs,onChange:e=>{t({useTabs:e}),d({useTabs:e})}}))),(0,r.createElement)(dr,{name:"CodeBlockPro.Sidebar.End",attributes:e,setAttributes:t})):(0,r.createElement)(i.InspectorControls,null,b?null:(0,r.createElement)(Nn,null))},Pr=({attributes:e,setAttributes:t})=>{var n,a;const[l]=ar({attributes:e,setAttributes:t}),{theme:c,bgColor:p,textColor:d}=e,h=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),{setBringAttentionToPanel:m}=or();return void 0===ue()?null:(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(Cn.ToolbarGroup,{className:"code-block-pro-editor"},(0,r.createElement)(Cn.ToolbarButton,{icon:()=>{var e;return(null!==(e=Tt[l])&&void 0!==e?e:l)?.replace("ANSI","ANSI (experimental)")},onClick:()=>m("language-select"),label:(0,s.__)("Press to open sidebar panel","code-block-pro")})),h[c]?.name&&(0,r.createElement)(Cn.ToolbarGroup,{className:"code-block-pro-editor"},(0,r.createElement)(Cn.ToolbarButton,{icon:()=>h[c]?.name,onClick:()=>m("theme-select"),label:(0,s.__)("Press to open sidebar panel","code-block-pro")},(0,r.createElement)("span",{className:"flex mx-2"},(0,r.createElement)("span",{style:{backgroundColor:null!==(n=h[c]?.styles?.["color-background"])&&void 0!==n?n:p},className:"w-3 h-3 border border-gray-400 border-solid border-1 rounded-full inline-block"}),(0,r.createElement)("span",{style:{backgroundColor:null!==(a=h[c]?.styles?.["color-text"])&&void 0!==a?a:d},className:"w-3 h-3 border border-gray-400 border-solid border-1 rounded-full inline-block transform -translate-x-1"})))))},Tr=({attributes:e,setAttributes:t})=>{const{clampFonts:n,disablePadding:a,enableBlurring:s,enableHighlighting:l,footerType:p,fontSize:d,fontFamily:h,highestLineNumber:m,highlightingHover:g,lineHeight:f,lineHighlightColor:b,lineNumbers:y,lineNumbersWidth:k,removeBlurOnHover:v,startingLineNumber:_,tabSize:S,theme:C,useTabs:N}=e,w=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),x=w[C]?.styles;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Lr,{attributes:e,setAttributes:t}),(0,r.createElement)(Pr,{attributes:e,setAttributes:t}),(0,r.createElement)("div",{...(0,i.useBlockProps)({className:c()("code-block-pro-editor",{"padding-disabled":a,"padding-bottom-disabled":p&&"none"!==p,"cbp-has-line-numbers":y,"cbp-blur-enabled":s,"cbp-unblur-on-hover":v,"cbp-highlight-hover":g}),style:{fontSize:Sn(d,n),"--cbp-line-number-color":y?bn(e):void 0,"--cbp-line-number-start":Number(_)>1?_:void 0,"--cbp-line-number-width":m?`calc(${String(m).length} * ${d})`:k?`${k}px`:void 0,"--cbp-line-highlight-color":l||g?b:void 0,"--cbp-line-height":f,tabSize:void 0===N?void 0:S,fontFamily:vn(h),lineHeight:Sn(f,n),...Object.entries(null!=x?x:{}).reduce(((e,[t,n])=>({...e,[`--shiki-${t}`]:n})),{}),...(0,o.applyFilters)("blocks.codeBlockPro.additionalEditorAttributes",{},e)}})},(0,r.createElement)(Gn,{...e}),(0,r.createElement)(tr,{...e}),(0,r.createElement)(wn,{attributes:e,setAttributes:t}),(0,r.createElement)(jn,{...e}),(0,r.createElement)(qn,{...e})))},jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"kevinbatdorf/code-block-pro","version":"1.13.0","title":"Code Block Pro - Beautiful syntax highlighting","category":"common","description":"Code highlighting powered by the VS Code engine. No overhead.","attributes":{"code":{"type":"string"},"codeHTML":{"type":"string"},"language":{"type":"string"},"theme":{"type":"string"},"align":{"type":"string"},"bgColor":{"type":"string","default":"#282a37"},"textColor":{"type":"string","default":"#f8f8f2"},"fontSize":{"type":"string"},"fontFamily":{"type":"string"},"lineHeight":{"type":"string"},"lineNumbers":{"type":"boolean"},"clampFonts":{"type":"boolean"},"editorHeight":{"type":"string"},"headerType":{"type":"string"},"footerType":{"type":"string"},"headerString":{"type":"string"},"disablePadding":{"type":"boolean"},"footerString":{"type":"string"},"footerLink":{"type":"string"},"enableMaxHeight":{"type":"boolean"},"seeMoreType":{"type":"string"},"seeMoreString":{"type":"string"},"seeMoreAfterLine":{"type":"string"},"seeMoreTransition":{"type":"boolean"},"footerLinkTarget":{"type":"boolean"},"startingLineNumber":{"type":"number","default":1},"lineNumbersWidth":{"type":"number"},"enableHighlighting":{"type":"boolean"},"highlightingHover":{"type":"boolean"},"lineHighlights":{"type":"string"},"lineHighlightColor":{"type":"string"},"enableBlurring":{"type":"boolean"},"lineBlurs":{"type":"string"},"removeBlurOnHover":{"type":"boolean"},"frame":{"type":"boolean"},"renderType":{"type":"string","default":"code"},"label":{"type":"string","default":""},"copyButton":{"type":"boolean"},"copyButtonType":{"type":"string"},"copyButtonString":{"type":"string"},"copyButtonStringCopied":{"type":"string"},"tabSize":{"type":"number"},"useTabs":{"type":"boolean"}},"supports":{"html":false,"align":["wide","full"]},"textdomain":"code-block-pro","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./front/front.js"}'),Ar=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"#1e1e1e",strokeWidth:"2"},(0,r.createElement)("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})),Rr=({attributes:e})=>{const{clampFonts:t,code:n,codeHTML:a,disablePadding:s,enableBlurring:l,enableHighlighting:p,footerType:d,fontSize:h,fontFamily:m,highestLineNumber:g,highlightingHover:f,lineHeight:b,lineHighlightColor:y,lineNumbers:k,lineNumbersWidth:v,removeBlurOnHover:_,startingLineNumber:S,tabSize:C,theme:N,useTabs:w}=e,x=(0,o.applyFilters)("blocks.codeBlockPro.themes",u),E=x[N]?.styles;return(0,r.createElement)("div",{...i.useBlockProps.save({className:c()({"padding-disabled":s,"padding-bottom-disabled":d&&"none"!==d,"cbp-has-line-numbers":k,"cbp-blur-enabled":l,"cbp-unblur-on-hover":_,"cbp-highlight-hover":f})}),"data-code-block-pro-font-family":m,style:{fontSize:Sn(h,t),fontFamily:vn(m),"--cbp-line-number-color":k?bn(e):void 0,"--cbp-line-number-start":Number(S)>1?S:void 0,"--cbp-line-number-width":g?`calc(${String(g).length} * ${(e=>"Code-Pro-Fantasque-Sans-Mono"===e?.5:.6)(m)} * ${h})`:v?`${v}px`:void 0,"--cbp-line-highlight-color":p||f?y:void 0,lineHeight:Sn(b,t),"--cbp-tab-width":void 0===w?void 0:String(C),tabSize:void 0===w?void 0:"var(--cbp-tab-width, 2)",...Object.entries(null!=E?E:{}).reduce(((e,[t,n])=>({...e,[`--shiki-${t}`]:n})),{}),...(0,o.applyFilters)("blocks.codeBlockPro.additionalOutputAttributes",{},e)}},n?.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Gn,{...e}),(0,r.createElement)(tr,{...e}),(0,r.createElement)(i.RichText.Content,{value:a}),(0,r.createElement)(jn,{...e}),(0,r.createElement)(qn,{...e})):null)};(0,a.registerBlockType)(jr.name,{...jr,icon:Ar,attributes:{code:{type:"string"},codeHTML:{type:"string"},language:{type:"string"},theme:{type:"string"},align:{type:"string"},bgColor:{type:"string",default:"#282a37"},textColor:{type:"string",default:"#f8f8f2"},fontSize:{type:"string"},fontFamily:{type:"string"},lineHeight:{type:"string"},clampFonts:{type:"boolean"},editorHeight:{type:"string"},lineNumbers:{type:"boolean"},headerType:{type:"string"},headerString:{type:"string"},disablePadding:{type:"boolean"},footerType:{type:"string"},footerString:{type:"string"},footerLink:{type:"string"},footerLinkTarget:{type:"boolean"},enableMaxHeight:{type:"boolean"},seeMoreType:{type:"string"},seeMoreString:{type:"string"},seeMoreAfterLine:{type:"string"},seeMoreTransition:{type:"boolean"},startingLineNumber:{type:"string"},lineNumbersWidth:{type:"number"},highestLineNumber:{type:"number"},enableHighlighting:{type:"boolean"},highlightingHover:{type:"boolean"},lineHighlights:{type:"string"},lineHighlightColor:{type:"string"},enableBlurring:{type:"boolean"},lineBlurs:{type:"string"},removeBlurOnHover:{type:"boolean"},frame:{type:"boolean"},renderType:{type:"string",default:"code"},label:{type:"string",default:""},copyButton:{type:"boolean"},copyButtonType:{type:"string"},copyButtonString:{type:"string",default:(0,s.__)("Copy","code-block-pro")},copyButtonStringCopied:{type:"string",default:(0,s.__)("Copied!","code-block-pro")},useDecodeURI:{type:"boolean",default:!1},tabSize:{type:"number",default:2},useTabs:{type:"boolean"}},supports:{html:!1,align:["wide","full"]},title:(0,s.__)("Code Pro","code-block-pro"),edit:({attributes:e,setAttributes:t})=>(0,r.createElement)(Tr,{attributes:e,setAttributes:t}),save:({attributes:e})=>(0,r.createElement)(Rr,{attributes:e}),transforms:{from:[{type:"block",blocks:["core/code","syntaxhighlighter/code"],transform:e=>{const{content:t,language:n}=e;return(0,a.createBlock)(jr.name,{code:t?(0,Ft.escapeHTML)((e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(t)):void 0,language:Pt(n)})}}],to:[{type:"block",blocks:["core/code"],transform:e=>{const{code:t}=e;return(0,a.createBlock)("core/code",{content:t})}}]}}),(0,o.addFilter)("editor.BlockEdit",jr.name,(e=>t=>((e,t)=>{const{attributes:n,clientId:o}=t,{previousLanguage:l}=Bt(),c=(0,nr.useSelect)((e=>{const t=e(i.store).getBlock(o);return["core/code","syntaxhighlighter/code"].includes(t.name)}),[o]),{replaceBlock:u}=(0,nr.useDispatch)(i.store),p=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value};return c?(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(e,{...t}),(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(Cn.ToolbarGroup,null,(0,r.createElement)(Cn.ToolbarButton,{icon:Ar,label:(0,s.__)("Convert to Code Pro","code-block-pro"),onClick:()=>{var e;const t=(0,a.createBlock)(jr.name,{code:n?.content?p(n.content):void 0,language:null!==(e=Pt(n?.language))&&void 0!==e?e:l});u(o,[t])}})))):(0,r.createElement)(e,{...t})})(e,t)))},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=a.apply(null,n);s&&e.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},460:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(196)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),d="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),h="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(h,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(h," {\n    color: transparent !important;\n  }\n\n  .").concat(h,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,r=e.selectionStart,a=e.selectionEnd;t._recordChange({value:n,selectionStart:r,selectionEnd:a})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var r,a,s;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var d=Date.now();if(n){var h=t._history.stack[t._history.offset];if(h&&d-h.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(r=t._getLines(h.value,h.selectionStart).pop())||void 0===r?void 0:r.match(m),f=null===(a=t._getLines(e.value,e.selectionStart).pop())||void 0===a?void 0:a.match(m);if((null==g?void 0:g[1])&&(null===(s=null==f?void 0:f[1])||void 0===s?void 0:s.startsWith(g[1])))return void(t._history.stack[t._history.offset]=o(o({},e),{timestamp:d}))}}t._history.stack.push(o(o({},e),{timestamp:d})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=o(o({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,r=e.offset,a=n[r-1];a&&(t._updateInput(a),t._history.offset=Math.max(r-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,a=n[r+1];a&&(t._updateInput(a),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,a=n.insertSpaces,o=n.ignoreTabKey,s=n.onKeyDown;if(!s||(s(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,h=(a?" ":"\t").repeat(r);if(9===e.keyCode&&!o&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(y=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(h)?e.substring(h.length):e})).join("\n");if(l!==f){var b=y[m];t._applyEdits({value:f,selectionStart:(null==b?void 0:b.startsWith(h))?c-h.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var y,k=(y=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;b=y[k],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=k&&t<=v?h+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?c+h.length:c,selectionEnd:u+h.length*(v-k+1)})}else{var _=c+h.length;t._applyEdits({value:l.substring(0,c)+h+l.substring(u),selectionStart:_,selectionEnd:_})}else if(8===e.keyCode){var S=c!==u;l.substring(0,c).endsWith(h)&&!S&&(e.preventDefault(),_=c-h.length,t._applyEdits({value:l.substring(0,c-h.length)+l.substring(u),selectionStart:_,selectionEnd:_}))}else if(13===e.keyCode){if(c===u){var C=t._getLines(l,c).pop(),N=null==C?void 0:C.match(/^\s+/);if(null==N?void 0:N[0]){e.preventDefault();var w="\n"+N[0];_=c+w.length,t._applyEdits({value:l.substring(0,c)+w+l.substring(u),selectionStart:_,selectionEnd:_})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var x=void 0;57===e.keyCode&&e.shiftKey?x=["(",")"]:219===e.keyCode?x=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?x=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(x=["`","`"]),c!==u&&x&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+x[0]+l.substring(c,u)+x[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(d?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(d?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||d&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value,a=n.selectionStart,o=n.selectionEnd;t._recordChange({value:r,selectionStart:a,selectionEnd:o},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return a(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,a=t.padding,s=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,d=t.disabled,g=t.form,b=t.maxLength,y=t.minLength,k=t.name,v=t.placeholder,_=t.readOnly,S=t.required,C=t.onClick,N=t.onFocus,w=t.onBlur,x=t.onKeyUp,E=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),L=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:"object"==typeof a?a.top:a,paddingRight:"object"==typeof a?a.right:a,paddingBottom:"object"==typeof a?a.bottom:a,paddingLeft:"object"==typeof a?a.left:a},T=s(n);return u.createElement("div",o({},L,{style:o(o({},f.container),r)}),u.createElement("pre",o({className:E,"aria-hidden":"true",style:o(o(o({},f.editor),f.highlight),P)},"string"==typeof T?{dangerouslySetInnerHTML:{__html:T+"<br />"}}:{children:T})),u.createElement("textarea",{ref:function(t){return e._input=t},style:o(o(o({},f.editor),f.textarea),P),className:h+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:C,onKeyUp:x,onFocus:N,onBlur:w,disabled:d,form:g,maxLength:b,minLength:y,name:k,placeholder:v,readOnly:_,required:S,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},250:(e,t,n)=>{"use strict";var r=n(196),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,i=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return i((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),s((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(196),a=n(688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=a.useSyncExternalStore,i=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var p=i(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=c((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==a&&d.hasValue){var t=d.value;if(a(t,e))return i=t}return i=e}if(t=i,o(s,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(s=e,i=n)}var s,i,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,a]);var h=s(e,p[0],p[1]);return l((function(){d.hasValue=!0,d.value=h}),[h]),u(h),h}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},930:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const a=r(n(418));let o=null,s=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const a=e.charCodeAt(n);let o=a,s=!1;if(a>=55296&&a<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=65536+(a-55296<<10)|t-56320,s=!0)}t+=o<=127?1:o<=2047?2:o<=65535?3:4,s&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),r=n!==t,a=r?new Uint32Array(t+1):null;r&&(a[t]=n);const o=r?new Uint32Array(n+1):null;r&&(o[n]=t);const s=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}r&&(a[n]=l,u&&(a[n+1]=l),c<=127?o[l+0]=n:c<=2047?(o[l+0]=n,o[l+1]=n):c<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),c<=127?s[l++]=c:c<=2047?(s[l++]=192|(1984&c)>>>6,s[l++]=128|(63&c)>>>0):c<=65535?(s[l++]=224|(61440&c)>>>12,s[l++]=128|(4032&c)>>>6,s[l++]=128|(63&c)>>>0):(s[l++]=240|(1835008&c)>>>18,s[l++]=128|(258048&c)>>>12,s[l++]=128|(4032&c)>>>6,s[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!o)throw new Error("Must invoke loadWASM first.");this._onigBinding=o,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=o._omalloc(1e4)),l._sharedPtrInUse=!0,o.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(o)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!o)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let r=0,a=e.length;r<a;r++){const a=new i(e[r]);t[r]=a.createString(o),n[r]=a.utf8Length}const r=o._omalloc(4*e.length);o.HEAPU32.set(t,r/4);const a=o._omalloc(4*e.length);o.HEAPU32.set(n,a/4);const s=o._createOnigScanner(r,a,e.length);for(let n=0,r=e.length;n<r;n++)o._ofree(t[n]);o._ofree(a),o._ofree(r),0===s&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(o),this._onigBinding=o,this._ptr=s}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=s,a=0;if("number"==typeof n?(8&n&&(r=!0),a=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,r,a);return e.dispose(),n}return this._findNextMatchSync(e,t,r,a)}_findNextMatchSync(e,t,n,r){const a=this._onigBinding;let o;if(o=n?a._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):a._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===o)return null;const s=a.HEAPU32;let i=o/4;const l=s[i++],c=s[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(s[i++]),r=e.convertUtf8OffsetToUtf16(s[i++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,r,s;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return p=new Promise(((e,t)=>{r=e,s=t})),function(e,t,n,r){(0,a.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{o=e,n()}))}(t,n,r,s),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){s=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,r=void 0!==(e=e||{})?e:{};r.ready=new Promise((function(e,r){t=e,n=r}));var a,o=Object.assign({},r),s=[];a=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||x(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=r.print||console.log.bind(console),u=r.printErr||console.warn.bind(console);Object.assign(r,o),o=null,r.arguments&&(s=r.arguments),r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(i=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&x("no native wasm support detected");var p,d,h,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&g)return g.decode(e.subarray(t,a));for(var o="";t<a;){var s=e[t++];if(128&s){var i=63&e[t++];if(192!=(224&s)){var l=63&e[t++];if((s=224==(240&s)?(15&s)<<12|i<<6|l:(7&s)<<18|i<<12|l<<6|63&e[t++])<65536)o+=String.fromCharCode(s);else{var c=s-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&s)<<6|i)}else o+=String.fromCharCode(s)}return o}function b(e){p=e,r.HEAP8=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAP32=new Int32Array(e),r.HEAPU8=d=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=h=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}r.INITIAL_MEMORY;var y=[],k=[],v=[];function _(e){y.unshift(e)}function S(e){v.unshift(e)}var C=0,N=null,w=null;function x(e){r.onAbort&&r.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var E,L;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function T(e){try{if(e==E&&i)return new Uint8Array(i);if(a)return a(e);throw"both async and sync fetching of the wasm failed"}catch(e){x(e)}}function j(e){for(;e.length>0;)e.shift()(r)}function A(e){try{return l.grow(e-p.byteLength+65535>>>16),b(l.buffer),1}catch(e){}}P(E="onig.wasm")||(E=function(e){return r.locateFile?r.locateFile(e,""):""+e}(E)),L="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var B,M={emscripten_get_now:L,emscripten_memcpy_big:function(e,t,n){d.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=d.length,r=2147483648;if((e>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var o=n*(1+.2/a);if(o=Math.min(o,e+100663296),A(Math.min(r,(t=Math.max(e,o))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,r){for(var a=0,o=0;o<n;o++){var s=h[t>>2],i=h[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,d[s+l]);a+=i}return h[r>>2]=a,0}};function I(e){function n(){B||(B=!0,r.calledRun=!0,m||(j(k),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)S(r.postRun.shift());j(v)}()))}e=e||s,C>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)_(r.preRun.shift());j(y)}(),C>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:M,wasi_snapshot_preview1:M};function t(e,t){var n=e.exports;r.asm=n,b((l=r.asm.memory).buffer),r.asm.__indirect_function_table,function(e){k.unshift(e)}(r.asm.__wasm_call_ctors),function(e){if(C--,r.monitorRunDependencies&&r.monitorRunDependencies(C),0==C&&(null!==N&&(clearInterval(N),N=null),w)){var t=w;w=null,t()}}()}function a(e){t(e.instance)}function o(t){return Promise.resolve().then((function(){return T(E)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),x(e)}))}if(C++,r.monitorRunDependencies&&r.monitorRunDependencies(C),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||P(E)||"function"!=typeof fetch?o(a):fetch(E,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(a,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),o(a)}))}))).catch(n)}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=function(e,t){return e?f(d,e,t):""},w=function e(){B||I(),B||(w=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return I(),e.ready});e.exports=t}},t={},function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(770);var e,t},e.exports=t()},190:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),r=n.getTokenType(e),a=n.getFontStyle(e),o=n.getForeground(e),s=n.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:a,foreground:o,background:s})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,a,o,s,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),d=n.getForeground(e),h=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==a&&(u=a?1:0),-1!==o&&(p=o),0!==s&&(d=s),0!==i&&(h=i),(l<<0|c<<8|u<<10|p<<11|d<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class a{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=a;class o{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new a(t,n)})),this._defaultAttributes=new a(e,8),this._embeddedLanguagesMatcher=new s(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?o._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(o.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=o,o._NULL_SCOPE_METADATA=new a(0,0),o.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class s{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const r=n(350),a=n(36),o=n(736),s=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function d(e,t,n,r,a){const s=o.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(n,r,a.repository);for(const n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:a,priority:n.priority})}function h(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(m(t[r],e))return n=r+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,r,a,o,s,i){return new g(e,t,n,r,a,o,s,i)};class g{constructor(e,t,n,r,a,s,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const e of Object.keys(a)){const t=o.createMatchers(e,h);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:a[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)d(e,t,r[t],this,n);const a=this._grammarRepository.injections(t);a&&a.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&d(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),r.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=a.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);let i;i=s?b.createRootAndLookUpScopeName(s,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new k(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=p._tokenizeString(this,l,o,0,t,u,!0,r);return s.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),a=new l.ScopeStack(null,e),o=n.themeProvider.themeMatch(a),s=b.mergeAttributes(t,r,o);return new b(null,a,s)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,s=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,s=n.backgroundId),a.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,s)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const e of n)r=b._pushAttributed(r,e,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),a=e.scopePath.push(t),o=n.themeProvider.themeMatch(a),s=b.mergeAttributes(e.tokenAttributes,r,o);return new b(e,a,s)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,a,o,s,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,a,o,s){return new y(this,e,t,n,r,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):o.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>o.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class k{constructor(e,t,n,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,r.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=a.EncodedTokenAttributes.set(n,0,a.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(n=a.EncodedTokenAttributes.set(n,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(r.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=k},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const r=n(878);class a{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=a;class o{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=o;class s{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof a?c({baseGrammar:s,selfGrammar:o},r):l(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const i=n.injections(e.scopeName);if(i)for(const e of i)r.add(new a(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const s of e){if(n.visitedRule.has(s))continue;n.visitedRule.add(s);const e=s.repository?r.mergeObjects({},t.repository,s.repository):t.repository;Array.isArray(s.patterns)&&u(s.patterns,{...t,repository:e},n);const i=s.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const a={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===p.kind?l(p.ruleName,a,n):c(a,n)}else 4===p.kind?n.add(new o(p.scopeName,p.ruleName)):n.add(new a(p.scopeName))}}}t.ExternalReferenceCollector=s,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new a(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new s;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof a){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class d{constructor(){this.kind=1}}t.SelfReference=d;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new d;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new h(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g(n,r)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const r=n(350),a=n(44),o=n(792),s=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,a,l,p,h,m){const g=t.content.length;let f=!1,b=-1;if(h){const s=function(e,t,n,a,s,i){let l=s.beginRuleCapturedEOL?0:-1;const c=[];for(let t=s;t;t=t.pop()){const n=t.getRule(e);n instanceof o.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:h}=u(p.rule,e,p.stack.endRule,n,a===l),m=c.findNextMatchSync(t,a,h);if(r.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){r.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),s=p.stack.pop();break}if(m.ruleId!==o.whileRuleId){s=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),d(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>a&&(a=m.captureIndices[0].end,n=!1))}return{stack:s,linePos:a,anchorPosition:l,isFirstLine:n}}(e,t,n,a,l,p);l=s.stack,a=s.linePos,n=s.isFirstLine,b=s.anchorPosition}const y=Date.now();for(;!f;){if(0!==m&&Date.now()-y>m)return new i(l,!0);k()}return new i(l,!1);function k(){r.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${a}: |${t.content.substr(a).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,a,o,i){const l=function(e,t,n,a,o,i){const l=o.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,o.endRule,n,a===i);let d=0;r.DebugFlags.InDebugMode&&(d=s.performanceNow());const h=u.findNextMatchSync(t,a,p);if(r.DebugFlags.InDebugMode){const e=s.performanceNow()-d;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${a}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,n,a,o,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,a,o,s,i){let l,u=Number.MAX_VALUE,p=null,d=0;const h=s.contentNameScopesList.getScopeNames();for(let s=0,m=e.length;s<m;s++){const m=e[s];if(!m.matcher(h))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:b}=c(g,t,null,a,o===i),y=f.findNextMatchSync(n,o,b);if(!y)continue;r.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const k=y.captureIndices[0].start;if(!(k>=u)&&(u=k,p=y.captureIndices,l=y.ruleId,d=m.priority,u===o))break}return p?{priorityMatch:-1===d,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,a,o,i);if(!p)return l;if(!l)return p;const d=l.captureIndices[0].start,h=p.captureIndices[0].start;return h<d||p.priorityMatch&&h===d?p:l}(e,t,n,a,l,b);if(!i)return r.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>a;if(h===o.endRuleId){const o=l.getRule(e);r.DebugFlags.InDebugMode&&console.log("  popping "+o.debugName+" - "+o.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),d(e,t,n,l,p,o.endCaptures,u),p.produce(l,u[0].end);const s=l;if(l=l.parent,b=s.getAnchorPos(),!m&&s.getEnterPos()===a)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=s,p.produce(l,g),void(f=!0)}else{const s=e.getRule(h);p.produce(l,u[0].start);const i=l,c=s.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,a,b,u[0].end===g,null,y,y),s instanceof o.BeginEndRule){const a=s;r.DebugFlags.InDebugMode&&console.log("  pushing "+a.debugName+" - "+a.debugBeginRegExp),d(e,t,n,l,p,a.beginCaptures,u),p.produce(l,u[0].end),b=u[0].end;const o=a.getContentName(t.content,u),c=y.pushAttributed(o,e);if(l=l.withContentNameScopesList(c),a.endHasBackReferences&&(l=l.withEndRule(a.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(s instanceof o.BeginWhileRule){const a=s;r.DebugFlags.InDebugMode&&console.log("  pushing "+a.debugName),d(e,t,n,l,p,a.beginCaptures,u),p.produce(l,u[0].end),b=u[0].end;const o=a.getContentName(t.content,u),c=y.pushAttributed(o,e);if(l=l.withContentNameScopesList(c),a.whileHasBackReferences&&(l=l.withEndRule(a.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const a=s;if(r.DebugFlags.InDebugMode&&console.log("  matched "+a.debugName+" - "+a.debugMatchRegExp),d(e,t,n,l,p,a.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>a&&(a=u[0].end,n=!1)}}function c(e,t,n,a,o){return r.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(a,o)}:{ruleScanner:e.compileAG(t,n,a,o),findOptions:0}}function u(e,t,n,a,o){return r.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(a,o)}:{ruleScanner:e.compileWhileAG(t,n,a,o),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function d(e,t,n,r,o,s,i){if(0===s.length)return;const c=t.content,u=Math.min(s.length,i.length),p=[],d=i[0].end;for(let t=0;t<u;t++){const u=s[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>d)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)o.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?o.produceFromScopes(p[p.length-1].scopes,m.start):o.produce(r,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),s=r.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),d=s.pushAttributed(p,e),h=r.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,s,d),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,h,o,!1,0),a.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);p.push(new h(t,m.end))}}for(;p.length>0;)o.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,s){let i=new r(e),l=new a,c=0,u=null,p=[],d=[];function h(){p.push(c),d.push(u)}function m(){c=p.pop(),u=d.pop()}function g(e){n(i,e)}for(;o(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},s&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(o(i,l)&&6===l.type||g("expected colon"),o(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let n={};s&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,h(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};s&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==d.length&&g("unclosed constructs"),u};class r{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class a{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function o(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,a=e.source,o=e.pos,s=e.len,i=e.line,l=e.char;for(;;){if(o>=s)return!1;if(r=a.charCodeAt(o),32!==r&&9!==r&&13!==r){if(10!==r)break;o++,i++,l=0}else o++,l++}if(t.offset=o,t.line=i,t.char=l,34===r){for(t.type=1,o++,l++;;){if(o>=s)return!1;if(r=a.charCodeAt(o),o++,l++,92!==r){if(34===r)break}else o++,l++}t.value=a.substring(t.offset+1,o-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,o++,l++;else if(123===r)t.type=3,o++,l++;else if(93===r)t.type=4,o++,l++;else if(125===r)t.type=5,o++,l++;else if(58===r)t.type=6,o++,l++;else if(44===r)t.type=7,o++,l++;else if(110===r){if(t.type=8,o++,l++,r=a.charCodeAt(o),117!==r)return!1;if(o++,l++,r=a.charCodeAt(o),108!==r)return!1;if(o++,l++,r=a.charCodeAt(o),108!==r)return!1;o++,l++}else if(116===r){if(t.type=9,o++,l++,r=a.charCodeAt(o),114!==r)return!1;if(o++,l++,r=a.charCodeAt(o),117!==r)return!1;if(o++,l++,r=a.charCodeAt(o),101!==r)return!1;o++,l++}else if(102===r){if(t.type=10,o++,l++,r=a.charCodeAt(o),97!==r)return!1;if(o++,l++,r=a.charCodeAt(o),108!==r)return!1;if(o++,l++,r=a.charCodeAt(o),115!==r)return!1;if(o++,l++,r=a.charCodeAt(o),101!==r)return!1;o++,l++}else for(t.type=11;;){if(o>=s)return!1;if(r=a.charCodeAt(o),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;o++,l++}return t.len=o-t.offset,null===t.value&&(t.value=a.substr(t.offset,t.len)),e.pos=o,e.line=i,e.char=l,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const o=n(391),s=n(50),i=n(652),l=n(583),c=n(965);a(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new o.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,a){const o=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;o.Q.length>0;)await Promise.all(o.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),o.processQueue();return this._grammarForScopeName(e,t,n,r,a)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,a)}},t.INITIAL=o.StateStack.NULL,t.parseRawGrammar=s.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const r=[],a=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=i();if(r.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return r;function s(){if("-"===o){o=a.next();const e=s();return t=>!!e&&!e(t)}if("("===o){o=a.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===o||","===o);){do{o=a.next()}while("|"===o||","===o);t=i()}return t=>e.some((e=>e(t)))}();return")"===o&&(o=a.next()),e}if(n(o)){const e=[];do{e.push(o),o=a.next()}while(n(o));return n=>t(e,n)}return null}function i(){const e=[];let t=s();for(;t;)e.push(t),t=s();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),a=n(350),o=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,s=t,a.DebugFlags.InDebugMode?o.parseJSON(n,s,!0):JSON.parse(n)):function(e,t){return a.DebugFlags.InDebugMode?r.parseWithLocation(e,t,"$vscodeTextmateLocation"):r.parsePLIST(e)}(e,t);var n,s}},69:(e,t)=>{function n(e,t,n){const r=e.length;let a=0,o=1,s=0;function i(t){if(null===n)a+=t;else for(;t>0;)10===e.charCodeAt(a)?(a++,o++,s=0):(a++,s++),t--}function l(e){null===n?a=e:i(e-a)}function c(){for(;a<r;){let t=e.charCodeAt(a);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(a,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,a);l(-1!==n?n+t.length:r)}function d(t){let n=e.indexOf(t,a);if(-1!==n){let r=e.substring(a,n);return l(n+t.length),r}{let t=e.substr(a);return l(r),t}}r>0&&65279===e.charCodeAt(0)&&(a=1);let h=0,m=null,g=[],f=[],b=null;function y(e,t){g.push(h),f.push(m),h=e,m=t}function k(){if(0===g.length)return v("illegal state stack");h=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+a+": "+t+" ~~~"+e.substr(a,50)+"~~~")}const _=function(){if(null===b)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:o,char:s}),m[b]=e,b=null,y(1,e)},S=function(){if(null===b)return v("missing <key>");let e=[];m[b]=e,b=null,y(2,e)},C=function(){let e={};null!==n&&(e[n]={filename:t,line:o,char:s}),m.push(e),y(1,e)},N=function(){let e=[];m.push(e),y(2,e)};function w(){if(1!==h)return v("unexpected </dict>");k()}function x(){return 1===h||2!==h?v("unexpected </array>"):void k()}function E(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function L(e){if(isNaN(e))return v("cannot parse float");if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function P(e){if(isNaN(e))return v("cannot parse integer");if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function T(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function j(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function A(e){if(1===h){if(null===b)return v("missing <key>");m[b]=e,b=null}else 2===h?m.push(e):m=e}function R(){let e=d(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=d("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;a<r&&(c(),!(a>=r));){const l=e.charCodeAt(a);if(i(1),60!==l)return v("expected <");if(a>=r)return v("unexpected end of input");const d=e.charCodeAt(a);if(63===d){i(1),p("?>");continue}if(33===d){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===d){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),w();continue}if(u("array")){p(">"),x();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===h?_():2===h?C():(m={},null!==n&&(m[n]={filename:t,line:o,char:s}),y(1,m)),g.isClosed&&w();continue;case"array":1===h?S():2===h?N():(m=[],y(2,m)),g.isClosed&&x();continue;case"key":B=O(g),1!==h?v("unexpected <key>"):null!==b?v("too many <key>"):b=B;continue;case"string":E(O(g));continue;case"real":L(parseFloat(O(g)));continue;case"integer":P(parseInt(O(g),10));continue;case"date":T(new Date(O(g)));continue;case"data":j(O(g));continue;case"true":O(g),A(!0);continue;case"false":O(g),A(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var B;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,a,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,r.createGrammar(e,s,t,n,a,o,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),a=n(965),o=/\\(\d+)/,s=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,a){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,r,a){super(e,t,n,null),this._match=new m(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,r,a,o,s,i,l,c){super(e,t,n,r),this._begin=new m(a,this.id),this.beginCaptures=o,this._end=new m(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class d extends i{constructor(e,n,r,a,o,s,i,l,c){super(e,n,r,a),this._begin=new m(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=d;class h{static createCaptureRule(e,t,n,r,a){return e.registerRule((e=>new l(t,e,n,r,a)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((a=>{if(e.id=a,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let a=e.patterns;return void 0===a&&e.include&&(a=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(a,t,n))}return e.while?new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,n),h._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,h._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let a=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>a&&(a=e)}for(let e=0;e<=a;e++)r[e]=null;for(const a in e){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let s=0;e[a].patterns&&(s=h.getCompiledRuleId(e[a],t,n)),r[o]=h.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let o=0,s=e.length;o<s;o++){const s=e[o];let i=-1;if(s.include){const e=a.parseInclude(s.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(n[s.include],t,n);break;case 2:let r=n[e.ruleName];r&&(i=h.getCompiledRuleId(r,t,n));break;case 3:case 4:const a=e.scopeName,o=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(a,n);if(l)if(o){let e=l.repository[o];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(s,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof d)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(i)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}t.RuleFactory=h;class m{constructor(e,t){if(e){const t=e.length;let n=0,r=[],a=!1;for(let o=0;o<t;o++)if("\\"===e.charAt(o)&&o+1<t){const t=e.charAt(o+1);"z"===t?(r.push(e.substring(n,o)),r.push("$(?!\\n)(?<!\\n)"),n=o+2):"A"!==t&&"G"!==t||(a=!0),o++}this.hasAnchor=a,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=o.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return s.lastIndex=0,this.source.replace(s,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,a=[],o=[],s=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),a[e]=n,o[e]=n,s[e]=n,i[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(a[e+1]="￿",o[e+1]="￿",s[e+1]="A",i[e+1]="A"):"G"===r?(a[e+1]="￿",o[e+1]="G",s[e+1]="￿",i[e+1]="G"):(a[e+1]=r,o[e+1]=r,s[e+1]=r,i[e+1]=r),e++);return{A0_G0:a.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const r=n(878);class a{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new r.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=r.strcmp(e.scope,t.scope);return 0!==n?n:(n=r.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,o="#000000",s="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(o=t.foreground),null!==t.background&&(s=t.background)}let l=new u(t),c=new i(n,l.getId(o),l.getId(s)),h=new d(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];h.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new a(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,r=t[n];for(;e;){if(s(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=a;class o{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new o(t,e[n]);return t}push(e){return new o(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function s(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=o;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],a=0;for(let e=0,o=t.length;e<o;e++){let o,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),o=e.split(",")}else o=Array.isArray(s.scope)?s.scope:[""];let i=-1;if("string"==typeof s.settings.fontStyle){i=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof s.settings.foreground&&r.isValidHexColor(s.settings.foreground)&&(l=s.settings.foreground);let u=null;"string"==typeof s.settings.background&&r.isValidHexColor(s.settings.background)&&(u=s.settings.background);for(let t=0,r=o.length;t<r;t++){let r=o[t].trim().split(" "),s=r[r.length-1],p=null;r.length>1&&(p=r.slice(0,r.length-1),p.reverse()),n[a++]=new c(s,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,n,r,a){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=a}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=p;class d{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let a=null===n?0:n.length,o=null===r?0:r.length;if(a===o)for(let e=0;e<a;e++){const t=n[e].length,a=r[e].length;if(t!==a)return a-t}return o-a}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return d._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):d._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,a,o){if(""===t)return void this._doInsertHere(e,n,r,a,o);let s,i,l,c=t.indexOf(".");-1===c?(s=t,i=""):(s=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(s)?l=this._children[s]:(l=new d(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[s]=l),l.insert(e+1,i,n,r,a,o)}_doInsertHere(e,t,n,a,o){if(null!==t){for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let i=this._rulesWithParentScopes[s];if(0===r.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,a,o)}-1===n&&(n=this._mainRule.fontStyle),0===a&&(a=this._mainRule.foreground),0===o&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,a,o))}else this._mainRule.acceptOverwrite(e,n,a,o)}}t.ThemeTrieElement=d},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,a=e.length;r<a;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){let t={};for(let r in e)t[r]=n(e[r]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function a(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(r.lastIndex=0,r.test(e))}static replaceCaptures(e,t,n){return e.replace(r,((e,r,a,o)=>{let s=n[parseInt(r||a,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=a,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=a(e[r],t[r]);if(0!==n)return n}return 0}return n-r},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(787)})()},196:e=>{"use strict";e.exports=window.React},799:()=>{},318:()=>{}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,a,o)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,a,o]=e[u],i=!0,l=0;l<n.length;l++)(!1&o||s>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(i=!1,o<s&&(s=o));if(i){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,a,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={826:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var a,o,[s,i,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(l)var u=l(r)}for(t&&t(n);c<s.length;c++)o=s[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=globalThis.webpackChunkcode_block_pro=globalThis.webpackChunkcode_block_pro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=r.O(void 0,[431],(()=>r(461)));a=r.O(a)})();
     1(()=>{var e,t={)));a=r.O(a)})();
  • code-block-pro/trunk/build/shiki/dist/index.browser.mjs

    r3023112 r3064975  
    1 const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,a,r,o){let i=n.getLanguageId(e),c=n.getTokenType(e),l=n.getFontStyle(e),u=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==a&&(l=a),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function r(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function o(e){return e.startsWith("./")?e.slice(2):e}function i(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function c(...e){return e.map(r).map(o).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,s=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t};var l,u,p,h,m={exports:{}}.exports=s();function d(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(g(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(g(t));return o=15}if(f(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(f(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!f(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,f(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!y(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&y(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&y(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&y(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&y(e.charCodeAt(a))){for(a++;a<e.length&&y(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(g(e)||f(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function g(e){return 32===e||9===e}function f(e){return 10===e||13===e}function y(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(l||(l={})),(u||(u={})).DEFAULT={allowTrailingComma:!1},function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(p||(p={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(h||(h={}));const b=function(e,t=[],s=u.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=u.DEFAULT){const a=d(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),p=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),g=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(p(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return g(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var _;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(_||(_={}));const N="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,k="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,S=N||!k&&!L;let P="",v="";function j(e){P=e.endsWith("/")?e:e+"/"}function w(e){v=e}let C=null;function x(e){if(S)return`${P}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(S)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=b(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(c(...i(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B,G,F={exports:{}};F.exports=(B={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
     1const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
  • code-block-pro/trunk/build/shiki/dist/index.esm.js

    r3023112 r3064975  
    1 import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
     1import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
  • code-block-pro/trunk/build/shiki/dist/index.js

    r3023112 r3064975  
    1 "use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
     1"use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
  • code-block-pro/trunk/build/shiki/dist/index.jsdelivr.iife.js

    r3023112 r3064975  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://cdn.jsdelivr.net/npm/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • code-block-pro/trunk/build/shiki/dist/index.mjs

    r3023112 r3064975  
    1 const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,a,s,r,o){let i=n.getLanguageId(e),l=n.getTokenType(e),c=n.getFontStyle(e),u=n.getForeground(e),m=n.getBackground(e);return 0!==t&&(i=t),0!==a&&(l=8===a?0:a),-1!==s&&(c=s),0!==r&&(u=r),0!==o&&(m=o),(i<<0|l<<8|c<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|m<<24)>>>0}}class r{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];return t?t.grammar?t.grammar:t.import?(t.grammar=await t.import(),t.grammar):void 0:null}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var o,i,l={exports:{}};l.exports=(o={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(a=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},a.print=function(e){const t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})},a.getLanguageId=function(e){return(255&e)>>>0},a.getTokenType=function(e){return(768&e)>>>8},a.containsBalancedBrackets=function(e){return 0!=(1024&e)},a.getFontStyle=function(e){return(30720&e)>>>11},a.getForeground=function(e){return(16744448&e)>>>15},a.getBackground=function(e){return(4278190080&e)>>>24},a.set=function(e,t,s,n,r,o,i){let l=a.getLanguageId(e),c=a.getTokenType(e),u=a.containsBalancedBrackets(e)?1:0,m=a.getFontStyle(e),p=a.getForeground(e),h=a.getBackground(e);return 0!==t&&(l=t),8!==s&&(c=s),null!==n&&(u=n?1:0),-1!==r&&(m=r),0!==o&&(p=o),0!==i&&(h=i),(l<<0|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
     1const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
  • code-block-pro/trunk/build/shiki/dist/index.unpkg.iife.js

    r3023112 r3064975  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://unpkg.com/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/README.md

    r2843665 r3064975  
    44[![npm Package](https://img.shields.io/npm/v/jsonc-parser.svg?style=flat-square)](https://www.npmjs.org/package/jsonc-parser)
    55[![NPM Downloads](https://img.shields.io/npm/dm/jsonc-parser.svg)](https://npmjs.org/package/jsonc-parser)
    6 [![Build Status](https://travis-ci.org/microsoft/node-jsonc-parser.svg?branch=main)](https://travis-ci.org/Microsoft/node-jsonc-parser)
     6[![Build Status](https://github.com/microsoft/node-jsonc-parser/workflows/Tests/badge.svg)](https://github.com/microsoft/node-jsonc-parser/workflows/Tests)
     7[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
    78
    89Why?
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/lib/esm/impl/format.js

    r2843665 r3064975  
    1 "use strict";import{createScanner}from"./scanner";export function format(e,t,n){let r,s,i,a,c;if(t){for(a=t.offset,c=a+t.length,i=a;i>0&&!isEOL(e,i-1);)i--;let f=c;for(;f<e.length&&!isEOL(e,f);)f++;s=e.substring(i,f),r=computeIndentLevel(s,n)}else s=e,r=0,i=0,a=0,c=e.length;const f=getEOL(n,e);let o,k=0,l=0;o=n.insertSpaces?repeat(" ",n.tabSize||4):"\t";let p=createScanner(s,!1),L=!1;function u(){return k>1?repeat(f,k)+repeat(o,r+l):f+repeat(o,r+l)}function g(){let e=p.scan();for(k=0;15===e||14===e;)14===e&&n.keepLines?k+=1:14===e&&(k=1),e=p.scan();return L=16===e||0!==p.getTokenError(),e}const h=[];function b(n,r,s){L||t&&!(r<c&&s>a)||e.substring(r,s)===n||h.push({offset:r,length:s-r,content:n})}let O=g();if(n.keepLines&&k>0&&b(repeat(f,k),0,0),17!==O){let e=p.getTokenOffset()+i;b(repeat(o,r),i,e)}for(;17!==O;){let e=p.getTokenOffset()+p.getTokenLength()+i,t=g(),r="",s=!1;for(;0===k&&(12===t||13===t);)b(" ",e,p.getTokenOffset()+i),e=p.getTokenOffset()+p.getTokenLength()+i,s=12===t,r=s?u():"",t=g();if(2===t)1!==O&&l--,n.keepLines&&k>0||!n.keepLines&&1!==O?r=u():n.keepLines&&(r=" ");else if(4===t)3!==O&&l--,n.keepLines&&k>0||!n.keepLines&&3!==O?r=u():n.keepLines&&(r=" ");else{switch(O){case 3:case 1:l++,r=n.keepLines&&k>0||!n.keepLines?u():" ";break;case 5:r=n.keepLines&&k>0||!n.keepLines?u():" ";break;case 12:r=u();break;case 13:k>0?r=u():s||(r=" ");break;case 6:n.keepLines&&k>0?r=u():s||(r=" ");break;case 10:n.keepLines&&k>0?r=u():6!==t||s||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&k>0?r=u():12!==t&&13!==t||s?5!==t&&17!==t&&(L=!0):r=" ";break;case 16:L=!0}k>0&&(12===t||13===t)&&(r=u())}17===t&&(r=n.keepLines&&k>0?u():n.insertFinalNewline?f:""),b(r,e,p.getTokenOffset()+i),O=t}return h}function repeat(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function computeIndentLevel(e,t){let n=0,r=0;const s=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(" "===t)r++;else{if("\t"!==t)break;r+=s}n++}return Math.floor(r/s)}function getEOL(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}export function isEOL(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}
     1"use strict";import{createScanner}from"./scanner";/s)}function getEOL(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}export function isEOL(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/lib/esm/main.d.ts

    r2843665 r3064975  
    140140}
    141141export declare function printParseErrorCode(code: ParseErrorCode): "InvalidSymbol" | "InvalidNumberFormat" | "PropertyNameExpected" | "ValueExpected" | "ColonExpected" | "CommaExpected" | "CloseBraceExpected" | "CloseBracketExpected" | "EndOfFileExpected" | "InvalidCommentToken" | "UnexpectedEndOfComment" | "UnexpectedEndOfString" | "UnexpectedEndOfNumber" | "InvalidUnicode" | "InvalidEscapeCharacter" | "InvalidCharacter" | "<unknown ParseErrorCode>";
    142 export declare type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
     142export type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
    143143export interface Node {
    144144    readonly type: NodeType;
     
    154154 * or a number (starting at 0) for array indices.
    155155 */
    156 export declare type Segment = string | number;
    157 export declare type JSONPath = Segment[];
     156export type Segment = string | number;
     157export type JSONPath = Segment[];
    158158export interface Location {
    159159    /**
     
    243243 * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data.
    244244 */
    245 export declare type EditResult = Edit[];
     245export type EditResult = Edit[];
    246246/**
    247247 * Represents a text modification
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/lib/umd/impl/format.js

    r2843665 r3064975  
    1 !function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define(["require","exports","./scanner"],e)}((function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isEOL=n.format=void 0;const t=e("./scanner");function s(e,n){let t="";for(let s=0;s<n;s++)t+=e;return t}function r(e,n){return-1!=="\r\n".indexOf(e.charAt(n))}n.format=function(e,n,i){let o,f,c,a,l;if(n){for(a=n.offset,l=a+n.length,c=a;c>0&&!r(e,c-1);)c--;let t=l;for(;t<e.length&&!r(e,t);)t++;f=e.substring(c,t),o=function(e,n){let t=0,s=0;const r=n.tabSize||4;for(;t<e.length;){let n=e.charAt(t);if(" "===n)s++;else{if("\t"!==n)break;s+=r}t++}return Math.floor(s/r)}(f,i)}else f=e,o=0,c=0,a=0,l=e.length;const k=function(e,n){for(let e=0;e<n.length;e++){const t=n.charAt(e);if("\r"===t)return e+1<n.length&&"\n"===n.charAt(e+1)?"\r\n":"\r";if("\n"===t)return"\n"}return e&&e.eol||"\n"}(i,e);let u,p=0,L=0;u=i.insertSpaces?s(" ",i.tabSize||4):"\t";let g=(0,t.createScanner)(f,!1),h=!1;function b(){return p>1?s(k,p)+s(u,o+L):k+s(u,o+L)}function d(){let e=g.scan();for(p=0;15===e||14===e;)14===e&&i.keepLines?p+=1:14===e&&(p=1),e=g.scan();return h=16===e||0!==g.getTokenError(),e}const O=[];function T(t,s,r){h||n&&!(s<l&&r>a)||e.substring(s,r)===t||O.push({offset:s,length:r-s,content:t})}let m=d();if(i.keepLines&&p>0&&T(s(k,p),0,0),17!==m){let e=g.getTokenOffset()+c;T(s(u,o),c,e)}for(;17!==m;){let e=g.getTokenOffset()+g.getTokenLength()+c,n=d(),t="",s=!1;for(;0===p&&(12===n||13===n);)T(" ",e,g.getTokenOffset()+c),e=g.getTokenOffset()+g.getTokenLength()+c,s=12===n,t=s?b():"",n=d();if(2===n)1!==m&&L--,i.keepLines&&p>0||!i.keepLines&&1!==m?t=b():i.keepLines&&(t=" ");else if(4===n)3!==m&&L--,i.keepLines&&p>0||!i.keepLines&&3!==m?t=b():i.keepLines&&(t=" ");else{switch(m){case 3:case 1:L++,t=i.keepLines&&p>0||!i.keepLines?b():" ";break;case 5:t=i.keepLines&&p>0||!i.keepLines?b():" ";break;case 12:t=b();break;case 13:p>0?t=b():s||(t=" ");break;case 6:i.keepLines&&p>0?t=b():s||(t=" ");break;case 10:i.keepLines&&p>0?t=b():6!==n||s||(t="");break;case 7:case 8:case 9:case 11:case 2:case 4:i.keepLines&&p>0?t=b():12!==n&&13!==n||s?5!==n&&17!==n&&(h=!0):t=" ";break;case 16:h=!0}p>0&&(12===n||13===n)&&(t=b())}17===n&&(t=i.keepLines&&p>0?b():i.insertFinalNewline?k:""),T(t,e,g.getTokenOffset()+c),m=n}return O},n.isEOL=r}));
     1!function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define(["require","exports","./scanner"},n.isEOL=r}));
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/lib/umd/main.d.ts

    r2843665 r3064975  
    140140}
    141141export declare function printParseErrorCode(code: ParseErrorCode): "InvalidSymbol" | "InvalidNumberFormat" | "PropertyNameExpected" | "ValueExpected" | "ColonExpected" | "CommaExpected" | "CloseBraceExpected" | "CloseBracketExpected" | "EndOfFileExpected" | "InvalidCommentToken" | "UnexpectedEndOfComment" | "UnexpectedEndOfString" | "UnexpectedEndOfNumber" | "InvalidUnicode" | "InvalidEscapeCharacter" | "InvalidCharacter" | "<unknown ParseErrorCode>";
    142 export declare type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
     142export type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
    143143export interface Node {
    144144    readonly type: NodeType;
     
    154154 * or a number (starting at 0) for array indices.
    155155 */
    156 export declare type Segment = string | number;
    157 export declare type JSONPath = Segment[];
     156export type Segment = string | number;
     157export type JSONPath = Segment[];
    158158export interface Location {
    159159    /**
     
    243243 * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data.
    244244 */
    245 export declare type EditResult = Edit[];
     245export type EditResult = Edit[];
    246246/**
    247247 * Represents a text modification
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/lib/umd/main.js

    r2843665 r3064975  
    1 !function(e){if("object"==typeof module&&"object"==typeof module.exports){var r=e(require,exports);void 0!==r&&(module.exports=r)}else"function"==typeof define&&define.amd&&define(["require","exports","./impl/format","./impl/edit","./impl/scanner","./impl/parser"],e)}((function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.applyEdits=r.modify=r.format=r.printParseErrorCode=r.ParseErrorCode=r.stripComments=r.visit=r.getNodeValue=r.getNodePath=r.findNodeAtOffset=r.findNodeAtLocation=r.parseTree=r.parse=r.getLocation=r.SyntaxKind=r.ScanError=r.createScanner=void 0;const n=e("./impl/format"),t=e("./impl/edit"),a=e("./impl/scanner"),o=e("./impl/parser");var d,i,c;r.createScanner=a.createScanner,(c=r.ScanError||(r.ScanError={}))[c.None=0]="None",c[c.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",c[c.UnexpectedEndOfString=2]="UnexpectedEndOfString",c[c.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",c[c.InvalidUnicode=4]="InvalidUnicode",c[c.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",c[c.InvalidCharacter=6]="InvalidCharacter",(i=r.SyntaxKind||(r.SyntaxKind={}))[i.OpenBraceToken=1]="OpenBraceToken",i[i.CloseBraceToken=2]="CloseBraceToken",i[i.OpenBracketToken=3]="OpenBracketToken",i[i.CloseBracketToken=4]="CloseBracketToken",i[i.CommaToken=5]="CommaToken",i[i.ColonToken=6]="ColonToken",i[i.NullKeyword=7]="NullKeyword",i[i.TrueKeyword=8]="TrueKeyword",i[i.FalseKeyword=9]="FalseKeyword",i[i.StringLiteral=10]="StringLiteral",i[i.NumericLiteral=11]="NumericLiteral",i[i.LineCommentTrivia=12]="LineCommentTrivia",i[i.BlockCommentTrivia=13]="BlockCommentTrivia",i[i.LineBreakTrivia=14]="LineBreakTrivia",i[i.Trivia=15]="Trivia",i[i.Unknown=16]="Unknown",i[i.EOF=17]="EOF",r.getLocation=o.getLocation,r.parse=o.parse,r.parseTree=o.parseTree,r.findNodeAtLocation=o.findNodeAtLocation,r.findNodeAtOffset=o.findNodeAtOffset,r.getNodePath=o.getNodePath,r.getNodeValue=o.getNodeValue,r.visit=o.visit,r.stripComments=o.stripComments,(d=r.ParseErrorCode||(r.ParseErrorCode={}))[d.InvalidSymbol=1]="InvalidSymbol",d[d.InvalidNumberFormat=2]="InvalidNumberFormat",d[d.PropertyNameExpected=3]="PropertyNameExpected",d[d.ValueExpected=4]="ValueExpected",d[d.ColonExpected=5]="ColonExpected",d[d.CommaExpected=6]="CommaExpected",d[d.CloseBraceExpected=7]="CloseBraceExpected",d[d.CloseBracketExpected=8]="CloseBracketExpected",d[d.EndOfFileExpected=9]="EndOfFileExpected",d[d.InvalidCommentToken=10]="InvalidCommentToken",d[d.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",d[d.UnexpectedEndOfString=12]="UnexpectedEndOfString",d[d.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",d[d.InvalidUnicode=14]="InvalidUnicode",d[d.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",d[d.InvalidCharacter=16]="InvalidCharacter",r.printParseErrorCode=function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"},r.format=function(e,r,t){return n.format(e,r,t)},r.modify=function(e,r,n,a){return t.setProperty(e,r,n,a)},r.applyEdits=function(e,r){let n=r.slice(0).sort(((e,r)=>{const n=e.offset-r.offset;return 0===n?e.length-r.length:n})),a=e.length;for(let r=n.length-1;r>=0;r--){let o=n[r];if(!(o.offset+o.length<=a))throw new Error("Overlapping edit");e=t.applyEdit(e,o),a=o.offset}return e}}));
     1!function(e){if("object"==typeof module&&"object"==typeof module.exports){var .offset}return e}}));
  • code-block-pro/trunk/build/shiki/node_modules/jsonc-parser/package.json

    r2843665 r3064975  
    11{
    22  "name": "jsonc-parser",
    3   "version": "3.2.0",
     3  "version": "3.2.",
    44  "description": "Scanner and parser for JSON with comments.",
    55  "main": "./lib/umd/main.js",
     
    1616  },
    1717  "devDependencies": {
    18     "mocha": "^10.0.0",
    19     "typescript": "^4.8.2",
     18    "mocha": "^10..0",
     19    "typescript": "^",
    2020    "@types/node": "^16.x",
    21     "@types/mocha": "^9.1.1",
    22     "@typescript-eslint/eslint-plugin": "^5.36.0",
    23     "@typescript-eslint/parser": "^5.36.0",
    24     "eslint": "^8.23.0",
    25     "rimraf": "^3.0.2"
     21    "@types/mocha": "^",
     22    "@typescript-eslint/eslint-plugin": "^",
     23    "@typescript-eslint/parser": "^",
     24    "eslint": "^8..0",
     25    "rimraf": "^"
    2626  },
    2727  "scripts": {
    28     "prepublishOnly": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
    29     "postpublish": "node ./build/post-publish.js",
     28    "prepack": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
    3029    "compile": "tsc -p ./src && npm run lint",
    3130    "compile-esm": "tsc -p ./src/tsconfig.esm.json",
     
    3433    "watch": "tsc -w -p ./src",
    3534    "test": "npm run compile && mocha ./lib/umd/test",
    36     "lint": "eslint src/**/*.ts",
    37     "preversion": "npm test",
    38     "postversion": "git push && git push --tags"
     35    "lint": "eslint src/**/*.ts"
    3936  }
    4037}
  • code-block-pro/trunk/build/style-index.css

    r3023112 r3064975  
    1 .wp-block-kevinbatdorf-code-block-pro{-webkit-text-size-adjust:100%!important;box-sizing:border-box!important;direction:ltr!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;position:relative!important}.wp-block-kevinbatdorf-code-block-pro *{box-sizing:border-box!important}.wp-block-kevinbatdorf-code-block-pro pre,.wp-block-kevinbatdorf-code-block-pro pre *{font-size:inherit!important;line-height:inherit!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;background-image:none!important;border:0!important;border-radius:0!important;border-style:none!important;border-width:0!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;color:inherit!important;font-family:inherit!important;margin:0!important;overflow:auto!important;overflow-wrap:normal!important;padding:16px 0 16px 16px!important;text-align:left!important;white-space:pre!important}.wp-block-kevinbatdorf-code-block-pro.padding-disabled:not(.code-block-pro-editor) pre{padding:0!important}.wp-block-kevinbatdorf-code-block-pro.padding-bottom-disabled pre{padding-bottom:0!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;background:none!important;background-color:transparent!important;border:0!important;border-radius:0!important;border-style:none!important;border-width:0!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;color:inherit!important;display:block!important;font-family:inherit!important;margin:0!important;overflow-wrap:normal!important;padding:0!important;text-align:left!important;white-space:pre!important;width:100%!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line{display:inline-block!important;min-width:var(--cbp-block-width,100%)!important;vertical-align:top!important}.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line{padding-left:calc(12px + var(--cbp-line-number-width, auto))!important}.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code{counter-increment:step calc(var(--cbp-line-number-start, 1) - 1)!important;counter-reset:step!important}.wp-block-kevinbatdorf-code-block-pro pre code .line{position:relative!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line:before{content:""!important;display:inline-block!important}.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:not(.cbp-line-number-disabled):before{color:var(--cbp-line-number-color,#999)!important;content:counter(step)!important;counter-increment:step!important;left:0!important;opacity:.5!important;position:absolute!important;text-align:right!important;transition-duration:.5s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;width:var(--cbp-line-number-width,auto)!important}.wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover .line{min-height:var(--cbp-block-height,100%)!important}.wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,.wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,.wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{background:var(--cbp-line-highlight-color,rgb(14 165 233/.2))!important;left:-16px!important;min-height:var(--cbp-block-height,100%)!important;min-width:calc(var(--cbp-block-width, 100%) + 16px)!important;pointer-events:none!important;position:absolute!important;top:0!important;width:100%!important}[data-code-block-pro-font-family="Code-Pro-Comic-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Comic-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Comic-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{top:-.125rem!important}[data-code-block-pro-font-family=Code-Pro-Fira-Code].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Fira-Code].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Fira-Code].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{top:-1.5px!important}[data-code-block-pro-font-family="Code-Pro-Deja-Vu-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Deja-Vu-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family="Code-Pro-Deja-Vu-Mono.ttf"].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Cozette].wp-block-kevinbatdorf-code-block-pro .line.cbp-line-highlight .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Cozette].wp-block-kevinbatdorf-code-block-pro .line.cbp-no-blur:hover .cbp-line-highlighter,[data-code-block-pro-font-family=Code-Pro-Cozette].wp-block-kevinbatdorf-code-block-pro.cbp-highlight-hover:not(.cbp-blur-enabled:not(.cbp-unblur-on-hover)) .line:hover .cbp-line-highlighter{top:-1px!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor).padding-disabled pre .line.cbp-line-highlight:after{left:0!important;width:100%!important}.wp-block-kevinbatdorf-code-block-pro.cbp-blur-enabled pre .line:not(.cbp-no-blur){filter:blur(1px)!important;opacity:.4!important;pointer-events:none!important;transition-duration:.2s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.wp-block-kevinbatdorf-code-block-pro.cbp-blur-enabled.cbp-unblur-on-hover:hover pre .line:not(.cbp-no-blur){--tw-blur:blur(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important;opacity:1!important;pointer-events:auto!important}.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre *{font-family:inherit!important}.cbp-see-more-simple-btn-hover{transition-property:none!important}.cbp-see-more-simple-btn-hover:hover{box-shadow:inset 0 0 100px 100px hsla(0,0%,100%,.1)!important}.code-block-pro-copy-button{border:0!important;border-style:none!important;border-width:0!important;cursor:pointer!important;left:auto!important;line-height:1!important;opacity:.1!important;padding:6px!important;position:absolute!important;right:0!important;top:0!important;transition-duration:.2s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;z-index:10!important}.code-block-pro-copy-button:focus{opacity:.4!important}.code-block-pro-copy-button:not([data-has-text-button]){background:none!important;background-color:transparent!important}.wp-block-kevinbatdorf-code-block-pro.padding-disabled .code-block-pro-copy-button{padding:0!important}.wp-block-kevinbatdorf-code-block-pro:hover .code-block-pro-copy-button{opacity:.5!important}.wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button:hover{opacity:.9!important}.code-block-pro-copy-button[data-has-text-button],.wp-block-kevinbatdorf-code-block-pro:hover .code-block-pro-copy-button[data-has-text-button]{opacity:1!important}.wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button[data-has-text-button]:hover{opacity:.8!important}.code-block-pro-copy-button[data-has-text-button]{border-radius:.75rem!important;display:block!important;margin-right:.75rem!important;margin-top:.7rem!important;padding:.125rem .375rem!important}.code-block-pro-copy-button[data-inside-header-type=headlightsMuted],.code-block-pro-copy-button[data-inside-header-type^=headlights]{margin-top:.85rem!important}.code-block-pro-copy-button[data-inside-header-type=headlightsMutedAlt]{margin-top:.65rem!important}.code-block-pro-copy-button[data-inside-header-type=simpleString]{margin-top:.645rem!important}.code-block-pro-copy-button[data-inside-header-type=pillString]{margin-top:1rem!important}.code-block-pro-copy-button[data-inside-header-type=pillString] .cbp-btn-text{position:relative!important;top:1px!important}.cbp-btn-text{font-size:.75rem!important;line-height:1rem!important}.code-block-pro-copy-button .without-check{display:block!important}.code-block-pro-copy-button .with-check{display:none!important}.code-block-pro-copy-button.cbp-copying{opacity:1!important}.code-block-pro-copy-button.cbp-copying .without-check{display:none!important}.code-block-pro-copy-button.cbp-copying .with-check{display:block!important}.cbp-footer-link:hover{text-decoration-line:underline!important}
     1.wp-block-kevinbatdorf-code-block-pro{}
  • code-block-pro/trunk/code-block-pro.php

    r3029109 r3064975  
    88 * Requires at least: 6.0
    99 * Requires PHP:      7.0
    10  * Version:           1.26.1
     10 * Version:           1.26.
    1111 * License:           GPL-2.0-or-later
    1212 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
  • code-block-pro/trunk/package.json

    r3023112 r3064975  
    2121        "@redux-devtools/extension": "^3.3.0",
    2222        "@trivago/prettier-plugin-sort-imports": "4.3.0",
    23         "@types/wordpress__block-editor": "11.5.9",
    24         "@types/wordpress__blocks": "12.5.13",
     23        "@types/wordpress__block-editor": "11.5.",
     24        "@types/wordpress__blocks": "12.5.1",
    2525        "@types/wordpress__edit-post": "^7.5.6",
    26         "@typescript-eslint/eslint-plugin": "^6.17.0",
    27         "@typescript-eslint/parser": "6.17.0",
    28         "@wordpress/block-editor": "12.16.0",
    29         "@wordpress/env": "8.7.0",
    30         "@wordpress/scripts": "26.19.0",
    31         "@wordpress/url": "3.49.0",
    32         "autoprefixer": "10.4.16",
    33         "copy-webpack-plugin": "11.0.0",
    34         "cypress": "13.6.2",
    35         "cypress-real-events": "^1.11.0",
     26        "@typescript-eslint/eslint-plugin": "^.0",
     27        "@typescript-eslint/parser": ".0",
     28        "@wordpress/block-editor": "12..0",
     29        "@wordpress/env": ".7.0",
     30        "@wordpress/scripts": "2.0",
     31        "@wordpress/url": "3..0",
     32        "autoprefixer": "10.4.1",
     33        "copy-webpack-plugin": "1",
     34        "cypress": "13..2",
     35        "cypress-real-events": "^1.1.0",
    3636        "cypress-wait-until": "3.0.1",
    37         "eslint": "8.56.0",
     37        "eslint": "8.5.0",
    3838        "eslint-config-prettier": "9.1.0",
    3939        "eslint-plugin-cypress": "2.15.1",
    4040        "eslint-plugin-no-only-tests": "^3.1.0",
    41         "eslint-plugin-prettier": "5.1.2",
    42         "eslint-plugin-react": "7.33.2",
     41        "eslint-plugin-prettier": "5.1.",
     42        "eslint-plugin-react": "7.3",
    4343        "eslint-plugin-react-hooks": "4.6.0",
    4444        "fast-glob": "3.3.2",
    45         "glob": "10.3.10",
    46         "postcss-import": "16.0.0",
     45        "glob": "10.3.1",
     46        "postcss-import": "16..0",
    4747        "postcss-safe-important": "2.0.1",
    48         "prettier": "3.1.1",
     48        "prettier": "3.",
    4949        "replace-in-file": "7.1.0",
    50         "tailwindcss": "3.4.1",
    51         "typescript": "5.3.3",
    52         "webpack": "^5.89.0"
     50        "tailwindcss": "3.4.",
     51        "typescript": "5..3",
     52        "webpack": "^5..0"
    5353    },
    5454    "dependencies": {
    55         "@headlessui/react": "1.7.17",
    56         "@wordpress/block-editor": "12.16.0",
    57         "@wordpress/blocks": "12.25.0",
    58         "@wordpress/edit-post": "^7.25.0",
    59         "@wordpress/element": "5.25.0",
    60         "@wordpress/escape-html": "^2.48.0",
    61         "@wordpress/hooks": "3.48.0",
    62         "@wordpress/html-entities": "^3.48.0",
    63         "@wordpress/i18n": "4.48.0",
     55        "@headlessui/react": "1.7.1",
     56        "@wordpress/block-editor": "12..0",
     57        "@wordpress/blocks": "12..0",
     58        "@wordpress/edit-post": "^7..0",
     59        "@wordpress/element": "5..0",
     60        "@wordpress/escape-html": "^2..0",
     61        "@wordpress/hooks": "3..0",
     62        "@wordpress/html-entities": "^3..0",
     63        "@wordpress/i18n": "4..0",
    6464        "copy-to-clipboard": "3.3.3",
    6565        "react-simple-code-editor": "0.13.1",
    6666        "shiki": "0.14.7",
    6767        "strip-ansi": "^7.1.0",
    68         "swr": "2.2.4",
    69         "zustand": "4.4.7"
     68        "swr": "2.2.",
     69        "zustand": "4."
    7070    }
    7171}
  • code-block-pro/trunk/readme.txt

    r3029109 r3064975  
    22Contributors:      kbat82, dcooney
    33Tags:              block, code, syntax, snippet, highlighter, JavaScript, php, js, vs code
    4 Tested up to:      6.4
    5 Stable tag:        1.26.1
     4Tested up to:      6.
     5Stable tag:        1.26.
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    311311== Changelog ==
    312312
     313
     314
     315
     316
     317
    313318= 1.26.1 - 2024-01-31 =
    314319- Fix: Fixes a bug where the plaintext language would crash the theme render
  • code-block-pro/trunk/src/front/style.css

    r3023112 r3064975  
    233233    @apply hover:underline;
    234234}
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
     246
     247
  • code-block-pro/trunk/src/state/language.ts

    r2887252 r3064975  
    2020                recentLanguages: [] as Lang[],
    2121                addRecentLanguage(language: Lang) {
    22                     // Limit to the last 3
     22                    // Limit to the last
    2323                    set((state) => {
    2424                        if (state.recentLanguages.includes(language)) {
     
    2727                        return {
    2828                            recentLanguages: [
    29                                 ...(state.recentLanguages?.slice(-2) ?? []),
     29                                ...(state.recentLanguages?.slice(- []),
    3030                                language,
    3131                            ],
Note: See TracChangeset for help on using the changeset viewer.