(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[778],{48738:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,s=l(e),o=s[0],a=s[1],h=new i((o+a)*3/4-a),c=0,u=a>0?o-4:o;for(n=0;n<u;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],h[c++]=t>>16&255,h[c++]=t>>8&255,h[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,h[c++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,h[c++]=t>>8&255,h[c++]=255&t),h},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=0,a=r-i;o<a;o+=16383)s.push(function(e,t,r){for(var i,s=[],o=t;o<r;o+=3)s.push(n[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&s.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},9109:function(e,t,n){"use strict";let r=n(48738),i=n(6868),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|m(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){let t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);let i=function(e){var t;if(a.isBuffer(e)){let t=0|p(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return h(e),o(e<0?0:0|p(e))}function u(e){let t=e.length<0?0:0|p(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){let r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=G[e[r]];return i}(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":var s,o;return s=t,o=n,0===s&&o===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let r=e.slice(t,n),i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){var s;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(s=n=+n)!=s&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let s,o=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,n/=2}function h(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(h(e,s)===h(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===l)return r*o}else -1!==r&&(s-=s-r),r=-1}else for(n+l>a&&(n=a-l),s=n;s>=0;s--){let n=!0;for(let r=0;r<l;r++)if(h(e,s+r)!==h(t,r)){n=!1;break}if(n)return s}return -1}function _(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:(192&(n=e[i+1]))==128&&(l=(31&t)<<6|63&n)>127&&(s=l);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(l=(15&t)<<12|(63&n)<<6|63&r)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],(192&n)==128&&(192&r)==128&&(192&a)==128&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function w(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function S(e,t,n,r,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i){L(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function v(e,t,n,r,i){L(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function C(e,t,n,r,i,s){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function N(e,t,n,r,s){return t=+t,n>>>=0,s||C(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function A(e,t,n,r,s){return t=+t,n>>>=0,s||C(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=a,t.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(h(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(M(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(M(t,Uint8Array))i+t.length>r.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(a.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},a.byteLength=m,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):f.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let s=i-r,o=n-t,l=Math.min(s,o),h=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<l;++e)if(h[e]!==c[e]){s=h[e],o=c[e];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){var i,s,o,a,l,h,c,u;if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let p=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let s=e.length-n;r?(r=Number(r))>s&&(r=s):r=s;let o=t.length;for(r>o/2&&(r=o/2),i=0;i<r;++i){let r=parseInt(t.substr(2*i,2),16);if(r!=r)break;e[n+i]=r}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,s=n,$(B(e,this.length-i),this,i,s);case"ascii":case"latin1":case"binary":return o=t,a=n,$(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,o,a);case"base64":return l=t,h=n,$(O(e),this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,u=n,$(function(e,t){let n,r;let i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,u);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=U(function(e){R(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(r)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=U(function(e){R(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&I(e,this.length-8);let r=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=U(function(e){R(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&I(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),a.prototype.readBigInt64BE=U(function(e){R(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&I(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+n)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;S(this,e,t,n,r,0)}let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;S(this,e,t,n,r,0)}let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=U(function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=U(function(e,t=0){return v(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);S(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);S(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=U(function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=U(function(e,t=0){return v(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return A(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return A(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},a.prototype.fill=function(e,t,n,r){let i;if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){let t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let s=a.isBuffer(e)?e:a.from(e,r),o=s.length;if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};let T={};function E(e,t,n){T[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function P(e){let t="",n=e.length,r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function L(e,t,n,r,i,s){if(e>n||e<t){let r;let i="bigint"==typeof t?"n":"";throw r=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(s+1)*8}${i}`:`>= -(2${i} ** ${(s+1)*8-1}${i}) and < 2 ** ${(s+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new T.ERR_OUT_OF_RANGE("value",r,e)}R(i,"offset"),(void 0===r[i]||void 0===r[i+s])&&I(i,r.length-(s+1))}function R(e,t){if("number"!=typeof e)throw new T.ERR_INVALID_ARG_TYPE(t,"number",e)}function I(e,t,n){if(Math.floor(e)!==e)throw R(e,n),new T.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=P(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=P(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let x=/[^+/0-9A-Za-z-_]/g;function B(e,t){let n;t=t||1/0;let r=e.length,i=null,s=[];for(let o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return s}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let G=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function U(e){return"undefined"==typeof BigInt?j:e}function j(){throw Error("BigInt not supported")}},6868:function(e,t){t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,l=(1<<a)-1,h=l>>1,c=-7,u=n?i-1:0,d=n?-1:1,p=e[t+u];for(u+=d,s=p&(1<<-c)-1,p>>=-c,c+=a;c>0;s=256*s+e[t+u],u+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+e[t+u],u+=d,c-=8);if(0===s)s=1-h;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),s-=h}return(p?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,l,h=8*s-i-1,c=(1<<h)-1,u=c>>1,d=23===i?5960464477539062e-23:0,p=r?0:s-1,m=r?1:-1,f=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+u>=1?t+=d/l:t+=d*Math.pow(2,1-u),t*l>=2&&(o++,l/=2),o+u>=c?(a=0,o=c):o+u>=1?(a=(t*l-1)*Math.pow(2,i),o+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&a,p+=m,a/=256,i-=8);for(o=o<<i|a,h+=i;h>0;e[n+p]=255&o,p+=m,o/=256,h-=8);e[n+p-m]|=128*f}},85169:function(e,t,n){"use strict";n.d(t,{F:function(){return h},f:function(){return c}});var r=n(2265);let i=["light","dark"],s="(prefers-color-scheme: dark)",o="undefined"==typeof window,a=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},h=()=>{var e;return null!==(e=(0,r.useContext)(a))&&void 0!==e?e:l},c=e=>(0,r.useContext)(a)?r.createElement(r.Fragment,null,e.children):r.createElement(d,e),u=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:h=u,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:y,children:b,nonce:_})=>{let[w,S]=(0,r.useState)(()=>m(l,c)),[k,v]=(0,r.useState)(()=>m(l)),C=y?Object.values(y):h,N=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let s=y?y[r]:r,a=t?f():null,l=document.documentElement;if("class"===d?(l.classList.remove(...C),s&&l.classList.add(s)):s?l.setAttribute(d,s):l.removeAttribute(d),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==a||a()},[]),A=(0,r.useCallback)(e=>{S(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),T=(0,r.useCallback)(t=>{v(g(t)),"system"===w&&n&&!e&&N("system")},[w,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(s);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&A(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[A]),(0,r.useEffect)(()=>{N(null!=e?e:w)},[e,w]);let E=(0,r.useMemo)(()=>({theme:w,setTheme:A,forcedTheme:e,resolvedTheme:"system"===w?k:w,themes:n?[...h,"system"]:h,systemTheme:n?k:void 0}),[w,A,e,k,n,h]);return r.createElement(a.Provider,{value:E},r.createElement(p,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:h,defaultTheme:c,attribute:d,value:y,children:b,attrs:C,nonce:_}),b)},p=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:a,defaultTheme:l,value:h,attrs:c,nonce:u})=>{let d="system"===l,p="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=a?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,r=!0)=>{let s=h?h[e]:e,o=t?e+"|| ''":`'${s}'`,l="";return a&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||s?`c.add(${o})`:"null":s&&(l+=`d[s](n,${o})`),l},g=e?`!function(){${p}${f(e)}}()`:o?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${s}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${h?`var x=${JSON.stringify(h)};`:""}${f(h?"x[e]":"e",!0)}}${d?"":"else{"+f(l,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${h?`var x=${JSON.stringify(h)};`:""}${f(h?"x[e]":"e",!0)}}else{${f(l,!1,!1)};}${m}}catch(t){}}();`;return r.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:g}})},()=>!0),m=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},f=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light")},20357:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(88081)},88081:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],h=!1,c=-1;function u(){h&&r&&(h=!1,r.length?l=r.concat(l):c=-1,l.length&&d())}function d(){if(!h){var e=a(u);h=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,h=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||h||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}},o=!0;try{t[e](s,s.exports,r),o=!1}finally{o&&delete n[e]}return s.exports}r.ab="//";var i=r(229);e.exports=i}()},10912:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(55592);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},61481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return s}});let r=n(57437),i=n(58512);function s(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),s=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));s.push(...t)}}return 0===s.length?null:(0,r.jsx)(r.Fragment,{children:s.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},74075:function(e,t,n){"use strict";n.d(t,{Bz:function(){return eg},E9:function(){return k},Hd:function(){return y},Q2:function(){return p},_X:function(){return ey}});var r,i,s=n(20357);function o(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,l=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,(e,r,i,s)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(s){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function h(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 i,s;let n=(i=e[r])<(s=t[r])?-1:i>s?1:0;if(0!==n)return n}return 0}return n-r}function c(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,this.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,this._cachedMatchRoot=new d(e=>this._root.match(e))}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,i=t.length;e<i;e++){let i,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(s.scope)?s.scope:[""];let o=-1;if("string"==typeof s.settings.fontStyle){o=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let a=null;"string"==typeof s.settings.foreground&&c(s.settings.foreground)&&(a=s.settings.foreground);let l=null;"string"==typeof s.settings.background&&c(s.settings.background)&&(l=s.settings.background);for(let t=0,s=i.length;t<s;t++){let s=i[t].trim().split(" "),h=s[s.length-1],c=null;s.length>1&&(c=s.slice(0,s.length-1)).reverse(),n[r++]=new g(h,c,e,o,a,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==i||0!==(i=h(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#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&&(i=t.background)}let s=new b(t),o=new f(n,s.getId(r),s.getId(i)),a=new S(new w(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];a.insert(0,n.scope,n.parentScopes,n.fontStyle,s.getId(n.foreground),s.getId(n.background))}return new p(s,o,a)}(e,t)}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 i=0;i<t.length;i++){var n,r;let s=t[i],o=!1;if(">"===s){if(i===t.length-1)return!1;s=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=s)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new f(n.fontStyle,n.foreground,n.background):null}},m=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}},f=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},g=class{constructor(e,t,n,r,i,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=s}},y=((r=y||{})[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),b=class{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)}},_=Object.freeze([]),w=class e{constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||_,this.fontStyle=n,this.foreground=r,this.background=i}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}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 i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;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,i,s,o){let a,l,h;if(""===n){this._doInsertHere(t,r,i,s,o);return}let c=n.indexOf(".");-1===c?(a=n,l=""):(a=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(a)?h=this._children[a]:(h=new e(this._mainRule.clone(),w.cloneArr(this._rulesWithParentScopes)),this._children[a]=h),h.insert(t+1,l,r,i,s,o)}_doInsertHere(e,t,n,r,i){if(null===t){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let o=this._rulesWithParentScopes[s];if(0===h(o.parentScopes,t)){o.acceptOverwrite(e,n,r,i);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new w(e,t,n,r,i))}},k=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),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(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,s,o,a){let l=e.getLanguageId(t),h=e.getTokenType(t),c=e.containsBalancedBrackets(t)?1:0,u=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(h=r),null!==i&&(c=i?1:0),-1!==s&&(u=s),0!==o&&(d=o),0!==a&&(p=a),(l<<0|h<<8|c<<10|u<<11|d<<15|p<<24)>>>0}};function v(e,t){let n,r;let i=[],s=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),o=s.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=s.next()}let t=l();if(i.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return i;function a(){if("-"===o){o=s.next();let e=a();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=l();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=l()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(C(o)){let e=[];do e.push(o),o=s.next();while(C(o));return n=>t(e,n)}return null}function l(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}}function C(e){return!!e&&!!e.match(/[\w\.:]+/)}var N=((i=N||{})[i.None=0]="None",i[i.NotBeginString=1]="NotBeginString",i[i.NotEndString=2]="NotEndString",i[i.NotBeginPosition=4]="NotBeginPosition",i[i.DebugCall=8]="DebugCall",i);function A(e){"function"==typeof e.dispose&&e.dispose()}var T=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},E=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},P=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},L=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)]}processQueue(){let e=this.Q;this.Q=[];let t=new P;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let s=n.lookup(t);e instanceof T?I({baseGrammar:s,selfGrammar:i},r):R(e.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)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 R(e,t,n){t.repository&&t.repository[e]&&x([t.repository[e]],t,n)}function I(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?o({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&x(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let s=U(i);switch(s.kind){case 0:I({...t,selfGrammar:t.baseGrammar},n);break;case 1:I(t,n);break;case 2:R(s.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let r={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===s.kind?R(s.ruleName,r,n):I(r,n)}else 4===s.kind?n.add(new E(s.scopeName,s.ruleName)):n.add(new T(s.scopeName))}}}var B=class{constructor(){this.kind=0}},O=class{constructor(){this.kind=1}},$=class{constructor(e){this.ruleName=e,this.kind=2}},M=class{constructor(e){this.scopeName=e,this.kind=3}},G=class{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}};function U(e){if("$base"===e)return new B;if("$self"===e)return new O;let t=e.indexOf("#");return -1===t?new M(e):0===t?new $(e.substring(1)):new G(e.substring(0,t),e.substring(t+1))}var j=/\\(\d+)/,D=/\\(\d+)/g;Symbol("RuleId");var F=class{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}},W=class extends F{constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},q=class extends F{constructor(e,t,n,r,i){super(e,t,n,null),this._match=new J(r,this.id),this.captures=i,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 Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},H=class extends F{constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.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 Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},z=class extends F{constructor(e,t,n,r,i,s,o,a,l,h){super(e,t,n,r),this._begin=new J(i,this.id),this.beginCaptures=s,this._end=new J(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.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 Y,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}},V=class extends F{constructor(e,t,n,r,i,s,o,a,l){super(e,t,n,r),this._begin=new J(i,this.id),this.beginCaptures=s,this.whileCaptures=a,this._while=new J(o,-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 Y,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 Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Q=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new W(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new q(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=o({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new H(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new V(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 i=[];if(t){let s=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>s&&(s=t)}for(let e=0;e<=s;e++)i[e]=null;for(let s in t){if("$vscodeTextmateLocation"===s)continue;let o=parseInt(s,10),a=0;t[s].patterns&&(a=e.getCompiledRuleId(t[s],n,r)),i[o]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,a)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let s=0,o=t.length;s<o;s++){let o=t[s],a=-1;if(o.include){let t=U(o.include);switch(t.kind){case 0:case 1:a=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(a=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let s=t.scopeName,l=4===t.kind?t.ruleName:null,h=n.getExternalGrammar(s,r);if(h){if(l){let t=h.repository[l];t&&(a=e.getCompiledRuleId(t,n,h.repository))}else a=e.getCompiledRuleId(h.repository.$self,n,h.repository)}}}else a=e.getCompiledRuleId(o,n,r);if(-1!==a){let e=n.getRule(a),t=!1;if((e instanceof H||e instanceof z||e instanceof V)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},J=class e{constructor(e,t){if(e){let t=e.length,n=0,r=[],i=!1;for(let s=0;s<t;s++)if("\\"===e.charAt(s)&&s+1<t){let t=e.charAt(s+1);"z"===t?(r.push(e.substring(n,s)),r.push("$(?!\\n)(?<!\\n)"),n=s+2):("A"===t||"G"===t)&&(i=!0),s++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=j.test(this.source)}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){let n=t.map(t=>e.substring(t.start,t.end));return D.lastIndex=0,this.source.replace(D,(e,t)=>u(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r,i=[],s=[],o=[],a=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,s[e]=n,o[e]=n,a[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="￿",s[e+1]="￿",o[e+1]="A",a[e+1]="A"):"G"===r?(i[e+1]="￿",s[e+1]="G",o[e+1]="￿",a[e+1]="G"):(i[e+1]=r,s[e+1]=r,o[e+1]=r,a[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:s.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},Y=class{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 X(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new X(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},X=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){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}},K=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Z=class e{constructor(e,t){this._getBasicScopeAttributes=new d(e=>new K(this._scopeToLanguage(e),this._toStandardTokenType(e))),this._defaultAttributes=new K(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)}_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!")}};Z._NULL_SCOPE_METADATA=new K(0,0),Z.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var ee=class{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let 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!==s&&s.env.VSCODE_TEXTMATE_DEBUG;var et=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function en(e,t,n,r,i,s,o,a){let l=t.content.length,h=!1,c=-1;if(o){let o=function(e,t,n,r,i,s){let o=i.beginRuleCapturedEOL?0:-1,a=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof V&&a.push({rule:n,stack:t})}for(let d=a.pop();d;d=a.pop()){var l,h,c,u;let{ruleScanner:a,findOptions:p}=(l=d.rule,h=d.stack.endRule,c=n,u=r===o,{ruleScanner:l.compileWhileAG(e,h,c,u),findOptions:0}),m=a.findNextMatchSync(t,r,p);if(m){if(-2!==m.ruleId){i=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(d.stack,m.captureIndices[0].start),ei(e,t,n,d.stack,s,d.rule.whileCaptures,m.captureIndices),s.produce(d.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,s);i=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let u=Date.now();for(;!h;){if(0!==a&&Date.now()-u>a)return new et(i,!0);!function(){let o=function(e,t,n,r,i,s){let o=function(e,t,n,r,i,s){let{ruleScanner:o,findOptions:a}=er(i.getRule(e),e,i.endRule,n,r===s),l=o.findNextMatchSync(t,r,a);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,s),a=e.getInjections();if(0===a.length)return o;let l=function(e,t,n,r,i,s,o){let a,l=Number.MAX_VALUE,h=null,c=0,u=s.contentNameScopesList.getScopeNames();for(let s=0,d=e.length;s<d;s++){let d=e[s];if(!d.matcher(u))continue;let{ruleScanner:p,findOptions:m}=er(t.getRule(d.ruleId),t,null,r,i===o),f=p.findNextMatchSync(n,i,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,h=f.captureIndices,a=f.ruleId,c=d.priority,l===i))break}return h?{priorityMatch:-1===c,captureIndices:h,matchedRuleId:a}:null}(a,e,t,n,r,i,s);if(!l)return o;if(!o)return l;let h=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<h||l.priorityMatch&&c===h?l:o}(e,t,n,r,i,c);if(!o){s.produce(i,l),h=!0;return}let a=o.captureIndices,u=o.matchedRuleId,d=!!a&&a.length>0&&a[0].end>r;if(-1===u){let o=i.getRule(e);s.produce(i,a[0].start),i=i.withContentNameScopesList(i.nameScopesList),ei(e,t,n,i,s,o.endCaptures,a),s.produce(i,a[0].end);let u=i;if(i=i.parent,c=u.getAnchorPos(),!d&&u.getEnterPos()===r){i=u,s.produce(i,l),h=!0;return}}else{let o=e.getRule(u);s.produce(i,a[0].start);let p=i,m=o.getName(t.content,a),f=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(u,r,c,a[0].end===l,null,f,f),o instanceof z){ei(e,t,n,i,s,o.beginCaptures,a),s.produce(i,a[0].end),c=a[0].end;let r=o.getContentName(t.content,a),u=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(u),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,a))),!d&&p.hasSameRuleAs(i)){i=i.pop(),s.produce(i,l),h=!0;return}}else if(o instanceof V){ei(e,t,n,i,s,o.beginCaptures,a),s.produce(i,a[0].end),c=a[0].end;let r=o.getContentName(t.content,a),u=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(u),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,a))),!d&&p.hasSameRuleAs(i)){i=i.pop(),s.produce(i,l),h=!0;return}}else if(ei(e,t,n,i,s,o.captures,a),s.produce(i,a[0].end),i=i.pop(),!d){i=i.safePop(),s.produce(i,l),h=!0;return}}a[0].end>r&&(r=a[0].end,n=!1)}()}return new et(i,!1)}function er(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ei(e,t,n,r,i,s,o){if(0===s.length)return;let a=t.content,l=Math.min(s.length,o.length),h=[],c=o[0].end;for(let t=0;t<l;t++){let l=s[t];if(null===l)continue;let u=o[t];if(0===u.length)continue;if(u.start>c)break;for(;h.length>0&&h[h.length-1].endPos<=u.start;)i.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?i.produceFromScopes(h[h.length-1].scopes,u.start):i.produce(r,u.start),l.retokenizeCapturedWithRuleId){let t=l.getName(a,o),s=r.contentNameScopesList.pushAttributed(t,e),h=l.getContentName(a,o),c=s.pushAttributed(h,e),d=r.push(l.retokenizeCapturedWithRuleId,u.start,-1,!1,null,s,c),p=e.createOnigString(a.substring(0,u.end));en(e,p,n&&0===u.start,u.start,d,i,!1,0),A(p);continue}let d=l.getName(a,o);if(null!==d){let t=(h.length>0?h[h.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);h.push(new es(t,u.end))}}for(;h.length>0;)i.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var es=class{constructor(e,t){this.scopes=e,this.endPos=t}};function eo(e,t,n,r,i){let s=v(t,ea),o=Q.getCompiledRuleId(n,r,i.repository);for(let n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function ea(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,i,s,o,a){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=a,this._basicScopeAttributesProvider=new Z(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=eh(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of v(e,ea))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}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)eo(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eo(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]=eh(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 i;if(-1===this._rootId&&(this._rootId=Q.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ed.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),s=k.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?ec.createRootAndLookUpScopeName(o,s,this):ec.createRoot("unknown",s),t=new ed(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let s=this.createOnigString(e),o=s.content.length,a=new em(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=en(this,s,i,0,t,a,!0,r);return A(s),{lineLength:o,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eh(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(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 ec=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=m.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new m(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),s=new m(null,t),o=r.themeProvider.themeMatch(s),a=e.mergeAttributes(n,i,o);return new e(null,s,a)}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,i=0,s=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,s=n.backgroundId),k.set(e,t.languageId,t.tokenType,null,r,i,s)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),s=t.scopePath.push(n),o=r.themeProvider.themeMatch(s),a=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,s,a)}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,i,s,o,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=a,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ec.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,i,s,o,a){return new e(this,t,n,r,i,s,o,a)}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=ec.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ec.fromExtension(r,n.contentNameScopesList))}};eu.NULL=new eu(null,0,0,0,!1,null,null,null);var ed=eu,ep=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):v(e,ea).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>v(e,ea).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}},em=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}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=k.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=k.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}},ef=class{constructor(e,t){this._onigLib=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}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,i){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,new el(e,s,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},eg=class{constructor(e){this._options=e,this._syncRegistry=new ef(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 ep(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let s=new L(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(e=>this._loadSingleGrammar(e.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_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,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ey=ed.NULL},54087:function(e,t,n){"use strict";function r(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{P:function(){return r}})},62449:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&s(e.value):s(e)}function s(e){return""===e.replace(r,"")}},1523:function(e,t,n){"use strict";let r,i,s,o,a,l;n.d(t,{e$:function(){return e7}});let h=[{id:"abap",name:"ABAP",import:()=>n.e(3075).then(n.bind(n,73075))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(8346).then(n.bind(n,8346))},{id:"ada",name:"Ada",import:()=>n.e(6607).then(n.bind(n,76607))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(4242)]).then(n.bind(n,74242))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(8584),n.e(5604),n.e(4738),n.e(5355),n.e(7119),n.e(924)]).then(n.bind(n,21805))},{id:"apache",name:"Apache Conf",import:()=>n.e(5612).then(n.bind(n,35612))},{id:"apex",name:"Apex",import:()=>n.e(4001).then(n.bind(n,34001))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(4222),n.e(8619)]).then(n.bind(n,78619))},{id:"applescript",name:"AppleScript",import:()=>n.e(7410).then(n.bind(n,67410))},{id:"ara",name:"Ara",import:()=>n.e(9900).then(n.bind(n,39900))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.all([n.e(8584),n.e(96),n.e(414),n.e(1197),n.e(75),n.e(7185),n.e(5519),n.e(6644),n.e(3290),n.e(5512),n.e(24),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(7119),n.e(6043),n.e(5845),n.e(9063),n.e(4901),n.e(9139),n.e(2843),n.e(8248),n.e(4187),n.e(8986),n.e(8030),n.e(3160),n.e(9716),n.e(6320),n.e(9243),n.e(5370)]).then(n.bind(n,7448))},{id:"asm",name:"Assembly",import:()=>n.e(2428).then(n.bind(n,22428))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(8584),n.e(414),n.e(1197),n.e(6673),n.e(4738),n.e(7119),n.e(5995),n.e(7168)]).then(n.bind(n,37168))},{id:"awk",name:"AWK",import:()=>n.e(3360).then(n.bind(n,23360))},{id:"ballerina",name:"Ballerina",import:()=>n.e(3181).then(n.bind(n,13181))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3197).then(n.bind(n,3197))},{id:"beancount",name:"Beancount",import:()=>n.e(1629).then(n.bind(n,31629))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(8252).then(n.bind(n,58252))},{id:"bibtex",name:"BibTeX",import:()=>n.e(559).then(n.bind(n,559))},{id:"bicep",name:"Bicep",import:()=>n.e(4022).then(n.bind(n,64022))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(8584),n.e(8601),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(3349)]).then(n.bind(n,21543))},{id:"c",name:"C",import:()=>n.e(96).then(n.bind(n,52192))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(2716).then(n.bind(n,32716))},{id:"clarity",name:"Clarity",import:()=>n.e(192).then(n.bind(n,70192))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(8060).then(n.bind(n,58060))},{id:"cmake",name:"CMake",import:()=>n.e(7825).then(n.bind(n,77825))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(4222),n.e(3731)]).then(n.bind(n,63731))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(6484).then(n.bind(n,96484))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(5236).then(n.bind(n,35236))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(8584),n.e(4901)]).then(n.bind(n,64901))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(6350).then(n.bind(n,66350))},{id:"coq",name:"Coq",import:()=>n.e(3862).then(n.bind(n,53862))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(96),n.e(75),n.e(7185),n.e(1986),n.e(8248)]).then(n.bind(n,41688))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(8584),n.e(96),n.e(4738),n.e(5355),n.e(1986),n.e(2873),n.e(9170)]).then(n.bind(n,29170))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(6644).then(n.bind(n,74151))},{id:"css",name:"CSS",import:()=>n.e(4738).then(n.bind(n,84738))},{id:"csv",name:"CSV",import:()=>n.e(8641).then(n.bind(n,78641))},{id:"cue",name:"CUE",import:()=>n.e(1686).then(n.bind(n,31686))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(4624).then(n.bind(n,84624))},{id:"d",name:"D",import:()=>n.e(8414).then(n.bind(n,18414))},{id:"dart",name:"Dart",import:()=>n.e(200).then(n.bind(n,200))},{id:"dax",name:"DAX",import:()=>n.e(8870).then(n.bind(n,48870))},{id:"desktop",name:"Desktop",import:()=>n.e(229).then(n.bind(n,80229))},{id:"diff",name:"Diff",import:()=>n.e(864).then(n.bind(n,20864))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(5065).then(n.bind(n,45065))},{id:"dotenv",name:"dotEnv",import:()=>n.e(9286).then(n.bind(n,9286))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(9949).then(n.bind(n,19949))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(8584),n.e(414),n.e(4738),n.e(5355),n.e(2057)]).then(n.bind(n,82057))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(474)]).then(n.bind(n,70474))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(96),n.e(403)]).then(n.bind(n,70403))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(7637).then(n.bind(n,46397))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(8584),n.e(96),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(6043),n.e(9063),n.e(5991)]).then(n.bind(n,55991))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>n.e(6320).then(n.bind(n,36320))},{id:"fennel",name:"Fennel",import:()=>n.e(1796).then(n.bind(n,81796))},{id:"fish",name:"Fish",import:()=>n.e(962).then(n.bind(n,40962))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(8877).then(n.bind(n,48877))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(5105),n.e(3522)]).then(n.bind(n,73522))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(5105).then(n.bind(n,27781))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(7498),n.e(9257)]).then(n.bind(n,79257))},{id:"gdresource",name:"GDResource",import:()=>Promise.all([n.e(4403),n.e(8980)]).then(n.bind(n,78980))},{id:"gdscript",name:"GDScript",import:()=>n.e(4403).then(n.bind(n,84403))},{id:"gdshader",name:"GDShader",import:()=>n.e(3864).then(n.bind(n,83864))},{id:"genie",name:"Genie",import:()=>n.e(8093).then(n.bind(n,18093))},{id:"gherkin",name:"Gherkin",import:()=>n.e(9731).then(n.bind(n,29731))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(5990).then(n.bind(n,15990))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(2873),n.e(6814)]).then(n.bind(n,46814))},{id:"gleam",name:"Gleam",import:()=>n.e(3189).then(n.bind(n,63189))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(8584),n.e(414),n.e(4738),n.e(5355),n.e(9163)]).then(n.bind(n,79163))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(8584),n.e(414),n.e(4738),n.e(5355),n.e(3068)]).then(n.bind(n,53068))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(96),n.e(4657)]).then(n.bind(n,64657))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(7862).then(n.bind(n,87862))},{id:"go",name:"Go",import:()=>n.e(4187).then(n.bind(n,33606))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(8584),n.e(414),n.e(5519),n.e(6673),n.e(7217)]).then(n.bind(n,17217))},{id:"groovy",name:"Groovy",import:()=>n.e(6770).then(n.bind(n,16770))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(1986),n.e(6420)]).then(n.bind(n,26420))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(8584),n.e(96),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(6043),n.e(7498),n.e(9063),n.e(4901),n.e(1454)]).then(n.bind(n,51454))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(5845),n.e(4121)]).then(n.bind(n,54121))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(8986).then(n.bind(n,28986))},{id:"haxe",name:"Haxe",import:()=>n.e(9714).then(n.bind(n,59714))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(832).then(n.bind(n,30832))},{id:"hjson",name:"Hjson",import:()=>n.e(908).then(n.bind(n,40908))},{id:"hlsl",name:"HLSL",import:()=>n.e(2908).then(n.bind(n,62908))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355)]).then(n.bind(n,35355))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(6863)]).then(n.bind(n,56863))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(8584),n.e(414),n.e(5519),n.e(6673),n.e(4222),n.e(2873),n.e(7217),n.e(267)]).then(n.bind(n,10267))},{id:"hxml",name:"HXML",import:()=>Promise.all([n.e(9714),n.e(258)]).then(n.bind(n,40258))},{id:"hy",name:"Hy",import:()=>n.e(5527).then(n.bind(n,5527))},{id:"imba",name:"Imba",import:()=>Promise.all([n.e(414),n.e(7139)]).then(n.bind(n,17139))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(4615).then(n.bind(n,24615))},{id:"java",name:"Java",import:()=>n.e(4222).then(n.bind(n,14222))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(8584).then(n.bind(n,84253))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(7304)]).then(n.bind(n,27304))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(8584),n.e(1115)]).then(n.bind(n,31115))},{id:"json",name:"JSON",import:()=>n.e(8714).then(n.bind(n,38714))},{id:"json5",name:"JSON5",import:()=>n.e(4220).then(n.bind(n,64220))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(8919).then(n.bind(n,8919))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(6768).then(n.bind(n,86768))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(4562).then(n.bind(n,44562))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(2521).then(n.bind(n,92521))},{id:"jsx",name:"JSX",import:()=>n.e(5519).then(n.bind(n,90754))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(8584),n.e(96),n.e(75),n.e(7185),n.e(1986),n.e(9139),n.e(2843),n.e(8248),n.e(8030)]).then(n.bind(n,48030))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(222).then(n.bind(n,40222))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(7589).then(n.bind(n,27589))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(8584),n.e(96),n.e(414),n.e(75),n.e(7185),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(6043),n.e(5845),n.e(9063),n.e(9139),n.e(2843),n.e(8248),n.e(8986),n.e(8030),n.e(3160),n.e(1849)]).then(n.bind(n,61849))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(5360).then(n.bind(n,35360))},{id:"less",name:"Less",import:()=>n.e(1197).then(n.bind(n,88424))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(7831)]).then(n.bind(n,47831))},{id:"log",name:"Log file",import:()=>n.e(5459).then(n.bind(n,15459))},{id:"logo",name:"Logo",import:()=>n.e(7475).then(n.bind(n,7475))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(96),n.e(6043)]).then(n.bind(n,66043))},{id:"luau",name:"Luau",import:()=>n.e(9888).then(n.bind(n,9888))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(2129).then(n.bind(n,92129))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(7498).then(n.bind(n,17498))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(8584),n.e(1197),n.e(4738),n.e(7119),n.e(9851)]).then(n.bind(n,79851))},{id:"matlab",name:"MATLAB",import:()=>n.e(601).then(n.bind(n,40601))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(7498),n.e(5845),n.e(234)]).then(n.bind(n,234))},{id:"mdx",name:"MDX",import:()=>n.e(3024).then(n.bind(n,32863))},{id:"mermaid",name:"Mermaid",import:()=>n.e(7249).then(n.bind(n,7249))},{id:"mojo",name:"Mojo",import:()=>n.e(6281).then(n.bind(n,16281))},{id:"move",name:"Move",import:()=>n.e(8706).then(n.bind(n,78706))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(8110).then(n.bind(n,98110))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(2043).then(n.bind(n,82043))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(96),n.e(6043),n.e(6351)]).then(n.bind(n,66351))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(8584),n.e(96),n.e(4738),n.e(5355),n.e(4222),n.e(7498),n.e(5425)]).then(n.bind(n,5425))},{id:"nix",name:"Nix",import:()=>n.e(944).then(n.bind(n,944))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(7501).then(n.bind(n,27501))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(3290).then(n.bind(n,64019))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(5492).then(n.bind(n,55004))},{id:"ocaml",name:"OCaml",import:()=>n.e(9243).then(n.bind(n,69243))},{id:"pascal",name:"Pascal",import:()=>n.e(411).then(n.bind(n,411))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(9716),n.e(7032)]).then(n.bind(n,89716))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(8584),n.e(2611),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(4729)]).then(n.bind(n,86277))},{id:"plsql",name:"PL/SQL",import:()=>n.e(9051).then(n.bind(n,99051))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(6038).then(n.bind(n,46038))},{id:"postcss",name:"PostCSS",import:()=>n.e(2537).then(n.bind(n,92537))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(1051).then(n.bind(n,21051))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(1124).then(n.bind(n,1124))},{id:"prisma",name:"Prisma",import:()=>n.e(1012).then(n.bind(n,51012))},{id:"prolog",name:"Prolog",import:()=>n.e(1325).then(n.bind(n,1325))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(7480).then(n.bind(n,17480))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(7119),n.e(4901),n.e(5995),n.e(6170)]).then(n.bind(n,46170))},{id:"puppet",name:"Puppet",import:()=>n.e(4192).then(n.bind(n,84192))},{id:"purescript",name:"PureScript",import:()=>n.e(2445).then(n.bind(n,52445))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(9139).then(n.bind(n,19139))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(8584),n.e(443)]).then(n.bind(n,20443))},{id:"qmldir",name:"QML Directory",import:()=>n.e(7878).then(n.bind(n,27878))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(7028).then(n.bind(n,97028))},{id:"r",name:"R",import:()=>n.e(2843).then(n.bind(n,2843))},{id:"racket",name:"Racket",import:()=>n.e(4017).then(n.bind(n,54017))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(4349).then(n.bind(n,14349))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(8584),n.e(6644),n.e(4738),n.e(5355),n.e(5789)]).then(n.bind(n,65789))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(6562).then(n.bind(n,96562))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(7144).then(n.bind(n,67144))},{id:"rel",name:"Rel",import:()=>n.e(3527).then(n.bind(n,33527))},{id:"riscv",name:"RISC-V",import:()=>n.e(4777).then(n.bind(n,14777))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(8584),n.e(96),n.e(75),n.e(7185),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(6043),n.e(5845),n.e(9063),n.e(9139),n.e(8248),n.e(8592)]).then(n.bind(n,28592))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(8584),n.e(96),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(6043),n.e(9063)]).then(n.bind(n,81744))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(147).then(n.bind(n,40147))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(1986),n.e(8526)]).then(n.bind(n,28526))},{id:"sass",name:"Sass",import:()=>n.e(4910).then(n.bind(n,24910))},{id:"scala",name:"Scala",import:()=>n.e(3160).then(n.bind(n,3160))},{id:"scheme",name:"Scheme",import:()=>n.e(4395).then(n.bind(n,64395))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(4738),n.e(7119)]).then(n.bind(n,57119))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(9206).then(n.bind(n,99206))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(2873).then(n.bind(n,82873))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(2873),n.e(7042)]).then(n.bind(n,97042))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(110).then(n.bind(n,80110))},{id:"solidity",name:"Solidity",import:()=>n.e(1421).then(n.bind(n,71421))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(8584),n.e(4738),n.e(5355),n.e(1226)]).then(n.bind(n,1226))},{id:"sparql",name:"SPARQL",import:()=>n.e(2004).then(n.bind(n,32004))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(4760).then(n.bind(n,44760))},{id:"sql",name:"SQL",import:()=>n.e(1986).then(n.bind(n,71986))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(3078).then(n.bind(n,73078))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(1986),n.e(1839)]).then(n.bind(n,71839))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(5995).then(n.bind(n,55995))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(8584),n.e(414),n.e(1197),n.e(4738),n.e(5355),n.e(7119),n.e(7498),n.e(4901),n.e(5995),n.e(6170),n.e(7264)]).then(n.bind(n,37264))},{id:"swift",name:"Swift",import:()=>n.e(5512).then(n.bind(n,63098))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(9155).then(n.bind(n,39155))},{id:"systemd",name:"Systemd Units",import:()=>n.e(8742).then(n.bind(n,8742))},{id:"tasl",name:"Tasl",import:()=>n.e(9236).then(n.bind(n,19236))},{id:"tcl",name:"Tcl",import:()=>n.e(8942).then(n.bind(n,18942))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(8584),n.e(4738),n.e(4187),n.e(5463)]).then(n.bind(n,65463))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(7837).then(n.bind(n,97837))},{id:"tex",name:"TeX",import:()=>Promise.all([n.e(2843),n.e(7091)]).then(n.bind(n,7091))},{id:"toml",name:"TOML",import:()=>n.e(8726).then(n.bind(n,98726))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(8584),n.e(96),n.e(414),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(4594)]).then(n.bind(n,74594))},{id:"tsv",name:"TSV",import:()=>n.e(4059).then(n.bind(n,54059))},{id:"tsx",name:"TSX",import:()=>n.e(6673).then(n.bind(n,66021))},{id:"turtle",name:"Turtle",import:()=>n.e(2360).then(n.bind(n,12360))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(8584),n.e(96),n.e(2611),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(7119),n.e(6043),n.e(9063),n.e(9139),n.e(5828)]).then(n.bind(n,26839))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(414).then(n.bind(n,75731))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(9294).then(n.bind(n,19294))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(5898).then(n.bind(n,95898))},{id:"v",name:"V",import:()=>n.e(3049).then(n.bind(n,73049))},{id:"vala",name:"Vala",import:()=>n.e(456).then(n.bind(n,80456))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(1340).then(n.bind(n,71340))},{id:"verilog",name:"Verilog",import:()=>n.e(8271).then(n.bind(n,98271))},{id:"vhdl",name:"VHDL",import:()=>n.e(7915).then(n.bind(n,57915))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(6710).then(n.bind(n,46710))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(8584),n.e(414),n.e(1197),n.e(5519),n.e(6673),n.e(4738),n.e(5355),n.e(7119),n.e(7498),n.e(5845),n.e(4901),n.e(5995),n.e(6170),n.e(7217),n.e(8823)]).then(n.bind(n,58823))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(8584),n.e(414),n.e(1197),n.e(5519),n.e(6673),n.e(4738),n.e(5355),n.e(7119),n.e(7498),n.e(5845),n.e(4901),n.e(5995),n.e(6170),n.e(7217),n.e(8823),n.e(3609)]).then(n.bind(n,33609))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(2228).then(n.bind(n,72228))},{id:"wasm",name:"WebAssembly",import:()=>n.e(6523).then(n.bind(n,86523))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(1004).then(n.bind(n,71004))},{id:"wgsl",name:"WGSL",import:()=>n.e(8217).then(n.bind(n,48217))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.all([n.e(8584),n.e(96),n.e(414),n.e(1197),n.e(75),n.e(7185),n.e(6644),n.e(3290),n.e(2611),n.e(5512),n.e(904),n.e(4738),n.e(5355),n.e(4222),n.e(1986),n.e(2873),n.e(7119),n.e(6043),n.e(7498),n.e(5845),n.e(9063),n.e(4901),n.e(9139),n.e(5995),n.e(2843),n.e(8248),n.e(6170),n.e(4187),n.e(8986),n.e(8030),n.e(3160),n.e(9716),n.e(6320),n.e(1849),n.e(9257),n.e(948)]).then(n.bind(n,1682))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(963).then(n.bind(n,60423))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(4222),n.e(2242)]).then(n.bind(n,7032))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(4222),n.e(7700)]).then(n.bind(n,7700))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(5845).then(n.bind(n,63061))},{id:"zenscript",name:"ZenScript",import:()=>n.e(581).then(n.bind(n,30581))},{id:"zig",name:"Zig",import:()=>n.e(5575).then(n.bind(n,75575))}],c=Object.fromEntries(h.map(e=>[e.id,e.import])),u=Object.fromEntries(h.flatMap(e=>{var t;return(null===(t=e.aliases)||void 0===t?void 0:t.map(t=>[t,e.import]))||[]})),d={...c,...u},p=async e=>Promise.all([n.e(8295),n.e(7086)]).then(n.bind(n,37086)).then(t=>t.default(e)),m=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(6252).then(n.bind(n,74316))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(6722).then(n.bind(n,36722))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(5043).then(n.bind(n,69731))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1862).then(n.bind(n,81862))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(6974).then(n.bind(n,86974))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(3553).then(n.bind(n,77410))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(5829).then(n.bind(n,75829))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(7607).then(n.bind(n,77607))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(4519).then(n.bind(n,14519))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(6587).then(n.bind(n,6587))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(4178).then(n.bind(n,34178))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(4766).then(n.bind(n,28924))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(9504).then(n.bind(n,19504))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(8579).then(n.bind(n,38579))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(6957).then(n.bind(n,76957))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(2337).then(n.bind(n,52337))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(768).then(n.bind(n,80768))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(3022).then(n.bind(n,33022))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(8472).then(n.bind(n,26281))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(931).then(n.bind(n,40931))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(417).then(n.bind(n,20417))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(2686).then(n.bind(n,22686))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(9228).then(n.bind(n,88346))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(6741).then(n.bind(n,96741))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(4678).then(n.bind(n,24678))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(4876).then(n.bind(n,4876))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(950).then(n.bind(n,50950))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(5975).then(n.bind(n,13472))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(423).then(n.bind(n,20423))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(3421).then(n.bind(n,53421))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(7101).then(n.bind(n,37101))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(6032).then(n.bind(n,36032))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(9207).then(n.bind(n,19207))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7048).then(n.bind(n,77048))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(9531).then(n.bind(n,59531))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(7238).then(n.bind(n,97238))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(4495).then(n.bind(n,64495))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(5351).then(n.bind(n,25351))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(2866).then(n.bind(n,62866))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(3693).then(n.bind(n,53693))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(4094).then(n.bind(n,17710))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(3053).then(n.bind(n,33053))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(3375).then(n.bind(n,13375))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(9048).then(n.bind(n,29048))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(3108).then(n.bind(n,33108))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(3937).then(n.bind(n,3937))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(9816).then(n.bind(n,89816))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(7375).then(n.bind(n,27375))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(6012).then(n.bind(n,96012))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(4630).then(n.bind(n,24630))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(3186).then(n.bind(n,53186))}].map(e=>[e.id,e.import]));class f extends Error{constructor(e){super(e),this.name="ShikiError"}}var g,y=n(74075),b=n(40834),_=n(28251),w=n(8716);let S=/["&'<>`]/g,k=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,C=/[|\\{}()[\]^$+*?.]/g,N=new WeakMap,A=/[\dA-Fa-f]/,T=/\d/,E=["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"],P={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",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:"€"},L=["cent","copy","divide","gt","lt","not","para","times"],R={}.hasOwnProperty,I={};for(r in P)R.call(P,r)&&(I[P[r]]=r);let x=/[^\dA-Za-z]/;function B(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!A.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(R.call(I,i)){let e=I[i],s="&"+e;return n&&E.includes(e)&&!L.includes(e)&&(!r||t&&61!==t&&x.test(String.fromCharCode(t)))?s:s+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!T.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function O(e,t){return function(e,t){var n;let r;if(e=e.replace(t.subset?(n=t.subset,(r=N.get(n))||(r=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(C,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),N.set(n,r)),r):S,i),t.subset||t.escapeOnly)return e;return e.replace(k,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(v,i);function i(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:B},t))}let $=/^>|^->|<!--|-->|--!>|<!-$/g,M=[">"],G=["<",">"];var U=n(9327),j=n(54087),D=n(6832),F=n(66401),W=n(62449);let q=V(1),H=V(-1),z=[];function V(e){return function(t,n,r){let i=t?t.children:z,s=(n||0)+e,o=i[s];if(!r)for(;o&&(0,W.Q)(o);)s+=e,o=i[s];return o}}let Q={}.hasOwnProperty;function J(e){return function(t,n,r){return Q.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let Y=J({body:function(e,t,n){let r=q(n,t);return!r||"comment"!==r.type},caption:X,colgroup:X,dd:function(e,t,n){let r=q(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=q(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:X,html:function(e,t,n){let r=q(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=q(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=q(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=q(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=q(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:K,rt:K,tbody:function(e,t,n){let r=q(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:Z,tfoot:function(e,t,n){return!q(n,t)},th:Z,thead:function(e,t,n){let r=q(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=q(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function X(e,t,n){let r=q(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,W.Q)(r.value.charAt(0)))}function K(e,t,n){let r=q(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function Z(e,t,n){let r=q(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let ee=J({body:function(e){let t=q(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,W.Q)(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=H(n,t),i=q(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&Y(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=e.children,n=[],r=-1;for(;++r<t.length;){let e=t[r];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},html:function(e){let t=q(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=H(n,t),i=q(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&Y(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),et={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("")]]},en=["<","&"];function er(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:O(e.value,Object.assign({},r.settings.characterReferences,{subset:en}))}let ei=(0,w.z)("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?"<?"+O(e.value,Object.assign({},r.settings.characterReferences,{subset:M}))+">":"<!--"+e.value.replace($,function(e){return O(e,Object.assign({},r.settings.characterReferences,{subset:G}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i;let s=r.schema,o="svg"!==s.space&&r.settings.omitOptionalTags,a="svg"===s.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===s.space&&"svg"===e.tagName&&(r.schema=_.YP);let h=function(e,t){let n;let r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r;let i=(0,D.s)(e.schema,t),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1,a=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=O(i.attribute,Object.assign({},e.settings.characterReferences,{subset:et.name[s][o]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?j.P:F.P)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=O(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:et.unquoted[s][o]}))),r!==n&&(e.settings.quoteSmart&&(0,U.w)(n,a)>(0,U.w)(n,e.alternative)&&(a=e.alternative),r=a+O(n,Object.assign({},e.settings.characterReferences,{subset:("'"===a?et.single:et.double)[s][o],attribute:!0}))+a),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===s.space&&"template"===e.tagName?e.content:e);return r.schema=s,c&&(a=!1),!h&&o&&ee(e,t,n)||(l.push("<",e.tagName,h?" "+h:""),a&&("svg"===s.space||r.settings.closeSelfClosing)&&(i=h.charAt(h.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),a||o&&Y(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:er(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:er}}),es={},eo={},ea=[];function el(e,t,n){return ei(e,t,n,this)}function eh(e){let t=[],n=e&&e.children||ea,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}var ec=n(9109).lW;class eu extends Error{constructor(e){super(e),this.name="ShikiError"}}function ed(){return"undefined"!=typeof performance?performance.now():Date.now()}let ep=(e,t)=>e+(t-e%t)%t;async function em(e){let t,n;let r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&s)return s.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let a={emscripten_get_now:ed,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let s=r.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let r=1;r<=4;r*=2){let o=s*(1+.2/r);if(o=Math.min(o,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(2147483648,ep(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:a,wasi_snapshot_preview1:a});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}let ef=null;class eg{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),s=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(s=(i-55296<<10)+65536|t-56320,o=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,o&&n++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){let t=e.length,n=eg._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let s=r?new Uint32Array(n+1):null;r&&(s[n]=t);let o=new Uint8Array(n),a=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),h=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(h=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=a,c&&(i[n+1]=a),h<=127?s[a+0]=n:h<=2047?(s[a+0]=n,s[a+1]=n):h<=65535?(s[a+0]=n,s[a+1]=n,s[a+2]=n):(s[a+0]=n,s[a+1]=n,s[a+2]=n,s[a+3]=n)),h<=127?o[a++]=h:(h<=2047?o[a++]=192|(1984&h)>>>6:(h<=65535?o[a++]=224|(61440&h)>>>12:(o[a++]=240|(1835008&h)>>>18,o[a++]=128|(258048&h)>>>12),o[a++]=128|(4032&h)>>>6),o[a++]=128|(63&h)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class ey{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++ey.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!ef)throw new eu("Must invoke loadWasm first.");this._onigBinding=ef,this.content=e;let t=new eg(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!ey._sharedPtrInUse?(ey._sharedPtr||(ey._sharedPtr=ef.omalloc(1e4)),ey._sharedPtrInUse=!0,ef.HEAPU8.set(t.utf8Value,ey._sharedPtr),this.ptr=ey._sharedPtr):this.ptr=t.createString(ef)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===ey._sharedPtr?ey._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class eb{_onigBinding;_ptr;constructor(e){if(!ef)throw new eu("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new eg(e[r]);t[r]=i.createString(ef),n[r]=i.utf8Length}let r=ef.omalloc(4*e.length);ef.HEAPU32.set(t,r/4);let i=ef.omalloc(4*e.length);ef.HEAPU32.set(n,i/4);let s=ef.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)ef.ofree(t[n]);ef.ofree(i),ef.ofree(r),0===s&&function(e){throw new eu(e.UTF8ToString(e.getLastOnigError()))}(ef),this._onigBinding=ef,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new ey(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,s=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===s)return null;let o=i.HEAPU32,a=s/4,l=o[a++],h=o[a++],c=[];for(let t=0;t<h;t++){let n=e.convertUtf8OffsetToUtf16(o[a++]),r=e.convertUtf8OffsetToUtf16(o[a++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function e_(e){return t=>WebAssembly.instantiate(e,t)}async function ew(e){return e&&await (i||(i=async function(){ef=await em(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,s,o;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?n=await (s=n,e=>WebAssembly.instantiateStreaming(s,e))(t):n=await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==ec&&ec.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array)?n=await e_(n)(t):n instanceof WebAssembly.Module?n=await e_(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await e_(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new eb(e),createString:e=>new ey(e)}}function eS(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let s=t?n[e]+(n[e+1]||""):n[e];i.push([s,r]),r+=n[e].length+(n[e+1]?.length||0)}return i}function ek(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ev(e){return"ansi"===e||ek(e)}function eC(e){return"none"===e}function eN(e,t){var n;if(!t)return e;for(let r of(e.properties||(e.properties={}),(n=e.properties).class||(n.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)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}async function eA(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function eT(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function eE(e,t){return e&&t?.[e?.toLowerCase()]||e}function eP(e){let t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&y.Hd.Italic&&(t["font-style"]="italic"),e.fontStyle&y.Hd.Bold&&(t["font-weight"]="bold"),e.fontStyle&y.Hd.Underline&&(t["text-decoration"]="underline")),t}function eL(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}class eR extends Error{constructor(e){super(e),this.name="ShikiError"}}let eI=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new eR(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new eR(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);if(e.character<0||e.character>t.length)throw new eR(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:r.posToIndex(e.line,e.character)}}},r=function(e){let t=eS(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,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new eR(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<n.end.offset,o=t.start.offset<n.start.offset&&n.start.offset<t.end.offset,a=t.start.offset<n.end.offset&&n.end.offset<t.end.offset;if(i||s||o||a){if(s&&s||o&&a)continue;throw new eR(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(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?function(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new eR(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],a="",l=-1,h=-1;if(0===t&&(l=0),0===n&&(h=0),n===Number.POSITIVE_INFINITY&&(h=o.children.length),-1===l||-1===h)for(let e=0;e<o.children.length;e++)a+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&a.length===t&&(l=e+1),-1===h&&a.length===n&&(h=e+1);if(-1===l)throw new eR(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===h)throw new eR(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let c=o.children.slice(l,h);if(i.alwaysWrap||c.length!==o.children.length){if(i.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};s(e,i,"wrapper"),o.children.splice(l,c.length,e)}else s(c[0],i,"token")}else s(o,i,"line")}function s(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&eN(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=s(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function ex(e){return[...e.transformers||[],...eI]}class eB{constructor(e,t,n){this._stack=e,this.lang=t,this.theme=n}static initial(e,t){return new eB(y._X,e,t)}get scopes(){return function(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&e(r.parent)}(e),t}(this._stack)}toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes}}}var eO=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],e$={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function eM(e,t){let n,r=1,i=e[t+r++];if("2"===i){let i=[e[t+r++],e[t+r++],e[t+r]].map(e=>Number.parseInt(e));3!==i.length||i.some(e=>Number.isNaN(e))||(n={type:"rgb",rgb:i})}else if("5"===i){let i=Number.parseInt(e[t+r]);Number.isNaN(i)||(n={type:"table",index:Number(i)})}return[r,n]}var eG={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function eU(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(ek(r)||eC(i))return eS(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:o}=e.setTheme(i);if("ansi"===r)return function(e,t,n){let r,i,s;let o=eT(e,n),a=eS(t),l=function(e=eG){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 i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<eO.length;n++)t.push(e[eO[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let s=0;s<6;s++)t.push(n([r[e],r[i],r[s]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(eO.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),h=(r=null,i=null,s=new Set,{parse(e){let t=[],n=0;do{let o=function(e,t){let n=e.indexOf("\x1b[",t);if(-1!==n){let t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),a=o.sequence?e.substring(n,o.startPosition):e.substring(n);if(a.length>0&&t.push({value:a,foreground:r,background:i,decorations:new Set(s)}),o.sequence){let e=function(e){let t=[];for(let n=0;n<e.length;n++){let r=Number.parseInt(e[n]);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)e$[r]&&t.push({type:"setDecoration",value:e$[r]});else if(r<=29){let e=e$[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:eO[r-30]}});else if(38===r){let[r,i]=eM(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=r}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:eO[r-40]}});else if(48===r){let[r,i]=eM(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=r}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:eO[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:eO[r-100+8]}})}}return t}(o.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,s.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&s.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&s.add(t.value)}n=o.position}while(n<e.length);return t}});return a.map(t=>h.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=eE(r,o),i=eE(i,o),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let s=y.Hd.None;return n.decorations.has("bold")&&(s|=y.Hd.Bold),n.decorations.has("italic")&&(s|=y.Hd.Italic),n.decorations.has("underline")&&(s|=y.Hd.Underline),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:s}}))}(s,t,n);let a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new f(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(n.grammarState.theme!==i)throw new f(`Grammar state theme "${n.grammarState.theme}" does not match highlight theme "${i}"`)}return ej(t,a,s,o,n).tokens}function ej(e,t,n,r,i){let s=eT(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500}=i,l=eS(e),h=i.grammarState?function(e){if(!(e instanceof eB))throw new eR("Invalid grammar state");return e._stack}(i.grammarState):null!=i.grammarContextCode?ej(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:y._X,c=[],u=[];for(let e=0,d=l.length;e<d;e++){let d,p;let[m,f]=l[e];if(""===m){c=[],u.push([]);continue}if(o>0&&m.length>=o){c=[],u.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}i.includeExplanation&&(d=t.tokenizeLine(m,h).tokens,p=0);let g=t.tokenizeLine2(m,h,a),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],o=e+1<b?g.tokens[2*e+2]:m.length;if(t===o)continue;let a=g.tokens[2*e+1],l=eE(r[y.E9.getForeground(a)],s),h=y.E9.getFontStyle(a),u={content:m.substring(t,o),offset:f+t,color:l,fontStyle:h};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.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(/ /))})}u.explanation=[];let r=0;for(;t+r<o;){let t=d[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,u.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:s}of e)for(let e of i)if(function(e,t,n){if(!eD(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)eD(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(s);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}c.push(u)}u.push(c),c=[],h=g.ruleStack}return{tokens:u,stateStack:h}}function eD(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function eF(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),s=t.map(()=>[]);t.forEach((e,t)=>e.push(s[t]));let o=i.map(()=>0),a=i.map(e=>e[0]);for(;a.every(e=>e);){let e=Math.min(...a.map(e=>e.content.length));for(let t=0;t<n;t++){let n=a[t];n.content.length===e?(s[t].push(n),o[t]+=1,a[t]=i[t][o[t]]):(s[t].push({...n,content:n.content.slice(0,e)}),a[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...r.map(r=>eU(e,t,{...n,theme:r.theme})));return i[0].map((e,t)=>e.map((e,s)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),i.forEach((e,n)=>{let{content:i,explanation:a,offset:l,...h}=e[t][s];o.variants[r[n].color]=h}),o}))}function eW(e,t,n){let r,i,s,o,a;if("themes"in n){let{defaultColor:l="light",cssVariablePrefix:h="--shiki-"}=n,c=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:t.color===l?1:0);if(0===c.length)throw new eR("`themes` option must not be empty");let u=eF(e,t,n);if(l&&!c.find(e=>e.color===l))throw new eR(`\`themes\` option must contain the defaultColor key \`${l}\``);let d=c.map(t=>e.getTheme(t.theme)),p=c.map(e=>e.color);s=u.map(e=>e.map(e=>(function(e,t,n,r){let i={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>eP(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),a=s.reduce((e,i,s)=>{for(let a of o){let o=i[a]||"inherit";if(0===s&&r)e[a]=o;else{let r="color"===a?"":"background-color"===a?"-bg":`-${a}`,i=n+t[s]+("color"===a?"":r);e[a]?e[a]+=`;${i}:${o}`:e[a]=`${i}:${o}`}}return e},{});return i.htmlStyle=r?eL(a):Object.values(a).join(";"),i})(e,p,h,l)));let m=c.map(e=>eT(e.theme,n));i=c.map((e,t)=>(0===t&&l?"":`${h+e.color}:`)+(eE(d[t].fg,m[t])||"inherit")).join(";"),r=c.map((e,t)=>(0===t&&l?"":`${h+e.color}-bg:`)+(eE(d[t].bg,m[t])||"inherit")).join(";"),o=`shiki-themes ${d.map(e=>e.name).join(" ")}`,a=l?void 0:[i,r].join(";")}else if("theme"in n){let a=eT(n.theme,n);s=eU(e,t,n);let l=e.getTheme(n.theme);r=eE(l.bg,a),i=eE(l.fg,a),o=l.name}else throw new eR("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:a}}function eq(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>eq(e,t,n),codeToTokens:(t,n)=>eW(e,t,n)}){let i=t;for(let e of ex(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:s,fg:o,bg:a,themeName:l,rootStyle:h}=eW(e,i,n),{mergeWhitespaces:c=!0}=n;!0===c?s=s.map(e=>{let t=[],n="",r=0;return e.forEach((i,s)=>{let o=!(i.fontStyle&&i.fontStyle&y.Hd.Underline);o&&i.content.match(/^\s+$/)&&e[s+1]?(r||(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t}):"never"===c&&(s=s.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,i]=t;if(!n&&!i)return e;let s=[{...e,offset:e.offset+n.length,content:r}];return n&&s.unshift({content:n,offset:e.offset}),i&&s.push({content:i,offset:e.offset+n.length+r.length}),s})));let u={...r,get source(){return i}};for(let e of ex(n))s=e.tokens?.call(u,s)||s;return function(e,t,n){let r=ex(t),i=[],s={type:"root",children:[]},{structure:o="classic"}=t,a={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},l={type:"element",tagName:"code",properties:{},children:i},h=[],c={...n,structure:o,addClassToHast:eN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return a},get code(){return l},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&i.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},a=0;for(let i of e){let e={type:"element",tagName:"span",properties:{},children:[{type:"text",value:i.content}]},l=i.htmlStyle||eL(eP(i));for(let i of(l&&(e.properties.style=l),r))e=i?.span?.call(c,e,t+1,a,n)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),a+=i.content.length}if("classic"===o){for(let e of r)n=e?.line?.call(c,n,t+1)||n;h.push(n),i.push(n)}}),"classic"===o){for(let e of r)l=e?.code?.call(c,l)||l;for(let e of(a.children.push(l),r))a=e?.pre?.call(c,a)||a;s.children.push(a)}let u=s;for(let e of r)u=e?.root?.call(c,u)||u;return u}(s,{...n,fg:o,bg:a,themeName:l,rootStyle:h},u)}let eH={light:"#333333",dark:"#bbbbbb"},ez={light:"#fffffe",dark:"#1e1e1e"},eV="__shiki_resolved";function eQ(e){if(e?.[eV])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg: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?eH.light:eH.dark),n||(n="light"===t.type?ez.light:ez.dark),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 i=0,s=new Map;function o(e){if(s.has(e))return s.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(s.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 i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,eV,{enumerable:!1,writable:!1,value:!0}),t}async function eJ(e){return Array.from(new Set((await Promise.all(e.filter(e=>!ev(e)).map(async e=>await eA(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function eY(e){return(await Promise.all(e.map(async e=>eC(e)?null:eQ(await eA(e))))).filter(e=>!!e)}var eX=Object.defineProperty,eK=(e,t,n)=>t in e?eX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eZ=(e,t,n)=>(eK(e,"symbol"!=typeof t?t+"":t,n),n);class e0 extends y.Bz{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,eZ(this,"_resolvedThemes",new Map),eZ(this,"_resolvedGrammars",new Map),eZ(this,"_langMap",new Map),eZ(this,"_langGraph",new Map),eZ(this,"_textmateThemeCache",new WeakMap),eZ(this,"_loadedThemesCache",null),eZ(this,"_loadedLanguagesCache",null),this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=eQ(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=y.Q2.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new eR(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return 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])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new eR(`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){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}var e1=Object.defineProperty,e2=(e,t,n)=>t in e?e1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e8=(e,t,n)=>(e2(e,"symbol"!=typeof t?t+"":t,n),n);class e5{constructor(e,t){e8(this,"_langs",new Map),e8(this,"_scopeToLang",new Map),e8(this,"_injections",new Map),e8(this,"_onigLib"),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 e4=0;async function e6(e={}){let[t,n,r]=await Promise.all([eY(e.themes||[]),eJ(e.langs||[]),e.engine||ew(e.loadWasm||s)]);return function(e){let t;e4+=1,!1!==e.warnings&&e4>=10&&e4%10==0&&console.warn(`[Shiki] ${e4} 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 eR("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(eQ),s=new e0(new e5(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};h();let t=s.getTheme(e);if(!t)throw new eR(`Theme \`${e}\` not found, you may need to load it first`);return t}function a(...e){h(),s.loadLanguages(e.flat(1))}async function l(...e){for(let t of(h(),e.flat(1)))s.loadTheme(t)}function h(){if(n)throw new eR("Shiki instance has been disposed")}function c(){n||(n=!0,s.dispose(),e4-=1)}return{setTheme:function(e){h();let n=o(e);return t!==e&&(s.setTheme(n),t=e),{theme:n,colorMap:s.getColorMap()}},getTheme:o,getLanguage:function(e){h();let t=s.getGrammar("string"==typeof e?e:e.name);if(!t)throw new eR(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return h(),s.getLoadedThemes()},getLoadedLanguages:function(){return h(),s.getLoadedLanguages()},loadLanguage:async function(...e){return a(await eJ(e))},loadLanguageSync:a,loadTheme:async function(...e){return h(),l(await eY(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,loadWasm:void 0,themes:t,langs:n,engine:r})}async function e3(e={}){let t=await e6(e);return{getLastGrammarState:(e,n)=>(function(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(ek(r)||eC(i))throw new f("Plain language does not have grammar state");if("ansi"===r)throw new f("ANSI language does not have grammar state");let{theme:s,colorMap:o}=e.setTheme(i),a=e.getLanguage(r);return new eB(ej(t,a,s,o,n).stateStack,a.name,s.name)})(t,e,n),codeToTokensBase:(e,n)=>eU(t,e,n),codeToTokensWithThemes:(e,n)=>eF(t,e,n),codeToTokens:(e,n)=>eW(t,e,n),codeToHast:(e,n)=>eq(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>eq(e,t,n),codeToTokens:(t,n)=>eW(e,t,n)},i=function(e,t){let n=es.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:el,all:eh,settings:{omitOptionalTags:es.omitOptionalTags||!1,allowParseErrors:es.allowParseErrors||!1,allowDangerousCharacters:es.allowDangerousCharacters||!1,quoteSmart:es.quoteSmart||!1,preferUnquoted:es.preferUnquoted||!1,tightAttributes:es.tightAttributes||!1,upperDoctype:es.upperDoctype||!1,tightDoctype:es.tightDoctype||!1,bogusComments:es.bogusComments||!1,tightCommaSeparatedLists:es.tightCommaSeparatedLists||!1,tightSelfClosing:es.tightSelfClosing||!1,collapseEmptyAttributes:es.collapseEmptyAttributes||!1,allowDangerousHtml:es.allowDangerousHtml||!1,voids:es.voids||b.z,characterReferences:es.characterReferences||eo,closeSelfClosing:es.closeSelfClosing||!1,closeEmptyElements:es.closeEmptyElements||!1},schema:"svg"===es.space?_.YP:_.dy,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(eq(e,t,n,r));for(let e of ex(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),...t,getInternalContext:()=>t}}let e7=(o=(g={langs:d,themes:m,engine:()=>ew(p)}).langs,a=g.themes,l=g.engine,async function(e){function t(e){if("string"==typeof e){if(ev(e))return[];let t=o[e];if(!t)throw new f(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}function n(e){if(eC(e))return"none";if("string"==typeof e){let t=a[e];if(!t)throw new f(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),s=await e3({engine:l(),...e,themes:r,langs:i});return{...s,loadLanguage:(...e)=>s.loadLanguage(...e.map(t)),loadTheme:(...e)=>s.loadTheme(...e.map(n))}}),{codeToHtml:e9,codeToHast:te,codeToTokens:tt,codeToTokensBase:tn,codeToTokensWithThemes:tr,getSingletonHighlighter:ti,getLastGrammarState:ts}=function(e){let t;let n=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}};return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToHtml(e,t),codeToHast:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToHast(e,t),codeToTokens:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await n({langs:[t.lang],themes:Object.values(t.themes).filter(Boolean)})).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(e7)},66401:function(e,t,n){"use strict";function r(e){return e.join(" ").trim()}n.d(t,{P:function(){return r}})}}]);