1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,477881,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=l(e),s=a[0],o=a[1],u=new i((s+o)*3/4-o),c=0,h=o>0?s-4:s;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=0,o=n-i;s<o;s+=16383)a.push(function(e,t,n){for(var i,a=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)r[s]=a[s],n[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){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,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|d(n,i),l=s(a),u=l.write(n,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return h(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(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return o.from(c,t,r);var f=function(e){if(o.isBuffer(e)){var t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(f)return f;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(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 u(e),s(e<0?0:0|p(e))}function h(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var 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}}(),!o.TYPED_ARRAY_SUPPORT&&"u">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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(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);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return v(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(e).length;default:if(i)return n?-1:v(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,r){var i,a,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=L[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,a=t,s=r,0===a&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var a,s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=r;a<o;
vendor: 12,407 bytes, line 1
1a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else -1!==c&&(a-=a-c),c=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){for(var h=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){h=!1;break}if(h)return a}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(I(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},o.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}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(I(a,Uint8Array)&&(a=o.from(a)),!o.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,l=Math.min(a,s),u=this.slice(n,i),c=e.slice(t,r),h=0;h<l;++h)if(u[h]!==c[h]){a=u[h],s=c[h];break}return a<s?-1:+(s<a)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,s,o,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}var p=n,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var f="",m=0;m<d;)f+=String.fromCharCode.apply(String,p.slice(m,m+=4096));return f}function A(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,a){return t*=1,r>>>=0,a||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,a){return t*=1,r>>>=0,a||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,s,o,l,u,c,h,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o,l=parseInt(t.substr(2*s,2),16);if((o=l)!=o)break;e[r+s]=l}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,N(v(e,this.length-i),this,i,a);case"ascii":return s=t,o=r,N(x(e),this,s,o);case"latin1":case"binary":return function(e,t,r,n){return N(x(t),e,r,n)}(this,e,t,r);case"base64":return l=t,u=r,N(E(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,h=r,N(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,h);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||A(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=o.isBuffer(e)?e:o.from(e,n),l=s.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function v(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function x(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function E(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var L=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,u=l>>1,c=-7,h=r?i-1:0,p=r?-1:1,d=e[t+h];for(h+=p,a=d&(1<<-c)-1,d>>=-c,c+=o;c>0;a=256*a+e[t+h],h+=p,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),a-=u}return(d?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,p=5960464477539062e-23*(23===i),d=n?0:a-1,f=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=p/l:t+=p*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(o=0,s=c):s+h>=1?(o=(t*l-1)*Math.pow(2,i),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&o,d+=f,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[r+d]=255&s,d+=f,s/=256,u-=8);e[r+d-f]|=128*m}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},s=!0;try{n[e](r,r.exports,a),s=!1}finally{s&&delete i[e]}return r.exports}a.ab="/ROOT/node_modules/.bun/[email protected]+617c71ed25b9c5d5/node_modules/next/dist/compiled/buffer/",t.exports=a(72)},511898,e=>{"use strict";let t=[{id:"abap",name:"ABAP",import:()=>e.A(624753)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(249645)},{id:"ada",name:"Ada",import:()=>e.A(517335)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(710181)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(174263)},{id:"apache",name:"Apache Conf",import:()=>e.A(178077)},{id:"apex",name:"Apex",import:()=>e.A(166840)},{id:"apl",name:"APL",import:()=>e.A(936672)},{id:"applescript",name:"AppleScript",import:()=>e.A(826931)},{id:"ara",name:"Ara",import:()=>e.A(293655)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(520718)},{id:"asm",name:"Assembly",import:()=>e.A(475211)},{id:"astro",name:"Astro",import:()=>e.A(410095)},{id:"awk",name:"AWK",import:()=>e.A(84518)},{id:"ballerina",name:"Ballerina",import:()=>e.A(424105)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(543817)},{id:"beancount",name:"Beancount",import:()=>e.A(585707)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(34803)},{id:"bibtex",name:"BibTeX",import:()=>e.A(489612)},{id:"bicep",name:"Bicep",import:()=>e.A(224796)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(21453)},{id:"blade",name:"Blade",import:()=>e.A(622984)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(732288)},{id:"c",name:"C",import:()=>e.A(867703)},{id:"c3",name:"C3",import:()=>e.A(637301)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(588542)},{id:"cairo",name:"Cairo",import:()=>e.A(742274)},{id:"clarity",name:"Clarity",import:()=>e.A(480608)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(840503)},{id:"cmake",name:"CMake",import:()=>e.A(570119)},{id:"cobol",name:"COBOL",import:()=>e.A(39957)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(975146)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(294732)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(661454)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(616977)},{id:"coq",name:"Coq",import:()=>e.A(249441)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(901992)},{id:"crystal",name:"Crystal",import:()=>e.A(201600)}
1,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(758432)},{id:"css",name:"CSS",import:()=>e.A(910622)},{id:"csv",name:"CSV",import:()=>e.A(642486)},{id:"cue",name:"CUE",import:()=>e.A(313079)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(542966)},{id:"d",name:"D",import:()=>e.A(998930)},{id:"dart",name:"Dart",import:()=>e.A(910675)},{id:"dax",name:"DAX",import:()=>e.A(335221)},{id:"desktop",name:"Desktop",import:()=>e.A(498447)},{id:"diff",name:"Diff",import:()=>e.A(181059)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(108611)},{id:"dotenv",name:"dotEnv",import:()=>e.A(311582)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(208246)},{id:"edge",name:"Edge",import:()=>e.A(90272)},{id:"elixir",name:"Elixir",import:()=>e.A(691338)},{id:"elm",name:"Elm",import:()=>e.A(309568)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(3775)},{id:"erb",name:"ERB",import:()=>e.A(498690)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(960472)},{id:"fennel",name:"Fennel",import:()=>e.A(191144)},{id:"fish",name:"Fish",import:()=>e.A(267878)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(241678)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(77384)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(333083)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(373977)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(479200)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(69985)},{id:"gdshader",name:"GDShader",import:()=>e.A(11726)},{id:"genie",name:"Genie",import:()=>e.A(191003)},{id:"gherkin",name:"Gherkin",import:()=>e.A(910117)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(646352)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(362753)},{id:"gleam",name:"Gleam",import:()=>e.A(495238)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(338520)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(490065)},{id:"glsl",name:"GLSL",import:()=>e.A(683253)},{id:"gn",name:"GN",import:()=>e.A(532092)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(382572)},{id:"go",name:"Go",import:()=>e.A(970092)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(67713)},{id:"groovy",name:"Groovy",import:()=>e.A(78800)},{id:"hack",name:"Hack",import:()=>e.A(344470)},{id:"haml",name:"Ruby Haml",import:()=>e.A(228549)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(719969)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(57610)},{id:"haxe",name:"Haxe",import:()=>e.A(443719)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(957828)},{id:"hjson",name:"Hjson",import:()=>e.A(870027)},{id:"hlsl",name:"HLSL",import:()=>e.A(710930)},{id:"html",name:"HTML",import:()=>e.A(963895)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(501949)},{id:"http",name:"HTTP",import:()=>e.A(851970)},{id:"hurl",name:"Hurl",import:()=>e.A(810095)},{id:"hxml",name:"HXML",import:()=>e.A(802187)},{id:"hy",name:"Hy",import:()=>e.A(580864)},{id:"imba",name:"Imba",import:()=>e.A(597708)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(259690)},{id:"java",name:"Java",import:()=>e.A(110841)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(883408)},{id:"jinja",name:"Jinja",import:()=>e.A(906245)},{id:"jison",name:"Jison",import:()=>e.A(872949)},{id:"json",name:"JSON",import:()=>e.A(104894)},{id:"json5",name:"JSON5",import:()=>e.A(279050)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(159870)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(367451)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(339036)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(292455)},{id:"jsx",name:"JSX",import:()=>e.A(881969)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(687276)},{id:"just",name:"Just",import:()=>e.A(85807)},{id:"kdl",name:"KDL",import:()=>e.A(782320)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(121137)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(994100)},{id:"latex",name:"LaTeX",import:()=>e.A(493754)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(242788)},{id:"less",name:"Less",import:()=>e.A(671657)},{id:"liquid",name:"Liquid",import:()=>e.A(787208)},{id:"llvm",name:"LLVM IR",import:()=>e.A(671010)},{id:"log",name:"Log file",import:()=>e.A(59059)},{id:"logo",name:"Logo",import:()=>e.A(157854)},{id:"lua",name:"Lua",import:()=>e.A(516913)}
1,{id:"luau",name:"Luau",import:()=>e.A(109593)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(555828)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(696502)},{id:"marko",name:"Marko",import:()=>e.A(653635)},{id:"matlab",name:"MATLAB",import:()=>e.A(552998)},{id:"mdc",name:"MDC",import:()=>e.A(266692)},{id:"mdx",name:"MDX",import:()=>e.A(679853)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(412463)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(408302)},{id:"mojo",name:"Mojo",import:()=>e.A(184786)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(409210)},{id:"move",name:"Move",import:()=>e.A(827833)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(283282)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(869538)},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>e.A(592270)},{id:"nginx",name:"Nginx",import:()=>e.A(600599)},{id:"nim",name:"Nim",import:()=>e.A(971236)},{id:"nix",name:"Nix",import:()=>e.A(586836)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(153711)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(231385)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(491364)},{id:"ocaml",name:"OCaml",import:()=>e.A(526261)},{id:"odin",name:"Odin",import:()=>e.A(832052)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(29212)},{id:"pascal",name:"Pascal",import:()=>e.A(408167)},{id:"perl",name:"Perl",import:()=>e.A(313439)},{id:"php",name:"PHP",import:()=>e.A(994287)},{id:"pkl",name:"Pkl",import:()=>e.A(674584)},{id:"plsql",name:"PL/SQL",import:()=>e.A(374194)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(118707)},{id:"polar",name:"Polar",import:()=>e.A(981803)},{id:"postcss",name:"PostCSS",import:()=>e.A(138636)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(68541)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(350373)},{id:"prisma",name:"Prisma",import:()=>e.A(373442)},{id:"prolog",name:"Prolog",import:()=>e.A(683813)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(477510)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(980923)},{id:"puppet",name:"Puppet",import:()=>e.A(561813)},{id:"purescript",name:"PureScript",import:()=>e.A(549055)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(996612)},{id:"qml",name:"QML",import:()=>e.A(178541)},{id:"qmldir",name:"QML Directory",import:()=>e.A(776624)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(737512)},{id:"r",name:"R",import:()=>e.A(802706)},{id:"racket",name:"Racket",import:()=>e.A(160571)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(773892)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(188052)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(267417)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(486106)},{id:"rel",name:"Rel",import:()=>e.A(503167)},{id:"riscv",name:"RISC-V",import:()=>e.A(203908)},{id:"ron",name:"RON",import:()=>e.A(758477)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(856584)},{id:"rst",name:"reStructuredText",import:()=>e.A(956752)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(699433)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(310086)},{id:"sas",name:"SAS",import:()=>e.A(186810)},{id:"sass",name:"Sass",import:()=>e.A(359763)},{id:"scala",name:"Scala",import:()=>e.A(710961)},{id:"scheme",name:"Scheme",import:()=>e.A(352252)},{id:"scss",name:"SCSS",import:()=>e.A(392712)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(743596)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(961218)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(256410)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(319761)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(663098)},{id:"solidity",name:"Solidity",import:()=>e.A(915190)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(50272)},{id:"sparql",name:"SPARQL",import:()=>e.A(416237)}
1,{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(176904)},{id:"sql",name:"SQL",import:()=>e.A(470881)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(34948)},{id:"stata",name:"Stata",import:()=>e.A(549074)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(371700)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(571405)},{id:"svelte",name:"Svelte",import:()=>e.A(656662)},{id:"swift",name:"Swift",import:()=>e.A(439878)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(965862)},{id:"systemd",name:"Systemd Units",import:()=>e.A(455403)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(354724)},{id:"tasl",name:"Tasl",import:()=>e.A(391190)},{id:"tcl",name:"Tcl",import:()=>e.A(35747)},{id:"templ",name:"Templ",import:()=>e.A(432880)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(227818)},{id:"tex",name:"TeX",import:()=>e.A(196643)},{id:"toml",name:"TOML",import:()=>e.A(974683)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(758249)},{id:"tsv",name:"TSV",import:()=>e.A(916735)},{id:"tsx",name:"TSX",import:()=>e.A(198717)},{id:"turtle",name:"Turtle",import:()=>e.A(356876)},{id:"twig",name:"Twig",import:()=>e.A(768227)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(396558)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(663417)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(653245)}
1,{id:"v",name:"V",import:()=>e.A(536316)},{id:"vala",name:"Vala",import:()=>e.A(817064)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(771760)},{id:"verilog",name:"Verilog",import:()=>e.A(659585)},{id:"vhdl",name:"VHDL",import:()=>e.A(842728)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(47258)},{id:"vue",name:"Vue",import:()=>e.A(700559)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(193197)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(300764)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(100764)},{id:"wasm",name:"WebAssembly",import:()=>e.A(82956)},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>e.A(394859)},{id:"wgsl",name:"WGSL",import:()=>e.A(356046)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(117322)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(511285)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(716485)},{id:"xml",name:"XML",import:()=>e.A(384822)},{id:"xsl",name:"XSL",import:()=>e.A(400074)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(702383)},{id:"zenscript",name:"ZenScript",import:()=>e.A(19193)},{id:"zig",name:"Zig",import:()=>e.A(680198)}],r=Object.fromEntries(t.map(e=>[e.id,e.import])),n=Object.fromEntries(t.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),i={...r,...n};e.s(["bundledLanguages",0,i,"bundledLanguagesInfo",0,t])},6446,507623,e=>{"use strict";e.s(["ShikiError",0,class extends Error{constructor(e){super(e),this.name="ShikiError"}}],6446);var t,r,n=e.i(403963);function i(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,s=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,r){return e.replace(a,(e,n,i,a)=>{let s=r[parseInt(n||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function o(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){var i,a;let r=(i=e[n],i<(a=t[n])?-1:+(i>a));if(0!==r)return r}return 0}return r-n}function l(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 c=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},h=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,r=e.length;t<r;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&l(a.settings.foreground)&&(o=a.settings.foreground);let u=null;"string"==typeof a.settings.background&&l(a.settings.background)&&(u=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),l=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),r[n++]=new f(l,c,e,s,o,u)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let i=(r=e.scope,r<(n=t.scope)?-1:+(r>n));return 0!==i||0!==(i=o(e.parentScopes,t.parentScopes))?i:e.index-t.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(i=t.background)}let a=new g(t),s=new d(r,a.getId(n),a.getId(i)),l=new A(new b(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];l.insert(0,r.scope,r.parentScopes,r.fontStyle,a.getId(r.foreground),a.getId(r.background))}return new h(a,s,l)}(e,t)}_cachedMatchRoot=new c(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var r,n;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(r=e.scopeName,!((n=a)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new d(r.fontStyle,r.foreground,r.background):null}},p=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}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}
1toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},d=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},f=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},m=((t=m||{})[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t),g=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;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)}},y=Object.freeze([]),b=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,i){this.scopeDepth=e,this.parentScopes=t||y,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},A=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let i=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==i)return i;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,i,a,s){let o,l,u;if(""===r)return void this._doInsertHere(t,n,i,a,s);let c=r.indexOf(".");-1===c?(o=r,l=""):(o=r.substring(0,c),l=r.substring(c+1)),this._children.hasOwnProperty(o)?u=this._children[o]:(u=new e(this._mainRule.clone(),b.cloneArr(this._rulesWithParentScopes)),this._children[o]=u),u.insert(t+1,l,n,i,a,s)}_doInsertHere(e,t,r,n,i){if(null===t)return void this._mainRule.acceptOverwrite(e,r,n,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===o(s.parentScopes,t))return void s.acceptOverwrite(e,r,n,i)}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new b(e,t,r,n,i))}},w=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,n,i,a,s,o){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(u=n),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==s&&(p=s),0!==o&&(d=o),(l|u<<8|c<<10|h<<11|p<<15|d<<24)>>>0}};function _(e,t){var r;let n,i,a=[],s=(r=e,i=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!i)return null;let e=i[0];return i=n.exec(r),e}}),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=u();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o)t=u()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(k(o)){let e=[];do e.push(o),o=s.next();while(k(o))return r=>t(e,r)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function k(e){return!!e&&!!e.match(/[\w\.:]+/)}var C=((r=C||{})[r.None=0]="None",r[r.NotBeginString=1]="NotBeginString",r[r.NotEndString=2]="NotEndString",r[r.NotBeginPosition=4]="NotBeginPosition",r[r.DebugCall=8]="DebugCall",r);function S(e){"function"==typeof e.dispose&&e.dispose()}var v=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},x=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},E=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},N=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new v(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new E;for(let r of e)!function(e,t,r,n){let i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=r.lookup(t);e instanceof v?L({baseGrammar:a,selfGrammar:i},n):I(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new v(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof v){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 I(e,t,r){t.repository&&t.repository[e]&&T([t.repository[e]],t,r)}function L(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&T(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&T(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function T(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?i({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&T(n.patterns,{...t,repository:e},r);let a=n.include;if(!a)continue;let s=O(a);switch(s.kind){case 0:L({...t,selfGrammar:t.baseGrammar},r);break;case 1:L(t,r);break;case 2:I(s.ruleName,{...t,repository:e},r);break;case 3:case 4:let o=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let n={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===s.kind?I(s.ruleName,n,r):L(n,r)}else 4===s.kind?r.add(new x(s.scopeName,s.ruleName)):r.add(new v(s.scopeName))}}}var P=class{kind=0},$=class{kind=1},R=class{constructor(e){this.ruleName=e}kind=2},M=class{constructor(e){this.scopeName=e}kind=3},B=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function O(e){if("$base"===e)return new P;if("$self"===e)return new $;let t=e.indexOf("#");return -1===t?new M(e):0===t?new R(e.substring(1)):new B(e.substring(0,t),e.substring(t+1))}var G=/\\(\d+)/,U=/\\(\d+)/g;Symbol("RuleId");var F=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=s.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+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?s.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.replaceCaptures(this._contentName,e,t):this._contentName}},D=class extends F{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},j=class extends F{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new V(n,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,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},W=class extends F{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),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 r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},H=class extends F{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,a,s,o,l,u){super(e,t,r,n),this._begin=new V(i,this.id),this.beginCaptures=a,this._end=new V(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.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,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new X,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}},z=class extends F{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,a,s,o,l){super(e,t,r,n),this._begin=new V(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
1w V(s,-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,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new X,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,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new X,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},q=class e{static createCaptureRule(e,t,r,n,i){return e.registerRule(e=>new D(t,e,r,n,i))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new j(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=i({},n,t.repository));let a=t.patterns;return void 0===a&&t.include&&(a=[{include:t.include}]),new W(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(a,r,n))}return t.while?new z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new H(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],r,n)),i[s]=e.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=O(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(n[s.include],r,n);break;case 2:let i=n[t.ruleName];i&&(o=e.getCompiledRuleId(i,r,n));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=r.getExternalGrammar(a,n);if(u)if(l){let t=u.repository[l];t&&(o=e.getCompiledRuleId(t,r,u.repository))}else o=e.getCompiledRuleId(u.repository.$self,r,u.repository)}}else o=e.getCompiledRuleId(s,r,n);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof W||e instanceof H||e instanceof z)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},V=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let r=0,n=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(n.push(e.substring(r,a)),n.push("$(?!\\n)(?<!\\n)"),r=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=G.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=t.map(t=>e.substring(t.start,t.end));return U.lastIndex=0,this.source.replace(U,(e,t)=>u(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),i[e]=r,a[e]=r,s[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===n?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=n,a[e+1]=n,s[e+1]=n,o[e+1]=n),e
1++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},X=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Q(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new Q(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},Q=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},J=class{constructor(e,t){this.languageId=e,this.tokenType=t}},K=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new J(e,8),this._embeddedLanguagesMatcher=new Z(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new J(0,0);_getBasicScopeAttributes=new c(e=>new J(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Z=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>u(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==n.default&&n.default.env.VSCODE_TEXTMATE_DEBUG;var Y=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ee(e,t,r,n,i,a,s,o){let l=t.content.length,u=!1,c=-1;if(s){let s=function(e,t,r,n,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let r=t.getRule(e);r instanceof z&&o.push({rule:r,stack:t})}for(let d=o.pop();d;d=o.pop()){var l,u,c,h,p;let{ruleScanner:o,findOptions:f}=(l=d.rule,u=e,c=d.stack.endRule,h=r,p=n===s,{ruleScanner:l.compileWhileAG(u,c,h,p),findOptions:0}),m=o.findNextMatchSync(t,n,f);if(m){if(-2!==m.ruleId){i=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(d.stack,m.captureIndices[0].start),er(e,t,r,d.stack,a,d.rule.whileCaptures,m.captureIndices),a.produce(d.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{i=d.stack.pop();break}}
1return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,i,a);i=s.stack,n=s.linePos,r=s.isFirstLine,c=s.anchorPosition}let h=Date.now();for(;!u;){if(0!==o&&Date.now()-h>o)return new Y(i,!0);!function(){let s=function(e,t,r,n,i,a){let s=function(e,t,r,n,i,a){let{ruleScanner:s,findOptions:o}=et(i.getRule(e),e,i.endRule,r,n===a),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,i,a,s){let o,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:f}=et(t.getRule(p.ruleId),t,null,n,i===s),m=d.findNextMatchSync(r,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=l)&&(l=g,u=m.captureIndices,o=m.ruleId,c=p.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:o}:null}(o,e,t,r,n,i,a);if(!l)return s;if(!s)return l;let u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}(e,t,r,n,i,c);if(!s){a.produce(i,l),u=!0;return}let o=s.captureIndices,h=s.matchedRuleId,p=!!o&&o.length>0&&o[0].end>n;if(-1===h){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),er(e,t,r,i,a,s.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!p&&h.getEnterPos()===n){i=h,a.produce(i,l),u=!0;return}}else{let s=e.getRule(h);a.produce(i,o[0].start);let d=i,f=s.getName(t.content,o),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,n,c,o[0].end===l,null,m,m),s instanceof H){er(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let n=s.getContentName(t.content,o),h=m.pushAttributed(n,e);if(i=i.withContentNameScopesList(h),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(s instanceof z){er(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let n=s.getContentName(t.content,o),h=m.pushAttributed(n,e);if(i=i.withContentNameScopesList(h),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(er(e,t,r,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),u=!0;return}}o[0].end>n&&(n=o[0].end,r=!1)}()}return new Y(i,!1)}function et(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function er(e,t,r,n,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),u=[],c=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=s[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(n,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=n.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(o,s),c=a.pushAttributed(u,e),p=n.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),d=e.createOnigString(o.substring(0,h.end));ee(e,d,r&&0===h.start,h.start,p,i,!1,0),S(d);continue}let p=l.getName(o,s);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(p,e);u.push(new en(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var en=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ei(e,t,r,n,i){let a=_(t,ea),s=q.getCompiledRuleId(r,n,i.repository);
1for(let r of a)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:i,priority:r.priority})}function ea(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var es=class{constructor(e,t,r,n,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new K(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eo(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of _(e,ea))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)ei(e,t,n[t],this,r);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&ei(e,t,r,this,r)}})}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,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=eo(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let i;if(-1===this._rootId&&(this._rootId=q.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eu.NULL)i=!1,t.reset();else{let e;i=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=w.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?el.createRootAndLookUpScopeName(s,a,this):el.createRoot("unknown",a),t=new eu(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new eh(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ee(this,a,i,0,t,o,!0,n);return S(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eo(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=e(t[n]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let n in t)r[n]=e(t[n]);return r}(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 el=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(let t of r)n=new e(n,i=p.push(i,t.scopeNames),t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new p(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let i=n.getMetadataForScope(t),a=new p(null,t),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(r,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}
1toString(){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,r){let n=-1,i=0,a=0;return null!==r&&(n=r.fontStyle,i=r.foregroundId,a=r.backgroundId),w.set(e,t.languageId,t.tokenType,null,n,i,a)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),i=this;for(let t of n)i=e._pushAttributed(i,t,r);return i}static _pushAttributed(t,r,n){let i=n.getMetadataForScope(r),a=t.scopePath.push(r),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},eu=class e{constructor(e,t,r,n,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&el.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,r,n,i,a,s,o){return new e(this,t,r,n,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let n=el.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,el.fromExtension(n,r.contentNameScopesList))}},ec=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):_(e,ea).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>_(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}},eh=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=w.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=w.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),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 r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},ep=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new es(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},ed=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ep(h.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(h.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new ec(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,i){let a=new N(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,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 r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,i)}},ef=eu.NULL;e.s(["EncodedTokenMetadata",0,w,"FontStyle",0,m,"INITIAL",0,ef,"Registry",0,ed,"Theme",0,h],507623)},509646,e=>{"use strict";let t;var r=e.i(47129),n=e.i(196779),i=e.i(920474);let a=/["&'<>`]/g,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/[|\\{}()[\]^$+*?.]/g,u=new WeakMap,c=/[\dA-Fa-f]/,h=/\d/,p=["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","oslas
1h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],d={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
1:"â",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:"â¬"},f=["cent","copy","divide","gt","lt","not","para","times"],m={}.hasOwnProperty,g={};for(t in d)m.call(d,t)&&(g[d[t]]=t);let y=/[^\dA-Za-z]/;function b(e,t,r){var n,i;let a,s,o=(n=r.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),n&&t&&!c.test(String.fromCharCode(t))?a:a+";");if((r.useNamedReferences||r.useShortestReferences)&&(s=function(e,t,r,n){let i=String.fromCharCode(e);if(m.call(g,i)){let e=g[i],a="&"+e;return r&&p.includes(e)&&!f.includes(e)&&(!n||t&&61!==t&&y.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!s)&&r.useShortestReferences){let n,a=(i=r.omitOptionalSemicolons,n="&#"+String(e),i&&t&&!h.test(String.fromCharCode(t))?n:n+";");a.length<o.length&&(o=a)}return s&&(!r.useShortestReferences||s.length<o.length)?s:o}function A(e,t){let r;var n,i=e,c=Object.assign({format:b},t);if(i=i.replace(c.subset?(n=c.subset,(r=u.get(n))||(r=function(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(l,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),u.set(n,r)),r):a,h),c.subset||c.escapeOnly)return i;return i.replace(s,function(e,t,r){return c.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(t+2),c)}).replace(o,h);function h(e,t,r){return c.format(e.charCodeAt(0),r.charCodeAt(t+1),c)}}let w=/^>|^->|<!--|-->|--!>|<!-$/g,_=[">"],k=["<",">"];var C=e.i(769308),S=e.i(45524),v=e.i(527960),x=e.i(623545),E=e.i(87078);let N=T(1),I=T(-1),L=[];function T(e){return function(t,r,n){let i=t?t.children:L,a=(r||0)+e,s=i[a];if(!n)for(;s&&(0,E.whitespace)(s);)a+=e,s=i[a];return s}}let P={}.hasOwnProperty;function $(e){return function(t,r,n){return P.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let R=$({body:function(e,t,r){let n=N(r,t);return!n||"comment"!==n.type},caption:M,colgroup:M,dd:function(e,t,r){let n=N(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=N(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:M,html:function(e,t,r){let n=N(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=N(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=N(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=N(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=N(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName},rp:B,rt:B,tbody:function(e,t,r){let n=N(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:O,tfoot:function(e,t,r){return!N(r,t)},th:O,thead:function(e,t,r){let n=N(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=N(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function M(e,t,r){let n=N(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,E.whitespace)(n.value.charAt(0)))}function B(e,t,r){let n=N(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function O(e,t,r){let n=N(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let G=$({body:function(e){let t=N(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,E.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,r){let n=I(r,t),i=N(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&R(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=N(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=I(r,t),i=N(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&R(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),U={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
1`".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("")]]},F=["<","&"];function D(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:A(e.value,Object.assign({},n.settings.characterReferences,{subset:F}))}let j=(0,i.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"<?"+A(e.value,Object.assign({},n.settings.characterReferences,{subset:_}))+">":"<!--"+e.value.replace(w,function(e){return A(e,Object.assign({},n.settings.characterReferences,{subset:k}))})+"-->"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,i){let a,s=i.schema,o="svg"!==s.space&&i.settings.omitOptionalTags,l="svg"===s.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase()),u=[];"html"===s.space&&"svg"===e.tagName&&(i.schema=n.svg);let c=function(e,t){let r,n=[],i=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let i=function(e,t,r){let n,i=(0,v.find)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(r===i.attribute||""===r)?r=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof r||r===i.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=A(i.attribute,Object.assign({},e.settings.characterReferences,{subset:U.name[a][s]}));return!0===r||(r=Array.isArray(r)?(i.commaSeparated?S.stringify:x.stringify)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=A(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:U.unquoted[a][s]}))),n!==r&&(e.settings.quoteSmart&&(0,C.ccount)(r,o)>(0,C.ccount)(r,e.alternative)&&(o=e.alternative),n=o+A(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?U.single:U.double)[a][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);i&&n.push(i)}}for(;++i<n.length;){let t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(i,e.properties),h=i.all("html"===s.space&&"template"===e.tagName?e.content:e);return i.schema=s,h&&(l=!1),!c&&o&&G(e,t,r)||(u.push("<",e.tagName,c?" "+c:""),l&&("svg"===s.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&u.push(" "),u.push("/")),u.push(">")),u.push(h),l||o&&R(e,t,r)||u.push("</"+e.tagName+">"),u.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:D(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:D}}),W={},H={},z=[];function q(e,t,r){return j(e,t,r,this)}function V(e){let t=[],r=e&&e.children||z,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}e.s(["toHtml",0,function(e,t){let i=t||W,a=i.quote||'"';if('"'!==a&&"'"!==a)throw Error("Invalid quote `"+a+"`, expected `'` or `\"`");return({one:q,all:V,settings:{omitOptionalTags:i.omitOptionalTags||!1,allowParseErrors:i.allowParseErrors||!1,allowDangerousCharacters:i.allowDangerousCharacters||!1,quoteSmart:i.quoteSmart||!1,preferUnquoted:i.preferUnquoted||!1,tightAttributes:i.tightAttributes||!1,upperDoctype:i.upperDoctype||!1,tightDoctype:i.tightDoctype||!1,bogusComments:i.bogusComments||!1,tightCommaSeparatedLists:i.tightCommaSeparatedLists||!1,tightSelfClosing:i.tightSelfClosing||!1,collapseEmptyAttributes:i.collapseEmptyAttributes||!1,allowDangerousHtml:i.allowDangerousHtml||!1,voids:i.voids||r.htmlVoidElements,characterReferences:i.characterReferences||H,closeSelfClosing:i.closeSelfClosing||!1,closeEmptyElements:i.closeEmptyElements||!1},schema:"svg"===i.space?n.svg:n.html,quote:a,alternative:'"'===a?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}],509646)},228858,e=>{"use strict";var t=e.i(6446),r=e.i(507623),n=e.i(509646);function i(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?r[e]=i:e===n&&Object.assign(r,i);return r}function a(e,t){return e&&t?.[e?.toLowerCase()]||e}async function s(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function o(e){return!e||["plaintext","txt","text","plain"].includes(e)}function l(e){return"ansi"===e||o(e)}function u(e){return"none"===e}function c(e,t){if(!t)return e;for(let r of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function h(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(/(\r?\n)/g),n=0,i=[];for(let e=0;e<r.length;e+=2){let a=t?r[e]+(r[e+1]||""):r[e];i.push([a,n]),n+=r[e].length,n+=r[e+1]?.length||0}return i}let p="light-dark()",d=["color","background-color"];function f(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&r.FontStyle.Italic&&(t["font-style"]="italic"),e.fontStyle&r.FontStyle.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&r.FontStyle.Underline&&n.push("underline"),e.fontStyle&r.FontStyle.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function m(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let g=new WeakMap;function y(e,t){g.set(e,t)}function b(e){return g.get(e)}class A{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new A(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,r.INITIAL])),e)}constructor(...e){if(2===e.length){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let r,n;return t=this._stacks[e],r=[],n=new Set,!function e(t){if(n.has(t))return;n.add(t);let i=t?.nameScopesList?.scopeName;i&&r.push(i),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let w=[function(){let e=new WeakMap;function r(r){if(!e.has(r.meta)){var n;let i,a=function(e){if("number"==typeof e){if(e<0||e>r.source.length)throw new t.ShikiError(`Invalid decoration offset: ${e}. Code length: ${r.source.length}`);return{...s.indexToPos(e),offset:e}}{let r=s.lines[e.line];if(void 0===r)throw new t.ShikiError(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${s.lines.length}`);let n=e.character;if(n<0&&(n=r.length+n),n<0||n>r.length)throw new t.ShikiError(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${r.length}`);return{...e,character:n,offset:s.posToIndex(e.line,n)}}}
1,s={lines:i=h(n=r.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,r=0;for(let e of i){if(t<e.length)break;t-=e.length,r++}return{line:r,character:t}},posToIndex:function(e,t){let r=0;for(let t=0;t<e;t++)r+=i[t].length;return r+t}},o=(r.options.decorations||[]).map(e=>({...e,start:a(e.start),end:a(e.end)}));(function(e){for(let r=0;r<e.length;r++){let n=e[r];if(n.start.offset>n.end.offset)throw new t.ShikiError(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=r+1;i<e.length;i++){let r=e[i],a=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,s=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,o=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,l=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(a||s||o||l){if(a&&s||o&&l||o&&n.start.offset===n.end.offset||s&&r.start.offset===r.end.offset)continue;throw new t.ShikiError(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}})(o),e.set(r.meta,{decorations:o,converter:s,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(e){let t;if(!this.options.decorations?.length)return;let n=r(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(t=Array.from(n instanceof Set?n:new Set(n)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let r=t.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!r.length)return e;let n=0,i=[];for(let t of r)t>n&&i.push({...e,content:e.content.slice(n,t),offset:e.offset+n}),n=t;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i})):e},code(e){if(!this.options.decorations?.length)return;let n=r(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==n.converter.lines.length)throw new t.ShikiError(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function a(e,r,n,a){let o=i[e],l="",u=-1,c=-1;if(0===r&&(u=0),0===n&&(c=0),n===1/0&&(c=o.children.length),-1===u||-1===c)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===u&&l.length===r&&(u=e+1),-1===c&&l.length===n&&(c=e+1);if(-1===u)throw new t.ShikiError(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(-1===c)throw new t.ShikiError(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let h=o.children.slice(u,c);if(a.alwaysWrap||h.length!==o.children.length)if(a.alwaysWrap||1!==h.length||"element"!==h[0].type){let e={type:"element",tagName:"span",properties:{},children:h};s(e,a,"wrapper"),o.children.splice(u,h.length,e)}else s(h[0],a,"token");else s(o,a,"line")}function s(e,t,r){let n=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&c(e,t.properties.class),e=i(e,r)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)a(t.line,t.character,r.character,e);else if(t.line<r.line){a(t.line,t.character,1/0,e);for(let n=t.line+1;n<r.line;n++)o.unshift(()=>{var t;i[t=n]=s(i[t],e,"line")});a(r.line,0,r.character,e)}}o.forEach(e=>e())}}}()];function _(e){let t=function(e){let t=[],r=[],n=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...w]}var k=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],C={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function S(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var v={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let x={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",
1white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function E(e,n,s={}){var l,c;let p,d,{theme:f=e.getLoadedThemes()[0]}=s,m=e.resolveLangAlias(s.lang||"text");if(o(m)||u(f))return h(n).map(e=>[{content:e[0],offset:e[1]}]);let{theme:g,colorMap:b}=e.setTheme(f);if("ansi"===m){let e,t,o,l,u,c,p;return e=i(g,s),t=h(n),o=function(e=v){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var i;return i=n.index,function(){if(t)return t;t=[];for(let r=0;r<k.length;r++)t.push(e[k[r]]);let n=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(r([n[e],n[i],n[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(r([i,i,i]));return t}()[i]}}}}(Object.fromEntries(k.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,g.colors?.[t]||x[e]]}))),l=null,u=null,c=new Set,p={parse(e){let t=[],r=0;do{let n=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),i=n.sequence?e.substring(r,n.startPosition):e.substring(r);if(i.length>0&&t.push({value:i,foreground:l,background:u,decorations:new Set(c)}),n.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)C[n]&&t.push({type:"setDecoration",value:C[n]});else if(n<=29){let e=C[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:k[n-30]}});else if(38===n){let r=S(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:k[n-40]}});else if(48===n){let r=S(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:k[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:k[n-100+8]}})}return t}(n.sequence);for(let t of e)"resetAll"===t.type?(l=null,u=null,c.clear()):"resetForegroundColor"===t.type?l=null:"resetBackgroundColor"===t.type?u=null:"resetDecoration"===t.type&&c.delete(t.value);for(let t of e)"setForegroundColor"===t.type?l=t.value:"setBackgroundColor"===t.type?u=t.value:"setDecoration"===t.type&&c.add(t.value)}r=n.position}while(r<e.length)return t}},t.map(t=>p.parse(t[0]).map(n=>{let i,s;n.decorations.has("reverse")?(i=n.background?o.value(n.background):g.bg,s=n.foreground?o.value(n.foreground):g.fg):(i=n.foreground?o.value(n.foreground):g.fg,s=n.background?o.value(n.background):void 0),i=a(i,e),s=a(s,e),n.decorations.has("dim")&&(i=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${r}${r}${n}${n}${a}`}else if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}(i));let l=r.FontStyle.None;return n.decorations.has("bold")&&(l|=r.FontStyle.Bold),n.decorations.has("italic")&&(l|=r.FontStyle.Italic),n.decorations.has("underline")&&(l|=r.FontStyle.Underline),n.decorations.has("strikethrough")&&(l|=r.FontStyle.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:s,fontStyle:l}}))}let w=e.getLanguage(s.lang||"text");if(s.grammarState){if(s.grammarState.lang!==w.name)throw new t.ShikiError(`Grammar state language "${s.grammarState.lang}" does not match highlight language "${w.name}"`);if(!s.grammarState.themes.includes(g.name))throw new t.ShikiError(`Grammar state themes "${s.grammarState.themes}" do not contain highlight theme "${g.name}"`)}return d=new A((p=N(n,l=w,c=g,b,s)).stateStack,l.name,c.name),y(p.tokens,d),p.tokens}function N(e,n,s,o,l){let u=i(s,l),{tokenizeMaxLineLength:c=0,tokenizeTimeLimit:p=500}=l,d=h(e),f=l.grammarState?function(e,r){if(!(e instanceof A))throw new t.ShikiError("Invalid grammar state");return e.getInternalStack(r)}(l.grammarState,s.name)??r.INITIAL:null!=l.grammarContextCode?N(l.grammarContextCode,n,s,o,{...l,grammarState:void 0,grammarContextCode:void 0}).stateStack:r.INITIAL,m=[],g=[];for(let e=0,t=d.length;e<t;e++){let t,i,[h,y]=d[e];if(""===h){m=[],g.push([]);continue}if(c>0&&h.length>=c){m=[],g.push([{content:h,offset:y,color:"",fontStyle:0}]);continue}l.includeExplanation&&(t=n.tokenizeLine(h,f,p).tokens,i=0);let b=n.tokenizeLine2(h,f,p),A=b.tokens.length/2;for(let e=0;e<A;e++){let n=b.tokens[2*e],c=e+1<A?b.tokens[2*e+2]:h.length;if(n===c)continue;let p=b.tokens[2*e+1],d=a(o[r.EncodedTokenMetadata.getForeground(p)],u),f=r.EncodedTokenMetadata.getFontStyle(p),g={content:h.substring(n,c),offset:y+n,color:d,fontStyle:f};if(l.includeExplanation){let e=[];
1if("scopeName"!==l.includeExplanation)for(let t of s.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}g.explanation=[];let r=0;for(;n+r<c;){let n=t[i],a=h.substring(n.startIndex,n.endIndex);r+=a.length,g.explanation.push({content:a,scopes:"scopeName"===l.includeExplanation?n.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let i=t[n];r[n]={scopeName:i,themeMatches:function(e,t,r){let n=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,r){if(!I(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)I(e[n],r[i])&&(n-=1),i-=1;return -1===n}(e,t,r)){n.push(a);break}return n}(e,i,t.slice(0,n))}}return r}(e,n.scopes)}),i+=1}}m.push(g)}g.push(m),m=[],f=b.ruleStack}return{tokens:g,stateStack:f}}function I(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function L(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=n.map(n=>{let i=E(e,t,{...r,theme:n.theme}),a=b(i);return{tokens:i,state:a,theme:"string"==typeof n.theme?n.theme:n.theme.name}}),a=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let i=e.map(e=>e[n]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<r;t++){let r=o[t];r.content.length===e?(a[t].push(r),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,r)=>{let{content:a,explanation:o,offset:l,...u}=e[t][i];s.variants[n[r].color]=u}),s})),o=i[0].state?new A(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&y(s,o),s}function T(e,r,n){let s,o,l,u,c,h;if("themes"in n){let{defaultColor:a="light",cssVariablePrefix:m="--shiki-",colorsRendering:g="css-vars"}=n,A=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===a?-1:+(t.color===a));if(0===A.length)throw new t.ShikiError("`themes` option must not be empty");let w=L(e,r,n);if(h=b(w),a&&p!==a&&!A.find(e=>e.color===a))throw new t.ShikiError(`\`themes\` option must contain the defaultColor key \`${a}\``);let _=A.map(t=>e.getTheme(t.theme)),k=A.map(e=>e.color);l=w.map(e=>e.map(e=>(function(e,r,n,i,a="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},o=r.map(t=>f(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),u={},c=(e,t)=>{let i="color"===t?"":"background-color"===t?"-bg":`-${t}`;return n+r[e]+("color"===t?"":i)};return o.forEach((e,n)=>{for(let s of l){let l=e[s]||"inherit";if(0===n&&i&&d.includes(s))if(i===p&&o.length>1){let e=r.findIndex(e=>"light"===e),i=r.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new t.ShikiError('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let h=o[e][s]||"inherit",p=o[i][s]||"inherit";u[s]=`light-dark(${h}, ${p})`,"css-vars"===a&&(u[c(n,s)]=l)}else u[s]=l;else"css-vars"===a&&(u[c(n,s)]=l)}}),s.htmlStyle=u,s})(e,k,m,a,g))),h&&y(l,h);let C=A.map(e=>i(e.theme,n));o=P(A,_,C,m,a,"fg",g),s=P(A,_,C,m,a,"bg",g),u=`shiki-themes ${_.map(e=>e.name).join(" ")}`,c=a?void 0:[o,s].join(";")}else if("theme"in n){let t=i(n.theme,n);l=E(e,r,n);let c=e.getTheme(n.theme);s=a(c.bg,t),o=a(c.fg,t),u=c.name,h=b(l)}else throw new t.ShikiError("Invalid options, either `theme` or `themes` must be provided");return{tokens:l,fg:o,bg:s,themeName:u,rootStyle:c,grammarState:h}}function P(e,r,n,i,s,o,l){return e.map((u,c)=>{let h=a(r[c][o],n[c])||"inherit",d=`${i+u.color}${"bg"===o?"-bg":""}:${h}`;if(0===c&&s){if(s===p&&e.length>1){let i=e.findIndex(e=>"light"===e.color),s=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===s)throw new t.ShikiError('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let l=a(r[i][o],n[i])||"inherit",u=a(r[s][o],n[s])||"inherit";return`light-dark(${l}, ${u});${d}`}return h}return"css-vars"===l?d:null}).filter(e=>!!e).join(";")}function $(e,t,n,i={meta:{},options:n,codeToHast:(t,r)=>$(e,t,r),codeToTokens:(t,r)=>T(e,t,r)}){let a=t;for(let e of _(n))a=e.preprocess?.call(i,a,n)||a;let{tokens:s,fg:o,bg:l,themeName:u,rootStyle:h,grammarState:p}
1=T(e,a,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:g=!1}=n;!0===d?s=s.map(e=>{let t,n=[],i="";return e.forEach((a,s)=>{let o=!(a.fontStyle&&(a.fontStyle&r.FontStyle.Underline||a.fontStyle&r.FontStyle.Strikethrough));o&&a.content.match(/^\s+$/)&&e[s+1]?(void 0===t&&(t=a.offset),i+=a.content):i?(o?n.push({...a,offset:t,content:i+a.content}):n.push({content:i,offset:t},a),t=void 0,i=""):n.push(a)}),n}):"never"===d&&(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[,r,n,i]=t;if(!r&&!i)return e;let a=[{...e,offset:e.offset+r.length,content:n}];return r&&a.unshift({content:r,offset:e.offset}),i&&a.push({content:i,offset:e.offset+r.length+n.length}),a}))),g&&(s=s.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],i=m(e.htmlStyle||f(e)),a=m(n.htmlStyle||f(n)),s=e.fontStyle&&(e.fontStyle&r.FontStyle.Underline||e.fontStyle&r.FontStyle.Strikethrough),o=n.fontStyle&&(n.fontStyle&r.FontStyle.Underline||n.fontStyle&r.FontStyle.Strikethrough);s||o||i!==a?t.push({...n}):e.content+=n.content}return t}));let A={...i,get source(){return a}};for(let e of _(n))s=e.tokens?.call(A,s)||s;return function(e,t,r,n=b(e)){let i=_(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(u.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(u[e]=r);let h={type:"element",tagName:"pre",properties:u,children:[],data:t.data},p={type:"element",tagName:"code",properties:{},children:a},d=[],g={...r,structure:o,addClassToHast:c,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return h},get code(){return p},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=m(a.htmlStyle||f(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(g,e,t+1,n,r,a)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=a.content.length}if("classic"===o){for(let e of i)r=e?.line?.call(g,r,t+1)||r;d.push(r),a.push(r)}else"inline"===o&&d.push(r)}),"classic"===o){for(let e of i)p=e?.code?.call(g,p)||p;for(let e of(h.children.push(p),i))h=e?.pre?.call(g,h)||h;s.children.push(h)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of s.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of i)r=e?.code?.call(g,r)||r;s.children=[];for(let e=0;e<r.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&s.children.push(...t.children)}}let A=s;for(let e of i)A=e?.root?.call(g,A)||A;return n&&y(A,n),A}(s,{...n,fg:o,bg:l,themeName:u,rootStyle:!1!==n.rootStyle&&(n.rootStyle??h)},A,p)}let R=n.toHtml,M="__shiki_resolved";function B(e){if(e?.[M])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?"#333333":"#bbbbbb"),r||(r="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let r=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(a.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let i={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,i.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,i.settings.background=r}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,M,{enumerable:!1,writable:!1,value:!0}),t}async function O(e){return Array.from(new Set((await Promise.all(e.filter(e=>!l(e)).map(async e=>await s(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function G(e){return(await Promise.all(e.map(async e=>u(e)?null:B(await s(e))))).filter(e=>!!e)}
1class U extends Error{constructor(e){super(e),this.name="ShikiError"}}function F(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new U(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class D extends r.Registry{constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=B(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=r.Theme.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=F(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),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()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>{if(!t)return!1;let n=t.embeddedLanguages||t.embeddedLangs;return n?.some(e=>r.map(([e])=>e).includes(e))}).filter(e=>!r.includes(e));throw new U(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class j{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}}let W=0;async function H(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([G(e.themes||[]),O(e.langs||[]),e.engine]);return function(e){let t;W+=1,!1!==e.warnings&&W>=10&&W%10==0&&console.warn(`[Shiki] ${W} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new U("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(B),a=new D(new j(e.engine,n),i,n,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new U(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(r)throw new U("Shiki instance has been disposed")}function c(){r||(r=!0,a.dispose(),W-=1)}return{setTheme:function(e){u();let r=s(e);return t!==e&&(a.setTheme(r),t=e),{theme:r,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new U(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},resolveLangAlias:function(t){return F(t,e.langAlias)},loadLanguage:async function(...e){return o(await O(e))},loadLanguageSync:o,loadTheme:async function(...e){return u(),l(await G(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:r,engine:n})}async function z(e){let r=await H(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return b(e[1]);let[r,n,i={}]=e,{lang:a="text",theme:s=r.getLoadedThemes()[0]}=i;if(o(a)||u(s))throw new t.ShikiError("Plain language does not have grammar state");if("ansi"===a)throw new t.ShikiError("ANSI language does not have grammar state");let{theme:l,colorMap:c}=r.setTheme(s),h=r.getLanguage(a);return new A(N(n,h,l,c,i).stateStack,h.name,l.name)})(r,...e),codeToTokensBase:(e,t)=>E(r,e,t),codeToTokensWithThemes:(e,t)=>L(r,e,t),codeToTokens:(e,t)=>T(r,e,t),codeToHast:(e,t)=>
1$(r,e,t),codeToHtml:(e,t)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>$(e,t,r),codeToTokens:(t,r)=>T(e,t,r)},i=R($(e,t,r,n));for(let e of _(r))i=e.postprocess?.call(n,i,r)||i;return i})(r,e,t),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...r,getInternalContext:()=>r}}e.s(["createBundledHighlighter",0,function(e){let r=e.langs,n=e.themes,i=e.engine;return async function(e){function a(n){if("string"==typeof n){if(l(n=e.langAlias?.[n]||n))return[];let i=r[n];if(!i)throw new t.ShikiError(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return i}return n}function s(e){if(u(e))return"none";if("string"==typeof e){let r=n[e];if(!r)throw new t.ShikiError(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return r}return e}let o=(e.themes??[]).map(e=>s(e)),c=(e.langs??[]).map(e=>a(e)),h=await z({engine:e.engine??i(),...e,themes:o,langs:c});return{...h,loadLanguage:(...e)=>h.loadLanguage(...e.map(a)),loadTheme:(...e)=>h.loadTheme(...e.map(s)),getBundledLanguages:()=>r,getBundledThemes:()=>n}}},"createSingletonShorthands",0,function(e,t){let r,n=async function(t={}){if(r){let e=await r;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{r=e({...t,themes:[],langs:[]});let n=await r;return await Promise.all([n.loadTheme(...t.themes||[]),n.loadLanguage(...t.langs||[])]),n}};async function i(e,r){let i=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}},"guessEmbeddedLanguages",0,function(e,t,r){let n=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&n.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&n.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&n.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),r=e.includes("/")?e.split("/").pop():e;r&&n.add(r)}if(!r)return Array.from(n);let i=r.getBundledLanguages();return Array.from(n).filter(e=>e&&i[e])},"normalizeTheme",0,B])},362185,e=>{"use strict";let t=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(929589)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(659020)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(47207)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(144347)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(227505)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(687693)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(666352)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(685988)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(448875)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(434906)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(241348)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(663125)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(922602)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(653250)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(950493)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(869871)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(348724)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(77610)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(141620)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(569028)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(803889)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(779366)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(685234)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(981442)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(633345)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(159349)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(37755)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(707116)},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>e.A(757669)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(944791)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(485464)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(828288)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(230837)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(405475)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(922902)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(587580)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(299952)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(829525)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(153648)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(986954)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(220489)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(891603)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(529413)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(915659)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(786218)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(14048)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(512975)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(78582)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(88473)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(32453)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(744767)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(500675)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(16805)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(629304)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(697557)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(190513)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(991896)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(320542)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(106933)}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(794115)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(227318)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(541005)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(957168)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(203452)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(946898)}].map(e=>[e.id,e.import]));e.s(["bundledThemes",0,t])},993898,194487,390529,e=>{"use strict";let t;var r=e.i(228858),n=e.i(511898),i=e.i(362185),a=e.i(477881);class s extends Error{constructor(e){super(e),this.name="ShikiError"}}function o(){return"u">typeof performance?performance.now():Date.now()}let l=(e,t)=>e+(t-e%t)%t;async function u(e){let t,r,n={};function i(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,i=t;for(;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let r=e[t++];if(!(128&r)){s+=String.fromCharCode(r);continue}let n=63&e[t++];if((224&r)==192){s+=String.fromCharCode((31&r)<<6|n);continue}let i=63&e[t++];if((r=(240&r)==224?(15&r)<<12|n<<6|i:(7&r)<<18|n<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(r);else{let e=r-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let u={emscripten_get_now:o,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let a=n.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let n=1;n<=4;n*=2){let s=a*(1+.2/n);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,l(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function c(){let r=await e({env:u,wasi_snapshot_preview1:u});i((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await c(),n}var c=Object.defineProperty,h=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?c(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let p=null;class d{constructor(e){h(this,"utf16Length"),h(this,"utf8Length"),h(this,"utf16Value"),h(this,"utf8Value"),h(this,"utf16OffsetToUtf8"),h(this,"utf8OffsetToUtf16");const t=e.length,r=d._utf8ByteLength(e),n=r!==t,i=n?new Uint32Array(t+1):null;n&&(i[t]=r);const a=n?new Uint32Array(r+1):null;n&&(a[r]=t);const s=new Uint8Array(r);let o=0;for(let r=0;r<t;r++){const l=e.charCodeAt(r);let u=l,c=!1;if(l>=55296&&l<=56319&&r+1<t){const t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}n&&(i[r]=o,c&&(i[r+1]=o),u<=127?a[o+0]=r:u<=2047?(a[o+0]=r,a[o+1]=r):u<=65535?(a[o+0]=r,a[o+1]=r,a[o+2]=r):(a[o+0]=r,a[o+1]=r,a[o+2]=r,a[o+3]=r)),u<=127?s[o++]=u:(u<=2047?s[o++]=192|(1984&u)>>>6:(u<=65535?s[o++]=224|(61440&u)>>>12:(s[o++]=240|(1835008&u)>>>18,s[o++]=128|(258048&u)>>>12),s[o++]=128|(4032&u)>>>6),s[o++]=128|(63&u)>>>0),c&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){let i=e.charCodeAt(r),a=i,s=!1;if(i>=55296&&i<=56319&&r+1<n){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let f=class e{constructor(t){if(h(this,"id",++e.LAST_ID),h(this,"_onigBinding"),h(this,"content"),h(this,"utf16Length"),h(this,"utf8Length"),h(this,"utf16OffsetToUtf8"),h(this,"utf8OffsetToUtf16"),h(this,"ptr"),!p)throw new s("Must invoke loadWasm first.");this._onigBinding=p,this.content=t;const r=new d(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=p.omalloc(1e4)),e._sharedPtrInUse=!0,p.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(p)}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===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};h(f,"LAST_ID",0),h(f,"_sharedPtr",0),h(f,"_sharedPtrInUse",!1);class m{constructor(e){if(h(this,"_onigBinding"),h(this,"_ptr"),!p)throw new s("Must invoke loadWasm first.");const t=[],r=[];for(let n=0,i=e.length;n<i;n++){const i=new d(e[n]);t[n]=i.createString(p),r[n]=i.utf8Length}const n=p.omalloc(4*e.length);p.HEAPU32.set(t,n/4);const i=p.omalloc(4*e.length);p.HEAPU32.set(r,i/4);const a=p.createOnigScanner(n,i,e.length);for(let r=0,n=e.length;r<n;r++)p.ofree(t[r]);p.ofree(i),p.ofree(n),0===a&&function(e){throw new s(e.UTF8ToString(e.getLastO
1nigError()))}(p),this._onigBinding=p,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if("number"==typeof r&&(n=r),"string"==typeof e){e=new f(e);let r=this._findNextMatchSync(e,t,!1,n);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],u=s[o++],c=[];for(let t=0;t<u;t++){let r=e.convertUtf8OffsetToUtf16(s[o++]),n=e.convertUtf8OffsetToUtf16(s[o++]);c[t]={start:r,end:n,length:n-r}}return{index:l,captureIndices:c}}}function g(e){return t=>WebAssembly.instantiate(e,t)}async function y(e){return e&&await (t||(t=async function(){p=await u(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,i,s,o;if(void 0!==r.data&&(r=r.data),n=r,"u">typeof Response&&n instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (s=r,e=>WebAssembly.instantiateStreaming(s,e))(t):await (o=r,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=r,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==a.Buffer&&a.Buffer.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await g(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await g(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())),{createScanner:e=>new m(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new f(e)}}e.s(["createOnigurumaEngine",0,y],194487);let b=(0,r.createBundledHighlighter)({langs:n.bundledLanguages,themes:i.bundledThemes,engine:()=>y(e.A(809784))});function A(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}r.guessEmbeddedLanguages,e.s(["createHighlighter",0,b],993898);let w=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),_=String.raw;function k(e,t){if(null==e)throw Error(t??"Value expected");return e}let C=_`\[\^?`,S=`c.? | C(?:-.?)?|${_`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${_`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${_`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${_`o\{[^\}]*\}?`}|${_`\d{1,3}`}`,v=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,x=RegExp(_` 2 \\ (?: 3 ${S} 4 | [gk]<[^>]*>? 5 | [gk]'[^']*'? 6 | . 7 ) 8 | \( (?: 9 \? (?: 10 [:=!>({] 11 | <[=!] 12 | <[^>]*> 13 | '[^']*' 14 | ~\|? 15 | #(?:[^)\\]|\\.?)* 16 | [^:)]*[:)] 17 )? 18 | \*[^\)]*\)? 19 )? 20 | (?:${v.source})+ 21 | ${C} 22 | . 23`.replace(/\s+/g,""),"gsu"),E=RegExp(_` 24 \\ (?: 25 ${S} 26 | . 27 ) 28 | \[:(?:\^?\p{Alpha}+|\^):\] 29 | ${C} 30 | && 31 | . 32`.replace(/\s+/g,""),"gsu");function N(e,{inCharClass:t}){let r=e[1];if("c"===r||"C"===r){var n,i=e;let t="c"===i[1]?i[2]:i[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${i}"`);return T(A(t.toUpperCase())-64,i)}if("dDhHsSwW".includes(r)){let t;return $({d:"digit",h:"hex",s:"space",w:"word"}[t=(n=e)[1].toLowerCase()],n,{negate:n[1]!==t})}if(e.startsWith(_`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return $("property",e,{value:n,negate:"P"===t&&!r||"p"===t&&!!r})}(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),n=new TextEncoder;return[...r].map(e=>{let t=[...n.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return T(A(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===r||"x"===r)return T(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(O.has(r))return T(O.get(r),e);if(/\d/.test(r))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(_`Incomplete escape "\"`);if("M"===r)throw Error(`Unsupported meta "${e}"`);
32if(2==[...e].length)return T(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function I(e,t){return{type:"Assertion",kind:e,raw:t}}function L(e){return{type:"Backreference",raw:e}}function T(e,t){return{type:"Character",value:e,raw:t}}function P(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function $(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function R(e,t,r={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:k(r.flags),raw:t}}function M(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}let B=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),O=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function G(e){let t=null,r,n;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((r=+i)>(n=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=+("+"===e[0]),n="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:r,max:n,raw:e}}function U(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function F(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let r=e.body[0];return!t||Object.keys(t).every(e=>t[e]===r[e])}let D=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function j(e,t={}){var r;let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let n=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw Error(`Invalid flag "${n}"`);if("y"===n){if(!/^y{[gw]}/.test(e.slice(r)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[r+2]?"grapheme":"word",r+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[n]]=!0}return t}(r.flags),i=[n.extended],a={captureGroup:r.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:r.rules.singleline},s=[],o;for(x.lastIndex=0;o=x.exec(e);){let t=function(e,t,r,n){let[i,a]=r;if("["===r||"[^"===r){let e=function(e,t,r){let n=[P("^"===t[1],t)],i=1,a;for(E.lastIndex=r;a=E.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,n.push(P("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===n.at(-1).type)n.push(T(93,e));else if(i--,n.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return N(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!w.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return $("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:T(A(e),e)}(e);Array.isArray(t)?n.push(...t):n.push(t)}}return{tokens:n,lastIndex:E.lastIndex||e.length}}(t,r,n);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:I(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:{type:"Subroutine",raw:r}}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:L(r)}}if("K"===a)return{token:R("keep",r)};if("N"===a||"R"===a)return{token:$("newline",r,{negate:"N"===a})};if("O"===a)return{token:$("any",r)};if("X"===a)return{token:$("text_segment",r)};let e=N(r,{inCharClass:!1}
32);return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:i}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(""===n)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[s,o,l]=a,u=B.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof s)throw Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(2===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return{type:"NamedCallout",kind:u,tag:n??null,arguments:i?.split(",")??null,raw:e}}(r)};if("(?{"===r)throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(")"!==t[n])throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:function(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=U(r),s=U(n),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),R("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,M("group",e,{...(a||s)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===r&&!e.captureGroup||"(?:"===r)return{token:M("group",r)};if("(?>"===r)return{token:M("atomic",r)};if("(?="===r||"(?!"===r||"(?<="===r||"(?<!"===r)return{token:M("<"===r[2]?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if("("===r&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:M("capturing",r,{..."("!==r&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if("(?~|"===r)throw Error(`Unsupported absence function kind "${r}"`);return{token:M("absence_repeater",r)}}throw"(?("===r?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(")"===r){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:r}}}if(e.getCurrentModX()){if("#"===r){let e=t.indexOf(` 33`,n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:$("dot",r)}:"^"===r||"$"===r?{token:I(e.singleline?({"^":_`\A`,$:_`\Z`})[r]:r,r)}:"|"===r?{token:{type:"Alternator",raw:r}}:v.test(r)?{tokens:function(e){let t,r=[],n=RegExp(v,"gy");for(;t=n.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>
33+a&&e.endsWith("?")){n.lastIndex--,r.push(G(e.slice(0,-1)));continue}}}r.push(G(e))}return r}(r)}:{token:T(A(r),r)}}(a,e,o[0],x.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(x.lastIndex=t.lastIndex)}let l=[],u=0;s.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++u:"("===e.raw&&l.push(e)}),u||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let c=u||l.length;return{tokens:s.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[L(r)];let a=[],s=i.match(/^[0-7]+|\d/g);for(let e=0;e<s.length;e++){let t,n=s[e];if(0===e&&"8"!==n&&"9"!==n){if((t=parseInt(n,8))>127)throw Error(_`Octal encoded byte above 177 unsupported "${r}"`)}else t=A(n);a.push(T(t,(0===e?"\\":"")+n))}return a}(e,c):e).flat(),flags:n}}(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(e,t)=>{let r=i.tokens[s.nextIndex];switch(s.parent=e,s.nextIndex++,r.type){case"Alternator":return W();case"Assertion":return function({kind:e}){return H(k({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===_`\B`||e===_`\Y`})}(r);case"Backreference":return function({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(r,n=!1)=>{let i=t.capturingGroups.length,a=!1;if(r>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,z(n?i+1-r:r,{orphan:a})};if(r){let r=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(r)return i(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);
33if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return z(n)}return i(+n)}(r,s);case"Character":return V(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t){let{tokens:r,walk:n}=e,i=e.parent,a=i.body.at(-1),s=r[e.nextIndex];if(!t.isCheckingRangeEnd&&a&&"CharacterClass"!==a.type&&"CharacterClassRange"!==a.type&&s&&"CharacterClassOpen"!==s.type&&"CharacterClassClose"!==s.type&&"CharacterClassIntersector"!==s.type){let e=n(i,{...t,isCheckingRangeEnd:!0});if("Character"===a.type&&"Character"===e.type)return i.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(a,e);throw Error("Invalid character class range")}return V(A("-"))}(s,t);case"CharacterClassOpen":return function({negate:e},t,r){let{tokens:n,walk:i}=t,a=[X()],s=n[t.nextIndex],o=es(s);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)a.push(X()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,r))}o=es(n[t.nextIndex],s)}let l=X({negate:e});return 1===a.length?l.body=a[0].body:(l.kind="intersection",l.body=a.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(r,s,t);case"CharacterSet":return function({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=n;if("property"===e){let n=ea(r);if(!w.has(n)||s?.has(n))return ee(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s});e="posix",r=n}return"posix"===e?function(e,t){let r=!!t?.negate;if(!w.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}(r,{negate:t}):Q(e,{negate:t})}(r,s);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:k(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(r.kind,{flags:r.flags});case"GroupOpen":return function(e,t,r){var n,i;let{tokens:a,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:l,walk:u}=t,c=function({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":var a="repeater";!1;return{type:"AbsenceFunction",kind:a,body:et(void 0)};case"atomic":return J({atomic:!0});case"capturing":return q(i,{name:r});case"group":return J({flags:e});case"lookahead":case"lookbehind":return K({behind:"lookbehind"===t,negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}(e),h="AbsenceFunction"===c.type,p=ei(c),d=p&&c.negate;if("CapturingGroup"===c.type&&(s.push(c),c.name&&(n=c.name,i=[],o.has(n)||o.set(n,i),o.get(n)).push(c)),h&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=eo(a[t.nextIndex]);for(;"GroupClose"!==f.type;){if("Alternator"===f.type)c.body.push(W()),t.nextIndex++;else{let e=c.body.at(-1),t=u(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||h,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||d});if(e.body.push(t),(p||r.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(d||r.isInNegLookbehind){if(en(t)||"CapturingGroup"===t.type)throw Error(e)}else if(en(t)||ei(t)&&t.negate)throw Error(e)}}f=eo(a[t.nextIndex])}return t.nextIndex++,c}(r,s,t);case"NamedCallout":var n,a;return n=r.kind,a=r.tag,{type:"NamedCallout",kind:n,tag:a,arguments:r.arguments};case"Quantifier":return function({kind:e,min:t,max:r},n){let i=n.parent,a=i.body.at(-1);if(!a||!D.has(a.type))throw Error("Quantifier requires a repeatable token");let s=Z(e,t,r,a);return i.body.pop(),s}(r,s);
33case"Subroutine":return function({raw:e},t){let{capturingGroups:r,subroutines:n}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,n=r.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":n+e,"-":n+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let s=Y(i);return n.push(s),s}(r,s);default:throw Error(`Unexpected token type "${r.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},o=(r={type:"Flags",...i.flags},{type:"Regex",body:et(void 0),flags:r}),l=o.body[0];for(;s.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(o.body.push(e),l=e):l.body.push(e)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:h,subroutines:p}=s;if(c&&h.size&&!n.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of p)if("number"==typeof e){if(e>u.length)throw Error("Subroutine uses a group number that's not defined");e&&(u[e-1].isSubroutined=!0)}else if(h.has(e)){if(h.get(e).length>1)throw Error(_`Subroutine uses a duplicate group name "\g<${e}>"`);h.get(e)[0].isSubroutined=!0}else throw Error(_`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function W(e){return{type:"Alternative",body:er(e?.body)}}function H(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function z(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function q(e,t){var r;let n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&(r=n.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:et(t?.body)}}function V(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function X(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:er(e?.body)}}function Q(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),"text_segment"!==e&&("newline"!==e||r)||(n.variableLength=!0),n}function J(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:et(e?.body)}}function K(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:et(e?.body)}}function Z(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function Y(e){return{type:"Subroutine",ref:e}}function ee(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(ea(e));if(!n){if(r.normalizeUnknownPropertyNames)n=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(_`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function et(e){if(void 0===e)e=[W()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function er(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function en(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function ei(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function ea(e){return e.replace(/[- _]+/g,"").toLowerCase()}function es(e,t){return k(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function eo(e){return k(e,"Unclosed group")}function el(e,t,r=null){function n(e,t){for(let r=0;r<e.length;r++){let n=i(e[r],t,r,e);r=Math.max(-1,r+n)}}function i(a,s=null,o=null,l=null){let u=0,c=!1,h={node:a,parent:s,key:o,container:l,root:e,remove(){eu(l).splice(Math.max(0,ec(o)+u),1),u--,c=!0},removeAllNextSiblings:()=>eu(l).splice(ec(o)+1),removeAllPrevSiblings(){let e=ec(o)+u;return u-=e,eu(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,ec(o)+u)]=e:k(s,"Can't replace root node")[o]=e,r&&i(e,s,o,l),c=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(eu(l).splice(Math.max(0,ec(o)+u),1,...e),u+=e.length-1,r){let t=0;for(let r=0;r<e.length;r++)t+=i(e[r],s,ec(o)+r+t,l)}c=!0},skip(){c=!0}},{type:p}=a,d=t["*"],f=t[p],m="function"==typeof d?d:d?.enter,g="function"==typeof f?f:f?.enter;if(m?.(h,r),g?.(h,r),!c)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subrout
33ine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":n(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${p}"`)}return f?.exit?.(h,r),d?.exit?.(h,r),u}return i(e),e}function eu(e){if(!Array.isArray(e))throw Error("Container expected");return e}function ec(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let eh=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,ep=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ed(e,t,r,n){let i=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],s=0,o="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!n||n===ep.DEFAULT==!s)){r instanceof Function?o+=r(t,{context:s?ep.CHAR_CLASS:ep.DEFAULT,negated:a[a.length-1]}):o+=r;continue}"["===e[0]?(s++,a.push("^"===e[1])):"]"===e&&s&&(s--,a.pop()),o+=e}return o}function ef(e,t,r){return!!function(e,t,r=0,n){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let s=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!n||n===ep.DEFAULT==!s))return i;"["===e?s++:"]"===e&&s&&s--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,r)}let em=RegExp(String.raw`(?<noncapturingStart>${eh})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),eg=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ey=RegExp(String.raw` 34\\(?: \d+ 35 | c[A-Za-z] 36 | [gk]<[^>]+> 37 | [pPu]\{[^\}]+\} 38 | u[A-Fa-f\d]{4} 39 | x[A-Fa-f\d]{2} 40 ) 41| \((?: \? (?: [:=!>] 42 | <(?:[=!]|[^>]+>) 43 | [A-Za-z\-]+: 44 | \(DEFINE\) 45 ))? 46| (?<qBase>${eg})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 47| \\?. 48`.replace(/\s+/g,""),"gsu"),eb=String.raw,eA=eb`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ew=eb`\(\?R=(?<rDepth>[^\)]+)\)|${eA}`,e_=eb`\(\?<(?![=!])(?<captureName>[^>]+)>`,ek=eb`${e_}|(?<unnamed>\()(?!\?)`,eC=RegExp(eb`${e_}|${ew}|\(\?|\\?.`,"gsu"),eS="Cannot use multiple overlapping recursions";function ev(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function ex(e,t,r,n,i,a,s){let o=new Set;n&&ed(e+t,e_,({groups:{captureName:e}})=>{o.add(e)},ep.DEFAULT);let l=[r,n?o:null,i,a,s];return`${e}${eE(`(?:${e}`,"forward",...l)}(?:)${eE(`${t})`,"backward",...l)}${t}`}function eE(e,t,r,n,i,a,s){let o=e=>"forward"===t?e+2:r-e+2-1,l="";for(let t=0;t<r;t++){let r=o(t);l+=ed(e,eb`${ek}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:l}})=>{if(l&&n&&!n.has(l))return e;let u=`_$${r}`;if(o||t){let r=s+a.length+1;return a.push(r),function(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}(i,r),o?e:`(?<${t}${u}>`}return eb`\k<${l}${u}>`},ep.DEFAULT)}return l}function eN(e,t,r,n,i,a){if(e.size&&n){let s=0;ed(t,ek,()=>s++,ep.DEFAULT);let o=a-s+i,l=new Map;return e.forEach((e,t)=>{let i=(n-s*r)/r,a=s*r,u=t>o+s?t+n:t,c=[];for(let t of e)if(t<=o)c.push(t);else if(t>o+s+i)c.push(t+n);else if(t<=o+s)for(let e=0;e<=r;e++)c.push(t+s*e);else for(let e=0;e<=r;e++)c.push(t+a+i*e);l.set(u,c)}),l}return e}var eI=String.fromCodePoint,eL=String.raw,eT={},eP=globalThis.RegExp;function e$(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function eR(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}eT.flagGroups=(()=>{try{new eP("(?i:)")}catch{return!1}return!0})(),eT.unicodeSets=(()=>{try{new eP("[[]]","v")}catch{return!1}return!0})(),eT.bugFlagVLiteralHyphenIsRange=!!eT.unicodeSets&&(()=>{try{new eP(eL`[\d\-a]`,"v")}catch{return!0}return!1})(),eT.bugNestedClassIgnoresNegation=eT.unicodeSets&&new eP("[[^a]]","v").test("a");var eM={ES2025:2025,ES2024:2024,ES2018:2018},eB={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function eO(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");
48if(void 0!==e.target&&!eB[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=eT.flagGroups?"ES2025":eT.unicodeSets?"ES2024":"ES2018"),t}var eG=new Set([eI(304),eI(305)]),eU=eL`[\p{L}\p{M}\p{N}\p{Pc}]`;function eF(e){if(eG.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=eH.get(r),a=ej.get(r),s=eW.get(r);return 1==[...n].length&&t.add(n),s&&t.add(s),i&&t.add(i),t.add(r),a&&t.add(a),[...t]}var eD=new Map(`C Other 49Cc Control cntrl 50Cf Format 51Cn Unassigned 52Co Private_Use 53Cs Surrogate 54L Letter 55LC Cased_Letter 56Ll Lowercase_Letter 57Lm Modifier_Letter 58Lo Other_Letter 59Lt Titlecase_Letter 60Lu Uppercase_Letter 61M Mark Combining_Mark 62Mc Spacing_Mark 63Me Enclosing_Mark 64Mn Nonspacing_Mark 65N Number 66Nd Decimal_Number digit 67Nl Letter_Number 68No Other_Number 69P Punctuation punct 70Pc Connector_Punctuation 71Pd Dash_Punctuation 72Pe Close_Punctuation 73Pf Final_Punctuation 74Pi Initial_Punctuation 75Po Other_Punctuation 76Ps Open_Punctuation 77S Symbol 78Sc Currency_Symbol 79Sk Modifier_Symbol 80Sm Math_Symbol 81So Other_Symbol 82Z Separator 83Zl Line_Separator 84Zp Paragraph_Separator 85Zs Space_Separator 86ASCII 87ASCII_Hex_Digit AHex 88Alphabetic Alpha 89Any 90Assigned 91Bidi_Control Bidi_C 92Bidi_Mirrored Bidi_M 93Case_Ignorable CI 94Cased 95Changes_When_Casefolded CWCF 96Changes_When_Casemapped CWCM 97Changes_When_Lowercased CWL 98Changes_When_NFKC_Casefolded CWKCF 99Changes_When_Titlecased CWT 100Changes_When_Uppercased CWU 101Dash 102Default_Ignorable_Code_Point DI 103Deprecated Dep 104Diacritic Dia 105Emoji 106Emoji_Component EComp 107Emoji_Modifier EMod 108Emoji_Modifier_Base EBase 109Emoji_Presentation EPres 110Extended_Pictographic ExtPict 111Extender Ext 112Grapheme_Base Gr_Base 113Grapheme_Extend Gr_Ext 114Hex_Digit Hex 115IDS_Binary_Operator IDSB 116IDS_Trinary_Operator IDST 117ID_Continue IDC 118ID_Start IDS 119Ideographic Ideo 120Join_Control Join_C 121Logical_Order_Exception LOE 122Lowercase Lower 123Math 124Noncharacter_Code_Point NChar 125Pattern_Syntax Pat_Syn 126Pattern_White_Space Pat_WS 127Quotation_Mark QMark 128Radical 129Regional_Indicator RI 130Sentence_Terminal STerm
131Soft_Dotted SD 132Terminal_Punctuation Term 133Unified_Ideograph UIdeo 134Uppercase Upper 135Variation_Selector VS 136White_Space space 137XID_Continue XIDC 138XID_Start XIDS`.split(/\s/).map(e=>[ea(e),e])),ej=new Map([["s",eI(383)],[eI(383),"s"]]),eW=new Map([[eI(223),eI(7838)],[eI(107),eI(8490)],[eI(229),eI(8491)],[eI(969),eI(8486)]]),eH=new Map([eq(453),eq(456),eq(459),eq(498),...eV(8072,8079),...eV(8088,8095),...eV(8104,8111),eq(8124),eq(8140),eq(8188)]),ez=new Map([["alnum",eL`[\p{Alpha}\p{Nd}]`],["alpha",eL`\p{Alpha}`],["ascii",eL`\p{ASCII}`],["blank",eL`[\p{Zs}\t]`],["cntrl",eL`\p{Cc}`],["digit",eL`\p{Nd}`],["graph",eL`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",eL`\p{Lower}`],["print",eL`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",eL`[\p{P}\p{S}]`],["space",eL`\p{space}`],["upper",eL`\p{Upper}`],["word",eL`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",eL`\p{AHex}`]]);function eq(e){let t=eI(e);return[t.toLowerCase(),t]}function eV(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>eq(e))}var eX=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),eQ={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:i}=e;if("repeater"===i){let e=J();e.body[0].body.push(K({negate:!0,body:n}),ee("Any"));let i=J();i.body[0].body.push(Z("greedy",0,1/0,e)),r(e4(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++)eR(n,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=e1(t.get(e));if(r){let t=J({flags:r});t.body[0].body=e.body,e.body=[e4(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:a,replaceWith:s},o){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:h,supportedGNodes:p,wordIsAscii:d}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===l)s(e4(K({body:[W({body:[H("string_end")]}),W({body:[V(10)]})]}),t));else if("line_start"===l)s(e4(e5(eL`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(p.has(e))i.flags.sticky=!0,a();else{var f;let e,i=n[r-1];if(i&&((e=["Character","CharacterClass","CharacterSet"]).includes((f=i).type)||"Quantifier"===f.type&&f.min&&e.includes(f.body.type)))s(e4(K({negate:!0}),t));else if(h)throw Error(eL`Uses "\G" in a way that requires a subclass`);else s(e3(H("string_start"),t)),o.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)s(e4(e5(eL`(?=\n?\z)`),t));else if("word_boundary"===l){if(!d&&!c){let e=`(?:(?<=${eU})(?!${eU})|(?<!${eU})(?=${eU}))`,r=`(?:(?<=${eU})(?=${eU})|(?<!${eU})(?!${eU}))`;s(e4(e5(u?r:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||e8(r)||(e.ref=r=e0(r,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!e8(n)&&(e.name=n=e0(n,t)),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r(e4(X({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){let{kind:l,negate:u,value:c}=e;if(a&&("digit"===l||"digit"===c))return void r(e3(Q("digit",{negate:u}),t));if(s&&("space"===l||"space"===c))return void r(e4(e6(e5("[ -\r ]"),u),t));if(o&&("word"===l||"word"===c))return void r(e3(Q("word",{negate:u}),t));if("any"===l)r(e3(ee("Any"),t));else if("digit"===l)r(e3(ee("Nd",{negate:u}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===n)throw Error(eL`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=eL`\p{RI}{2}|${e}(?:\u200D${e})*`;r(e4(e5(eL`(?>\r\n|${i?eL`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(e3(ee("AHex",{negate:u}),t));else if("newline"===l)r(e4(e5(u?"[^\n]":"(?>\r\n?|[\n\v\f \u2028\u2029])"),t));else if("posix"===l)if(i||"graph"!==c&&"print"!==c)r(e4(e6(e5(ez.get(c)),u),t));else{if("strict"===n)throw Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[c];u&&(e=`\0-${eI(e.codePointAt(0)-1)}${eI(e.codePointAt(2)+1)}-\u{10FFFF}`),r(e4(e5(`[${e}]`),t))}
138else if("property"===l)eD.has(ea(c))||(e.key="sc");else if("space"===l)r(e3(ee("space",{negate:u}),t));else if("word"===l)r(e4(e6(e5(eU),u),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:s}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=J({flags:l});e.body[0].body=s(),i(e4(e,t),{traverse:!0})}else n();else if("keep"===o){let e=r.body[0],n=1===r.body.length&&F(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(eL`Uses "\K" in a way that's unsupported`);let s=K({behind:!0});s.body[0].body=a(),i(e4(s,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(e4(K({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=J();t.body[0].body.push(e.body),e.body=e4(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&F(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):i=!0}n&&!i&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(eL`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||e8(r)||(e.ref=r=e0(r,t))}},eJ={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){let u=i.get(e);if(u&&o.has(e.number)){let n=e3(eY(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),s.set(e.number,[]),e.name&&eR(s,e.name,[]);let c=s.get(e.name??e.number);for(let t=0;t<c.length;t++){let r=c[t];if(u===r.node||u&&u===r.origin||e===r.origin){c.splice(t,1);break}}if(s.get(e.number).push({node:e,origin:u}),e.name&&s.get(e.name).push({node:e,origin:u}),e.name){let t=eR(a,e.name,new Map),r=!1;if(u)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=e$(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:i,ref:a}=e;if(i){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==a&&r.number!==a););n.reffedNodesByReferencer.set(e,r);return}let s=n.subroutineRefMap.get(a),o=0===a,l=o?eY(0):function e(t,r,n,i){let a=Array.isArray(t)?[]:{};for(let[s,o]of Object.entries(t))"parent"===s?a.parent=Array.isArray(n)?i:n:o&&"object"==typeof o?a[s]=e(o,r,a,n):("type"===s&&"CapturingGroup"===o&&r.set(a,r.get(t)??t),a[s]=o);return a}(s,n.groupOriginByCopy,null),u=l;if(!o){var c,h;let e=e1(function(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}(s,e=>"Group"===e.type&&!!e.flags)),t=e?e$(n.globalFlags,e):n.globalFlags;c=t,h=n.currentFlags,(c.dotAll!==h.dotAll||c.ignoreCase!==h.ignoreCase)&&(u=J({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={}
138,e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(e4(u,t),{traverse:!o})}},eK={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let i=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of e2(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of e2(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent)throw Error("Unexpected path")})(t,e));i.length?i.length>1?r(e4(J({atomic:!0,body:i.reverse().map(e=>W({body:[z(e.number)]}))}),t)):e.ref=i[0].number:r(e4(K({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=q();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function eZ(e){el(e,{"*"({node:e,parent:t}){e.parent=t}})}function eY(e){let t=Y(e);return t.isRecursive=!0,t}function e0(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function e1(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function e2(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function e8(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function e5(e,t){let r=j(e,{...t,unicodePropertyMap:eD}).body;return r.length>1||r[0].body.length>1?J({body:r}):r[0].body[0]}function e6(e,t){return e.negate=t,e}function e3(e,t){return e.parent=t,e}function e4(e,t){return eZ(e),e.parent=t,e}var e9={"*":{enter({node:e},t){if(tl(e)){let r=t.getCurrentModI();t.pushModI(e.flags?e$({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){tl(e)&&t.popModI()}}
138,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ta(eI(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),ts(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&eX.has(e.value)&&t.setHasCasedChar()}},e7={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?eL`\B`:eL`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:i,number:a}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,a>o.number&&(s.transferTo=o.number)),t.captureMap.set(a,s),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=eI(e),n=to(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ta(r)){let e=eF(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:i,parent:a}=e,{body:s}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");eT.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(tu)&&(s=[V(45),...s.filter(e=>!tu(e))]);let o=()=>`[${i?"^":""}${s.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||eT.bugNestedClassIgnoresNegation)&&!i){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=J(),i=n.body[0];return n.parent=a,i.parent=n,e.body=s=s.filter(e=>!t.includes(e)),s.length?(e.parent=i,i.body.push(e)):n.body.pop(),t.forEach(e=>{let t=W({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=s[0];if("union"===n&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(eT.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(r).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=to(r,i),s=to(n,i),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r})(ts(e)).forEach(e=>{o.add(Array.isArray(e)?`${to(e[0],i)}-${to(e[1],i)}`:to(e,i))}),`${a}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":eL`[^\n]`;if("digit"===e)return t?eL`\D`:eL`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&eX.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?eL`\P`:eL`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?eL`\W`:eL`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},i,a){let s=i.currentFlags;r&&(i.currentFlags=e$(s,r));let o=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===n.type||e||i.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,i.useFlagMods)}${o})`:o;return i.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:r},n,i){let a=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:eL`\g<${t}&R=${n}>`}},te=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),tt=new Set(["-","\\","]","^","["]),tr=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),tn=new Map([[9,eL`\t`],[10,eL`\n`],[11,eL`\v`],[12,eL`\f`],[13,eL`\r`],[8232,eL`\u2028`],[8233,eL`\u2029`],[65279,eL`\uFEFF`]]),ti=/^\p{Cased}$/u;function ta(e){return ti.test(e)}function ts(e,t){let r=!!t?.firstOnly,n=e.min.value,i=e.max.value,a=[];if(n<65&&(65535===i||i>=131071)||65536===n&&i>=131071)return a;for(let e=n;e<=i;e++){let t=eI(e);if(!ta(t))continue;let s=eF(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>i});if(s.length&&(a.push(...s),r))break}return a}function to(e,{escDigit:t,inCharClass:r,useFlagV:n}){var i;if(tn.has(e))return tn.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=eI(e);return((r?n?tr:tt:te).has(a)?"\\":"")+a}function tl({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function tu({type:e,value:t}){return"Character"===e&&45===t}var tc=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){const i=!!n?.lazyCompile;
138if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{const e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)eR(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=n??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#i&&r&&n){this.lastIndex=0;let e=this.#a(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:s}=this.#e.get(e)??{};if(a?i.push(null):(i.push(r.length),r.push(n[e]),this.hasIndices&&r.indices.push(t[e])),s&&void 0!==n[e]){let a=i[s];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(r[a]=n[e],this.hasIndices&&(r.indices[a]=t[e]),r.groups){this.#n||(this.#n=function(e){let t,r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,i=0,a=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:s}}=t;"["===e?i++:i?"]"===e&&i--:r&&(a++,s&&n.set(a,s))}return n}(this.source));let i=this.#n.get(s);i&&(r.groups[i]=n[e],this.hasIndices&&(r.indices.groups[i]=t[e]))}}}return r}};class th{constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=i(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}regexps;findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,i=[];function a(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let r=this.regexps[e];if(r)try{r.lastIndex=t;let s=r.exec(n);if(!s)continue;if(s.index===t)return a(e,s,0);i.push([e,s,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,r,n]of i)if(r.index===e)return a(t,r,n)}return null}}e.s(["createJavaScriptRegexEngine",0,function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>{let r;return(r=function(e,t){var r;let n,i,a,s,o=eO(t),l=(r=j(e,{flags:o.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:o.rules.captureGroup,singleline:o.rules.singleline},skipBackrefValidation:o.rules.allowOrphanBackrefs,unicodePropertyMap:eD}),n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...{accuracy:o.accuracy,asciiWordBoundaries:o.rules.asciiWordBoundaries,avoidSubclass:o.avoidSubclass,bestEffortTarget:o.target}},eZ(r),i={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:eM[n.bestEffortTarget]>=eM.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:r.flags.digitIsAscii,spaceIsAscii:r.flags.spaceIsAscii,wordIsAscii:r.flags.wordIsAscii},el(r,eQ,i),s={currentFlags:a={dotAll:r.flags.dotAll,ignoreCase:r.flags.ignoreCase},prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:i.subroutineRefMap},el(r,eJ,s),el(r,eK,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),r._originMap=s.groupOriginByCopy,r._strategy=i.strategy,r),u=function(e,t){let r=eO(t),n=eM[r.target]>=eM.ES2024,i=eM[r.target]>=eM.ES2025,a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){let t=[e.flags.ignoreCase];el(e,e9,{getCurrentModI:()=>
138t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},u=e,c={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:n,verbose:r.verbose};function h(e){return c.lastNode=u,u=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(e7[e.type],`Unexpected node type "${e.type}"`)(e,c,h)}let p={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return n||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],c.captureMap.forEach((e,t)=>{e.hidden&&p._hiddenCaptures.push(t),e.transferTo&&eR(p._captureTransfers,e.transferTo,[]).push(t)}),p}(l,o),c=function(e,t){let r,{hiddenCaptures:n,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(ew,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if("plugin"===i&&ef(e,eb`\(\?\(DEFINE\)`,ep.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=ef(e,eb`\\[1-9]`,ep.DEFAULT),l=new Map,u=[],c=!1,h=0,p=0;for(eC.lastIndex=0;r=eC.exec(e);){let{0:t,groups:{captureName:d,rDepth:f,gRNameOrNum:m,gRDepth:g}}=r;if("["===t)h++;else if(h)"]"===t&&h--;else if(f){if(ev(f),c)throw Error(eS);if(o)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(eC.lastIndex);if(ef(l,ew,ep.DEFAULT))throw Error(eS);let u=f-1;e=ex(t,l,u,!1,n,s,p),a=eN(a,t,u,s.length,0,p);break}else if(m){ev(g);let h=!1;for(let e of u)if(e.name===m||e.num===+m){if(h=!0,e.hasRecursedWithin)throw Error(eS);break}if(!h)throw Error(eb`Recursive \g cannot be used outside the referenced group "${"external"===i?m:eb`\g<${m}&R=${g}>`}"`);let d=l.get(m),f=function(e,t){let r,n=/\\?./gsu;n.lastIndex=t;let i=e.length,a=0,s=1;for(;r=n.exec(e);){let[e]=r;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)s++;else if(")"===e&&!--s){i=r.index;break}}return e.slice(t,i)}(e,d);if(o&&ef(f,eb`${e_}|\((?!\?)`,ep.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(d,r.index),b=f.slice(y.length+t.length),A=s.length,w=g-1,_=ex(y,b,w,!0,n,s,p);a=eN(a,y,w,s.length-A,A,p);let k=e.slice(0,d),C=e.slice(d+f.length);e=`${k}${_}${C}`,eC.lastIndex+=_.length-t.length-y.length-b.length,u.forEach(e=>e.hasRecursedWithin=!0),c=!0}else if(d)p++,l.set(String(p),eC.lastIndex),l.set(d,eC.lastIndex),u.push({num:p,name:d});else if("("===t[0]){let e="("===t;e&&(p++,l.set(String(p),eC.lastIndex)),u.push(e?{num:p}:{})}else")"===t&&u.pop()}return n.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:n}}(u.pattern,{captureTransfers:u._captureTransfers,hiddenCaptures:u._hiddenCaptures,mode:"external"}),h=function(e,t){let r,n=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};let a="(?:(?=(",s=[0],o=[],l=0,u=0,c=NaN;do{let t;r=!1;let h=0,p=0,d=!1;for(em.lastIndex=Number.isNaN(c)?0:c+a.length;t=em.exec(e);){let{0:f,index:m,groups:{capturingStart:g,noncapturingStart:y}}=t;if("["===f)h++;else if(h)"]"===f&&h--;else if("(?>"!==f||d){if(d&&y)p++;else if(g)d?p++:(l++,s.push(l+u));else if(")"===f&&d){if(!p){let t=l+ ++u;e=`${e.slice(0,c)}${a}${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,r=!0,o.push(t);for(let e=0;e<n.length;e++)n[e]>=t&&n[e]++;if(i.size){let e=new Map;i.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),i=e}break}p--}}else c=m,d=!0}}while(r)return n.push(...o),{pattern:e=ed(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[r]}`}return`\\${r}`},ep.DEFAULT),captureTransfers:i,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${eg}\\+`).test(e))return{pattern:e};let r=[],n=null,i=null,a="",s=0;for(ey.lastIndex=0;t=ey.exec(e);){let{0:u,index:c,groups:{qBase:h,qMod:p,invalidQ:d}}=t;if("["===u)s||(i=c),s++;else if("]"===u)s?s--:i=null;else if(!s)if("+"===p&&a&&!a.startsWith("(")){if(d)throw Error(`Invalid quantifier "${u}"`);let t=-1;
138if(/^\{\d+\}$/.test(h)){var o,l;o=e,l=c+h.length,e=o.slice(0,l)+""+o.slice(l+p.length)}else{if(")"===a||"]"===a){let t=")"===a?n:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${h})${e.slice(c+u.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${h})${e.slice(c+u.length)}`;t+=4}ey.lastIndex+=t}else"("===u[0]?r.push(c):")"===u&&(n=r.length?r.pop():null);a=u}return{pattern:e}}(c.pattern).pattern,{captureTransfers:c.captureTransfers,hiddenCaptures:c.hiddenCaptures}),p={pattern:h.pattern,flags:`${o.hasIndices?"d":""}${o.global?"g":""}${u.flags}${u.options.disable.v?"u":"v"}`};if(o.avoidSubclass){if(o.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=h.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(h.captureTransfers),r=l._strategy,n=p.pattern.length>=o.lazyCompileLength;(e.length||t.length||r||n)&&(p.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...r&&{strategy:r},...n&&{lazyCompile:n}})}return p}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...{target:t.target}})).options?new tc(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)},{createScanner:e=>new th(e,t),createString:e=>({content:e})}}],390529)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.