@vibedeckx/ui-dist 0.3.26 → 0.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/404/index.html +2 -2
- package/ui/404.html +2 -2
- package/ui/__next.__PAGE__.txt +2 -2
- package/ui/__next._full.txt +6 -6
- package/ui/__next._head.txt +1 -1
- package/ui/__next._index.txt +5 -5
- package/ui/__next._tree.txt +2 -2
- package/ui/_next/static/chunks/13ef478bf60b6b49.js +1 -0
- package/ui/_next/static/chunks/14a4792b0b8ae676.js +1 -0
- package/ui/_next/static/chunks/14e3416156a14031.js +138 -0
- package/ui/_next/static/chunks/1745297631363fbf.js +35 -0
- package/ui/_next/static/chunks/{2cff85096efd5a32.js → 2edfa6f9b21cdb06.js} +2 -2
- package/ui/_next/static/chunks/3b7cc610bc978982.js +1 -0
- package/ui/_next/static/chunks/3ded311c567c6e3b.js +1 -0
- package/ui/_next/static/chunks/421345fa30e2f3ca.js +21 -0
- package/ui/_next/static/chunks/4a74659f85b4f3b3.js +2 -0
- package/ui/_next/static/chunks/{01178e167ba3e5b4.js → 56e7ab4a81464ef5.js} +1 -1
- package/ui/_next/static/chunks/5ec61d1dfcb815d7.js +1 -0
- package/ui/_next/static/chunks/7f406266311ce9dd.js +1 -0
- package/ui/_next/static/chunks/7f49d639e9c96e9d.js +1 -0
- package/ui/_next/static/chunks/7f9737d7b46ea2bf.js +1 -0
- package/ui/_next/static/chunks/9e8562b6c617e7ce.css +1 -0
- package/ui/_next/static/chunks/bd0827bf8b7b14a0.js +1 -0
- package/ui/_next/static/chunks/{94ca3b0279cd7756.js → c42d902a063df181.js} +3 -3
- package/ui/_next/static/chunks/cc9a28409d6e1514.js +1 -0
- package/ui/_next/static/chunks/cd59432e04f834a1.js +60 -0
- package/ui/_next/static/chunks/d85e7dd97fb77ade.js +1 -0
- package/ui/_next/static/chunks/e52775f8932f8ef5.js +1 -0
- package/ui/_not-found/__next._full.txt +5 -5
- package/ui/_not-found/__next._head.txt +1 -1
- package/ui/_not-found/__next._index.txt +5 -5
- package/ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/ui/_not-found/__next._not-found.txt +1 -1
- package/ui/_not-found/__next._tree.txt +2 -2
- package/ui/_not-found/index.html +2 -2
- package/ui/_not-found/index.txt +5 -5
- package/ui/build-id.json +1 -0
- package/ui/index.html +2 -2
- package/ui/index.txt +6 -6
- package/ui/_next/static/chunks/1d01d81699d17df4.js +0 -21
- package/ui/_next/static/chunks/1f841ca3eec8ca4b.js +0 -35
- package/ui/_next/static/chunks/492ce6930bf61811.js +0 -1
- package/ui/_next/static/chunks/6816bf02e4c22a55.js +0 -1
- package/ui/_next/static/chunks/74997414d07089e8.js +0 -1
- package/ui/_next/static/chunks/86d8962196053f53.js +0 -139
- package/ui/_next/static/chunks/a49d2e9f31886b5e.js +0 -1
- package/ui/_next/static/chunks/b3d9b1c535b43c37.css +0 -1
- package/ui/_next/static/chunks/b5f9d21bd1b51a48.js +0 -1
- package/ui/_next/static/chunks/d36807add3e11d59.js +0 -60
- /package/ui/_next/static/{mXkjjj2-RMvykGtPprefB → 9AAE4p8EV7uSSyeU8Sw-X}/_buildManifest.js +0 -0
- /package/ui/_next/static/{mXkjjj2-RMvykGtPprefB → 9AAE4p8EV7uSSyeU8Sw-X}/_clientMiddlewareManifest.json +0 -0
- /package/ui/_next/static/{mXkjjj2-RMvykGtPprefB → 9AAE4p8EV7uSSyeU8Sw-X}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,441672,971159,e=>{"use strict";let t;class n extends Error{constructor(e){super(e),this.name="ShikiError"}}e.s(["ShikiError",()=>n],971159);var r,s,a=e.i(885101);function i(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,l=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,(e,r,s,a)=>{let i=n[parseInt(r||s,10)];if(!i)return e;{let e=t.substring(i.start,i.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function c(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++){var s,a;let n=(s=e[r],s<(a=t[r])?-1:+(s>a));if(0!==n)return n}return 0}return n-r}function h(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))}function u(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var d=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},p=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,s=t.length;e<s;e++){let s,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;s=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else s=Array.isArray(a.scope)?a.scope:[""];let i=-1;if("string"==typeof a.settings.fontStyle){i=0;let e=a.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 o=null;"string"==typeof a.settings.foreground&&h(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&h(a.settings.background)&&(l=a.settings.background);for(let t=0,a=s.length;t<a;t++){let a=s[t].trim().split(" "),c=a[a.length-1],h=null;a.length>1&&(h=a.slice(0,a.length-1)).reverse(),n[r++]=new f(c,h,e,i,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let s=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==s||0!==(s=c(e.parentScopes,t.parentScopes))?s:e.index-t.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(s=t.background)}let a=new y(t),i=new m(n,a.getId(r),a.getId(s)),o=new S(new k(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new p(a,i,o)}(e,t)}_cachedMatchRoot=new d(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let s=0;s<t.length;s++){var n,r;let a=t[s],i=!1;if(">"===a){if(s===t.length-1)return!1;a=t[++s],i=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new m(n.fontStyle,n.foreground,n.background):null}},g=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},m=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},f=class{constructor(e,t,n,r,s,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=a}},_=((r=_||{})[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r),y=class{_isFrozen;_lastColorId;_id2color;_color2id;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 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)}},b=Object.freeze([]),k=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,s){this.scopeDepth=e,this.parentScopes=t||b,this.fontStyle=n,this.foreground=r,this.background=s}clone(){return new e(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)}},S=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let s=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==s)return s;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,s,a,i){let o,l,c;if(""===n)return void this._doInsertHere(t,r,s,a,i);let h=n.indexOf(".");-1===h?(o=n,l=""):(o=n.substring(0,h),l=n.substring(h+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),k.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,s,a,i)}_doInsertHere(e,t,n,r,s){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,s);for(let a=0,i=this._rulesWithParentScopes.length;a<i;a++){let i=this._rulesWithParentScopes[a];if(0===c(i.parentScopes,t))return void i.acceptOverwrite(e,n,r,s)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===s&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new k(e,t,n,r,s))}},w=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),s=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,s,a,i,o){let l=e.getLanguageId(t),c=e.getTokenType(t),h=+!!e.containsBalancedBrackets(t),u=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==s&&(h=+!!s),-1!==a&&(u=a),0!==i&&(d=i),0!==o&&(p=o),(l|c<<8|h<<10|u<<11|d<<15|p<<24)>>>0}};function C(e,t){var n;let r,s,a=[],i=(n=e,s=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!s)return null;let e=s[0];return s=r.exec(n),e}}),o=i.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=i.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==o)break;o=i.next()}return a;function l(){if("-"===o){o=i.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=i.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=i.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=i.next()),e}if(N(o)){let e=[];do e.push(o),o=i.next();while(N(o))return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function N(e){return!!e&&!!e.match(/[\w\.:]+/)}var v=((s=v||{})[s.None=0]="None",s[s.NotBeginString=1]="NotBeginString",s[s.NotEndString=2]="NotEndString",s[s.NotBeginPosition=4]="NotBeginPosition",s[s.DebugCall=8]="DebugCall",s);function A(e){"function"==typeof e.dispose&&e.dispose()}var T=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},R=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},P=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},I=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new P;for(let n of e)!function(e,t,n,r){let s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof T?E({baseGrammar:a,selfGrammar:s},r):L(e.ruleName,{baseGrammar:a,selfGrammar:s,repository:s.repository},r);let i=n.injections(e.scopeName);if(i)for(let e of i)r.add(new T(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof T){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function L(e,t,n){t.repository&&t.repository[e]&&x([t.repository[e]],t,n)}function E(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&x(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&x(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function x(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?i({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&x(r.patterns,{...t,repository:e},n);let s=r.include;if(!s)continue;let a=M(s);switch(a.kind){case 0:E({...t,selfGrammar:t.baseGrammar},n);break;case 1:E(t,n);break;case 2:L(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?L(a.ruleName,r,n):E(r,n)}else 4===a.kind?n.add(new R(a.scopeName,a.ruleName)):n.add(new T(a.scopeName))}}}var G=class{kind=0},$=class{kind=1},B=class{constructor(e){this.ruleName=e}kind=2},O=class{constructor(e){this.scopeName=e}kind=3},j=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function M(e){if("$base"===e)return new G;if("$self"===e)return new $;let t=e.indexOf("#");return -1===t?new O(e):0===t?new B(e.substring(1)):new j(e.substring(0,t),e.substring(t+1))}var D=/\\(\d+)/,F=/\\(\d+)/g;Symbol("RuleId");var W=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=l.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=l.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(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?l.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?l.replaceCaptures(this._contentName,e,t):this._contentName}},q=class extends W{retokenizeCapturedWithRuleId;constructor(e,t,n,r,s){super(e,t,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},H=class extends W{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Q(r,this.id),this.captures=s,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 J,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},U=class extends W{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let 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 J,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},z=class extends W{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,a,i,o,l,c){super(e,t,n,r),this._begin=new Q(s,this.id),this.beginCaptures=a,this._end=new Q(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,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){for(let t of(this._cachedCompiledPatterns=new J,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}},K=class extends W{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,a,i,o,l){super(e,t,n,r),this._begin=new Q(s,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new Q(i,-2),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,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new J,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 J,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Y=class e{static createCaptureRule(e,t,n,r,s){return e.registerRule(e=>new q(t,e,n,r,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new H(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=i({},r,t.repository));let s=t.patterns;return void 0===s&&t.include&&(s=[{include:t.include}]),new U(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(s,n,r))}return t.while?new K(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)s[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let i=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),s[i]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let a=0,i=t.length;a<i;a++){let i=t[a],o=-1;if(i.include){let t=M(i.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[i.include],n,r);break;case 2:let s=r[t.ruleName];s&&(o=e.getCompiledRuleId(s,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(i,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof U||e instanceof z||e instanceof K)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;s.push(o)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Q=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],s=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(s=!0),a++}this.hasAnchor=s,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,"string"==typeof this.source?this.hasBackReferences=D.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return F.lastIndex=0,this.source.replace(F,(e,t)=>u(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let s=[],a=[],i=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,a[e]=n,i[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(s[e+1]="",a[e+1]="",i[e+1]="A",o[e+1]="A"):"G"===r?(s[e+1]="",a[e+1]="G",i[e+1]="",o[e+1]="G"):(s[e+1]=r,a[e+1]=r,i[e+1]=r,o[e+1]=r),e++);return{A0_G0:s.join(""),A0_G1:a.join(""),A1_G0:i.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},J=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(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 V(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return 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)}_resolveAnchors(e,t,n){return new V(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},V=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let 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){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},X=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Z=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new X(e,8),this._embeddedLanguagesMatcher=new ee(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new X(0,0);_getBasicScopeAttributes=new d(e=>new X(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ee=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>u(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==a.default&&a.default.env.VSCODE_TEXTMATE_DEBUG;var et=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function en(e,t,n,r,s,a,i,o){let l=t.content.length,c=!1,h=-1;if(i){let i=function(e,t,n,r,s,a){let i=s.beginRuleCapturedEOL?0:-1,o=[];for(let t=s;t;t=t.pop()){let n=t.getRule(e);n instanceof K&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,h,u,d;let{ruleScanner:o,findOptions:g}=(l=p.rule,c=e,h=p.stack.endRule,u=n,d=r===i,{ruleScanner:l.compileWhileAG(c,h,u,d),findOptions:0}),m=o.findNextMatchSync(t,r,g);if(m){if(-2!==m.ruleId){s=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(p.stack,m.captureIndices[0].start),es(e,t,n,p.stack,a,p.rule.whileCaptures,m.captureIndices),a.produce(p.stack,m.captureIndices[0].end),i=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{s=p.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}(e,t,n,r,s,a);s=i.stack,r=i.linePos,n=i.isFirstLine,h=i.anchorPosition}let u=Date.now();for(;!c;){if(0!==o&&Date.now()-u>o)return new et(s,!0);!function(){let i=function(e,t,n,r,s,a){let i=function(e,t,n,r,s,a){let{ruleScanner:i,findOptions:o}=er(s.getRule(e),e,s.endRule,n,r===a),l=i.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,s,a),o=e.getInjections();if(0===o.length)return i;let l=function(e,t,n,r,s,a,i){let o,l=Number.MAX_VALUE,c=null,h=0,u=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(u))continue;let{ruleScanner:p,findOptions:g}=er(t.getRule(d.ruleId),t,null,r,s===i),m=p.findNextMatchSync(n,s,g);if(!m)continue;let f=m.captureIndices[0].start;if(!(f>=l)&&(l=f,c=m.captureIndices,o=m.ruleId,h=d.priority,l===s))break}return c?{priorityMatch:-1===h,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,s,a);if(!l)return i;if(!i)return l;let c=i.captureIndices[0].start,h=l.captureIndices[0].start;return h<c||l.priorityMatch&&h===c?l:i}(e,t,n,r,s,h);if(!i){a.produce(s,l),c=!0;return}let o=i.captureIndices,u=i.matchedRuleId,d=!!o&&o.length>0&&o[0].end>r;if(-1===u){let i=s.getRule(e);a.produce(s,o[0].start),s=s.withContentNameScopesList(s.nameScopesList),es(e,t,n,s,a,i.endCaptures,o),a.produce(s,o[0].end);let u=s;if(s=s.parent,h=u.getAnchorPos(),!d&&u.getEnterPos()===r){s=u,a.produce(s,l),c=!0;return}}else{let i=e.getRule(u);a.produce(s,o[0].start);let p=s,g=i.getName(t.content,o),m=s.contentNameScopesList.pushAttributed(g,e);if(s=s.push(u,r,h,o[0].end===l,null,m,m),i instanceof z){es(e,t,n,s,a,i.beginCaptures,o),a.produce(s,o[0].end),h=o[0].end;let r=i.getContentName(t.content,o),u=m.pushAttributed(r,e);if(s=s.withContentNameScopesList(u),i.endHasBackReferences&&(s=s.withEndRule(i.getEndWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(s)){s=s.pop(),a.produce(s,l),c=!0;return}}else if(i instanceof K){es(e,t,n,s,a,i.beginCaptures,o),a.produce(s,o[0].end),h=o[0].end;let r=i.getContentName(t.content,o),u=m.pushAttributed(r,e);if(s=s.withContentNameScopesList(u),i.whileHasBackReferences&&(s=s.withEndRule(i.getWhileWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(s)){s=s.pop(),a.produce(s,l),c=!0;return}}else if(es(e,t,n,s,a,i.captures,o),a.produce(s,o[0].end),s=s.pop(),!d){s=s.safePop(),a.produce(s,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new et(s,!1)}function er(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function es(e,t,n,r,s,a,i){if(0===a.length)return;let o=t.content,l=Math.min(a.length,i.length),c=[],h=i[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let u=i[t];if(0===u.length)continue;if(u.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=u.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,u.start):s.produce(r,u.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,i),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,i),h=a.pushAttributed(c,e),d=r.push(l.retokenizeCapturedWithRuleId,u.start,-1,!1,null,a,h),p=e.createOnigString(o.substring(0,u.end));en(e,p,n&&0===u.start,u.start,d,s,!1,0),A(p);continue}let d=l.getName(o,i);if(null!==d){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);c.push(new ea(t,u.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var ea=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ei(e,t,n,r,s){let a=C(t,eo),i=Y.getCompiledRuleId(n,r,s.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:i,grammar:s,priority:n.priority})}function eo(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(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var el=class{constructor(e,t,n,r,s,a,i,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new Z(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=ec(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s))for(const t of C(e,eo))this._tokenTypeMatchers.push({matcher:t.matcher,type:s[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let 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(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)ei(e,t,r[t],this,n);let s=this._grammarRepository.injections(t);s&&s.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ei(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ec(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let 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){let 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 s;if(-1===this._rootId&&(this._rootId=Y.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eu.NULL)s=!1,t.reset();else{let e;s=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=w.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),i=this.getRule(this._rootId).getName(null,null);e=i?eh.createRootAndLookUpScopeName(i,a,this):eh.createRoot("unknown",a),t=new eu(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),i=a.content.length,o=new ep(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=en(this,a,s,0,t,o,!0,r);return A(a),{lineLength:i,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ec(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eh=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,s=t?.scopePath??null;for(let t of n)r=new e(r,s=g.push(s,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new g(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let s=r.getMetadataForScope(t),a=new g(null,t),i=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,s,i);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,s=0,a=0;return null!==n&&(r=n.fontStyle,s=n.foregroundId,a=n.backgroundId),w.set(e,t.languageId,t.tokenType,null,r,s,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),s=this;for(let t of r)s=e._pushAttributed(s,t,n);return s}static _pushAttributed(t,n,r){let s=r.getMetadataForScope(n),a=t.scopePath.push(n),i=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,s,i);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},eu=class e{constructor(e,t,n,r,s,a,i,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=i,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eh.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,a,i,o){return new e(this,t,n,r,s,a,i,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=eh.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eh.fromExtension(r,n.contentNameScopesList))}},ed=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):C(e,eo).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>C(e,eo).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(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ep=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=w.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=w.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];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);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},eg=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let 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)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new el(e,a,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},em=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eg(p.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(p.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 ed(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,s){let a=new I(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,s)}},ef=eu.NULL,e_=e.i(600577),ey=e.i(61634),eb=e.i(79694);let ek=/["&'<>`]/g,eS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ew=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eC=/[|\\{}()[\]^$+*?.]/g,eN=new WeakMap,ev=/[\dA-Fa-f]/,eA=/\d/,eT=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],eR={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eP=["cent","copy","divide","gt","lt","not","para","times"],eI={}.hasOwnProperty,eL={};for(t in eR)eI.call(eR,t)&&(eL[eR[t]]=t);let eE=/[^\dA-Za-z]/;function ex(e,t,n){var r,s;let a,i,o=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!ev.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(i=function(e,t,n,r){let s=String.fromCharCode(e);if(eI.call(eL,s)){let e=eL[s],a="&"+e;return n&&eT.includes(e)&&!eP.includes(e)&&(!r||t&&61!==t&&eE.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let r,a=(s=n.omitOptionalSemicolons,r="&#"+String(e),s&&t&&!eA.test(String.fromCharCode(t))?r:r+";");a.length<o.length&&(o=a)}return i&&(!n.useShortestReferences||i.length<o.length)?i:o}function eG(e,t){let n;var r,s=e,a=Object.assign({format:ex},t);if(s=s.replace(a.subset?(r=a.subset,(n=eN.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eC,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eN.set(r,n)),n):ek,i),a.subset||a.escapeOnly)return s;return s.replace(eS,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(ew,i);function i(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let e$=/^>|^->|<!--|-->|--!>|<!-$/g,eB=[">"],eO=["<",">"];var ej=e.i(470284),eM=e.i(816220),eD=e.i(273638),eF=e.i(722365),eW=e.i(158206);let eq=ez(1),eH=ez(-1),eU=[];function ez(e){return function(t,n,r){let s=t?t.children:eU,a=(n||0)+e,i=s[a];if(!r)for(;i&&(0,eW.whitespace)(i);)a+=e,i=s[a];return i}}let eK={}.hasOwnProperty;function eY(e){return function(t,n,r){return eK.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let eQ=eY({body:function(e,t,n){let r=eq(n,t);return!r||"comment"!==r.type},caption:eJ,colgroup:eJ,dd:function(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=eq(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:eJ,html:function(e,t,n){let r=eq(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=eq(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:eV,rt:eV,tbody:function(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:eX,tfoot:function(e,t,n){return!eq(n,t)},th:eX,thead:function(e,t,n){let r=eq(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function eJ(e,t,n){let r=eq(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eW.whitespace)(r.value.charAt(0)))}function eV(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function eX(e,t,n){let r=eq(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let eZ=eY({body:function(e){let t=eq(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eW.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=eH(n,t),s=eq(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&eQ(r,n.children.indexOf(r),n))&&!!(s&&"element"===s.type&&"col"===s.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=eq(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eH(n,t),s=eq(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&eQ(r,n.children.indexOf(r),n))&&!!(s&&"element"===s.type&&"tr"===s.tagName)}}),e0={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e1=["<","&"];function e2(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eG(e.value,Object.assign({},r.settings.characterReferences,{subset:e1}))}let e5=(0,eb.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+eG(e.value,Object.assign({},r.settings.characterReferences,{subset:eB}))+">":"<!--"+e.value.replace(e$,function(e){return eG(e,Object.assign({},r.settings.characterReferences,{subset:eO}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let s,a=r.schema,i="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=ey.svg);let c=function(e,t){let n,r=[],s=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let s=function(e,t,n){let r,s=(0,eD.find)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=+!e.settings.allowDangerousCharacters,o=e.quote;if(s.overloadedBoolean&&(n===s.attribute||""===n)?n=!0:(s.boolean||s.overloadedBoolean)&&("string"!=typeof n||n===s.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eG(s.attribute,Object.assign({},e.settings.characterReferences,{subset:e0.name[a][i]}));return!0===n||(n=Array.isArray(n)?(s.commaSeparated?eM.stringify:eF.stringify)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eG(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e0.unquoted[a][i]}))),r!==n&&(e.settings.quoteSmart&&(0,ej.ccount)(n,o)>(0,ej.ccount)(n,e.alternative)&&(o=e.alternative),r=o+eG(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e0.single:e0.double)[a][i],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);s&&r.push(s)}}for(;++s<r.length;){let t=e.settings.tightAttributes?r[s].charAt(r[s].length-1):void 0;s!==r.length-1&&'"'!==t&&"'"!==t&&(r[s]+=" ")}return r.join("")}(r,e.properties),h=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,h&&(o=!1),!c&&i&&eZ(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===s||s&&'"'!==s&&"'"!==s)&&l.push(" "),l.push("/")),l.push(">")),l.push(h),o||i&&eQ(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e2(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e2}}),e3={},e4={},e6=[];function e8(e,t,n){return e5(e,t,n,this)}function e9(e){let t=[],n=e&&e.children||e6,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function e7(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,s]of Object.entries(t?.colorReplacements||{}))"string"==typeof s?n[e]=s:e===r&&Object.assign(n,s);return n}function te(e,t){return e&&t?.[e?.toLowerCase()]||e}function tt(e){return Array.isArray(e)?e:[e]}async function tn(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function tr(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ts(e){return"ansi"===e||tr(e)}function ta(e){return"none"===e}function ti(e){return ta(e)}function to(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function tl(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,s=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];s.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return s}function tc(e){let t=tl(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,s=0;for(let e of t){if(r<e.length)break;r-=e.length,s++}return{line:s,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}function th(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let s=n.getBundledLanguages();return Array.from(r).filter(e=>e&&s[e])}let tu="light-dark()",td=["color","background-color"];function tp(e,t){let n=0,r=[];for(let s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function tg(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?tp(e,t):e})):e}function tm(e,t,r,s,a="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tf(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),c={},h=(e,n)=>{let s="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":s)};return o.forEach((e,r)=>{for(let i of l){let l=e[i]||"inherit";if(0===r&&s&&td.includes(i))if(s===tu&&o.length>1){let e=t.findIndex(e=>"light"===e),s=t.findIndex(e=>"dark"===e);if(-1===e||-1===s)throw new n('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][i]||"inherit",d=o[s][i]||"inherit";c[i]=`light-dark(${u}, ${d})`,"css-vars"===a&&(c[h(r,i)]=l)}else c[i]=l;else"css-vars"===a&&(c[h(r,i)]=l)}}),i.htmlStyle=c,i}function tf(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t["font-style"]="italic"),e.fontStyle&_.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&_.Underline&&n.push("underline"),e.fontStyle&_.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function t_(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let ty=new WeakMap;function tb(e,t){ty.set(e,t)}function tk(e){return ty.get(e)}class tS{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tS(Object.fromEntries(tt(t).map(e=>[e,ef])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let s=t?.nameScopesList?.scopeName;s&&n.push(s),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function tw(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let r=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new n(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...s.indexToPos(e),offset:e}}{let t=s.lines[e.line];if(void 0===t)throw new n(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${s.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new n(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:s.posToIndex(e.line,r)}}},s=tc(t.source),a=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new n(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let s=t+1;s<e.length;s++){let t=e[s],a=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,i=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,o=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,l=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(a||i||o||l){if(a&&i||o&&l||o&&r.start.offset===r.end.offset||i&&t.start.offset===t.end.offset)continue;throw new n(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:s,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return tg(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let r=t(this),s=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(s.length!==r.converter.lines.length)throw new n(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,t,r,a){let o=s[e],l="",c=-1,h=-1;if(0===t&&(c=0),0===r&&(h=0),r===1/0&&(h=o.children.length),-1===c||-1===h)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===c&&l.length===t&&(c=e+1),-1===h&&l.length===r&&(h=e+1);if(-1===c)throw new n(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(-1===h)throw new n(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let u=o.children.slice(c,h);if(a.alwaysWrap||u.length!==o.children.length)if(a.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};i(e,a,"wrapper"),o.children.splice(c,u.length,e)}else i(u[0],a,"token");else i(o,a,"line")}function i(e,t,n){let r=t.properties||{},s=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&to(e,t.properties.class),e=s(e,n)||e}let o=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)o.unshift(()=>{var t;s[t=r]=i(s[t],e,"line")});a(n.line,0,n.character,e)}}o.forEach(e=>e())}}}let tC=[tw()];function tN(e){let t=function(e){let t=[],n=[],r=[];for(let s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tC]}var tv=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tA={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tT(e){let t=e.shift();if("2"===t){let 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){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tR={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"};let tP={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function tI(e,t,n){let r,s,a,i=e7(e,n),o=tl(t),l=function(e=tR){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var s;return s=r.index,function(){if(t)return t;t=[];for(let n=0;n<tv.length;n++)t.push(e[tv[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let s=0;s<6;s++)for(let a=0;a<6;a++)t.push(n([r[e],r[s],r[a]]));let s=8;for(let e=0;e<24;e++,s+=10)t.push(n([s,s,s]));return t}()[s]}}}}(Object.fromEntries(tv.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||tP[t]]}))),c=(r=null,s=null,a=new Set,{parse(e){let t=[],n=0;do{let i=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=i.sequence?e.substring(n,i.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:s,decorations:new Set(a)}),i.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)tA[r]&&t.push({type:"setDecoration",value:tA[r]});else if(r<=29){let e=tA[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tv[r-30]}});else if(38===r){let n=tT(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:tv[r-40]}});else if(48===r){let n=tT(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tv[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tv[r-100+8]}})}return t}(i.sequence);for(let t of e)"resetAll"===t.type?(r=null,s=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?s=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?s=t.value:"setDecoration"===t.type&&a.add(t.value)}n=i.position}while(n<e.length)return t}});return o.map(t=>c.parse(t[0]).map(n=>{let r,s;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,s=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,s=n.background?l.value(n.background):void 0),r=te(r,i),s=te(s,i),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],s=e[3],a=Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${r}${r}${a}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=_.None;return n.decorations.has("bold")&&(a|=_.Bold),n.decorations.has("italic")&&(a|=_.Italic),n.decorations.has("underline")&&(a|=_.Underline),n.decorations.has("strikethrough")&&(a|=_.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:s,fontStyle:a}}))}function tL(e,t,r={}){let{theme:s=e.getLoadedThemes()[0]}=r,a=e.resolveLangAlias(r.lang||"text");if(tr(a)||ta(s))return tl(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:o}=e.setTheme(s);if("ansi"===a)return tI(i,t,r);let l=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==l.name)throw new n(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${l.name}"`);if(!r.grammarState.themes.includes(i.name))throw new n(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return tx(t,l,i,o,r)}function tE(...e){if(2===e.length)return tk(e[1]);let[t,r,s={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=s;if(tr(a)||ta(i))throw new n("Plain language does not have grammar state");if("ansi"===a)throw new n("ANSI language does not have grammar state");let{theme:o,colorMap:l}=t.setTheme(i),c=t.getLanguage(a);return new tS(tG(r,c,o,l,s).stateStack,c.name,o.name)}function tx(e,t,n,r,s){let a=tG(e,t,n,r,s),i=new tS(a.stateStack,t.name,n.name);return tb(a.tokens,i),a.tokens}function tG(e,t,r,s,a){let i=e7(r,a),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=a,c=tl(e),h=a.grammarState?function(e,t){if(!(e instanceof tS))throw new n("Invalid grammar state");return e.getInternalStack(t)}(a.grammarState,r.name)??ef:null!=a.grammarContextCode?tG(a.grammarContextCode,t,r,s,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:ef,u=[],d=[];for(let e=0,n=c.length;e<n;e++){let n,p,[g,m]=c[e];if(""===g){u=[],d.push([]);continue}if(o>0&&g.length>=o){u=[],d.push([{content:g,offset:m,color:"",fontStyle:0}]);continue}a.includeExplanation&&(n=t.tokenizeLine(g,h,l).tokens,p=0);let f=t.tokenizeLine2(g,h,l),_=f.tokens.length/2;for(let e=0;e<_;e++){let t=f.tokens[2*e],o=e+1<_?f.tokens[2*e+2]:g.length;if(t===o)continue;let l=f.tokens[2*e+1],c=te(s[w.getForeground(l)],i),h=w.getFontStyle(l),d={content:g.substring(t,o),offset:m+t,color:c,fontStyle:h};if(a.includeExplanation){let e=[];if("scopeName"!==a.includeExplanation)for(let t of r.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let s=0;for(;t+s<o;){let t=n[p],r=g.substring(t.startIndex,t.endIndex);s+=r.length,d.explanation.push({content:r,scopes:"scopeName"===a.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,s=t.length;r<s;r++){let s=t[r];n[r]={scopeName:s,themeMatches:function(e,t,n){let r=[];for(let{selectors:s,settings:a}of e)for(let e of s)if(function(e,t,n){if(!t$(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)t$(e[r],n[s])&&(r-=1),s-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,s,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}u.push(d)}d.push(u),u=[],h=f.ruleStack}return{tokens:d,stateStack:h}}function t$(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tB(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),s=r.map(r=>{let s=tL(e,t,{...n,theme:r.theme}),a=tk(s);return{tokens:s,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let s=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let i=s.map(()=>0),o=s.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),i[t]+=1,o[t]=s[t][i[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...s.map(e=>e.tokens)),i=a[0].map((e,t)=>e.map((e,s)=>{let i={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(i.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...c}=e[t][s];i.variants[r[n].color]=c}),i})),o=s[0].state?new tS(Object.fromEntries(s.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),s[0].state.lang):void 0;return o&&tb(i,o),i}function tO(e,t,r){let s,a,i,o,l,c;if("themes"in r){let{defaultColor:h="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===h?-1:+(t.color===h));if(0===p.length)throw new n("`themes` option must not be empty");let g=tB(e,t,r);if(c=tk(g),h&&tu!==h&&!p.find(e=>e.color===h))throw new n(`\`themes\` option must contain the defaultColor key \`${h}\``);let m=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);i=g.map(e=>e.map(e=>tm(e,f,u,h,d))),c&&tb(i,c);let _=p.map(e=>e7(e.theme,r));a=tj(p,m,_,u,h,"fg",d),s=tj(p,m,_,u,h,"bg",d),o=`shiki-themes ${m.map(e=>e.name).join(" ")}`,l=h?void 0:[a,s].join(";")}else if("theme"in r){let n=e7(r.theme,r);i=tL(e,t,r);let l=e.getTheme(r.theme);s=te(l.bg,n),a=te(l.fg,n),o=l.name,c=tk(i)}else throw new n("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:s,themeName:o,rootStyle:l,grammarState:c}}function tj(e,t,r,s,a,i,o){return e.map((l,c)=>{let h=te(t[c][i],r[c])||"inherit",u=`${s+l.color}${"bg"===i?"-bg":""}:${h}`;if(0===c&&a){if(a===tu&&e.length>1){let s=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===s||-1===a)throw new n('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=te(t[s][i],r[s])||"inherit",l=te(t[a][i],r[a])||"inherit";return`light-dark(${o}, ${l});${u}`}return h}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function tM(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tM(e,t,n),codeToTokens:(t,n)=>tO(e,t,n)}){let s=t;for(let e of tN(n))s=e.preprocess?.call(r,s,n)||s;let{tokens:a,fg:i,bg:o,themeName:l,rootStyle:c,grammarState:h}=tO(e,s,n),{mergeWhitespaces:u=!0,mergeSameStyleTokens:d=!1}=n;!0===u?a=a.map(e=>{let t,n=[],r="";return e.forEach((s,a)=>{let i=!(s.fontStyle&&(s.fontStyle&_.Underline||s.fontStyle&_.Strikethrough));i&&s.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=s.offset),r+=s.content):r?(i?n.push({...s,offset:t,content:r+s.content}):n.push({content:r,offset:t},s),t=void 0,r=""):n.push(s)}),n}):"never"===u&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,s]=t;if(!n&&!s)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),s&&a.push({content:s,offset:e.offset+n.length+r.length}),a}))),d&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=t_(e.htmlStyle||tf(e)),s=t_(n.htmlStyle||tf(n)),a=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),i=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);a||i||r!==s?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return s}};for(let e of tN(n))a=e.tokens?.call(p,a)||a;return tD(a,{...n,fg:i,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,h)}function tD(e,t,n,r=tk(e)){let s=tN(t),a=[],i={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=n);let h={type:"element",tagName:"pre",properties:c,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:a},d=[],p={...n,structure:o,addClassToHast:to,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return h},get code(){return u},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=t_(a.htmlStyle||tf(a));for(let i of(l&&(e.properties.style=l),s))e=i?.span?.call(p,e,t+1,r,n,a)||e;"inline"===o?i.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of s)n=e?.line?.call(p,n,t+1)||n;d.push(n),a.push(n)}else"inline"===o&&d.push(n)}),"classic"===o){for(let e of s)u=e?.code?.call(p,u)||u;for(let e of(h.children.push(u),s))h=e?.pre?.call(p,h)||h;i.children.push(h)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of i.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of s)n=e?.code?.call(p,n)||n;i.children=[];for(let e=0;e<n.children.length;e++){e>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&i.children.push(...t.children)}}let g=i;for(let e of s)g=e?.root?.call(p,g)||g;return r&&tb(g,r),g}let tF=function(e,t){let n=t||e3,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:e8,all:e9,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||e_.htmlVoidElements,characterReferences:n.characterReferences||e4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ey.svg:ey.html,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};function tW(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tM(e,t,n),codeToTokens:(t,n)=>tO(e,t,n)},s=tF(tM(e,t,n,r));for(let e of tN(n))s=e.postprocess?.call(r,s,n)||s;return s}let tq="__shiki_resolved";function tH(e){if(e?.[tq])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0,a=new Map;function i(e){if(a.has(e))return a.get(e);s+=1;let n=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?i(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let s={...e,settings:{...e.settings}};if(n){let n=i(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,s.settings.foreground=n}if(r){let n=i(e.settings.background);t.colorReplacements[n]=e.settings.background,s.settings.background=n}return s}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=i(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tq,{enumerable:!1,writable:!1,value:!0}),t}async function tU(e){return Array.from(new Set((await Promise.all(e.filter(e=>!ts(e)).map(async e=>await tn(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tz(e){return(await Promise.all(e.map(async e=>ta(e)?null:tH(await tn(e))))).filter(e=>!!e)}let tK=3,tY=!1;function tQ(e=!0,t=!1){tK=e,tY=t}function tJ(e,t=3){if(tK&&("number"!=typeof tK||!(t>tK)))if(tY)throw Error(`[SHIKI DEPRECATE]: ${e}`);else console.trace(`[SHIKI DEPRECATE]: ${e}`)}class tV extends Error{constructor(e){super(e),this.name="ShikiError"}}function tX(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new tV(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class tZ extends em{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tH(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=p.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tX(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let r=t.embeddedLanguages||t.embeddedLangs;return r?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new tV(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class t0{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let t1=0;function t2(e){let t;t1+=1,!1!==e.warnings&&t1>=10&&t1%10==0&&console.warn(`[Shiki] ${t1} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new tV("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),s=(e.themes||[]).flat(1).map(tH),a=new tZ(new t0(e.engine,r),s,r,e.langAlias);function i(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new tV(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(n)throw new tV("Shiki instance has been disposed")}function h(){n||(n=!0,a.dispose(),t1-=1)}return{setTheme:function(e){c();let n=i(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:i,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tV(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return tX(t,e.langAlias)},loadLanguage:async function(...e){return o(await tU(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await tz(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}async function t5(e){e.engine||tJ("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tz(e.themes||[]),tU(e.langs||[]),e.engine]);return t2({...e,themes:t,langs:n,engine:r})}async function t3(e){let t=await t5(e);return{getLastGrammarState:(...e)=>tE(t,...e),codeToTokensBase:(e,n)=>tL(t,e,n),codeToTokensWithThemes:(e,n)=>tB(t,e,n),codeToTokens:(e,n)=>tO(t,e,n),codeToHast:(e,n)=>tM(t,e,n),codeToHtml:(e,n)=>tW(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function t4(e){let t=t2(e);return{getLastGrammarState:(...e)=>tE(t,...e),codeToTokensBase:(e,n)=>tL(t,e,n),codeToTokensWithThemes:(e,n)=>tB(t,e,n),codeToTokens:(e,n)=>tO(t,e,n),codeToHast:(e,n)=>tM(t,e,n),codeToHtml:(e,n)=>tW(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function t6(e){let t;return async function(n){if(!t)return t=e({...n,themes:n.themes||[],langs:n.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}}}let t8=t6(t3);function t9(e){let t=e.langs,r=e.themes,s=e.engine;return async function(e){function a(r){if("string"==typeof r){if(ts(r=e.langAlias?.[r]||r))return[];let s=t[r];if(!s)throw new n(`Language \`${r}\` is not included in this bundle. You may want to load it from external source.`);return s}return r}function i(e){if(ta(e))return"none";if("string"==typeof e){let t=r[e];if(!t)throw new n(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>i(e)),l=(e.langs??[]).map(e=>a(e)),c=await t3({engine:e.engine??s(),...e,themes:o,langs:l});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(a)),loadTheme:(...e)=>c.loadTheme(...e.map(i)),getBundledLanguages:()=>t,getBundledThemes:()=>r}}}function t7(e){let t;return async function(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}}function ne(e,t){let n=t7(e);async function r(e,r){let s=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,s);return a&&await s.loadLanguage(...a),s}return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await r(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await r(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await r(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await r(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await r(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}function nt(e={}){let{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,s=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:"dark",colors:{"editor.foreground":s("foreground"),"editor.background":s("background"),"terminal.ansiBlack":s("ansi-black"),"terminal.ansiRed":s("ansi-red"),"terminal.ansiGreen":s("ansi-green"),"terminal.ansiYellow":s("ansi-yellow"),"terminal.ansiBlue":s("ansi-blue"),"terminal.ansiMagenta":s("ansi-magenta"),"terminal.ansiCyan":s("ansi-cyan"),"terminal.ansiWhite":s("ansi-white"),"terminal.ansiBrightBlack":s("ansi-bright-black"),"terminal.ansiBrightRed":s("ansi-bright-red"),"terminal.ansiBrightGreen":s("ansi-bright-green"),"terminal.ansiBrightYellow":s("ansi-bright-yellow"),"terminal.ansiBrightBlue":s("ansi-bright-blue"),"terminal.ansiBrightMagenta":s("ansi-bright-magenta"),"terminal.ansiBrightCyan":s("ansi-bright-cyan"),"terminal.ansiBrightWhite":s("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:s("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:s("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:s("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:s("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:s("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:s("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:s("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:s("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:s("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:s("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:s("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:s("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:s("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:s("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:s("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:s("token-changed")}}]};return r||(a.tokenColors=a.tokenColors?.map(e=>(e.settings?.fontStyle&&delete e.settings.fontStyle,e))),a}e.s(["addClassToHast",()=>to,"applyColorReplacements",()=>te,"codeToHast",()=>tM,"codeToHtml",()=>tW,"codeToTokens",()=>tO,"codeToTokensBase",()=>tL,"codeToTokensWithThemes",()=>tB,"createBundledHighlighter",()=>t9,"createCssVariablesTheme",()=>nt,"createHighlighterCore",()=>t3,"createHighlighterCoreSync",()=>t4,"createPositionConverter",()=>tc,"createShikiInternal",()=>t5,"createShikiInternalSync",()=>t2,"createSingletonShorthands",()=>ne,"createdBundledHighlighter",()=>t9,"enableDeprecationWarnings",()=>tQ,"flatTokenVariants",()=>tm,"getSingletonHighlighterCore",()=>t8,"getTokenStyleObject",()=>tf,"guessEmbeddedLanguages",()=>th,"hastToHtml",()=>tF,"isNoneTheme",()=>ta,"isPlainLang",()=>tr,"isSpecialLang",()=>ts,"isSpecialTheme",()=>ti,"makeSingletonHighlighter",()=>t7,"makeSingletonHighlighterCore",()=>t6,"normalizeGetter",()=>tn,"normalizeTheme",()=>tH,"resolveColorReplacements",()=>e7,"splitLines",()=>tl,"splitToken",()=>tp,"splitTokens",()=>tg,"stringifyTokenStyle",()=>t_,"toArray",()=>tt,"tokenizeAnsiWithTheme",()=>tI,"tokenizeWithTheme",()=>tx,"tokensToHast",()=>tD,"transformerDecorations",()=>tw,"warnDeprecated",()=>tJ],441672)}]);
|