@vibedeckx/ui-dist 0.3.26 → 0.3.27
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/08fb20f56726e1ed.js +35 -0
- 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/{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/571e3a92a0e5f495.css +1 -0
- 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/bd0827bf8b7b14a0.js +1 -0
- 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/_next/static/chunks/{94ca3b0279cd7756.js → fae9459f9134304e.js} +3 -3
- 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 → uvWDT2XM92li0PTumKo8i}/_buildManifest.js +0 -0
- /package/ui/_next/static/{mXkjjj2-RMvykGtPprefB → uvWDT2XM92li0PTumKo8i}/_clientMiddlewareManifest.json +0 -0
- /package/ui/_next/static/{mXkjjj2-RMvykGtPprefB → uvWDT2XM92li0PTumKo8i}/_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)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,111020,e=>{"use strict";e.s([],584533),e.i(584533);var t=e.i(441672),i=e.i(971159);e.s(["ShikiError",()=>i.ShikiError,"addClassToHast",()=>t.addClassToHast,"applyColorReplacements",()=>t.applyColorReplacements,"codeToHast",()=>t.codeToHast,"codeToHtml",()=>t.codeToHtml,"codeToTokens",()=>t.codeToTokens,"codeToTokensBase",()=>t.codeToTokensBase,"codeToTokensWithThemes",()=>t.codeToTokensWithThemes,"createBundledHighlighter",()=>t.createBundledHighlighter,"createCssVariablesTheme",()=>t.createCssVariablesTheme,"createHighlighterCore",()=>t.createHighlighterCore,"createHighlighterCoreSync",()=>t.createHighlighterCoreSync,"createPositionConverter",()=>t.createPositionConverter,"createShikiInternal",()=>t.createShikiInternal,"createShikiInternalSync",()=>t.createShikiInternalSync,"createSingletonShorthands",()=>t.createSingletonShorthands,"createdBundledHighlighter",()=>t.createdBundledHighlighter,"enableDeprecationWarnings",()=>t.enableDeprecationWarnings,"flatTokenVariants",()=>t.flatTokenVariants,"getSingletonHighlighterCore",()=>t.getSingletonHighlighterCore,"getTokenStyleObject",()=>t.getTokenStyleObject,"guessEmbeddedLanguages",()=>t.guessEmbeddedLanguages,"hastToHtml",()=>t.hastToHtml,"isNoneTheme",()=>t.isNoneTheme,"isPlainLang",()=>t.isPlainLang,"isSpecialLang",()=>t.isSpecialLang,"isSpecialTheme",()=>t.isSpecialTheme,"makeSingletonHighlighter",()=>t.makeSingletonHighlighter,"makeSingletonHighlighterCore",()=>t.makeSingletonHighlighterCore,"normalizeGetter",()=>t.normalizeGetter,"normalizeTheme",()=>t.normalizeTheme,"resolveColorReplacements",()=>t.resolveColorReplacements,"splitLines",()=>t.splitLines,"splitToken",()=>t.splitToken,"splitTokens",()=>t.splitTokens,"stringifyTokenStyle",()=>t.stringifyTokenStyle,"toArray",()=>t.toArray,"tokenizeAnsiWithTheme",()=>t.tokenizeAnsiWithTheme,"tokenizeWithTheme",()=>t.tokenizeWithTheme,"tokensToHast",()=>t.tokensToHast,"transformerDecorations",()=>t.transformerDecorations,"warnDeprecated",()=>t.warnDeprecated],754336),e.i(754336),e.s(["ShikiError",()=>i.ShikiError,"addClassToHast",()=>t.addClassToHast,"applyColorReplacements",()=>t.applyColorReplacements,"codeToHast",()=>t.codeToHast,"codeToHtml",()=>t.codeToHtml,"codeToTokens",()=>t.codeToTokens,"codeToTokensBase",()=>t.codeToTokensBase,"codeToTokensWithThemes",()=>t.codeToTokensWithThemes,"createBundledHighlighter",()=>t.createBundledHighlighter,"createCssVariablesTheme",()=>t.createCssVariablesTheme,"createHighlighterCore",()=>t.createHighlighterCore,"createHighlighterCoreSync",()=>t.createHighlighterCoreSync,"createPositionConverter",()=>t.createPositionConverter,"createShikiInternal",()=>t.createShikiInternal,"createShikiInternalSync",()=>t.createShikiInternalSync,"createSingletonShorthands",()=>t.createSingletonShorthands,"createdBundledHighlighter",()=>t.createdBundledHighlighter,"enableDeprecationWarnings",()=>t.enableDeprecationWarnings,"flatTokenVariants",()=>t.flatTokenVariants,"getSingletonHighlighterCore",()=>t.getSingletonHighlighterCore,"getTokenStyleObject",()=>t.getTokenStyleObject,"guessEmbeddedLanguages",()=>t.guessEmbeddedLanguages,"hastToHtml",()=>t.hastToHtml,"isNoneTheme",()=>t.isNoneTheme,"isPlainLang",()=>t.isPlainLang,"isSpecialLang",()=>t.isSpecialLang,"isSpecialTheme",()=>t.isSpecialTheme,"makeSingletonHighlighter",()=>t.makeSingletonHighlighter,"makeSingletonHighlighterCore",()=>t.makeSingletonHighlighterCore,"normalizeGetter",()=>t.normalizeGetter,"normalizeTheme",()=>t.normalizeTheme,"resolveColorReplacements",()=>t.resolveColorReplacements,"splitLines",()=>t.splitLines,"splitToken",()=>t.splitToken,"splitTokens",()=>t.splitTokens,"stringifyTokenStyle",()=>t.stringifyTokenStyle,"toArray",()=>t.toArray,"tokenizeAnsiWithTheme",()=>t.tokenizeAnsiWithTheme,"tokenizeWithTheme",()=>t.tokenizeWithTheme,"tokensToHast",()=>t.tokensToHast,"transformerDecorations",()=>t.transformerDecorations,"warnDeprecated",()=>t.warnDeprecated],111020)}]);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,289506,e=>{"use strict";function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var n=t(),l={exec:()=>null};function r(e,t=""){let n="string"==typeof e?e:e.source,l={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(a.caret,"$1"),n=n.replace(e,r),l},getRegex:()=>new RegExp(n,t)};return l}var s=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),a={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},i=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,o=/(?:[*+-]|\d{1,9}[.)])/,u=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,c=r(u).replace(/bull/g,o).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),h=r(u).replace(/bull/g,o).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),p=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,g=r(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",d).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),f=r(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,o).getRegex(),k="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",m=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b=r("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",m).replace("tag",k).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=r(p).replace("hr",i).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k).getRegex(),y={blockquote:r(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:i,html:b,lheading:c,list:f,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:x,table:l,text:/^[^\n]+/},w=r("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",i).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k).getRegex(),v={...y,lheading:h,table:w,paragraph:r(p).replace("hr",i).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",w).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k).getRegex()},S={...y,html:r(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",m).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:r(p).replace("hr",i).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",c).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},P=/^( {2,}|\\)\n(?!\s*$)/,R=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,T=/[^\s\p{P}\p{S}]/u,A=r(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),z=/(?!~)[\p{P}\p{S}]/u,$=r(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),L=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=r(L,"u").replace(/punct/g,R).getRegex(),D=r(L,"u").replace(/punct/g,z).getRegex(),M="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",E=r(M,"gu").replace(/notPunctSpace/g,T).replace(/punctSpace/g,C).replace(/punct/g,R).getRegex(),O=r(M,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,z).getRegex(),I=r("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,T).replace(/punctSpace/g,C).replace(/punct/g,R).getRegex(),B=r(/\\(punct)/,"gu").replace(/punct/g,R).getRegex(),_=r(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),q=r(m).replace("(?:-->|$)","-->").getRegex(),U=r("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",q).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),H=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Z=r(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",H).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),F=r(/^!?\[(label)\]\[(ref)\]/).replace("label",H).replace("ref",d).getRegex(),N=r(/^!?\[(ref)\](?:\[\])?/).replace("ref",d).getRegex(),V=r("reflink|nolink(?!\\()","g").replace("reflink",F).replace("nolink",N).getRegex(),W=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,K={_backpedal:l,anyPunctuation:B,autolink:_,blockSkip:$,br:P,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,emStrongLDelim:j,emStrongRDelimAst:E,emStrongRDelimUnd:I,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Z,nolink:N,punctuation:A,reflink:F,reflinkSearch:V,tag:U,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},X={...K,link:r(/^!?\[(label)\]\((.*?)\)/).replace("label",H).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H).getRegex()},Q={...K,emStrongRDelimAst:O,emStrongLDelim:D,url:r(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",W).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:r(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",W).getRegex()},G={...Q,br:r(P).replace("{2,}","*").getRegex(),text:r(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Y={normal:y,gfm:v,pedantic:S},J={normal:K,gfm:Q,breaks:G,pedantic:X},ee={"&":"&","<":"<",">":">",'"':""","'":"'"},et=e=>ee[e];function en(e,t){if(t){if(a.escapeTest.test(e))return e.replace(a.escapeReplace,et)}else if(a.escapeTestNoEncode.test(e))return e.replace(a.escapeReplaceNoEncode,et);return e}function el(e){try{e=encodeURI(e).replace(a.percentDecode,"%")}catch{return null}return e}function er(e,t){let n=e.replace(a.findPipe,(e,t,n)=>{let l=!1,r=t;for(;--r>=0&&"\\"===n[r];)l=!l;return l?"|":" |"}).split(a.splitPipe),l=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(a.slashPipe,"|");return n}function es(e,t,n){let l=e.length;if(0===l)return"";let r=0;for(;r<l;){let s=e.charAt(l-r-1);if(s!==t||n)if(s!==t&&n)r++;else break;else r++}return e.slice(0,l-r)}function ea(e,t,n,l,r){let s=t.href,a=t.title||null,i=e[1].replace(r.other.outputLinkReplace,"$1");l.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:s,title:a,text:i,tokens:l.inlineTokens(i)};return l.state.inLink=!1,o}var ei=class{options;rules;lexer;constructor(e){this.options=e||n}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:es(e,`
|
|
3
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let l=e.match(n.other.indentCodeCompensation);if(null===l)return t;let r=l[1];return t.split(`
|
|
4
|
+
`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[l]=t;return l.length>=r.length?e.slice(r.length):e}).join(`
|
|
5
|
+
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=es(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:es(t[0],`
|
|
6
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=es(t[0],`
|
|
7
|
+
`).split(`
|
|
8
|
+
`),n="",l="",r=[];for(;e.length>0;){let t=!1,s=[],a;for(a=0;a<e.length;a++)if(this.rules.other.blockquoteStart.test(e[a]))s.push(e[a]),t=!0;else if(t)break;else s.push(e[a]);e=e.slice(a);let i=s.join(`
|
|
9
|
+
`),o=i.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
11
|
+
${i}`:i,l=l?`${l}
|
|
12
|
+
${o}`:o;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,r,!0),this.lexer.state.top=u,0===e.length)break;let c=r.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
|
|
13
|
+
`+e.join(`
|
|
14
|
+
`),s=this.blockquote(t);r[r.length-1]=s,n=n.substring(0,n.length-c.raw.length)+s.raw,l=l.substring(0,l.length-c.text.length)+s.text;break}if(c?.type==="list"){let t=c.raw+`
|
|
15
|
+
`+e.join(`
|
|
16
|
+
`),s=this.list(t);r[r.length-1]=s,n=n.substring(0,n.length-c.raw.length)+s.raw,l=l.substring(0,l.length-c.raw.length)+s.raw,e=t.substring(r.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:r,text:l}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),l=n.length>1,r={type:"list",raw:"",ordered:l,start:l?+n.slice(0,-1):"",loose:!1,items:[]};n=l?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=l?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,l="",i="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let o=t[2].split(`
|
|
18
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(`
|
|
19
|
+
`,1)[0],c=!o.trim(),h=0;if(this.options.pedantic?(h=2,i=o.trimStart()):c?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,i=o.slice(h),h+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(l+=u+`
|
|
20
|
+
`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),r=this.rules.other.fencesBeginRegex(h),s=this.rules.other.headingBeginRegex(h),a=this.rules.other.htmlBeginRegex(h);for(;e;){let p=e.split(`
|
|
21
|
+
`,1)[0],d;if(u=p,d=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),r.test(u)||s.test(u)||a.test(u)||t.test(u)||n.test(u))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!u.trim())i+=`
|
|
22
|
+
`+d.slice(h);else{if(c||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||r.test(o)||s.test(o)||n.test(o))break;i+=`
|
|
23
|
+
`+u}c||u.trim()||(c=!0),l+=p+`
|
|
24
|
+
`,e=e.substring(p.length+1),o=d.slice(h)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0));let p=null,d;this.options.gfm&&(p=this.rules.other.listIsTask.exec(i))&&(d="[ ] "!==p[0],i=i.replace(this.rules.other.listReplaceTask,"")),r.items.push({type:"list_item",raw:l,task:!!p,checked:d,loose:!1,text:i,tokens:[]}),r.raw+=l}let i=r.items.at(-1);if(!i)return;i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){let t=r.items[e].tokens.filter(e=>"space"===e.type);r.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:l}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=er(t[1]),l=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
+
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===l.length){for(let e of l)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<n.length;e++)s.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:s.align[e]});for(let e of r)s.rows.push(er(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
26
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=es(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])n++;else if(")"===e[t]&&--n<0)return t;return n>0?-2:-1}(t[2],0);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],l=e[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ea(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ea(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrongLDelim.exec(e);if(!(!l||l[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...l[0]].length-1,r,s,a=n,i=0,o="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(l=o.exec(t));){if(!(r=l[1]||l[2]||l[3]||l[4]||l[5]||l[6]))continue;if(s=[...r].length,l[3]||l[4]){a+=s;continue}if((l[5]||l[6])&&n%3&&!((n+s)%3)){i+=s;continue}if((a-=s)>0)continue;s=Math.min(s,s+a+i);let t=[...l[0]][0].length,o=e.slice(0,n+l.index+t+s);if(Math.min(n,s)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let u=o.slice(2,-2);return{type:"strong",raw:o,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),l=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&l&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let l;do l=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(l!==t[0])e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},eo=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||n,this.options.tokenizer=this.options.tokenizer||new ei,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:a,block:Y.normal,inline:J.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=J.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=J.breaks:t.inline=J.gfm),this.tokenizer.rules=t}static get rules(){return{block:Y,inline:J}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(a.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(a.tabCharGlobal," ").replace(a.spaceLine,""));e;){let l;if(this.options.extensions?.block?.some(n=>!!(l=n.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let n=t.at(-1);1===l.raw.length&&void 0!==n?n.raw+=`
|
|
28
|
+
`:t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
29
|
+
`)?"":`
|
|
30
|
+
`)+l.raw,n.text+=`
|
|
31
|
+
`+l.text,this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if((l=this.tokenizer.fences(e))||(l=this.tokenizer.heading(e))||(l=this.tokenizer.hr(e))||(l=this.tokenizer.blockquote(e))||(l=this.tokenizer.list(e))||(l=this.tokenizer.html(e))){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
32
|
+
`)?"":`
|
|
33
|
+
`)+l.raw,n.text+=`
|
|
34
|
+
`+l.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},t.push(l));continue}if((l=this.tokenizer.table(e))||(l=this.tokenizer.lheading(e))){e=e.substring(l.raw.length),t.push(l);continue}let r=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),l;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(l=e.call({lexer:this},n))&&l>=0&&(t=Math.min(t,l))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(l=this.tokenizer.paragraph(r))){let s=t.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
35
|
+
`)?"":`
|
|
36
|
+
`)+l.raw,s.text+=`
|
|
37
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(l),n=r.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
38
|
+
`)?"":`
|
|
39
|
+
`)+l.raw,n.text+=`
|
|
40
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,l=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,r.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)n=r[2]?r[2].length:0,l=l.slice(0,r.index+n)+"["+"a".repeat(r[0].length-n-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=this.options.hooks?.emStrongMask?.call({lexer:this},l)??l;let s=!1,a="";for(;e;){let n;if(s||(a=""),s=!1,this.options.extensions?.inline?.some(l=>!!(n=l.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let l=t.at(-1);"text"===n.type&&l?.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,l,a))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),l;this.options.extensions.startInline.forEach(e=>{"number"==typeof(l=e.call({lexer:this},n))&&l>=0&&(t=Math.min(t,l))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0;let l=t.at(-1);l?.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},eu=class{options;parser;constructor(e){this.options=e||n}space(e){return""}code({text:e,lang:t,escaped:n}){let l=(t||"").match(a.notSpaceStart)?.[0],r=e.replace(a.endingNewline,"")+`
|
|
41
|
+
`;return l?'<pre><code class="language-'+en(l)+'">'+(n?r:en(r,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(n?r:en(r,!0))+`</code></pre>
|
|
43
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
44
|
+
${this.parser.parse(e)}</blockquote>
|
|
45
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
46
|
+
`}hr(e){return`<hr>
|
|
47
|
+
`}list(e){let t=e.ordered,n=e.start,l="";for(let t=0;t<e.items.length;t++){let n=e.items[t];l+=this.listitem(n)}let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+`>
|
|
48
|
+
`+l+"</"+r+`>
|
|
49
|
+
`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+en(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
50
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
51
|
+
`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let l="";for(let t=0;t<e.rows.length;t++){let r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);l+=this.tablerow({text:n})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
|
|
52
|
+
<thead>
|
|
53
|
+
`+t+`</thead>
|
|
54
|
+
`+l+`</table>
|
|
55
|
+
`}tablerow({text:e}){return`<tr>
|
|
56
|
+
${e}</tr>
|
|
57
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
58
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${en(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let l=this.parser.parseInline(n),r=el(e);if(null===r)return l;let s='<a href="'+(e=r)+'"';return t&&(s+=' title="'+en(t)+'"'),s+=">"+l+"</a>"}image({href:e,title:t,text:n,tokens:l}){l&&(n=this.parser.parseInline(l,this.parser.textRenderer));let r=el(e);if(null===r)return en(n);e=r;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${en(t)}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:en(e.text)}},ec=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},eh=class e{options;renderer;textRenderer;constructor(e){this.options=e||n,this.options.renderer=this.options.renderer||new eu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ec}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let l=0;l<e.length;l++){let r=e[l];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){n+=e||"";continue}}switch(r.type){case"space":n+=this.renderer.space(r);continue;case"hr":n+=this.renderer.hr(r);continue;case"heading":n+=this.renderer.heading(r);continue;case"code":n+=this.renderer.code(r);continue;case"table":n+=this.renderer.table(r);continue;case"blockquote":n+=this.renderer.blockquote(r);continue;case"list":n+=this.renderer.list(r);continue;case"html":n+=this.renderer.html(r);continue;case"def":n+=this.renderer.def(r);continue;case"paragraph":n+=this.renderer.paragraph(r);continue;case"text":{let s=r,a=this.renderer.text(s);for(;l+1<e.length&&"text"===e[l+1].type;)s=e[++l],a+=`
|
|
59
|
+
`+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):n+=a;continue}default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let l=0;l<e.length;l++){let r=e[l];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}switch(r.type){case"escape":case"text":n+=t.text(r);break;case"html":n+=t.html(r);break;case"link":n+=t.link(r);break;case"image":n+=t.image(r);break;case"strong":n+=t.strong(r);break;case"em":n+=t.em(r);break;case"codespan":n+=t.codespan(r);break;case"br":n+=t.br(r);break;case"del":n+=t.del(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ep=class{options;block;constructor(e){this.options=e||n}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?eo.lex:eo.lexInline}provideParser(){return this.block?eh.parse:eh.parseInline}},ed=new class{defaults=t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eh;Renderer=eu;TextRenderer=ec;Lexer=eo;Tokenizer=ei;Hooks=ep;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":for(let e of l.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of l.rows)for(let l of e)n=n.concat(this.walkTokens(l.tokens,t));break;case"list":n=n.concat(this.walkTokens(l.items,t));break;default:{let e=l;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(l=>{let r=e[l].flat(1/0);n=n.concat(this.walkTokens(r,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let l=e.renderer.apply(this,t);return!1===l&&(l=n.apply(this,t)),l}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new eu(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let l=e.renderer[n],r=t[n];t[n]=(...e)=>{let n=l.apply(t,e);return!1===n&&(n=r.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ei(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let l=e.tokenizer[n],r=t[n];t[n]=(...e)=>{let n=l.apply(t,e);return!1===n&&(n=r.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ep;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let l=e.hooks[n],r=t[n];ep.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ep.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await l.call(t,e);return r.call(t,n)})();let s=l.call(t,e);return r.call(t,s)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await l.apply(t,e);return!1===n&&(n=await r.apply(t,e)),n})();let n=l.apply(t,e);return!1===n&&(n=r.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,l=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(l.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eo.lex(e,t??this.defaults)}parser(e,t){return eh.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let l={...n},r={...this.defaults,...l},s=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===l.async)return s(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let n=r.hooks?await r.hooks.preprocess(t):t,l=await (r.hooks?await r.hooks.provideLexer():e?eo.lex:eo.lexInline)(n,r),s=r.hooks?await r.hooks.processAllTokens(l):l;r.walkTokens&&await Promise.all(this.walkTokens(s,r.walkTokens));let a=await (r.hooks?await r.hooks.provideParser():e?eh.parse:eh.parseInline)(s,r);return r.hooks?await r.hooks.postprocess(a):a})().catch(s);try{r.hooks&&(t=r.hooks.preprocess(t));let n=(r.hooks?r.hooks.provideLexer():e?eo.lex:eo.lexInline)(t,r);r.hooks&&(n=r.hooks.processAllTokens(n)),r.walkTokens&&this.walkTokens(n,r.walkTokens);let l=(r.hooks?r.hooks.provideParser():e?eh.parse:eh.parseInline)(n,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(e){return s(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+en(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function eg(e,t){return ed.parse(e,t)}eg.options=eg.setOptions=function(e){return ed.setOptions(e),eg.defaults=ed.defaults,n=eg.defaults,eg},eg.getDefaults=t,eg.defaults=n,eg.use=function(...e){return ed.use(...e),eg.defaults=ed.defaults,n=eg.defaults,eg},eg.walkTokens=function(e,t){return ed.walkTokens(e,t)},eg.parseInline=ed.parseInline,eg.Parser=eh,eg.parser=eh.parse,eg.Renderer=eu,eg.TextRenderer=ec,eg.Lexer=eo,eg.lexer=eo.lex,eg.Tokenizer=ei,eg.Hooks=ep,eg.parse=eg,eg.options,eg.setOptions,eg.use,eg.walkTokens,eg.parseInline,eh.parse,eo.lex,e.s(["Lexer",()=>eo,"marked",()=>eg])},61634,360285,475915,461033,e=>{"use strict";class t{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function n(e,n){let l={},r={};for(let t of e)Object.assign(l,t.property),Object.assign(r,t.normal);return new t(l,r,n)}function l(e){return e.toLowerCase()}t.prototype.normal={},t.prototype.property={},t.prototype.space=void 0,e.s(["normalize",()=>l],360285);class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0,e.s(["Info",()=>r],475915);let s=0,a=d(),i=d(),o=d(),u=d(),c=d(),h=d(),p=d();function d(){return 2**++s}e.s(["boolean",0,a,"booleanish",0,i,"commaOrSpaceSeparated",0,p,"commaSeparated",0,h,"number",0,u,"overloadedBoolean",0,o,"spaceSeparated",0,c],383954);var g=e.i(383954);let f=Object.keys(g);class k extends r{constructor(e,t,n,l){let r=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",l),"number"==typeof n)for(;++r<f.length;){const e=f[r];!function(e,t,n){n&&(e[t]=n)}(this,f[r],(n&g[e])===g[e])}}}function m(e){let n={},r={};for(let[t,s]of Object.entries(e.properties)){let a=new k(t,e.transform(e.attributes||{},t),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(a.mustUseProperty=!0),n[t]=a,r[l(t)]=t,r[l(a.attribute)]=t}return new t(n,r,e.space)}k.prototype.defined=!0,e.s(["DefinedInfo",()=>k],461033);let b=m({properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:u,ariaColIndex:u,ariaColSpan:u,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:i,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:c,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:u,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:u,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:c,ariaRowCount:u,ariaRowIndex:u,ariaRowSpan:u,ariaSelected:i,ariaSetSize:u,ariaSort:null,ariaValueMax:u,ariaValueMin:u,ariaValueNow:u,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function x(e,t){return t in e?e[t]:t}function y(e,t){return x(e,t.toLowerCase())}let w=m({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,blocking:c,capture:null,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:c,coords:u|h,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:o,draggable:i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:o,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:null,inert:a,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:a,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shadowRootClonable:a,shadowRootDelegatesFocus:a,shadowRootMode:null,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:u,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null},space:"html",transform:y}),v=m({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:p,accentHeight:u,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:u,amplitude:u,arabicForm:null,ascent:u,attributeName:null,attributeType:null,azimuth:u,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:u,by:null,calcMode:null,capHeight:u,className:c,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:u,diffuseConstant:u,direction:null,display:null,dur:null,divisor:u,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:u,enableBackground:null,end:null,event:null,exponent:u,externalResourcesRequired:null,fill:null,fillOpacity:u,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:h,g2:h,glyphName:h,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:u,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:u,horizOriginX:u,horizOriginY:u,id:null,ideographic:u,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:u,k:u,k1:u,k2:u,k3:u,k4:u,kernelMatrix:p,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:u,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:u,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:u,overlineThickness:u,paintOrder:null,panose1:null,path:null,pathLength:u,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:c,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:u,pointsAtY:u,pointsAtZ:u,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p,rev:p,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p,requiredFeatures:p,requiredFonts:p,requiredFormats:p,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:u,specularExponent:u,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:u,strikethroughThickness:u,string:null,stroke:null,strokeDashArray:p,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:u,strokeOpacity:u,strokeWidth:null,style:null,surfaceScale:u,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p,tabIndex:u,tableValues:null,target:null,targetX:u,targetY:u,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:u,underlineThickness:u,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:u,values:null,vAlphabetic:u,vMathematical:u,vectorEffect:null,vHanging:u,vIdeographic:u,version:null,vertAdvY:u,vertOriginX:u,vertOriginY:u,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:u,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:x}),S=m({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),P=m({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:y}),R=m({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),C=n([b,w,S,P,R],"html"),T=n([b,v,S,P,R],"svg");e.s(["html",0,C,"svg",0,T],61634)},816220,273638,722365,e=>{"use strict";function t(e){let t=[],n=String(e||""),l=n.indexOf(","),r=0,s=!1;for(;!s;){-1===l&&(l=n.length,s=!0);let e=n.slice(r,l).trim();(e||!s)&&t.push(e),r=l+1,l=n.indexOf(",",r)}return t}function n(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}e.s(["parse",()=>t,"stringify",()=>n],816220);var l=e.i(461033),r=e.i(475915),s=e.i(360285);let a=/[A-Z]/g,i=/-[a-z]/g,o=/^data[-\w.:]+$/i;function u(e,t){let n=(0,s.normalize)(t),u=t,p=r.Info;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&o.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(i,h);u="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!i.test(e)){let n=e.replace(a,c);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=l.DefinedInfo}return new p(u,t)}function c(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}function p(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function d(e){return e.join(" ").trim()}e.s(["find",()=>u],273638),e.s(["parse",()=>p,"stringify",()=>d],722365)},79694,e=>{"use strict";let t={}.hasOwnProperty;function n(e,n){let l=n||{};function r(n,...l){let s=r.invalid,a=r.handlers;if(n&&t.call(n,e)){let l=String(n[e]);s=t.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,n,...l)}return r.handlers=l.handlers||{},r.invalid=l.invalid,r.unknown=l.unknown,r}e.s(["zwitch",()=>n])},600577,e=>{"use strict";e.s(["htmlVoidElements",0,["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]])},470284,e=>{"use strict";function t(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let l=0,r=n.indexOf(t);for(;-1!==r;)l++,r=n.indexOf(t,r+t.length);return l}e.s(["ccount",()=>t])},158206,e=>{"use strict";let t=/[ \t\n\f\r]/g;function n(e){return"object"==typeof e?"text"===e.type&&l(e.value):l(e)}function l(e){return""===e.replace(t,"")}e.s(["whitespace",()=>n])},609639,e=>{e.v(t=>Promise.all(["static/chunks/20bff4eb9a0a6872.css"].map(t=>e.l(t))).then(()=>{}))},215515,e=>{e.v(t=>Promise.all(["static/chunks/2d4c0fd06ca34510.js","static/chunks/ca3512025a981c82.js","static/chunks/808ed0f189237446.js","static/chunks/0e1982b1a6cbd127.js","static/chunks/b5010f2ea9df9d00.js","static/chunks/af7b09aba1d477ff.js","static/chunks/cd91712ea04f43ba.js"].map(t=>e.l(t))).then(()=>t(810139)))},240135,e=>{e.v(t=>Promise.all(["static/chunks/7f49d639e9c96e9d.js","static/chunks/4a74659f85b4f3b3.js","static/chunks/14e3416156a14031.js","static/chunks/bd0827bf8b7b14a0.js"].map(t=>e.l(t))).then(()=>t(224840)))},668402,e=>{e.v(t=>Promise.all(["static/chunks/f9bb8411d37b06d7.js"].map(t=>e.l(t))).then(()=>t(6297)))},350825,e=>{e.v(t=>Promise.all(["static/chunks/5ec61d1dfcb815d7.js"].map(t=>e.l(t))).then(()=>t(163991)))},637078,e=>{e.v(t=>Promise.all(["static/chunks/0f0b3025f4e268b1.js"].map(t=>e.l(t))).then(()=>t(28785)))},802318,e=>{e.v(t=>Promise.all(["static/chunks/ca1eb1e2978389e4.js","static/chunks/593b85b9abea3ea6.js","static/chunks/0f0b3025f4e268b1.js"].map(t=>e.l(t))).then(()=>t(320586)))},129951,e=>{e.v(t=>Promise.all(["static/chunks/956107bc3ba52911.js"].map(t=>e.l(t))).then(()=>t(157405)))},756163,e=>{e.v(t=>Promise.all(["static/chunks/c5add23cde4a234a.js"].map(t=>e.l(t))).then(()=>t(967788)))},253540,e=>{e.v(t=>Promise.all(["static/chunks/3ded311c567c6e3b.js"].map(t=>e.l(t))).then(()=>t(747595)))},703741,e=>{e.v(t=>Promise.all(["static/chunks/3fd0801238b3b099.js"].map(t=>e.l(t))).then(()=>t(319902)))},920758,e=>{e.v(t=>Promise.all(["static/chunks/6c9c2b61c905a2de.js","static/chunks/643c359cf3f7364e.js","static/chunks/04f9a7932751cf2d.js","static/chunks/067d8978cf41b901.js","static/chunks/c648a36722afd12a.js"].map(t=>e.l(t))).then(()=>t(690565)))},488168,e=>{e.v(t=>Promise.all(["static/chunks/071b9575dbdf1dcb.js","static/chunks/c648a36722afd12a.js"].map(t=>e.l(t))).then(()=>t(124029)))},832431,e=>{e.v(t=>Promise.all(["static/chunks/9097640e1931c0de.js"].map(t=>e.l(t))).then(()=>t(947193)))},857908,e=>{e.v(t=>Promise.all(["static/chunks/c648a36722afd12a.js"].map(t=>e.l(t))).then(()=>t(793087)))},699038,e=>{e.v(t=>Promise.all(["static/chunks/221a27e65aa5fbfd.js"].map(t=>e.l(t))).then(()=>t(279330)))},475799,e=>{e.v(t=>Promise.all(["static/chunks/643c359cf3f7364e.js"].map(t=>e.l(t))).then(()=>t(52072)))},476532,e=>{e.v(t=>Promise.all(["static/chunks/6754600af0c6b3a8.js"].map(t=>e.l(t))).then(()=>t(655342)))},930588,e=>{e.v(t=>Promise.all(["static/chunks/8723d7000b263475.js","static/chunks/0f0b3025f4e268b1.js"].map(t=>e.l(t))).then(()=>t(660767)))},809849,e=>{e.v(t=>Promise.all(["static/chunks/7f9737d7b46ea2bf.js"].map(t=>e.l(t))).then(()=>t(30019)))},198794,e=>{e.v(t=>Promise.all(["static/chunks/c0aeb40fcca7d006.js"].map(t=>e.l(t))).then(()=>t(610194)))},186622,e=>{e.v(t=>Promise.all(["static/chunks/96acf903dff8ecf7.js"].map(t=>e.l(t))).then(()=>t(227230)))},931135,e=>{e.v(t=>Promise.all(["static/chunks/66714687cfd91953.js","static/chunks/7d6087c3fabf9ded.js","static/chunks/071b9575dbdf1dcb.js","static/chunks/c648a36722afd12a.js"].map(t=>e.l(t))).then(()=>t(683733)))},435385,e=>{e.v(t=>Promise.all(["static/chunks/e8f662ba8bc76802.js"].map(t=>e.l(t))).then(()=>t(973057)))},995633,e=>{e.v(t=>Promise.all(["static/chunks/f6f811ccfe79e963.js"].map(t=>e.l(t))).then(()=>t(232307)))},62790,e=>{e.v(t=>Promise.all(["static/chunks/14a4792b0b8ae676.js","static/chunks/0f0b3025f4e268b1.js","static/chunks/071b9575dbdf1dcb.js","static/chunks/04f9a7932751cf2d.js","static/chunks/593b85b9abea3ea6.js","static/chunks/643c359cf3f7364e.js","static/chunks/067d8978cf41b901.js","static/chunks/3b7cc610bc978982.js","static/chunks/c648a36722afd12a.js"].map(t=>e.l(t))).then(()=>t(337848)))},733588,e=>{e.v(t=>Promise.all(["static/chunks/73c60ee9f233051d.js"].map(t=>e.l(t))).then(()=>t(938946)))},710477,e=>{e.v(t=>Promise.all(["static/chunks/21b32f530e0df2c5.js"].map(t=>e.l(t))).then(()=>t(339937)))},742937,e=>{e.v(t=>Promise.all(["static/chunks/1b758c732032b236.js"].map(t=>e.l(t))).then(()=>t(196991)))},546234,e=>{e.v(t=>Promise.all(["static/chunks/90367a2ee1e720b2.js"].map(t=>e.l(t))).then(()=>t(86102)))},645265,e=>{e.v(t=>Promise.all(["static/chunks/6afa71c8b3358dd5.js","static/chunks/c648a36722afd12a.js","static/chunks/04f9a7932751cf2d.js"].map(t=>e.l(t))).then(()=>t(755550)))},993701,e=>{e.v(t=>Promise.all(["static/chunks/7d533d3f2ab624f2.js"].map(t=>e.l(t))).then(()=>t(961660)))},880929,e=>{e.v(t=>Promise.all(["static/chunks/0da3d15845f17208.js"].map(t=>e.l(t))).then(()=>t(9372)))},427335,e=>{e.v(t=>Promise.all(["static/chunks/067d8978cf41b901.js"].map(t=>e.l(t))).then(()=>t(211914)))},59512,e=>{e.v(t=>Promise.all(["static/chunks/04f9a7932751cf2d.js"].map(t=>e.l(t))).then(()=>t(319211)))},945589,e=>{e.v(t=>Promise.all(["static/chunks/0a3f62f00d7bec78.js","static/chunks/071b9575dbdf1dcb.js","static/chunks/c648a36722afd12a.js","static/chunks/04f9a7932751cf2d.js"].map(t=>e.l(t))).then(()=>t(563916)))},298220,e=>{e.v(t=>Promise.all(["static/chunks/cbaa87ba8930fb75.js"].map(t=>e.l(t))).then(()=>t(399299)))},405971,e=>{e.v(t=>Promise.all(["static/chunks/e33e40c2e7ab7629.js"].map(t=>e.l(t))).then(()=>t(875328)))},681653,e=>{e.v(t=>Promise.all(["static/chunks/8ff7a1947b8d114b.js"].map(t=>e.l(t))).then(()=>t(316245)))},733022,e=>{e.v(t=>Promise.all(["static/chunks/cc9a28409d6e1514.js","static/chunks/bd0827bf8b7b14a0.js"].map(t=>e.l(t))).then(()=>t(111020)))},158048,e=>{e.v(t=>Promise.all(["static/chunks/13ef478bf60b6b49.js","static/chunks/14e3416156a14031.js"].map(t=>e.l(t))).then(()=>t(281455)))},905359,e=>{e.v(t=>Promise.all(["static/chunks/502039e483cc5e48.js"].map(t=>e.l(t))).then(()=>t(244696)))},617706,e=>{e.v(t=>Promise.all(["static/chunks/ed6caa113f5769a5.js"].map(t=>e.l(t))).then(()=>t(255256)))}]);
|