@aquera/nile-elements 0.0.101 → 0.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/{gdresource-f3b2ce0c.esm.js → gdresource-6d1fa09f.esm.js} +1 -1
- package/dist/{gdresource-a87092f3.cjs.js → gdresource-94dcf330.cjs.js} +2 -2
- package/dist/{gdresource-a87092f3.cjs.js.map → gdresource-94dcf330.cjs.js.map} +1 -1
- package/dist/gdscript-00144682.esm.js +1 -0
- package/dist/gdscript-ffbf4a9f.cjs.js +2 -0
- package/dist/gdscript-ffbf4a9f.cjs.js.map +1 -0
- package/dist/mdx-61c0b1c2.cjs.js +2 -0
- package/dist/mdx-61c0b1c2.cjs.js.map +1 -0
- package/dist/mdx-878bd7c0.esm.js +1 -0
- package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
- package/dist/nile-highlighter/nile-highlighter.cjs.js.map +1 -1
- package/dist/nile-highlighter/nile-highlighter.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +2 -2
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.d.ts +1 -0
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.js +19 -3
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +8 -5
- package/dist/src/nile-code-editor/nile-code-editor.js +63 -41
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-tab/nile-tab.js +2 -0
- package/dist/src/nile-tab/nile-tab.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.d.ts +5 -5
- package/dist/src/nile-tab-group/nile-tab-group.js +92 -92
- package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-button-toggle-group/nile-button-toggle-group.ts +16 -8
- package/src/nile-code-editor/nile-code-editor.ts +63 -52
- package/src/nile-tab/nile-tab.ts +2 -1
- package/src/nile-tab-group/nile-tab-group.ts +98 -97
- package/dist/gdscript-b291189b.esm.js +0 -1
- package/dist/gdscript-f553f938.cjs.js +0 -2
- package/dist/gdscript-f553f938.cjs.js.map +0 -1
- package/dist/mdx-35b64539.cjs.js +0 -2
- package/dist/mdx-35b64539.cjs.js.map +0 -1
- package/dist/mdx-8b360abb.esm.js +0 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_templateObject,_excluded,l,a,c,u,m,p,g,j,k,S,x,L,T,A,O,M,P,N,$,B,I,G,F,U,W,V,J,Y,K,Q,Z,tt,et,nt,it,rt,ot,st,lt,at,ct,ut,mt,pt,ht,dt,bt,St,Ct,Lt,Tt,At,Ot,Mt,Pt,Nt,Ft,Vt,Xt,Yt,Kt,ee,he,de,je,ye,be,we,ve,ke,Se,xe,Ce,Te,Ae,Oe,Pe,De,Ee,Be,Ie,Ge,_e,He,qe,ze,We,Ve,Je,Ye,Ke,Qe,Ze,tn,en,on,sn,ln,mn,dn,fn,gn,yn,wn,xn,Cn,Tn,On,Mn,Pn,Nn,Bn,Gn,_n,Hn,qn,zn,Vn,Jn,Xn,Zn,ti,ei,ni,li,_si,ai,ci,ui,mi,pi,hi,di,fi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e55){function e(_x25){return _e55.apply(this,arguments);}e.toString=function(){return _e55.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e56){function e(_x26){return _e56.apply(this,arguments);}e.toString=function(){return _e56.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(t){return Array.isArray(t)?function(t){var e=[];for(var _n2=0,_i=t.length;_n2<_i;_n2++)e[_n2]=h(t[_n2]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n3 in t)e[_n3]=h(t[_n3]);return e;}(t):t;}function d(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n4 in e)t[_n4]=e[_n4];}),t;}function f(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?f(t.substring(0,t.length-1)):t.substr(1+~e);}function y(t,e){return t<e?-1:t>e?1:0;}function b(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i2=0;_i2<n;_i2++){var _n5=y(t[_i2],e[_i2]);if(0!==_n5)return _n5;}return 0;}return n-i;}function w(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function v(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function C(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function D(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t24=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t24=1;break;case"L":_t24=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e7=s();if(n.push({matcher:_e7,priority:_t24}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t25=o();return function(e){return!!_t25&&!_t25(e);};}if("("===r){r=i.next();var _t26=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t26;}if(E(r)){var _t27=[];do{_t27.push(r),r=i.next();}while(E(r));return function(n){return e(_t27,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function E(t){return!!t&&!!t.match(/[\w\.:]+/);}function R(t){"function"==typeof t.dispose&&t.dispose();}function _(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof $?q({baseGrammar:o,selfGrammar:r},i):H(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator4=_createForOfIteratorHelper(s),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t29=_step4.value;i.add(new $(_t29));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function H(t,e,n){if(e.repository&&e.repository[t]){z([e.repository[t]],e,n);}}function q(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&z(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&z(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function z(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _i8=_step5.value;if(n.visitedRule.has(_i8))continue;n.visitedRule.add(_i8);var _t30=_i8.repository?d({},e.repository,_i8.repository):e.repository;Array.isArray(_i8.patterns)&&z(_i8.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);var _r5=_i8.include;if(!_r5)continue;var _o5=X(_r5);switch(_o5.kind){case 0:q(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:q(e,n);break;case 2:H(_o5.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);break;case 3:case 4:var _i9=_o5.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o5.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i9){var _r6={baseGrammar:e.baseGrammar,selfGrammar:_i9,repository:_t30};4===_o5.kind?H(_o5.ruleName,_r6,n):q(_r6,n);}else 4===_o5.kind?n.add(new B(_o5.scopeName,_o5.ruleName)):n.add(new $(_o5.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function X(t){if("$base"===t)return new F();if("$self"===t)return new U();var e=t.indexOf("#");if(-1===e)return new V(t);if(0===e)return new W(t.substring(1));{var _n14=t.substring(0,e),_i10=t.substring(e+1);return new J(_n14,_i10);}}function ft(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s7=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e19=r;_e19;_e19=_e19.pop()){var _n18=_e19.getRule(t);_n18 instanceof ot&&l.push({rule:_n18,stack:_e19});}for(var _a3=l.pop();_a3;_a3=l.pop()){var _jt=jt(_a3.rule,t,_a3.stack.endRule,n,i===s),_l4=_jt.ruleScanner,_c3=_jt.findOptions,_u2=_l4.findNextMatchSync(e,i,_c3);if(!_u2){r=_a3.stack.pop();break;}if(_u2.ruleId!==Z){r=_a3.stack.pop();break;}_u2.captureIndices&&_u2.captureIndices.length&&(o.produce(_a3.stack,_u2.captureIndices[0].start),yt(t,e,n,_a3.stack,o,_a3.rule.whileCaptures,_u2.captureIndices),o.produce(_a3.stack,_u2.captureIndices[0].end),s=_u2.captureIndices[0].end,_u2.captureIndices[0].end>i&&(i=_u2.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s7.stack,i=_s7.linePos,n=_s7.isFirstLine,u=_s7.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new dt(r,!0);}p();}return new dt(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_gt=gt(s,t,r.endRule,n,i===o),l=_gt.ruleScanner,a=_gt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o11=0,_p=t.length;_o11<_p;_o11++){var _p2=t[_o11];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_gt2=gt(_h,e,null,i,r===s),_d=_gt2.ruleScanner,_f=_gt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===Q){var _s8=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),yt(t,e,n,r,o,_s8.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s9=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s9.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s9 instanceof rt){var _i12=_s9;yt(t,e,n,r,o,_i12.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i12.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i12.endHasBackReferences&&(r=r.withEndRule(_i12.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s9 instanceof ot){var _i13=_s9;yt(t,e,n,r,o,_i13.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i13.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i13.whileHasBackReferences&&(r=r.withEndRule(_i13.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(yt(t,e,n,r,o,_s9.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function gt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function jt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function yt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e20=0;_e20<a;_e20++){var _a4=o[_e20];if(null===_a4)continue;var _m4=s[_e20];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a4.retokenizeCapturedWithRuleId){var _e21=_a4.getName(l,s),_o12=i.contentNameScopesList.pushAttributed(_e21,t),_c4=_a4.getContentName(l,s),_u3=_o12.pushAttributed(_c4,t),_p3=i.push(_a4.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o12,_u3),_h3=t.createOnigString(l.substring(0,_m4.end));ft(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),R(_h3);continue;}var _p4=_a4.getName(l,s);if(null!==_p4){var _e22=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new bt(_e22,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function wt(t,e,n,i,r){var o=D(e,vt),s=st.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n19=_step9.value;t.push({debugSelector:e,matcher:_n19.matcher,ruleId:s,grammar:r,priority:_n19.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function vt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var _i14=n;_i14<e.length;_i14++)if(kt(e[_i14],t))return n=_i14+1,!0;return!1;});}function kt(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function xt(t,e){return(t=h(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Dt(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t69=0;_t69<n.length;_t69+=2){var _n26;var _o15=e?n[_t69]+(n[_t69+1]||""):n[_t69];r.push([_o15,i]),i+=n[_t69].length,i+=((_n26=n[_t69+1])===null||_n26===void 0?void 0:_n26.length)||0;}return r;}function Et(t){return!t||["plaintext","txt","text","plain"].includes(t);}function Rt(t){return"ansi"===t||Et(t);}function $t(t){return"none"===t;}function Bt(t){return $t(t);}function It(t,e){var _t$properties;if(!e)return t;t.properties||(t.properties={}),(_t$properties=t.properties)["class"]||(_t$properties["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var n=Array.isArray(e)?e:e.split(/\s+/g);var _iterator18=_createForOfIteratorHelper(n),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e30=_step18.value;_e30&&!t.properties["class"].includes(_e30)&&t.properties["class"].push(_e30);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return t;}function Gt(_x2){return _Gt.apply(this,arguments);}function _Gt(){_Gt=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(t){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:return _context15.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context15.stop();}},_callee14);}));return _Gt.apply(this,arguments);}function _t(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i18=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i18<_Object$entries.length;_i18++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i18],2),_t70=_Object$entries$_i[0],_r11=_Object$entries$_i[1];"string"==typeof _r11?n[_t70]=_r11:_t70===i&&Object.assign(n,_r11);}return n;}function Ht(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function qt(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&p.Italic&&(e["font-style"]="italic"),t.fontStyle&p.Bold&&(e["font-weight"]="bold"),t.fontStyle&p.Underline&&(e["text-decoration"]="underline")),e;}function zt(t){return Object.entries(t).map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return"".concat(t,":").concat(e);}).join(";");}function Ut(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _i19=function _i19(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new Ft("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},_n27.indexToPos(t)),{},{offset:t});}{var _e31=_n27.lines[t.line];if(void 0===_e31)throw new Ft("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(_n27.lines.length));if(t.character<0||t.character>_e31.length)throw new Ft("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e31.length));return _objectSpread(_objectSpread({},t),{},{offset:_n27.posToIndex(t.line,t.character)});}};var _n27=function(t){var e=Dt(t,!0).map(function(_ref6){var _ref7=_slicedToArray(_ref6,1),t=_ref7[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator19=_createForOfIteratorHelper(e),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _t71=_step19.value;if(i<_t71.length)break;i-=_t71.length,r++;}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n28=0;_n28<t;_n28++)i+=e[_n28].length;return i+=n,i;}};}(e.source);var _r12=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_i19(t.start),end:_i19(t.end)});});!function(t){for(var _e32=0;_e32<t.length;_e32++){var _n29=t[_e32];if(_n29.start.offset>_n29.end.offset)throw new Ft("Invalid decoration range: ".concat(JSON.stringify(_n29.start)," - ").concat(JSON.stringify(_n29.end)));for(var _i20=_e32+1;_i20<t.length;_i20++){var _e33=t[_i20],_r13=_n29.start.offset<_e33.start.offset&&_e33.start.offset<_n29.end.offset,_o16=_n29.start.offset<_e33.end.offset&&_e33.end.offset<_n29.end.offset,_s11=_e33.start.offset<_n29.start.offset&&_n29.start.offset<_e33.end.offset,_l5=_e33.start.offset<_n29.end.offset&&_n29.end.offset<_e33.end.offset;if(_r13||_o16||_s11||_l5){if(_o16&&_o16)continue;if(_s11&&_l5)continue;throw new Ft("Decorations ".concat(JSON.stringify(_n29.start)," and ").concat(JSON.stringify(_e33.start)," intersect."));}}}}(_r12),t.set(e.meta,{decorations:_r12,converter:_n27,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _r14=_step20.value;_r14>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r14),offset:t.offset+n})),n=_r14;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new Ft("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t72=0;_t72<o.children.length;_t72++)l+=Wt(o.children[_t72]),-1===a&&l.length===e&&(a=_t72+1),-1===c&&l.length===n&&(c=_t72+1);if(-1===a)throw new Ft("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new Ft("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=o.children.slice(a,c);if(r.alwaysWrap||u.length!==o.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t73={type:"element",tagName:"span",properties:{},children:u};s(_t73,r,"wrapper"),o.children.splice(a,u.length,_t73);}else s(u[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&It(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator21=_createForOfIteratorHelper(a),_step21;try{var _loop=function _loop(){var t=_step21.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i21){l.unshift(function(){return o(_i21,t);});};for(var _i21=e.line+1;_i21<n.line;_i21++){_loop2(_i21);}r(n.line,0,n.character,t);}};for(_iterator21.s();!(_step21=_iterator21.n()).done;){_loop();}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}l.forEach(function(t){return t();});}};}function Wt(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(Wt).join(""):"";}function Jt(t){return[].concat(_toConsumableArray(t.transformers||[]),Vt);}function Qt(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e34=t.indexOf("m",n);return{sequence:t.substring(n+2,_e34).split(";"),startPosition:n,position:_e34+1};}return{position:t.length};}function Zt(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i22=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i22.length||_i22.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i22});}else if("5"===i){var _i23=Number.parseInt(t[e+n]);Number.isNaN(_i23)||(r={type:"table",index:Number(_i23)});}return[n,r];}function te(t){var e=[];for(var _n30=0;_n30<t.length;_n30++){var _i24=t[_n30],_r15=Number.parseInt(_i24);if(!Number.isNaN(_r15))if(0===_r15)e.push({type:"resetAll"});else if(_r15<=9){Kt[_r15]&&e.push({type:"setDecoration",value:Kt[_r15]});}else if(_r15<=29){var _t74=Kt[_r15-20];_t74&&e.push({type:"resetDecoration",value:_t74});}else if(_r15<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Yt[_r15-30]}});else if(38===_r15){var _Zt=Zt(t,_n30),_Zt2=_slicedToArray(_Zt,2),_i25=_Zt2[0],_r16=_Zt2[1];_r16&&e.push({type:"setForegroundColor",value:_r16}),_n30+=_i25;}else if(39===_r15)e.push({type:"resetForegroundColor"});else if(_r15<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Yt[_r15-40]}});else if(48===_r15){var _Zt3=Zt(t,_n30),_Zt4=_slicedToArray(_Zt3,2),_i26=_Zt4[0],_r17=_Zt4[1];_r17&&e.push({type:"setBackgroundColor",value:_r17}),_n30+=_i26;}else 49===_r15?e.push({type:"resetBackgroundColor"}):_r15>=90&&_r15<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Yt[_r15-90+8]}}):_r15>=100&&_r15<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Yt[_r15-100+8]}});}return e;}function ne(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ee;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t75=0;_t75<Yt.length;_t75++)i.push(e(Yt[_t75]));var t=[0,95,135,175,215,255];for(var _e35=0;_e35<6;_e35++)for(var _r18=0;_r18<6;_r18++)for(var _o17=0;_o17<6;_o17++)i.push(n([t[_e35],t[_r18],t[_o17]]));var r=8;for(var _t76=0;_t76<24;_t76++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function ie(t,e,n){var i=_t(t,n),r=Dt(e),o=ne(Object.fromEntries(Yt.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s12=Qt(i,o),_l6=_s12.sequence?i.substring(o,_s12.startPosition):i.substring(o);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_s12.sequence){var _i27=te(_s12.sequence);var _iterator22=_createForOfIteratorHelper(_i27),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _r19=_step22.value;"resetAll"===_r19.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r19.type?t=null:"resetBackgroundColor"===_r19.type?e=null:"resetDecoration"===_r19.type&&n["delete"](_r19.value);}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}var _iterator23=_createForOfIteratorHelper(_i27),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r20=_step23.value;"setForegroundColor"===_r20.type?t=_r20.value:"setBackgroundColor"===_r20.type?e=_r20.value:"setDecoration"===_r20.type&&n.add(_r20.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}o=_s12.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Ht(r,i),s=Ht(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t77=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t77);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=p.None;return n.decorations.has("bold")&&(l|=p.Bold),n.decorations.has("italic")&&(l|=p.Italic),n.decorations.has("underline")&&(l|=p.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function re(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(Et(i)||$t(r))return Dt(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return ie(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new Ft("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(n.grammarState.theme!==r)throw new Ft("Grammar state theme \"".concat(n.grammarState.theme,"\" does not match highlight theme \"").concat(r,"\""));}return function(t,e,n,i,r){return oe(t,e,n,i,r).tokens;}(e,l,o,s,n);}function oe(t,e,n,i,r){var o=_t(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=Dt(t);var c=r.grammarState?function(t){if(!(t instanceof Xt))throw new Ft("Invalid grammar state");return t._stack;}(r.grammarState):null!=r.grammarContextCode?oe(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Nt,u=[];var m=[];for(var _t78=0,_h4=a.length;_t78<_h4;_t78++){var _a$_t=_slicedToArray(a[_t78],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f3=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f3=e.tokenizeLine(_h5,c),_g2=_f3.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t79=0;_t79<_b;_t79++){var _e36=_y.tokens[2*_t79],_s13=_t79+1<_b?_y.tokens[2*_t79+2]:_h5.length;if(_e36===_s13)continue;var _l7=_y.tokens[2*_t79+1],_a5=Ht(i[N.getForeground(_l7)],o),_c5=N.getFontStyle(_l7),_m5={content:_h5.substring(_e36,_s13),offset:_d5+_e36,color:_a5,fontStyle:_c5};if(r.includeExplanation){var _t80=[];if("scopeName"!==r.includeExplanation){var _iterator24=_createForOfIteratorHelper(n.settings),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _e37=_step24.value;var _n31=void 0;switch(_typeof(_e37.scope)){case"string":_n31=_e37.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n31=_e37.scope;break;default:continue;}_t80.push({settings:_e37,selectors:_n31.map(function(t){return t.split(/ /);})});}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}_m5.explanation=[];var _i28=0;for(;_e36+_i28<_s13;){var _e38=_g2[_j2],_n32=_h5.substring(_e38.startIndex,_e38.endIndex);_i28+=_n32.length,_m5.explanation.push({content:_n32,scopes:"scopeName"===r.includeExplanation?(p=_e38.scopes,p.map(function(t){return{scopeName:t};})):se(_t80,_e38.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function se(t,e){var n=[];for(var _i29=0,_r21=e.length;_i29<_r21;_i29++){var _r22=e[_i29];n[_i29]={scopeName:_r22,themeMatches:ce(t,_r22,e.slice(0,_i29))};}return n;}function le(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function ae(t,e,n){if(!le(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)le(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function ce(t,e,n){var i=[];var _iterator25=_createForOfIteratorHelper(t),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _step25$value=_step25.value,_r23=_step25$value.selectors,_o18=_step25$value.settings;var _iterator26=_createForOfIteratorHelper(_r23),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _t81=_step26.value;if(ae(_t81,e,n)){i.push(_o18);break;}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return i;}function ue(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=function(){for(var _len2=arguments.length,t=new Array(_len2),_key2=0;_key2<_len2;_key2++){t[_key2]=arguments[_key2];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i30){var r=t.map(function(t){return t[_i30];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t82=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e39=0;_e39<n;_e39++){var _n33=l[_e39];_n33.content.length===_t82?(o[_e39].push(_n33),s[_e39]+=1,l[_e39]=r[_e39][s[_e39]]):(o[_e39].push(_objectSpread(_objectSpread({},_n33),{},{content:_n33.content.slice(0,_t82)})),l[_e39]=_objectSpread(_objectSpread({},_n33),{},{content:_n33.content.slice(_t82),offset:_n33.offset+_t82}));}}};for(var _i30=0;_i30<t[0].length;_i30++){_loop3(_i30);}return e;}.apply(void 0,_toConsumableArray(i.map(function(i){return re(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));}))),o=r[0].map(function(t,e){return t.map(function(t,o){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(function(t,n){var _t$e$o=t[e][o],r=_t$e$o.content,l=_t$e$o.explanation,a=_t$e$o.offset,c=_objectWithoutProperties(_t$e$o,_excluded);s.variants[i[n].color]=c;}),s;});});return o;}function me(t,e,n){var i,r,o,s,l;if("themes"in n){var _n$defaultColor=n.defaultColor,_a6=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_c6=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_u4=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_a6?-1:e.color===_a6?1:0;});if(0===_u4.length)throw new Ft("`themes` option must not be empty");var _m6=ue(t,e,n);if(_a6&&!_u4.find(function(t){return t.color===_a6;}))throw new Ft("`themes` option must contain the defaultColor key `".concat(_a6,"`"));var _p5=_u4.map(function(e){return t.getTheme(e.theme);}),_h6=_u4.map(function(t){return t.color;});o=_m6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return qt(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l=o.reduce(function(t,r,o){var _iterator27=_createForOfIteratorHelper(s),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _l8=_step27.value;var _s14=r[_l8]||"inherit";if(0===o&&i)t[_l8]=_s14;else{var _i31="color"===_l8?"":"background-color"===_l8?"-bg":"-".concat(_l8),_r24=n+e[o]+("color"===_l8?"":_i31);t[_l8]?t[_l8]+=";".concat(_r24,":").concat(_s14):t[_l8]="".concat(_r24,":").concat(_s14);}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}return t;},{});return r.htmlStyle=i?zt(l):Object.values(l).join(";"),r;}(t,_h6,_c6,_a6);});});var _d6=_u4.map(function(t){return _t(t.theme,n);});r=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c6+t.color,":"))+(Ht(_p5[e].fg,_d6[e])||"inherit");}).join(";"),i=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c6+t.color,"-bg:"))+(Ht(_p5[e].bg,_d6[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_p5.map(function(t){return t.name;}).join(" ")),l=_a6?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new Ft("Invalid options, either `theme` or `themes` must be provided");{var _l9=_t(n.theme,n);o=re(t,e,n);var _a7=t.getTheme(n.theme);i=Ht(_a7.bg,_l9),r=Ht(_a7.fg,_l9),s=_a7.name;}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l};}function pe(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return pe(t,e,n);},codeToTokens:function codeToTokens(e,n){return me(t,e,n);}};var r=e;var _iterator28=_createForOfIteratorHelper(Jt(n)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _t88$preprocess;var _t88=_step28.value;r=((_t88$preprocess=_t88.preprocess)===null||_t88$preprocess===void 0?void 0:_t88$preprocess.call(i,r,n))||r;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _me=me(t,r,n),o=_me.tokens,s=_me.fg,l=_me.bg,a=_me.themeName,c=_me.rootStyle;var _n$mergeWhitespaces=n.mergeWhitespaces,u=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===u?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&p.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===u&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e40=_slicedToArray(e,4),n=_e40[1],i=_e40[2],r=_e40[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var m=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator29=_createForOfIteratorHelper(Jt(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t89$tokens;var _t89=_step29.value;o=((_t89$tokens=_t89.tokens)===null||_t89$tokens===void 0?void 0:_t89$tokens.call(m,o))||o;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return function(t,e,n){var i=Jt(e),r=[],o={type:"root",children:[]},_e$structure=e.structure,s=_e$structure===void 0?"classic":_e$structure;var l={type:"element",tagName:"pre",properties:_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg),tabindex:"0"},Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return!t.startsWith("_");}))),children:[]},a={type:"element",tagName:"code",properties:{},children:r};var c=[],u=_objectSpread(_objectSpread({},n),{},{structure:s,addClassToHast:It,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return l;},get code(){return a;},get lines(){return c;}});if(t.forEach(function(t,e){e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},l=0;var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r25=_step30.value;var _t84={type:"element",tagName:"span",properties:{},children:[{type:"text",value:_r25.content}]};var _a8=_r25.htmlStyle||zt(qt(_r25));_a8&&(_t84.properties.style=_a8);var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _r26$span;var _r26=_step32.value;_t84=(_r26===null||_r26===void 0||(_r26$span=_r26.span)===null||_r26$span===void 0?void 0:_r26$span.call(u,_t84,e+1,l,n))||_t84;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}"inline"===s?o.children.push(_t84):"classic"===s&&n.children.push(_t84),l+=_r25.content.length;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if("classic"===s){var _iterator31=_createForOfIteratorHelper(i),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t83$line;var _t83=_step31.value;n=(_t83===null||_t83===void 0||(_t83$line=_t83.line)===null||_t83$line===void 0?void 0:_t83$line.call(u,n,e+1))||n;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}c.push(n),r.push(n);}}),"classic"===s){var _iterator33=_createForOfIteratorHelper(i),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _t85$code;var _t85=_step33.value;a=(_t85===null||_t85===void 0||(_t85$code=_t85.code)===null||_t85$code===void 0?void 0:_t85$code.call(u,a))||a;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}l.children.push(a);var _iterator34=_createForOfIteratorHelper(i),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t86$pre;var _t86=_step34.value;l=(_t86===null||_t86===void 0||(_t86$pre=_t86.pre)===null||_t86$pre===void 0?void 0:_t86$pre.call(u,l))||l;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}o.children.push(l);}var m=o;var _iterator35=_createForOfIteratorHelper(i),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t87$root;var _t87=_step35.value;m=(_t87===null||_t87===void 0||(_t87$root=_t87.root)===null||_t87$root===void 0?void 0:_t87$root.call(u,m))||m;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return m;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),m);}function fe(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new de(n,i,e);}function ge(t){return t.toLowerCase();}function Le(){return Math.pow(2,++ye);}function Me(t,e,n){n&&(t[e]=n);}function Ne(t){var e={},n={};var i;for(i in t.properties)if(Pe.call(t.properties,i)){var _r27=t.properties[i],_o19=new Oe(i,t.transform(t.attributes||{},i),_r27,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o19.mustUseProperty=!0),e[i]=_o19,n[ge(i)]=i,n[ge(_o19.attribute)]=i;}return new de(e,n,t.space);}function Re(t,e){return e in t?t[e]:e;}function $e(t,e){return Re(t,e.toLowerCase());}function Fe(t){return"-"+t.toLowerCase();}function Ue(t){return t.charAt(1).toUpperCase();}function Xe(t,e){return t=t.replace(e.subset?function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function nn(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(Ze.call(tn,r)){var _t91=tn[r],_o20="&"+_t91;return n&&Ye.includes(_t91)&&!Qe.includes(_t91)&&(!i||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?_o20:_o20+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i32=function(t,e,n){var i="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i32.length<r.length&&(r=_i32);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function rn(t,e){return Xe(t,Object.assign({format:nn},e));}function an(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function cn(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function un(t){return t.join(" ").trim();}function pn(t){return"object"==_typeof(t)?"text"===t.type&&hn(t.value):hn(t);}function hn(t){return""===t.replace(mn,"");}function jn(t){return function(e,n,i){var r=e?e.children:gn;var o=(n||0)+t,s=r[o];if(!i)for(;s&&pn(s);)o+=t,s=r[o];return s;};}function bn(t){return function(e,n,i){return yn.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function vn(t,e,n){var i=dn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&pn(i.value.charAt(0)));}function kn(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function Sn(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function Ln(t,e,n){var i=function(t,e){var n=ge(e);var i=e,r=je;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&He.test(e)){if("-"===e.charAt(4)){var _t93=e.slice(5).replace(qe,Ue);i="data"+_t93.charAt(0).toUpperCase()+_t93.slice(1);}else{var _t94=e.slice(4);if(!qe.test(_t94)){var _n34=_t94.replace(ze,Fe);"-"!==_n34.charAt(0)&&(_n34="-"+_n34),e="data"+_n34;}}r=Oe;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=rn(i.attribute,Object.assign({},t.settings.characterReferences,{subset:Cn.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?cn:un)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=rn(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Cn.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&an(n,l)>an(n,t.alternative)&&(l=t.alternative),s=l+rn(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?Cn.single:Cn["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function An(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?rn(t.value,Object.assign({},i.settings.characterReferences,{subset:Tn})):t.value;}function Dn(t,e,n){return On(t,e,n,this);}function En(t){var e=[],n=t&&t.children||Nn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function Rn(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return pe(t,e,n);},codeToTokens:function codeToTokens(e,n){return me(t,e,n);}};var r=function(t,e){var n=e||Mn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Dn,all:En,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||he,characterReferences:n.characterReferences||Pn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Ve:We,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(pe(t,e,n,i));var _iterator36=_createForOfIteratorHelper(Jt(n)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t95$postprocess;var _t95=_step36.value;r=((_t95$postprocess=_t95.postprocess)===null||_t95$postprocess===void 0?void 0:_t95$postprocess.call(i,r,n))||r;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return r;}function $n(){return"undefined"!=typeof performance?performance.now():Date.now();}function In(_x3){return _In.apply(this,arguments);}function _In(){_In=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:l=function _l10(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n47=t[e++];if(!(128&_n47)){o+=String.fromCharCode(_n47);continue;}var _i40=63&t[e++];if(192==(224&_n47)){o+=String.fromCharCode((31&_n47)<<6|_i40);continue;}var _r33=63&t[e++];if(_n47=224==(240&_n47)?(15&_n47)<<12|_i40<<6|_r33:(7&_n47)<<18|_i40<<12|_r33<<6|63&t[e++],_n47<65536)o+=String.fromCharCode(_n47);else{var _t33=_n47-65536;o+=String.fromCharCode(55296|_t33>>10,56320|1023&_t33);}}return o;}(i.HEAPU8,t,e):"";};o=function _o23(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r35(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:$n,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i41=1;_i41<=4;_i41*=2){var _r34=e*(1+.2/_i41);_r34=Math.min(_r34,t+100663296);if(o(Math.min(n,Bn(Math.max(t,_r34),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context17.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var n,o;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context16.next=3;return t(n);case 3:o=_context16.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context16.stop();}},_callee15);}))();case 8:return _context17.abrupt("return",i);case 9:case"end":return _context17.stop();}},_callee16);}));return _In.apply(this,arguments);}function Fn(t){if(Gn)return Gn;return Gn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return In(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e){var n,i;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:n=t;_context4.next=3;return n;case 3:n=_context4.sent;_context4.t0="function"==typeof n;if(!_context4.t0){_context4.next=9;break;}_context4.next=8;return n(e);case 8:n=_context4.sent;case 9:_context4.t1="function"==typeof n;if(!_context4.t1){_context4.next=14;break;}_context4.next=13;return n(e);case 13:n=_context4.sent;case 14:if(!("function"==typeof n.instantiator)){_context4.next=20;break;}_context4.next=17;return n.instantiator(e);case 17:n=_context4.sent;_context4.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context4.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context4.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context4.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context4.next=30;break;}_context4.next=27;return Un(n)(e);case 27:n=_context4.sent;_context4.next=35;break;case 30:_context4.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context4.t2){_context4.next=35;break;}_context4.next=34;return Un(n["default"])(e);case 34:n=_context4.sent;case 35:_context4.next=40;break;case 37:_context4.next=39;return Un(n)(e);case 39:n=_context4.sent;case 40:_context4.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context4.next=48;break;}_context4.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context4.t3=_context4.sent;_context4.next=51;break;case 48:_context4.next=50;return function(t){return/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t.arrayBuffer();case 2:n=_context3.sent;return _context3.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x5){return _ref12.apply(this,arguments);};}();}(n)(e);case 50:_context4.t3=_context4.sent;case 51:n=_context4.t3;case 52:_context4.next=57;break;case 54:_context4.next=56;return n["default"](e);case 56:n=_context4.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context4.abrupt("return",n);case 60:case"end":return _context4.stop();}},_callee3);}));return function(_x4){return _ref11.apply(this,arguments);};}());case 2:_n=_context5.sent;case 3:case"end":return _context5.stop();}},_callee4);}))(),Gn;}function Un(t){return function(e){return WebAssembly.instantiate(t,e);};}function Wn(_x6){return _Wn.apply(this,arguments);}function _Wn(){_Wn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t){return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.t0=t;if(!_context18.t0){_context18.next=4;break;}_context18.next=4;return Fn(t);case 4:return _context18.abrupt("return",{createScanner:function createScanner(t){return new zn(t);},createString:function createString(t){return new qn(t);}});case 5:case"end":return _context18.stop();}},_callee17);}));return _Wn.apply(this,arguments);}function Yn(t){if(t!==null&&t!==void 0&&t[Xn])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t96$settings,_t96$settings2,_e$colors,_e$colors2;var _t96=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t96!==null&&_t96!==void 0&&(_t96$settings=_t96.settings)!==null&&_t96$settings!==void 0&&_t96$settings.foreground&&(i=_t96.settings.foreground),_t96!==null&&_t96!==void 0&&(_t96$settings2=_t96.settings)!==null&&_t96$settings2!==void 0&&_t96$settings2.background&&(n=_t96.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?Vn.light:Vn.dark),n||(n="light"===e.type?Jn.light:Jn.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n41=s(t.settings.foreground);e.colorReplacements[_n41]=t.settings.foreground,r.settings.foreground=_n41;}if(i){var _n42=s(t.settings.background);e.colorReplacements[_n42]=t.settings.background,r.settings.background=_n42;}return r;});for(var _i37=0,_Object$keys2=Object.keys(e.colors||{});_i37<_Object$keys2.length;_i37++){var _e$colors$_t;var _t97=_Object$keys2[_i37];if(("editor.foreground"===_t97||"editor.background"===_t97||_t97.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t97])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n43=s(e.colors[_t97]);e.colorReplacements[_n43]=e.colors[_t97],e.colors[_t97]=_n43;}}return Object.defineProperty(e,Xn,{enumerable:!1,writable:!1,value:!0}),e;}function Kn(_x7){return _Kn.apply(this,arguments);}function _Kn(){_Kn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(t){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.t0=Array;_context20.t1=Set;_context20.next=4;return Promise.all(t.filter(function(t){return!Rt(t);}).map(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t){return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return Gt(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context19.abrupt("return",_context19.sent);case 3:case"end":return _context19.stop();}},_callee18);}));return function(_x23){return _ref24.apply(this,arguments);};}()));case 4:_context20.t2=_context20.sent.flat();_context20.t3=new _context20.t1(_context20.t2);return _context20.abrupt("return",_context20.t0.from.call(_context20.t0,_context20.t3));case 7:case"end":return _context20.stop();}},_callee19);}));return _Kn.apply(this,arguments);}function Qn(_x8){return _Qn.apply(this,arguments);}function _Qn(){_Qn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t){return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:if(!Bt(t)){_context21.next=4;break;}_context21.t0=null;_context21.next=9;break;case 4:_context21.t1=Yn;_context21.next=7;return Gt(t);case 7:_context21.t2=_context21.sent;_context21.t0=(0,_context21.t1)(_context21.t2);case 9:return _context21.abrupt("return",_context21.t0);case 10:case"end":return _context21.stop();}},_callee20);}));return function(_x24){return _ref25.apply(this,arguments);};}()));case 2:return _context22.abrupt("return",_context22.sent.filter(function(t){return!!t;}));case 3:case"end":return _context22.stop();}},_callee21);}));return _Qn.apply(this,arguments);}function ii(){return _ii.apply(this,arguments);}function _ii(){_ii=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args14=arguments;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:t=_args14.length>0&&_args14[0]!==undefined?_args14[0]:{};_context26.next=3;return Promise.all([Qn(t.themes||[]),Kn(t.langs||[]),t.engine||Wn(t.loadWasm||ei)]);case 3:_yield$Promise$all=_context26.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context26.abrupt("return",function(t){ni+=1,!1!==t.warnings&&ni>=10&&ni%10==0&&console.warn("[Shiki] ".concat(ni," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));var e=!1;if(!t.engine)throw new Ft("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(Yn),r=new ti(t.engine,n),o=new Zn(r,i,n,t.langAlias);var s;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=o.getTheme(t);if(!e)throw new Ft("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}u(),o.loadLanguages(t.flat(1));}function c(){return _c8.apply(this,arguments);}function _c8(){_c8=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(){var _len7,t,_key7,_iterator40,_step40,_e54,_args13=arguments;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:u();for(_len7=_args13.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=_args13[_key7];}_iterator40=_createForOfIteratorHelper(t.flat(1));try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){_e54=_step40.value;o.loadTheme(_e54);}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}case 4:case"end":return _context25.stop();}},_callee24);}));return _c8.apply(this,arguments);}function u(){if(e)throw new Ft("Shiki instance has been disposed");}function m(){e||(e=!0,o.dispose(),ni-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return s!==t&&(o.setTheme(e),s=t),{theme:e,colorMap:o.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=o.getGrammar("string"==typeof t?t:t.name);if(!e)throw new Ft("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),o.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),o.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _len8,t,_key8,_args11=arguments;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:for(_len8=_args11.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=_args11[_key8];}_context23.t0=a;_context23.next=4;return Kn(t);case 4:_context23.t1=_context23.sent;return _context23.abrupt("return",(0,_context23.t0)(_context23.t1));case 6:case"end":return _context23.stop();}},_callee22);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var _len9,t,_key9,_args12=arguments;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:for(_len9=_args12.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args12[_key9];}u();_context24.t0=c;_context24.next=5;return Qn(t);case 5:_context24.t1=_context24.sent;return _context24.abrupt("return",(0,_context24.t0)(_context24.t1));case 7:case"end":return _context24.stop();}},_callee23);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 9:case"end":return _context26.stop();}},_callee25);}));return _ii.apply(this,arguments);}function ri(){return _ri.apply(this,arguments);}function _ri(){_ri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(){var t,e,_args15=arguments;return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:t=_args15.length>0&&_args15[0]!==undefined?_args15[0]:{};_context27.next=3;return ii(t);case 3:e=_context27.sent;return _context27.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(t,n){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang2=n.lang,i=_n$lang2===void 0?"text":_n$lang2,_n$theme2=n.theme,r=_n$theme2===void 0?t.getLoadedThemes()[0]:_n$theme2;if(Et(i)||$t(r))throw new Ft("Plain language does not have grammar state");if("ansi"===i)throw new Ft("ANSI language does not have grammar state");var _t$setTheme2=t.setTheme(r),o=_t$setTheme2.theme,s=_t$setTheme2.colorMap,l=t.getLanguage(i);return new Xt(oe(e,l,o,s,n).stateStack,l.name,o.name);}(e,t,n);},codeToTokensBase:function codeToTokensBase(t,n){return re(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return ue(e,t,n);},codeToTokens:function codeToTokens(t,n){return me(e,t,n);},codeToHast:function codeToHast(t,n){return pe(e,t,n);},codeToHtml:function codeToHtml(t,n){return Rn(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context27.stop();}},_callee26);}));return _ri.apply(this,arguments);}function oi(t,e,n){var i,r,o;if(e)i=t,r=e,o=function o(){return Wn(n);};else{var _e50=t;i=_e50.langs,r=_e50.themes,o=_e50.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var _t$themes,_t$langs;var e,n,s,l,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:n=function _n46(t){if(Bt(t))return"none";if("string"==typeof t){var _e52=r[t];if(!_e52)throw new Ft("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e52;}return t;};e=function _e53(t){if("string"==typeof t){if(Rt(t))return[];var _e51=i[t];if(!_e51)throw new Ft("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e51;}return t;};s=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context6.next=6;return ri(_objectSpread(_objectSpread({engine:o()},t),{},{themes:s,langs:l}));case 6:a=_context6.sent;return _context6.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context6.stop();}},_callee5);}));return function(_x9){return _ref23.apply(this,arguments);};}();}function si(t){var e=function(t){var e;return/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,_t103,_args6=arguments;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:n=_args6.length>0&&_args6[0]!==undefined?_args6[0]:{};if(!e){_context7.next=8;break;}_context7.next=4;return e;case 4:_t103=_context7.sent;_context7.next=7;return Promise.all([_t103.loadTheme.apply(_t103,_toConsumableArray(n.themes||[])),_t103.loadLanguage.apply(_t103,_toConsumableArray(n.langs||[]))]);case 7:return _context7.abrupt("return",_t103);case 8:return _context7.abrupt("return",(e=t(_objectSpread(_objectSpread({},n),{},{themes:n.themes||[],langs:n.langs||[]})),e));case 9:case"end":return _context7.stop();}},_callee6);}));}(t);return{getSingletonHighlighter:function getSingletonHighlighter(t){return e(t);},codeToHtml:function(){var _codeToHtml=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(t,n){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context8.abrupt("return",_context8.sent.codeToHtml(t,n));case 3:case"end":return _context8.stop();}},_callee7);}));function codeToHtml(_x10,_x11){return _codeToHtml.apply(this,arguments);}return codeToHtml;}(),codeToHast:function(){var _codeToHast=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,n){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context9.abrupt("return",_context9.sent.codeToHast(t,n));case 3:case"end":return _context9.stop();}},_callee8);}));function codeToHast(_x12,_x13){return _codeToHast.apply(this,arguments);}return codeToHast;}(),codeToTokens:function(){var _codeToTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t,n){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context10.abrupt("return",_context10.sent.codeToTokens(t,n));case 3:case"end":return _context10.stop();}},_callee9);}));function codeToTokens(_x14,_x15){return _codeToTokens.apply(this,arguments);}return codeToTokens;}(),codeToTokensBase:function(){var _codeToTokensBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t,n){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context11.abrupt("return",_context11.sent.codeToTokensBase(t,n));case 3:case"end":return _context11.stop();}},_callee10);}));function codeToTokensBase(_x16,_x17){return _codeToTokensBase.apply(this,arguments);}return codeToTokensBase;}(),codeToTokensWithThemes:function(){var _codeToTokensWithThemes=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t,n){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)});case 2:return _context12.abrupt("return",_context12.sent.codeToTokensWithThemes(t,n));case 3:case"end":return _context12.stop();}},_callee11);}));function codeToTokensWithThemes(_x18,_x19){return _codeToTokensWithThemes.apply(this,arguments);}return codeToTokensWithThemes;}(),getLastGrammarState:function(){var _getLastGrammarState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t,n){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context13.abrupt("return",_context13.sent.getLastGrammarState(t,n));case 3:case"end":return _context13.stop();}},_callee12);}));function getLastGrammarState(_x20,_x21){return _getLastGrammarState.apply(this,arguments);}return getLastGrammarState;}()};}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-22ee7e2e.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-38128ad5.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-4472c0f4.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-64afee93.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-86dd9411.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-46d295f1.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-7dc839c8.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-349d63bf.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-fc1a26f5.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-20c397c7.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-971f76ca.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-5036641d.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-92714c4d.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-4963689a.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-aa50180c.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-7164ad4c.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-17c81e35.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-a2724563.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-8a35fee3.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-4a260f2b.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-26bbbe7a.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-1182ee3c.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-962df834.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-20178c34.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-904e245e.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-a8e8c28b.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-80a174bd.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-df1ec844.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-a0d022e1.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-d13ba4f7.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-e3b5ba72.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-6e6ac84f.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-498a1e24.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-b69b212e.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-c7495bc6.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-b2070cb4.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-e35de69e.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-7393a29d.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-5bf38d68.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-23c5e67f.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-626dd879.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-28508030.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-09716540.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-8c3ddad5.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-cfbd2b03.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-568819c1.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-03e02970.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-01502ac9.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-a722ff0b.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-389d781a.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-ba2192a6.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-f39636aa.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-efdbc078.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-853cc7f6.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-11f9610e.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-b09871c5.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-b91c7791.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-6cd09927.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-1df17758.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-a87092f3.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-f553f938.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-8c26c04d.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-b835653d.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-fc9bb7f1.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-103797c9.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-d19abaec.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-b0dff19d.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-62ced541.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-4c678432.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-05eedccc.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-551e647b.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-7fbe3e17.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-7bc2d029.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-c535eea0.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-554d768f.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-3214e7b3.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-f69f18ed.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-66537653.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-95f3c381.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-9a40fb27.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-0e30bd4b.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-abf94c29.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-8070d2c6.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-9f6d6104.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-beb14934.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-b829167c.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-7e4a4d2b.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-78350f12.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-5c368136.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-dda6deeb.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-005637fa.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-e431fcc6.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-df021a4e.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-438a4cf1.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-e3438075.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-c335f71a.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-1cc92e3d.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-b9add75d.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-ce538784.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-7a1b6c1f.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-9b35ad5b.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-0426de90.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-fa09efb9.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-800a35f5.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-812f1b35.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-7e4374e8.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-60049698.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-2daf0a7d.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-aafb1a4f.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-67cb87d9.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-4e4dc210.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-3e73f218.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-41655708.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-7248098c.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-57d1ea2d.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-52e9d6a5.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-35b64539.cjs.js");}},{id:"mermaid",name:"Mermaid","import":function _import(){return _context["import"]("../mermaid-c3ccc7c9.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-28eeb26e.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-673a2795.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-556714e3.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-87233527.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-6efff39c.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-10cc2dc3.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-6eac734a.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-80c1dc7b.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-aed21983.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-59a90921.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-0fb6106a.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-b82e29b4.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-13ce44c4.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-b5780156.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-8558fd1a.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-1b7d27f8.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-90526a01.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-cd5a8e75.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-9a98e05c.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-8482ea14.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-15b97e5e.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-d438d180.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-9c2521f0.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-53d1adf4.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-8df33ddd.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-abba3424.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-2c2849b1.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-a3db3c1f.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-03f34da2.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-80e68b61.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-5ebb30f6.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-febbf285.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-465f0814.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-91e30a84.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-c2028de0.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-bbf1b3b0.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-2744b5f8.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-a06e678f.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-650e6d81.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-721a01cc.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-881a046e.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-cfc52dd9.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-65b842a2.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-9917ff99.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-5987f2d8.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-ce95e683.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-9b39fb30.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-5b78d516.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-6db2b374.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-d52125c8.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-41e0bcb9.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-6e0c5a96.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-6f3f1f3b.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-f462264b.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-0c82ee23.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-3cab91f5.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-3a35873f.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-ed13fe36.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-207639a6.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-f043a204.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-1d49fbcb.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-66437078.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-49a3b744.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-78faff3b.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-53c05745.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-c1d975ae.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-71c753d3.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-62be2567.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-11fce737.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-313f2b1e.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-e4a791ab.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-d1cf9e35.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-9f43ca9a.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-463f4728.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-40f04b28.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-a65cf889.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-d4510fd6.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-d1acb0b1.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-8da08302.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-d3d84b63.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-1d36b716.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-08d00d60.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-c2d10a51.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-baf1e1f1.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-ad358ef7.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-2d84a154.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-3ffb53fe.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-2588d1ab.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-9a8735c1.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-6253977f.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-c021eaba.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-19c808de.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-2016afa9.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-08972182.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",_context["import"]("../wasm-2b3accdb.cjs.js").then(function(e){return e["default"](t);}));case 1:case"end":return _context2.stop();}},_callee);}));return function c(_x){return _ref.apply(this,arguments);};}();u=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-123d3c00.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-8180368b.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-0cf7a0f0.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-cf3e1ada.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-61603c64.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-56e83acc.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-93b9527b.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-8ac91d63.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-0264d406.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-0d891f5a.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-0ddfeebd.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-eee329e3.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-7888cdf8.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-a4342077.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-6d8cfe5f.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-7b0d7429.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-5d2e59f1.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-a2cc3491.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-caee8ed6.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-17d51311.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-5d78b81d.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a14ae0a.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-1e70322e.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-7c78ef32.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-cd7515fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-4e847bdf.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-5168fd63.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b65008a8.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-718a3275.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-a73fe966.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-45735b6a.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-c1c05174.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-5acc6d52.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-bea79cf9.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-a8c47756.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-29968b94.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d8c9d4b0.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-9516af0e.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-15da7ed8.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-18ae2a43.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-0a1b6c0b.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-869d8085.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-afe282dc.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-9bd52d45.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-218912d1.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-82a00987.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-be0e89d9.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-4c99f83d.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-c8b0af08.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-4d62a96c.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-c347b81b.cjs.js");}}];m=Object.fromEntries(u.map(function(t){return[t.id,t["import"]];}));!function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline";}(p||(p={}));g=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;j=/*#__PURE__*/function(){function j(){_classCallCheck(this,j);}return _createClass(j,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(g.lastIndex=0,g.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(g,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t2=e.substring(s.start,s.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(o){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();k=/*#__PURE__*/function(){function k(t){_classCallCheck(this,k);this.fn=t,this.cache=new Map();}return _createClass(k,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();S=/*#__PURE__*/function(){function S(t,e,n){var _this=this;_classCallCheck(this,S);this._colorMap=t,this._defaults=e,this._root=n,this._cachedMatchRoot=new k(function(t){return _this._root.match(t);});}return _createClass(S,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n6=0;_n6<e.length;_n6++){var _i3=e[_n6],_r=!1;if(">"===_i3){if(_n6===e.length-1)return!1;_i3=e[++_n6],_r=!0;}for(;t&&!C(t.scopeName,_i3);){if(_r)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new L(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t3=0,_r2=e.length;_t3<_r2;_t3++){var _r3=void 0,_o=e[_t3];if(!_o.settings)continue;if("string"==typeof _o.scope){var _t4=_o.scope;_t4=_t4.replace(/^[,]+/,""),_t4=_t4.replace(/[,]+$/,""),_r3=_t4.split(",");}else _r3=Array.isArray(_o.scope)?_o.scope:[""];var _s=-1;if("string"==typeof _o.settings.fontStyle){_s=0;var _t5=_o.settings.fontStyle.split(" ");for(var _e2=0,_n7=_t5.length;_e2<_n7;_e2++){switch(_t5[_e2]){case"italic":_s|=1;break;case"bold":_s|=2;break;case"underline":_s|=4;break;case"strikethrough":_s|=8;}}}var _l=null;"string"==typeof _o.settings.foreground&&w(_o.settings.foreground)&&(_l=_o.settings.foreground);var _a=null;"string"==typeof _o.settings.background&&w(_o.settings.background)&&(_a=_o.settings.background);for(var _e3=0,_o2=_r3.length;_e3<_o2;_e3++){var _o3=_r3[_e3].trim().split(" "),_c=_o3[_o3.length-1],_u=null;_o3.length>1&&(_u=_o3.slice(0,_o3.length-1),_u.reverse()),n[i++]=new T(_c,_u,_t3,_s,_l,_a);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=y(t.scope,e.scope);return 0!==n?n:(n=b(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e4=t.shift();-1!==_e4.fontStyle&&(n=_e4.fontStyle),null!==_e4.foreground&&(i=_e4.foreground),null!==_e4.background&&(r=_e4.background);}var o=new A(e),s=new L(n,o.getId(i),o.getId(r)),l=new P(new M(0,null,-1,0,0),[]);for(var _e5=0,_n8=t.length;_e5<_n8;_e5++){var _n9=t[_e5];l.insert(0,_n9.scope,_n9.parentScopes,_n9.fontStyle,o.getId(_n9.foreground),o.getId(_n9.background));}return new S(o,s,l);}(t,e);}}]);}();x=/*#__PURE__*/function(){function t(_t6,e){_classCallCheck(this,t);this.parent=_t6,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t7=this;var e=[];for(;_t7;)e.push(_t7.scopeName),_t7=_t7.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t8){return this===_t8||null!==this.parent&&this.parent["extends"](_t8);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t9){var e=[];var n=this;for(;n&&n!==_t9;)e.push(n.scopeName),n=n.parent;return n===_t9?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i4=_step.value;e=new t(e,_i4);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var _i5=0;_i5<arguments.length;_i5++)n=new t(n,_i5<0||arguments.length<=_i5?undefined:arguments[_i5]);return n;}}]);}();L=/*#__PURE__*/_createClass(function L(t,e,n){_classCallCheck(this,L);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});T=/*#__PURE__*/_createClass(function T(t,e,n,i,r,o){_classCallCheck(this,T);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});A=/*#__PURE__*/function(){function A(t){_classCallCheck(this,A);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e6=0,_n10=t.length;_e6<_n10;_e6++)this._color2id[t[_e6]]=_e6,this._id2color[_e6]=t[_e6];}else this._isFrozen=!1;}return _createClass(A,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();O=Object.freeze([]);M=/*#__PURE__*/function(){function t(_t10,e,n,i,r){_classCallCheck(this,t);this.scopeDepth=_t10,this.parentScopes=e||O,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t12,e,n,i){this.scopeDepth>_t12?console.log("how did this happen?"):this.scopeDepth=_t12,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t11){var e=[];for(var _n11=0,_i6=_t11.length;_n11<_i6;_n11++)e[_n11]=_t11[_n11].clone();return e;}}]);}();P=/*#__PURE__*/function(){function t(_t13){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);this._mainRule=_t13,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t15,_n12,_i7=e.indexOf(".");if(-1===_i7?(_t15=e,_n12=""):(_t15=e.substring(0,_i7),_n12=e.substring(_i7+1)),this._children.hasOwnProperty(_t15))return this._children[_t15].match(_n12);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,o,s){if(""===n)return void this._doInsertHere(e,i,r,o,s);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),M.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,o,s);}},{key:"_doInsertHere",value:function _doInsertHere(_t16,e,n,i,r){if(null!==e){for(var _o4=0,_s2=this._rulesWithParentScopes.length;_o4<_s2;_o4++){var _s3=this._rulesWithParentScopes[_o4];if(0===b(_s3.parentScopes,e))return void _s3.acceptOverwrite(_t16,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new M(_t16,e,n,i,r));}else this._mainRule.acceptOverwrite(_t16,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t14,e){if(_t14.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t14.scopeDepth;var n=0,i=0;for(;">"===_t14.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t14.parentScopes.length||i>=e.parentScopes.length);){var _r4=e.parentScopes[i].length-_t14.parentScopes[n].length;if(0!==_r4)return _r4;n++,i++;}return e.parentScopes.length-_t14.parentScopes.length;}}]);}();N=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t17){return _t17.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});}},{key:"getLanguageId",value:function getLanguageId(_t18){return(255&_t18)>>>0;}},{key:"getTokenType",value:function getTokenType(_t19){return(768&_t19)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t20){return!!(1024&_t20);}},{key:"getFontStyle",value:function getFontStyle(_t21){return(30720&_t21)>>>11;}},{key:"getForeground",value:function getForeground(_t22){return(16744448&_t22)>>>15;}},{key:"getBackground",value:function getBackground(_t23){return(4278190080&_t23)>>>24;}},{key:"set",value:function set(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();$=/*#__PURE__*/function(){function $(t){_classCallCheck(this,$);this.scopeName=t;}return _createClass($,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();B=/*#__PURE__*/function(){function B(t,e){_classCallCheck(this,B);this.scopeName=t,this.ruleName=e;}return _createClass(B,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();I=/*#__PURE__*/function(){function I(){_classCallCheck(this,I);this._references=[],this._seenReferenceKeys=new Set(),this.visitedRule=new Set();}return _createClass(I,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();G=/*#__PURE__*/function(){function G(t,e){_classCallCheck(this,G);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests=new Set(),this.seenPartialScopeRequests=new Set(),this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new $(this.initialScopeName)];}return _createClass(G,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new I();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n13=_step2.value;_(_n13,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t28=_step3.value;if(_t28 instanceof $){if(this.seenFullScopeRequests.has(_t28.scopeName))continue;this.seenFullScopeRequests.add(_t28.scopeName),this.Q.push(_t28);}else{if(this.seenFullScopeRequests.has(_t28.scopeName))continue;if(this.seenPartialScopeRequests.has(_t28.toKey()))continue;this.seenPartialScopeRequests.add(_t28.toKey()),this.Q.push(_t28);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();F=/*#__PURE__*/_createClass(function F(){_classCallCheck(this,F);this.kind=0;});U=/*#__PURE__*/_createClass(function U(){_classCallCheck(this,U);this.kind=1;});W=/*#__PURE__*/_createClass(function W(t){_classCallCheck(this,W);this.ruleName=t,this.kind=2;});V=/*#__PURE__*/_createClass(function V(t){_classCallCheck(this,V);this.scopeName=t,this.kind=3;});J=/*#__PURE__*/_createClass(function J(t,e){_classCallCheck(this,J);this.scopeName=t,this.ruleName=e,this.kind=4;});Y=/\\(\d+)/;K=/\\(\d+)/g;Q=-1;Z=-2;tt=/*#__PURE__*/function(){function tt(t,e,n,i){_classCallCheck(this,tt);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName);}return _createClass(tt,[{key:"debugName",get:function get(){var t=this.$location?"".concat(f(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?j.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();et=/*#__PURE__*/function(_tt){function et(t,e,n,i,r){var _this2;_classCallCheck(this,et);_this2=_callSuper(this,et,[t,e,n,i]),_this2.retokenizeCapturedWithRuleId=r;return _this2;}_inherits(et,_tt);return _createClass(et,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(tt);nt=/*#__PURE__*/function(_tt2){function nt(t,e,n,i,r){var _this3;_classCallCheck(this,nt);_this3=_callSuper(this,nt,[t,e,n,null]),_this3._match=new lt(i,_this3.id),_this3.captures=r,_this3._cachedCompiledPatterns=null;return _this3;}_inherits(nt,_tt2);return _createClass(nt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new at(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(tt);it=/*#__PURE__*/function(_tt3){function it(t,e,n,i,r){var _this4;_classCallCheck(this,it);_this4=_callSuper(this,it,[t,e,n,i]),_this4.patterns=r.patterns,_this4.hasMissingPatterns=r.hasMissingPatterns,_this4._cachedCompiledPatterns=null;return _this4;}_inherits(it,_tt3);return _createClass(it,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n15=_step6.value;t.getRule(_n15).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new at(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(tt);rt=/*#__PURE__*/function(_tt4){function rt(t,e,n,i,r,o,s,l,a,c){var _this5;_classCallCheck(this,rt);_this5=_callSuper(this,rt,[t,e,n,i]),_this5._begin=new lt(r,_this5.id),_this5.beginCaptures=o,_this5._end=new lt(s||"",-1),_this5.endHasBackReferences=_this5._end.hasBackReferences,_this5.endCaptures=l,_this5.applyEndPatternLast=a||!1,_this5.patterns=c.patterns,_this5.hasMissingPatterns=c.hasMissingPatterns,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(rt,_tt4);return _createClass(rt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new at();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e8=_step7.value;t.getRule(_e8).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(tt);ot=/*#__PURE__*/function(_tt5){function ot(t,e,n,i,r,o,s,l,a){var _this6;_classCallCheck(this,ot);_this6=_callSuper(this,ot,[t,e,n,i]),_this6._begin=new lt(r,_this6.id),_this6.beginCaptures=o,_this6.whileCaptures=l,_this6._while=new lt(s,Z),_this6.whileHasBackReferences=_this6._while.hasBackReferences,_this6.patterns=a.patterns,_this6.hasMissingPatterns=a.hasMissingPatterns,_this6._cachedCompiledPatterns=null,_this6._cachedCompiledWhilePatterns=null;return _this6;}_inherits(ot,_tt5);return _createClass(ot,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new at();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e9=_step8.value;t.getRule(_e9).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new at(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns;}}]);}(tt);st=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t31,e,n,i,r){return _t31.registerRule(function(_t32){return new et(e,_t32,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new nt(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=d({},i,e.repository));var _r7=e.patterns;return void 0===_r7&&e.include&&(_r7=[{include:e.include}]),new it(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r7,n,i));}return e["while"]?new ot(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _o6=0;for(var _t36 in e){if("$vscodeTextmateLocation"===_t36)continue;var _e10=parseInt(_t36,10);_e10>_o6&&(_o6=_e10);}for(var _t37=0;_t37<=_o6;_t37++)r[_t37]=null;for(var _o7 in e){if("$vscodeTextmateLocation"===_o7)continue;var _s4=parseInt(_o7,10);var _l2=0;e[_o7].patterns&&(_l2=t.getCompiledRuleId(e[_o7],n,i)),r[_s4]=t.createCaptureRule(n,e[_o7].$vscodeTextmateLocation,e[_o7].name,e[_o7].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _o8=0,_s5=e.length;_o8<_s5;_o8++){var _s6=e[_o8];var _l3=-1;if(_s6.include){var _e11=X(_s6.include);switch(_e11.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_s6.include],n,i);break;case 2:var _r8=i[_e11.ruleName];_r8&&(_l3=t.getCompiledRuleId(_r8,n,i));break;case 3:case 4:var _o9=_e11.scopeName,_a2=4===_e11.kind?_e11.ruleName:null,_c2=n.getExternalGrammar(_o9,i);if(_c2)if(_a2){var _e12=_c2.repository[_a2];_e12&&(_l3=t.getCompiledRuleId(_e12,n,_c2.repository));}else _l3=t.getCompiledRuleId(_c2.repository.$self,n,_c2.repository);}}else _l3=t.getCompiledRuleId(_s6,n,i);if(-1!==_l3){var _t35=n.getRule(_l3);var _e13=!1;if((_t35 instanceof it||_t35 instanceof rt||_t35 instanceof ot)&&_t35.hasMissingPatterns&&0===_t35.patterns.length&&(_e13=!0),_e13)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}();lt=/*#__PURE__*/function(){function t(_t38,e){_classCallCheck(this,t);if(_t38){var _e14=_t38.length;var _n16=0,_i11=[],_r9=!1;for(var _o10=0;_o10<_e14;_o10++){if("\\"===_t38.charAt(_o10)&&_o10+1<_e14){var _e15=_t38.charAt(_o10+1);"z"===_e15?(_i11.push(_t38.substring(_n16,_o10)),_i11.push("$(?!\\n)(?<!\\n)"),_n16=_o10+2):"A"!==_e15&&"G"!==_e15||(_r9=!0),_o10++;}}this.hasAnchor=_r9,0===_n16?this.source=_t38:(_i11.push(_t38.substring(_n16,_e14)),this.source=_i11.join(""));}else this.hasAnchor=!1,this.source=_t38;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=Y.test(this.source);}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t39){this.source!==_t39&&(this.source=_t39,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t40,e){var n=e.map(function(e){return _t40.substring(e.start,e.end);});return K.lastIndex=0,this.source.replace(K,function(_t41,e){return v(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var _t42,e,n,i,r=[],o=[],s=[],l=[];for(_t42=0,e=this.source.length;_t42<e;_t42++)n=this.source.charAt(_t42),r[_t42]=n,o[_t42]=n,s[_t42]=n,l[_t42]=n,"\\"===n&&_t42+1<e&&(i=this.source.charAt(_t42+1),"A"===i?(r[_t42+1]="",o[_t42+1]="",s[_t42+1]="A",l[_t42+1]="A"):"G"===i?(r[_t42+1]="",o[_t42+1]="G",s[_t42+1]="",l[_t42+1]="G"):(r[_t42+1]=i,o[_t42+1]=i,s[_t42+1]=i,l[_t42+1]=i),_t42++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t43,e){return this.hasAnchor&&this._anchorCache?_t43?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();at=/*#__PURE__*/function(){function at(){_classCallCheck(this,at);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(at,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _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);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e16=this._items.map(function(t){return t.source;});this._cached=new ct(t,_e16,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new ct(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();ct=/*#__PURE__*/function(){function ct(t,e,n){_classCallCheck(this,ct);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(ct,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e17=0,_n17=this.rules.length;_e17<_n17;_e17++)t.push(" - "+this.rules[_e17]+": "+this.regExps[_e17]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();ut=/*#__PURE__*/_createClass(function ut(t,e){_classCallCheck(this,ut);this.languageId=t,this.tokenType=e;});mt=/*#__PURE__*/function(){function t(_t44,e){var _this7=this;_classCallCheck(this,t);this._getBasicScopeAttributes=new k(function(_t45){var e=_this7._scopeToLanguage(_t45),n=_this7._toStandardTokenType(_t45);return new ut(e,n);}),this._defaultAttributes=new ut(_t44,8),this._embeddedLanguagesMatcher=new ht(Object.entries(e||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t46){return this._embeddedLanguagesMatcher.match(_t46)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0;}throw new Error("Unexpected match for standard token type!");}}]);}();mt._NULL_SCOPE_METADATA=new ut(0,0),mt.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;pt=mt;ht=/*#__PURE__*/function(){function ht(t){_classCallCheck(this,ht);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e18=t.map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),t=_ref3[0],e=_ref3[1];return v(t);});_e18.sort(),_e18.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e18.join(")|("),"))($|\\.)"),"");}}return _createClass(ht,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;dt=/*#__PURE__*/_createClass(function dt(t,e){_classCallCheck(this,dt);this.stack=t,this.stoppedEarly=e;});bt=/*#__PURE__*/_createClass(function bt(t,e){_classCallCheck(this,bt);this.scopes=t,this.endPos=e;});St=/*#__PURE__*/function(){function St(t,e,n,i,r,o,s,l){_classCallCheck(this,St);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new pt(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=xt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i15=0,_Object$keys=Object.keys(r);_i15<_Object$keys.length;_i15++){var _t47=_Object$keys[_i15];var _e23=D(_t47,vt);var _iterator10=_createForOfIteratorHelper(_e23),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n20=_step10.value;this._tokenTypeMatchers.push({matcher:_n20.matcher,type:r[_t47]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(St,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t48=_step11.value;_t48&&_t48.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this8=this;var t=function t(_t49){return _t49===_this8._rootScopeName?_this8._grammar:_this8.getExternalGrammar(_t49);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t50=i.injections;if(_t50)for(var _n21 in _t50)wt(e,_n21,_t50[_n21],this,i);var _r10=this._grammarRepository.injections(n);_r10&&_r10.forEach(function(t){var n=_this8.getExternalGrammar(t);if(n){var _t51=n.injectionSelector;_t51&&wt(e,_t51,n,_this8,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n22=this._grammarRepository.lookup(t);if(_n22)return this._includedGrammars[t]=xt(_n22,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=st.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==Tt.NULL)r=!1,e.reset();else{r=!0;var _t52=this._basicScopeAttributesProvider.getDefaultAttributes(),_n23=this.themeProvider.getDefaults(),_i16=N.set(0,_t52.languageId,_t52.tokenType,null,_n23.fontStyle,_n23.foregroundId,_n23.backgroundId),_o13=this.getRule(this._rootId).getName(null,null);var _s10;_s10=_o13?Ct.createRootAndLookUpScopeName(_o13,_i16,this):Ct.createRoot("unknown",_i16),e=new Tt(null,this._rootId,-1,-1,!1,null,_s10,_s10);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Ot(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=ft(this,o,r,0,e,l,!0,i);return R(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();Ct=/*#__PURE__*/function(){function t(_t53,e,n){_classCallCheck(this,t);this.parent=_t53,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e24=_step12.value;r=t._pushAttributed(r,_e24,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t56){var e=[];var n=this;for(;n&&n!==_t56;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t56?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e25=_step13.value;r=x.push(r,_e25.scopeNames),i=new t(i,r,_e25.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new x(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),o=new x(null,e),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(n,r,s);return new t(null,o,l);}},{key:"equals",value:function equals(_t54,e){for(;;){if(_t54===e)return!0;if(!_t54&&!e)return!0;if(!_t54||!e)return!1;if(_t54.scopeName!==e.scopeName||_t54.tokenAttributes!==e.tokenAttributes)return!1;_t54=_t54.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t55,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),N.set(_t55,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(e.tokenAttributes,r,s);return new t(e,o,l);}}]);}();Lt=/*#__PURE__*/function(){function t(_t57,e,n,i,r,o,s,l){_classCallCheck(this,t);this.parent=_t57,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,o,s,l){return new t(this,e,n,i,r,o,s,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t61){return _t61.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t62=[];return this._writeString(_t62,0),"["+_t62.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t63,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t63,e)),_t63[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t64){return this.contentNameScopesList===_t64?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t64);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t65){var e=this;for(;e&&e._enterPos===_t65._enterPos;){if(e.ruleId===_t65.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t58,e){return _t58===e||!!this._structuralEquals(_t58,e)&&Ct.equals(_t58.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.depth!==e.depth||_t59.ruleId!==e.ruleId||_t59.endRule!==e.endRule)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t60){for(;_t60;)_t60._enterPos=-1,_t60._anchorPos=-1,_t60=_t60.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=Ct.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,Ct.fromExtension(i,n.contentNameScopesList));}}]);}();Lt.NULL=new Lt(null,0,0,0,!1,null,null,null);Tt=Lt;At=/*#__PURE__*/function(){function At(t,e){var _this9=this;_classCallCheck(this,At);this.allowAny=!1,this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this9.allowAny=!0,[]):D(t,vt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return D(t,vt).map(function(t){return t.matcher;});});}return _createClass(At,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e26=_step14.value;if(_e26(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e27=_step15.value;if(_e27(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Ot=/*#__PURE__*/function(){function Ot(t,e,n,i){_classCallCheck(this,Ot);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Ot,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n24=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,_i17=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(_i17=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e28=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t66=_step16.value;_t66.matcher(_e28)&&(_n24=N.set(_n24,0,_t66.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(_i17=this.balancedBracketSelectors.match(_e28));}return _i17&&(_n24=N.set(_n24,0,8,_i17,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n24?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n24),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t67=0,_e29=this._binaryTokens.length;_t67<_e29;_t67++)n[_t67]=this._binaryTokens[_t67];return n;}}]);}();Mt=/*#__PURE__*/function(){function Mt(t,e){_classCallCheck(this,Mt);this._onigLib=e,this._grammars=new Map(),this._rawGrammars=new Map(),this._injectionGrammars=new Map(),this._theme=t;}return _createClass(Mt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t68=_step17.value;_t68.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _o14=this._rawGrammars.get(t);if(!_o14)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new St(t,e,n,i,r,o,s,l);}(t,_o14,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}();Pt=/*#__PURE__*/function(){function Pt(t){_classCallCheck(this,Pt);this._options=t,this._syncRegistry=new Mt(S.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(Pt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(S.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new At(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this10=this;var o=new G(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(function(t){return _this10._loadSingleGrammar(t.scopeName);}),o.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n25="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n25);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Nt=Tt.NULL;Ft=/*#__PURE__*/function(_Error){function Ft(t){var _this11;_classCallCheck(this,Ft);_this11=_callSuper(this,Ft,[t]),_this11.name="ShikiError";return _this11;}_inherits(Ft,_Error);return _createClass(Ft);}(/*#__PURE__*/_wrapNativeSuper(Error));Vt=[Ut()];Xt=/*#__PURE__*/function(){function Xt(t,e,n){_classCallCheck(this,Xt);_defineProperty(this,"_stack",void 0);_defineProperty(this,"lang",void 0);_defineProperty(this,"theme",void 0);this._stack=t,this.lang=e,this.theme=n;}return _createClass(Xt,[{key:"scopes",get:function get(){return function(t){var e=[],n=new Set();function i(t){var _t$nameScopesList;if(n.has(t))return;n.add(t);var r=t===null||t===void 0||(_t$nameScopesList=t.nameScopesList)===null||_t$nameScopesList===void 0?void 0:_t$nameScopesList.scopeName;r&&e.push(r),t.parent&&i(t.parent);}return i(t),e;}(this._stack);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new Xt(Nt,t,e);}}]);}();Yt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];Kt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};ee={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"};he=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];de=/*#__PURE__*/_createClass(function de(t,e,n){_classCallCheck(this,de);this.property=t,this.normal=e,n&&(this.space=n);});de.prototype.property={},de.prototype.normal={},de.prototype.space=null;je=/*#__PURE__*/_createClass(function je(t,e){_classCallCheck(this,je);this.property=t,this.attribute=e;});je.prototype.space=null,je.prototype["boolean"]=!1,je.prototype.booleanish=!1,je.prototype.overloadedBoolean=!1,je.prototype.number=!1,je.prototype.commaSeparated=!1,je.prototype.spaceSeparated=!1,je.prototype.commaOrSpaceSeparated=!1,je.prototype.mustUseProperty=!1,je.prototype.defined=!1;ye=0;be=Le();we=Le();ve=Le();ke=Le();Se=Le();xe=Le();Ce=Le();Te=Object.freeze({__proto__:null,"boolean":be,booleanish:we,commaOrSpaceSeparated:Ce,commaSeparated:xe,number:ke,overloadedBoolean:ve,spaceSeparated:Se});Ae=Object.keys(Te);Oe=/*#__PURE__*/function(_je){function Oe(t,e,n,i){var _this12;_classCallCheck(this,Oe);var r=-1;if(_this12=_callSuper(this,Oe,[t,e]),Me(_assertThisInitialized(_this12),"space",i),"number"==typeof n)for(;++r<Ae.length;){var _t90=Ae[r];Me(_assertThisInitialized(_this12),Ae[r],(n&Te[_t90])===Te[_t90]);}return _assertThisInitialized(_this12);}_inherits(Oe,_je);return _createClass(Oe);}(je);Oe.prototype.defined=!0;Pe={}.hasOwnProperty;De=Ne({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});Ee=Ne({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});Be=Ne({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$e,properties:{xmlns:null,xmlnsXLink:null}});Ie=Ne({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:we,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:Se,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:ke,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:Se,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:we,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}});Ge=Ne({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xe,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Se,autoFocus:be,autoPlay:be,blocking:Se,capture:null,charSet:null,checked:be,cite:null,className:Se,cols:ke,colSpan:null,content:null,contentEditable:we,controls:be,controlsList:Se,coords:ke|xe,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":be,defer:be,dir:null,dirName:null,disabled:be,download:ve,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Se,height:ke,hidden:be,high:ke,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Se,itemRef:Se,itemScope:be,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:ke,pattern:null,ping:Se,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Se,required:be,reversed:be,rows:ke,rowSpan:ke,sandbox:Se,scope:null,scoped:be,seamless:be,selected:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:we,width:ke,wrap:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:ke,security:null,unselectable:null}});_e=Ne({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Re,properties:{about:Ce,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:Se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xe,g2:xe,glyphName:xe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});He=/^data[-\w.:]+$/i;qe=/-[a-z]/g;ze=/[A-Z]/g;We=fe([Ee,De,Be,Ie,Ge],"html");Ve=fe([Ee,De,Be,Ie,_e],"svg");Je={}.hasOwnProperty;Ye=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];Ke={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};Qe=["cent","copy","divide","gt","lt","not","para","times"];Ze={}.hasOwnProperty;tn={};for(en in Ke)Ze.call(Ke,en)&&(tn[Ke[en]]=en);on=/^>|^->|<!--|-->|--!>|<!-$/g;sn=[">"];ln=["<",">"];mn=/[ \t\n\f\r]/g;dn=jn(1);fn=jn(-1);gn=[];yn={}.hasOwnProperty;wn=bn({body:function body(t,e,n){var i=dn(n,e);return!i||"comment"!==i.type;},caption:vn,colgroup:vn,dd:function dd(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=dn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:vn,html:function html(t,e,n){var i=dn(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=dn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:kn,rt:kn,tbody:function tbody(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:Sn,tfoot:function tfoot(t,e,n){return!dn(n,e);},th:Sn,thead:function thead(t,e,n){var i=dn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});xn=bn({body:function body(t){var e=dn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&pn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=fn(n,e),r=dn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&wn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=t.children,n=[];var i=-1;for(;++i<e.length;){var _t92=e[i];if("element"===_t92.type&&("title"===_t92.tagName||"base"===_t92.tagName)){if(n.includes(_t92.tagName))return!1;n.push(_t92.tagName);}}return e.length>0;},html:function html(t){var e=dn(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=fn(n,e),r=dn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&wn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});Cn={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};Tn=["<","&"];On=function(t,e){var n=e||{};function i(e){var _r28;var r=i.invalid;var o=i.handlers;if(e&&Je.call(e,t)){var _n35=String(e[t]);r=Je.call(o,_n35)?o[_n35]:i.unknown;}for(var _len3=arguments.length,n=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){n[_key3-1]=arguments[_key3];}if(r)return(_r28=r).call.apply(_r28,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+rn(t.value,Object.assign({},i.settings.characterReferences,{subset:sn}))+">":"\x3c!--"+t.value.replace(on,function(t){return rn(t,Object.assign({},i.settings.characterReferences,{subset:ln}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=Ve);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r29=Ln(t,i,e[i]);_r29&&n.push(_r29);}for(;++r<n.length;){var _e41=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e41&&"'"!==_e41&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&xn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&wn(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:An(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:An}});Mn={};Pn={};Nn=[];Bn=function Bn(t,e){return t+(e-t%e)%e;};_n=null;Hn=/*#__PURE__*/function(){function Hn(t){_classCallCheck(this,Hn);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=Hn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n36=0;_n36<e;_n36++){var _a9=t.charCodeAt(_n36);var _c7=_a9,_u5=!1;if(_a9>=55296&&_a9<=56319&&_n36+1<e){var _e42=t.charCodeAt(_n36+1);_e42>=56320&&_e42<=57343&&(_c7=65536+(_a9-55296<<10)|_e42-56320,_u5=!0);}i&&(r[_n36]=l,_u5&&(r[_n36+1]=l),_c7<=127?o[l+0]=_n36:_c7<=2047?(o[l+0]=_n36,o[l+1]=_n36):_c7<=65535?(o[l+0]=_n36,o[l+1]=_n36,o[l+2]=_n36):(o[l+0]=_n36,o[l+1]=_n36,o[l+2]=_n36,o[l+3]=_n36)),_c7<=127?s[l++]=_c7:_c7<=2047?(s[l++]=192|(1984&_c7)>>>6,s[l++]=128|(63&_c7)>>>0):_c7<=65535?(s[l++]=224|(61440&_c7)>>>12,s[l++]=128|(4032&_c7)>>>6,s[l++]=128|(63&_c7)>>>0):(s[l++]=240|(1835008&_c7)>>>18,s[l++]=128|(258048&_c7)>>>12,s[l++]=128|(4032&_c7)>>>6,s[l++]=128|(63&_c7)>>>0),_u5&&_n36++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(Hn,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n37=0,_i33=t.length;_n37<_i33;_n37++){var _r30=t.charCodeAt(_n37);var _o21=_r30,_s15=!1;if(_r30>=55296&&_r30<=56319&&_n37+1<_i33){var _e43=t.charCodeAt(_n37+1);_e43>=56320&&_e43<=57343&&(_o21=65536+(_r30-55296<<10)|_e43-56320,_s15=!0);}e+=_o21<=127?1:_o21<=2047?2:_o21<=65535?3:4,_s15&&_n37++;}return e;}}]);}();qn=/*#__PURE__*/function(){function qn(t){_classCallCheck(this,qn);_defineProperty(this,"id",++qn.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!_n)throw new Ft("Must invoke loadWasm first.");this._onigBinding=_n,this.content=t;var e=new Hn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!qn._sharedPtrInUse?(qn._sharedPtr||(qn._sharedPtr=_n.omalloc(1e4)),qn._sharedPtrInUse=!0,_n.HEAPU8.set(e.utf8Value,qn._sharedPtr),this.ptr=qn._sharedPtr):this.ptr=e.createString(_n);}return _createClass(qn,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===qn._sharedPtr?qn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(qn,"LAST_ID",0);_defineProperty(qn,"_sharedPtr",0);_defineProperty(qn,"_sharedPtrInUse",!1);zn=/*#__PURE__*/function(){function zn(t){_classCallCheck(this,zn);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!_n)throw new Ft("Must invoke loadWasm first.");var e=[],n=[];for(var _i34=0,_r31=t.length;_i34<_r31;_i34++){var _r32=new Hn(t[_i34]);e[_i34]=_r32.createString(_n),n[_i34]=_r32.utf8Length;}var i=_n.omalloc(4*t.length);_n.HEAPU32.set(e,i/4);var r=_n.omalloc(4*t.length);_n.HEAPU32.set(n,r/4);var o=_n.createOnigScanner(i,r,t.length);for(var _n38=0,_i35=t.length;_n38<_i35;_n38++)_n.ofree(e[_n38]);_n.ofree(r),_n.ofree(i),0===o&&function(t){throw new Ft(t.UTF8ToString(t.getLastOnigError()));}(_n),this._onigBinding=_n,this._ptr=o;}return _createClass(zn,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new qn(t);var _n39=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n39;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e44=0;_e44<c;_e44++){var _n40=t.convertUtf8OffsetToUtf16(s[l++]),_i36=t.convertUtf8OffsetToUtf16(s[l++]);u[_e44]={start:_n40,end:_i36,length:_i36-_n40};}return{index:a,captureIndices:u};}}]);}();Vn={light:"#333333",dark:"#bbbbbb"};Jn={light:"#fffffe",dark:"#1e1e1e"};Xn="__shiki_resolved";Zn=/*#__PURE__*/function(_Pt){function Zn(t,e,n){var _this13;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,Zn);(_this13=_callSuper(this,Zn,[t]),_defineProperty(_assertThisInitialized(_this13),"_resolver",void 0),_defineProperty(_assertThisInitialized(_this13),"_themes",void 0),_defineProperty(_assertThisInitialized(_this13),"_langs",void 0),_defineProperty(_assertThisInitialized(_this13),"_alias",void 0),_defineProperty(_assertThisInitialized(_this13),"_resolvedThemes",new Map()),_defineProperty(_assertThisInitialized(_this13),"_resolvedGrammars",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langMap",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langGraph",new Map()),_defineProperty(_assertThisInitialized(_this13),"_textmateThemeCache",new WeakMap()),_defineProperty(_assertThisInitialized(_this13),"_loadedThemesCache",null),_defineProperty(_assertThisInitialized(_this13),"_loadedLanguagesCache",null)),_this13._resolver=t,_this13._themes=e,_this13._langs=n,_this13._alias=i,_this13._themes.map(function(t){return _this13.loadTheme(t);}),_this13.loadLanguages(_this13._langs);return _this13;}_inherits(Zn,_Pt);return _createClass(Zn,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=Yn(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=S.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e45=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e45.has(t))throw new Ft("Circular alias `".concat(Array.from(_e45).join(" -> ")," -> ").concat(t,"`"));_e45.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this14=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this14._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator37=_createForOfIteratorHelper(e),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t98=_step37.value;this._resolvedGrammars["delete"](_t98.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t98.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t98.scopeName),this.loadLanguage(this._langMap.get(_t98.name));}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}}}},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(Zn.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator38=_createForOfIteratorHelper(t),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _e48=_step38.value;this.resolveEmbeddedLanguages(_e48);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t99=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new Ft("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t99.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i38=0,_e46=e;_i38<_e46.length;_i38++){var _e46$_i=_slicedToArray(_e46[_i38],2),_t100=_e46$_i[0],_n44=_e46$_i[1];this._resolver.addLanguage(_n44);}for(var _i39=0,_e47=e;_i39<_e47.length;_i39++){var _e47$_i=_slicedToArray(_e47[_i39],2),_t101=_e47$_i[0],_n45=_e47$_i[1];this.loadLanguage(_n45);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator39=_createForOfIteratorHelper(t.embeddedLangs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e49=_step39.value;this._langGraph.set(_e49,this._langMap.get(_e49));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}}]);}(Pt);ti=/*#__PURE__*/function(){function ti(t,e){var _this15=this;_classCallCheck(this,ti);_defineProperty(this,"_langs",new Map());_defineProperty(this,"_scopeToLang",new Map());_defineProperty(this,"_injections",new Map());_defineProperty(this,"_onigLib",void 0);this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this15.addLanguage(t);});}return _createClass(ti,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this16=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this16._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this16._injections.get(e)||_this16._injections.set(e,[]),_this16._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t102=1;_t102<=e.length;_t102++){var i=e.slice(0,_t102).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();ni=0;li=oi({langs:a,themes:m,engine:function engine(){return Wn(c);}});_si=si(li);ai=_si.codeToHtml;ci=_si.codeToHast;ui=_si.codeToTokens;mi=_si.codeToTokensBase;pi=_si.codeToTokensWithThemes;hi=_si.getSingletonHighlighter;di=_si.getLastGrammarState;_export("N",fi=/*#__PURE__*/function(_o22){function fi(){var _this17;_classCallCheck(this,fi);_this17=_callSuper(this,fi,arguments),_this17.code="",_this17.language="javascript",_this17.theme="min-light",_this17.highlightedCode="";return _this17;}_inherits(fi,_o22);return _createClass(fi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context14.t0){_context14.next=6;break;}_context14.next=4;return ai(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context14.sent;this.requestUpdate();case 6:case"end":return _context14.stop();}},_callee13,this);}));function updated(_x22){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],fi.prototype,"code",void 0),t([s({type:String,reflect:!0})],fi.prototype,"language",void 0),t([s({type:String,reflect:!0})],fi.prototype,"theme",void 0),t([n()],fi.prototype,"highlightedCode",void 0),_export("N",fi=t([i("nile-highlighter")],fi));}};});
|
1
|
+
System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_templateObject,_excluded,l,a,c,u,m,p,g,j,k,S,x,L,T,A,O,M,P,N,$,B,I,_,F,U,W,V,J,Y,K,Q,Z,tt,et,nt,it,rt,ot,st,lt,at,ct,ut,mt,pt,ht,dt,bt,St,Ct,Lt,Tt,At,Ot,Mt,Pt,Nt,Ft,Vt,Xt,Yt,Kt,ee,he,de,je,ye,be,we,ve,ke,Se,xe,Ce,Te,Ae,Oe,Pe,De,Ee,Be,Ie,_e,Ge,He,qe,ze,We,Ve,Je,Ye,Ke,Qe,Ze,tn,en,on,sn,ln,mn,dn,fn,gn,yn,wn,xn,Cn,Tn,On,Mn,Pn,Nn,Bn,_n,Gn,Hn,qn,zn,Vn,Jn,Xn,Zn,ti,ei,ni,li,_si,ai,ci,ui,mi,pi,hi,di,fi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e55){function e(_x25){return _e55.apply(this,arguments);}e.toString=function(){return _e55.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e56){function e(_x26){return _e56.apply(this,arguments);}e.toString=function(){return _e56.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(t){return Array.isArray(t)?function(t){var e=[];for(var _n2=0,_i=t.length;_n2<_i;_n2++)e[_n2]=h(t[_n2]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n3 in t)e[_n3]=h(t[_n3]);return e;}(t):t;}function d(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n4 in e)t[_n4]=e[_n4];}),t;}function f(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?f(t.substring(0,t.length-1)):t.substr(1+~e);}function y(t,e){return t<e?-1:t>e?1:0;}function b(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i2=0;_i2<n;_i2++){var _n5=y(t[_i2],e[_i2]);if(0!==_n5)return _n5;}return 0;}return n-i;}function w(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function v(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function C(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function D(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t24=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t24=1;break;case"L":_t24=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e7=s();if(n.push({matcher:_e7,priority:_t24}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t25=o();return function(e){return!!_t25&&!_t25(e);};}if("("===r){r=i.next();var _t26=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t26;}if(E(r)){var _t27=[];do{_t27.push(r),r=i.next();}while(E(r));return function(n){return e(_t27,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function E(t){return!!t&&!!t.match(/[\w\.:]+/);}function R(t){"function"==typeof t.dispose&&t.dispose();}function G(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof $?q({baseGrammar:o,selfGrammar:r},i):H(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator4=_createForOfIteratorHelper(s),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t29=_step4.value;i.add(new $(_t29));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function H(t,e,n){if(e.repository&&e.repository[t]){z([e.repository[t]],e,n);}}function q(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&z(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&z(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function z(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _i8=_step5.value;if(n.visitedRule.has(_i8))continue;n.visitedRule.add(_i8);var _t30=_i8.repository?d({},e.repository,_i8.repository):e.repository;Array.isArray(_i8.patterns)&&z(_i8.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);var _r5=_i8.include;if(!_r5)continue;var _o5=X(_r5);switch(_o5.kind){case 0:q(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:q(e,n);break;case 2:H(_o5.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);break;case 3:case 4:var _i9=_o5.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o5.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i9){var _r6={baseGrammar:e.baseGrammar,selfGrammar:_i9,repository:_t30};4===_o5.kind?H(_o5.ruleName,_r6,n):q(_r6,n);}else 4===_o5.kind?n.add(new B(_o5.scopeName,_o5.ruleName)):n.add(new $(_o5.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function X(t){if("$base"===t)return new F();if("$self"===t)return new U();var e=t.indexOf("#");if(-1===e)return new V(t);if(0===e)return new W(t.substring(1));{var _n14=t.substring(0,e),_i10=t.substring(e+1);return new J(_n14,_i10);}}function ft(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s7=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e19=r;_e19;_e19=_e19.pop()){var _n18=_e19.getRule(t);_n18 instanceof ot&&l.push({rule:_n18,stack:_e19});}for(var _a3=l.pop();_a3;_a3=l.pop()){var _jt=jt(_a3.rule,t,_a3.stack.endRule,n,i===s),_l4=_jt.ruleScanner,_c3=_jt.findOptions,_u2=_l4.findNextMatchSync(e,i,_c3);if(!_u2){r=_a3.stack.pop();break;}if(_u2.ruleId!==Z){r=_a3.stack.pop();break;}_u2.captureIndices&&_u2.captureIndices.length&&(o.produce(_a3.stack,_u2.captureIndices[0].start),yt(t,e,n,_a3.stack,o,_a3.rule.whileCaptures,_u2.captureIndices),o.produce(_a3.stack,_u2.captureIndices[0].end),s=_u2.captureIndices[0].end,_u2.captureIndices[0].end>i&&(i=_u2.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s7.stack,i=_s7.linePos,n=_s7.isFirstLine,u=_s7.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new dt(r,!0);}p();}return new dt(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_gt=gt(s,t,r.endRule,n,i===o),l=_gt.ruleScanner,a=_gt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o11=0,_p=t.length;_o11<_p;_o11++){var _p2=t[_o11];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_gt2=gt(_h,e,null,i,r===s),_d=_gt2.ruleScanner,_f=_gt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===Q){var _s8=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),yt(t,e,n,r,o,_s8.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s9=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s9.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s9 instanceof rt){var _i12=_s9;yt(t,e,n,r,o,_i12.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i12.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i12.endHasBackReferences&&(r=r.withEndRule(_i12.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s9 instanceof ot){var _i13=_s9;yt(t,e,n,r,o,_i13.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i13.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i13.whileHasBackReferences&&(r=r.withEndRule(_i13.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(yt(t,e,n,r,o,_s9.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function gt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function jt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function yt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e20=0;_e20<a;_e20++){var _a4=o[_e20];if(null===_a4)continue;var _m4=s[_e20];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a4.retokenizeCapturedWithRuleId){var _e21=_a4.getName(l,s),_o12=i.contentNameScopesList.pushAttributed(_e21,t),_c4=_a4.getContentName(l,s),_u3=_o12.pushAttributed(_c4,t),_p3=i.push(_a4.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o12,_u3),_h3=t.createOnigString(l.substring(0,_m4.end));ft(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),R(_h3);continue;}var _p4=_a4.getName(l,s);if(null!==_p4){var _e22=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new bt(_e22,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function wt(t,e,n,i,r){var o=D(e,vt),s=st.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n19=_step9.value;t.push({debugSelector:e,matcher:_n19.matcher,ruleId:s,grammar:r,priority:_n19.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function vt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var _i14=n;_i14<e.length;_i14++)if(kt(e[_i14],t))return n=_i14+1,!0;return!1;});}function kt(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function xt(t,e){return(t=h(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Dt(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t69=0;_t69<n.length;_t69+=2){var _n26;var _o15=e?n[_t69]+(n[_t69+1]||""):n[_t69];r.push([_o15,i]),i+=n[_t69].length,i+=((_n26=n[_t69+1])===null||_n26===void 0?void 0:_n26.length)||0;}return r;}function Et(t){return!t||["plaintext","txt","text","plain"].includes(t);}function Rt(t){return"ansi"===t||Et(t);}function $t(t){return"none"===t;}function Bt(t){return $t(t);}function It(t,e){var _t$properties;if(!e)return t;t.properties||(t.properties={}),(_t$properties=t.properties)["class"]||(_t$properties["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var n=Array.isArray(e)?e:e.split(/\s+/g);var _iterator18=_createForOfIteratorHelper(n),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e30=_step18.value;_e30&&!t.properties["class"].includes(_e30)&&t.properties["class"].push(_e30);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return t;}function _t(_x2){return _t70.apply(this,arguments);}function _t70(){_t70=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(t){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:return _context15.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context15.stop();}},_callee14);}));return _t70.apply(this,arguments);}function Gt(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i18=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i18<_Object$entries.length;_i18++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i18],2),_t71=_Object$entries$_i[0],_r11=_Object$entries$_i[1];"string"==typeof _r11?n[_t71]=_r11:_t71===i&&Object.assign(n,_r11);}return n;}function Ht(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function qt(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&p.Italic&&(e["font-style"]="italic"),t.fontStyle&p.Bold&&(e["font-weight"]="bold"),t.fontStyle&p.Underline&&(e["text-decoration"]="underline")),e;}function zt(t){return Object.entries(t).map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return"".concat(t,":").concat(e);}).join(";");}function Ut(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _i19=function _i19(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new Ft("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},_n27.indexToPos(t)),{},{offset:t});}{var _e31=_n27.lines[t.line];if(void 0===_e31)throw new Ft("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(_n27.lines.length));if(t.character<0||t.character>_e31.length)throw new Ft("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e31.length));return _objectSpread(_objectSpread({},t),{},{offset:_n27.posToIndex(t.line,t.character)});}};var _n27=function(t){var e=Dt(t,!0).map(function(_ref6){var _ref7=_slicedToArray(_ref6,1),t=_ref7[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator19=_createForOfIteratorHelper(e),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _t72=_step19.value;if(i<_t72.length)break;i-=_t72.length,r++;}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n28=0;_n28<t;_n28++)i+=e[_n28].length;return i+=n,i;}};}(e.source);var _r12=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_i19(t.start),end:_i19(t.end)});});!function(t){for(var _e32=0;_e32<t.length;_e32++){var _n29=t[_e32];if(_n29.start.offset>_n29.end.offset)throw new Ft("Invalid decoration range: ".concat(JSON.stringify(_n29.start)," - ").concat(JSON.stringify(_n29.end)));for(var _i20=_e32+1;_i20<t.length;_i20++){var _e33=t[_i20],_r13=_n29.start.offset<_e33.start.offset&&_e33.start.offset<_n29.end.offset,_o16=_n29.start.offset<_e33.end.offset&&_e33.end.offset<_n29.end.offset,_s11=_e33.start.offset<_n29.start.offset&&_n29.start.offset<_e33.end.offset,_l5=_e33.start.offset<_n29.end.offset&&_n29.end.offset<_e33.end.offset;if(_r13||_o16||_s11||_l5){if(_o16&&_o16)continue;if(_s11&&_l5)continue;throw new Ft("Decorations ".concat(JSON.stringify(_n29.start)," and ").concat(JSON.stringify(_e33.start)," intersect."));}}}}(_r12),t.set(e.meta,{decorations:_r12,converter:_n27,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _r14=_step20.value;_r14>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r14),offset:t.offset+n})),n=_r14;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new Ft("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t73=0;_t73<o.children.length;_t73++)l+=Wt(o.children[_t73]),-1===a&&l.length===e&&(a=_t73+1),-1===c&&l.length===n&&(c=_t73+1);if(-1===a)throw new Ft("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new Ft("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=o.children.slice(a,c);if(r.alwaysWrap||u.length!==o.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t74={type:"element",tagName:"span",properties:{},children:u};s(_t74,r,"wrapper"),o.children.splice(a,u.length,_t74);}else s(u[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&It(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator21=_createForOfIteratorHelper(a),_step21;try{var _loop=function _loop(){var t=_step21.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i21){l.unshift(function(){return o(_i21,t);});};for(var _i21=e.line+1;_i21<n.line;_i21++){_loop2(_i21);}r(n.line,0,n.character,t);}};for(_iterator21.s();!(_step21=_iterator21.n()).done;){_loop();}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}l.forEach(function(t){return t();});}};}function Wt(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(Wt).join(""):"";}function Jt(t){return[].concat(_toConsumableArray(t.transformers||[]),Vt);}function Qt(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e34=t.indexOf("m",n);return{sequence:t.substring(n+2,_e34).split(";"),startPosition:n,position:_e34+1};}return{position:t.length};}function Zt(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i22=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i22.length||_i22.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i22});}else if("5"===i){var _i23=Number.parseInt(t[e+n]);Number.isNaN(_i23)||(r={type:"table",index:Number(_i23)});}return[n,r];}function te(t){var e=[];for(var _n30=0;_n30<t.length;_n30++){var _i24=t[_n30],_r15=Number.parseInt(_i24);if(!Number.isNaN(_r15))if(0===_r15)e.push({type:"resetAll"});else if(_r15<=9){Kt[_r15]&&e.push({type:"setDecoration",value:Kt[_r15]});}else if(_r15<=29){var _t75=Kt[_r15-20];_t75&&e.push({type:"resetDecoration",value:_t75});}else if(_r15<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Yt[_r15-30]}});else if(38===_r15){var _Zt=Zt(t,_n30),_Zt2=_slicedToArray(_Zt,2),_i25=_Zt2[0],_r16=_Zt2[1];_r16&&e.push({type:"setForegroundColor",value:_r16}),_n30+=_i25;}else if(39===_r15)e.push({type:"resetForegroundColor"});else if(_r15<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Yt[_r15-40]}});else if(48===_r15){var _Zt3=Zt(t,_n30),_Zt4=_slicedToArray(_Zt3,2),_i26=_Zt4[0],_r17=_Zt4[1];_r17&&e.push({type:"setBackgroundColor",value:_r17}),_n30+=_i26;}else 49===_r15?e.push({type:"resetBackgroundColor"}):_r15>=90&&_r15<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Yt[_r15-90+8]}}):_r15>=100&&_r15<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Yt[_r15-100+8]}});}return e;}function ne(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ee;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t76=0;_t76<Yt.length;_t76++)i.push(e(Yt[_t76]));var t=[0,95,135,175,215,255];for(var _e35=0;_e35<6;_e35++)for(var _r18=0;_r18<6;_r18++)for(var _o17=0;_o17<6;_o17++)i.push(n([t[_e35],t[_r18],t[_o17]]));var r=8;for(var _t77=0;_t77<24;_t77++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function ie(t,e,n){var i=Gt(t,n),r=Dt(e),o=ne(Object.fromEntries(Yt.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s12=Qt(i,o),_l6=_s12.sequence?i.substring(o,_s12.startPosition):i.substring(o);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_s12.sequence){var _i27=te(_s12.sequence);var _iterator22=_createForOfIteratorHelper(_i27),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _r19=_step22.value;"resetAll"===_r19.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r19.type?t=null:"resetBackgroundColor"===_r19.type?e=null:"resetDecoration"===_r19.type&&n["delete"](_r19.value);}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}var _iterator23=_createForOfIteratorHelper(_i27),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r20=_step23.value;"setForegroundColor"===_r20.type?t=_r20.value:"setBackgroundColor"===_r20.type?e=_r20.value:"setDecoration"===_r20.type&&n.add(_r20.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}o=_s12.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Ht(r,i),s=Ht(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t78=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t78);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=p.None;return n.decorations.has("bold")&&(l|=p.Bold),n.decorations.has("italic")&&(l|=p.Italic),n.decorations.has("underline")&&(l|=p.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function re(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(Et(i)||$t(r))return Dt(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return ie(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new Ft("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(n.grammarState.theme!==r)throw new Ft("Grammar state theme \"".concat(n.grammarState.theme,"\" does not match highlight theme \"").concat(r,"\""));}return function(t,e,n,i,r){return oe(t,e,n,i,r).tokens;}(e,l,o,s,n);}function oe(t,e,n,i,r){var o=Gt(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=Dt(t);var c=r.grammarState?function(t){if(!(t instanceof Xt))throw new Ft("Invalid grammar state");return t._stack;}(r.grammarState):null!=r.grammarContextCode?oe(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Nt,u=[];var m=[];for(var _t79=0,_h4=a.length;_t79<_h4;_t79++){var _a$_t=_slicedToArray(a[_t79],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f3=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f3=e.tokenizeLine(_h5,c),_g2=_f3.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t80=0;_t80<_b;_t80++){var _e36=_y.tokens[2*_t80],_s13=_t80+1<_b?_y.tokens[2*_t80+2]:_h5.length;if(_e36===_s13)continue;var _l7=_y.tokens[2*_t80+1],_a5=Ht(i[N.getForeground(_l7)],o),_c5=N.getFontStyle(_l7),_m5={content:_h5.substring(_e36,_s13),offset:_d5+_e36,color:_a5,fontStyle:_c5};if(r.includeExplanation){var _t81=[];if("scopeName"!==r.includeExplanation){var _iterator24=_createForOfIteratorHelper(n.settings),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _e37=_step24.value;var _n31=void 0;switch(_typeof(_e37.scope)){case"string":_n31=_e37.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n31=_e37.scope;break;default:continue;}_t81.push({settings:_e37,selectors:_n31.map(function(t){return t.split(/ /);})});}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}_m5.explanation=[];var _i28=0;for(;_e36+_i28<_s13;){var _e38=_g2[_j2],_n32=_h5.substring(_e38.startIndex,_e38.endIndex);_i28+=_n32.length,_m5.explanation.push({content:_n32,scopes:"scopeName"===r.includeExplanation?(p=_e38.scopes,p.map(function(t){return{scopeName:t};})):se(_t81,_e38.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function se(t,e){var n=[];for(var _i29=0,_r21=e.length;_i29<_r21;_i29++){var _r22=e[_i29];n[_i29]={scopeName:_r22,themeMatches:ce(t,_r22,e.slice(0,_i29))};}return n;}function le(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function ae(t,e,n){if(!le(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)le(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function ce(t,e,n){var i=[];var _iterator25=_createForOfIteratorHelper(t),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _step25$value=_step25.value,_r23=_step25$value.selectors,_o18=_step25$value.settings;var _iterator26=_createForOfIteratorHelper(_r23),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _t82=_step26.value;if(ae(_t82,e,n)){i.push(_o18);break;}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return i;}function ue(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=function(){for(var _len2=arguments.length,t=new Array(_len2),_key2=0;_key2<_len2;_key2++){t[_key2]=arguments[_key2];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i30){var r=t.map(function(t){return t[_i30];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t83=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e39=0;_e39<n;_e39++){var _n33=l[_e39];_n33.content.length===_t83?(o[_e39].push(_n33),s[_e39]+=1,l[_e39]=r[_e39][s[_e39]]):(o[_e39].push(_objectSpread(_objectSpread({},_n33),{},{content:_n33.content.slice(0,_t83)})),l[_e39]=_objectSpread(_objectSpread({},_n33),{},{content:_n33.content.slice(_t83),offset:_n33.offset+_t83}));}}};for(var _i30=0;_i30<t[0].length;_i30++){_loop3(_i30);}return e;}.apply(void 0,_toConsumableArray(i.map(function(i){return re(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));}))),o=r[0].map(function(t,e){return t.map(function(t,o){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(function(t,n){var _t$e$o=t[e][o],r=_t$e$o.content,l=_t$e$o.explanation,a=_t$e$o.offset,c=_objectWithoutProperties(_t$e$o,_excluded);s.variants[i[n].color]=c;}),s;});});return o;}function me(t,e,n){var i,r,o,s,l;if("themes"in n){var _n$defaultColor=n.defaultColor,_a6=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_c6=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_u4=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_a6?-1:e.color===_a6?1:0;});if(0===_u4.length)throw new Ft("`themes` option must not be empty");var _m6=ue(t,e,n);if(_a6&&!_u4.find(function(t){return t.color===_a6;}))throw new Ft("`themes` option must contain the defaultColor key `".concat(_a6,"`"));var _p5=_u4.map(function(e){return t.getTheme(e.theme);}),_h6=_u4.map(function(t){return t.color;});o=_m6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return qt(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l=o.reduce(function(t,r,o){var _iterator27=_createForOfIteratorHelper(s),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _l8=_step27.value;var _s14=r[_l8]||"inherit";if(0===o&&i)t[_l8]=_s14;else{var _i31="color"===_l8?"":"background-color"===_l8?"-bg":"-".concat(_l8),_r24=n+e[o]+("color"===_l8?"":_i31);t[_l8]?t[_l8]+=";".concat(_r24,":").concat(_s14):t[_l8]="".concat(_r24,":").concat(_s14);}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}return t;},{});return r.htmlStyle=i?zt(l):Object.values(l).join(";"),r;}(t,_h6,_c6,_a6);});});var _d6=_u4.map(function(t){return Gt(t.theme,n);});r=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c6+t.color,":"))+(Ht(_p5[e].fg,_d6[e])||"inherit");}).join(";"),i=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c6+t.color,"-bg:"))+(Ht(_p5[e].bg,_d6[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_p5.map(function(t){return t.name;}).join(" ")),l=_a6?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new Ft("Invalid options, either `theme` or `themes` must be provided");{var _l9=Gt(n.theme,n);o=re(t,e,n);var _a7=t.getTheme(n.theme);i=Ht(_a7.bg,_l9),r=Ht(_a7.fg,_l9),s=_a7.name;}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l};}function pe(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return pe(t,e,n);},codeToTokens:function codeToTokens(e,n){return me(t,e,n);}};var r=e;var _iterator28=_createForOfIteratorHelper(Jt(n)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _t89$preprocess;var _t89=_step28.value;r=((_t89$preprocess=_t89.preprocess)===null||_t89$preprocess===void 0?void 0:_t89$preprocess.call(i,r,n))||r;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _me=me(t,r,n),o=_me.tokens,s=_me.fg,l=_me.bg,a=_me.themeName,c=_me.rootStyle;var _n$mergeWhitespaces=n.mergeWhitespaces,u=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===u?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&p.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===u&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e40=_slicedToArray(e,4),n=_e40[1],i=_e40[2],r=_e40[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var m=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator29=_createForOfIteratorHelper(Jt(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t90$tokens;var _t90=_step29.value;o=((_t90$tokens=_t90.tokens)===null||_t90$tokens===void 0?void 0:_t90$tokens.call(m,o))||o;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return function(t,e,n){var i=Jt(e),r=[],o={type:"root",children:[]},_e$structure=e.structure,s=_e$structure===void 0?"classic":_e$structure;var l={type:"element",tagName:"pre",properties:_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg),tabindex:"0"},Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return!t.startsWith("_");}))),children:[]},a={type:"element",tagName:"code",properties:{},children:r};var c=[],u=_objectSpread(_objectSpread({},n),{},{structure:s,addClassToHast:It,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return l;},get code(){return a;},get lines(){return c;}});if(t.forEach(function(t,e){e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},l=0;var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r25=_step30.value;var _t85={type:"element",tagName:"span",properties:{},children:[{type:"text",value:_r25.content}]};var _a8=_r25.htmlStyle||zt(qt(_r25));_a8&&(_t85.properties.style=_a8);var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _r26$span;var _r26=_step32.value;_t85=(_r26===null||_r26===void 0||(_r26$span=_r26.span)===null||_r26$span===void 0?void 0:_r26$span.call(u,_t85,e+1,l,n))||_t85;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}"inline"===s?o.children.push(_t85):"classic"===s&&n.children.push(_t85),l+=_r25.content.length;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if("classic"===s){var _iterator31=_createForOfIteratorHelper(i),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t84$line;var _t84=_step31.value;n=(_t84===null||_t84===void 0||(_t84$line=_t84.line)===null||_t84$line===void 0?void 0:_t84$line.call(u,n,e+1))||n;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}c.push(n),r.push(n);}}),"classic"===s){var _iterator33=_createForOfIteratorHelper(i),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _t86$code;var _t86=_step33.value;a=(_t86===null||_t86===void 0||(_t86$code=_t86.code)===null||_t86$code===void 0?void 0:_t86$code.call(u,a))||a;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}l.children.push(a);var _iterator34=_createForOfIteratorHelper(i),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t87$pre;var _t87=_step34.value;l=(_t87===null||_t87===void 0||(_t87$pre=_t87.pre)===null||_t87$pre===void 0?void 0:_t87$pre.call(u,l))||l;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}o.children.push(l);}var m=o;var _iterator35=_createForOfIteratorHelper(i),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t88$root;var _t88=_step35.value;m=(_t88===null||_t88===void 0||(_t88$root=_t88.root)===null||_t88$root===void 0?void 0:_t88$root.call(u,m))||m;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return m;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),m);}function fe(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new de(n,i,e);}function ge(t){return t.toLowerCase();}function Le(){return Math.pow(2,++ye);}function Me(t,e,n){n&&(t[e]=n);}function Ne(t){var e={},n={};var i;for(i in t.properties)if(Pe.call(t.properties,i)){var _r27=t.properties[i],_o19=new Oe(i,t.transform(t.attributes||{},i),_r27,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o19.mustUseProperty=!0),e[i]=_o19,n[ge(i)]=i,n[ge(_o19.attribute)]=i;}return new de(e,n,t.space);}function Re(t,e){return e in t?t[e]:e;}function $e(t,e){return Re(t,e.toLowerCase());}function Fe(t){return"-"+t.toLowerCase();}function Ue(t){return t.charAt(1).toUpperCase();}function Xe(t,e){return t=t.replace(e.subset?function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function nn(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(Ze.call(tn,r)){var _t92=tn[r],_o20="&"+_t92;return n&&Ye.includes(_t92)&&!Qe.includes(_t92)&&(!i||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?_o20:_o20+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i32=function(t,e,n){var i="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i32.length<r.length&&(r=_i32);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function rn(t,e){return Xe(t,Object.assign({format:nn},e));}function an(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function cn(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function un(t){return t.join(" ").trim();}function pn(t){return"object"==_typeof(t)?"text"===t.type&&hn(t.value):hn(t);}function hn(t){return""===t.replace(mn,"");}function jn(t){return function(e,n,i){var r=e?e.children:gn;var o=(n||0)+t,s=r[o];if(!i)for(;s&&pn(s);)o+=t,s=r[o];return s;};}function bn(t){return function(e,n,i){return yn.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function vn(t,e,n){var i=dn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&pn(i.value.charAt(0)));}function kn(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function Sn(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function Ln(t,e,n){var i=function(t,e){var n=ge(e);var i=e,r=je;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&He.test(e)){if("-"===e.charAt(4)){var _t94=e.slice(5).replace(qe,Ue);i="data"+_t94.charAt(0).toUpperCase()+_t94.slice(1);}else{var _t95=e.slice(4);if(!qe.test(_t95)){var _n34=_t95.replace(ze,Fe);"-"!==_n34.charAt(0)&&(_n34="-"+_n34),e="data"+_n34;}}r=Oe;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=rn(i.attribute,Object.assign({},t.settings.characterReferences,{subset:Cn.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?cn:un)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=rn(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Cn.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&an(n,l)>an(n,t.alternative)&&(l=t.alternative),s=l+rn(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?Cn.single:Cn["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function An(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?rn(t.value,Object.assign({},i.settings.characterReferences,{subset:Tn})):t.value;}function Dn(t,e,n){return On(t,e,n,this);}function En(t){var e=[],n=t&&t.children||Nn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function Rn(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return pe(t,e,n);},codeToTokens:function codeToTokens(e,n){return me(t,e,n);}};var r=function(t,e){var n=e||Mn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Dn,all:En,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||he,characterReferences:n.characterReferences||Pn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Ve:We,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(pe(t,e,n,i));var _iterator36=_createForOfIteratorHelper(Jt(n)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t96$postprocess;var _t96=_step36.value;r=((_t96$postprocess=_t96.postprocess)===null||_t96$postprocess===void 0?void 0:_t96$postprocess.call(i,r,n))||r;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return r;}function $n(){return"undefined"!=typeof performance?performance.now():Date.now();}function In(_x3){return _In.apply(this,arguments);}function _In(){_In=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:l=function _l10(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n47=t[e++];if(!(128&_n47)){o+=String.fromCharCode(_n47);continue;}var _i40=63&t[e++];if(192==(224&_n47)){o+=String.fromCharCode((31&_n47)<<6|_i40);continue;}var _r33=63&t[e++];if(_n47=224==(240&_n47)?(15&_n47)<<12|_i40<<6|_r33:(7&_n47)<<18|_i40<<12|_r33<<6|63&t[e++],_n47<65536)o+=String.fromCharCode(_n47);else{var _t33=_n47-65536;o+=String.fromCharCode(55296|_t33>>10,56320|1023&_t33);}}return o;}(i.HEAPU8,t,e):"";};o=function _o23(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r35(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:$n,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i41=1;_i41<=4;_i41*=2){var _r34=e*(1+.2/_i41);_r34=Math.min(_r34,t+100663296);if(o(Math.min(n,Bn(Math.max(t,_r34),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context17.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var n,o;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context16.next=3;return t(n);case 3:o=_context16.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context16.stop();}},_callee15);}))();case 8:return _context17.abrupt("return",i);case 9:case"end":return _context17.stop();}},_callee16);}));return _In.apply(this,arguments);}function Fn(t){if(_n)return _n;return _n=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return In(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e){var n,i;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:n=t;_context4.next=3;return n;case 3:n=_context4.sent;_context4.t0="function"==typeof n;if(!_context4.t0){_context4.next=9;break;}_context4.next=8;return n(e);case 8:n=_context4.sent;case 9:_context4.t1="function"==typeof n;if(!_context4.t1){_context4.next=14;break;}_context4.next=13;return n(e);case 13:n=_context4.sent;case 14:if(!("function"==typeof n.instantiator)){_context4.next=20;break;}_context4.next=17;return n.instantiator(e);case 17:n=_context4.sent;_context4.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context4.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context4.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context4.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context4.next=30;break;}_context4.next=27;return Un(n)(e);case 27:n=_context4.sent;_context4.next=35;break;case 30:_context4.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context4.t2){_context4.next=35;break;}_context4.next=34;return Un(n["default"])(e);case 34:n=_context4.sent;case 35:_context4.next=40;break;case 37:_context4.next=39;return Un(n)(e);case 39:n=_context4.sent;case 40:_context4.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context4.next=48;break;}_context4.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context4.t3=_context4.sent;_context4.next=51;break;case 48:_context4.next=50;return function(t){return/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t.arrayBuffer();case 2:n=_context3.sent;return _context3.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x5){return _ref12.apply(this,arguments);};}();}(n)(e);case 50:_context4.t3=_context4.sent;case 51:n=_context4.t3;case 52:_context4.next=57;break;case 54:_context4.next=56;return n["default"](e);case 56:n=_context4.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context4.abrupt("return",n);case 60:case"end":return _context4.stop();}},_callee3);}));return function(_x4){return _ref11.apply(this,arguments);};}());case 2:Gn=_context5.sent;case 3:case"end":return _context5.stop();}},_callee4);}))(),_n;}function Un(t){return function(e){return WebAssembly.instantiate(t,e);};}function Wn(_x6){return _Wn.apply(this,arguments);}function _Wn(){_Wn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t){return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.t0=t;if(!_context18.t0){_context18.next=4;break;}_context18.next=4;return Fn(t);case 4:return _context18.abrupt("return",{createScanner:function createScanner(t){return new zn(t);},createString:function createString(t){return new qn(t);}});case 5:case"end":return _context18.stop();}},_callee17);}));return _Wn.apply(this,arguments);}function Yn(t){if(t!==null&&t!==void 0&&t[Xn])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t97$settings,_t97$settings2,_e$colors,_e$colors2;var _t97=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t97!==null&&_t97!==void 0&&(_t97$settings=_t97.settings)!==null&&_t97$settings!==void 0&&_t97$settings.foreground&&(i=_t97.settings.foreground),_t97!==null&&_t97!==void 0&&(_t97$settings2=_t97.settings)!==null&&_t97$settings2!==void 0&&_t97$settings2.background&&(n=_t97.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?Vn.light:Vn.dark),n||(n="light"===e.type?Jn.light:Jn.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n41=s(t.settings.foreground);e.colorReplacements[_n41]=t.settings.foreground,r.settings.foreground=_n41;}if(i){var _n42=s(t.settings.background);e.colorReplacements[_n42]=t.settings.background,r.settings.background=_n42;}return r;});for(var _i37=0,_Object$keys2=Object.keys(e.colors||{});_i37<_Object$keys2.length;_i37++){var _e$colors$_t;var _t98=_Object$keys2[_i37];if(("editor.foreground"===_t98||"editor.background"===_t98||_t98.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t98])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n43=s(e.colors[_t98]);e.colorReplacements[_n43]=e.colors[_t98],e.colors[_t98]=_n43;}}return Object.defineProperty(e,Xn,{enumerable:!1,writable:!1,value:!0}),e;}function Kn(_x7){return _Kn.apply(this,arguments);}function _Kn(){_Kn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(t){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.t0=Array;_context20.t1=Set;_context20.next=4;return Promise.all(t.filter(function(t){return!Rt(t);}).map(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t){return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return _t(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context19.abrupt("return",_context19.sent);case 3:case"end":return _context19.stop();}},_callee18);}));return function(_x23){return _ref24.apply(this,arguments);};}()));case 4:_context20.t2=_context20.sent.flat();_context20.t3=new _context20.t1(_context20.t2);return _context20.abrupt("return",_context20.t0.from.call(_context20.t0,_context20.t3));case 7:case"end":return _context20.stop();}},_callee19);}));return _Kn.apply(this,arguments);}function Qn(_x8){return _Qn.apply(this,arguments);}function _Qn(){_Qn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t){return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:if(!Bt(t)){_context21.next=4;break;}_context21.t0=null;_context21.next=9;break;case 4:_context21.t1=Yn;_context21.next=7;return _t(t);case 7:_context21.t2=_context21.sent;_context21.t0=(0,_context21.t1)(_context21.t2);case 9:return _context21.abrupt("return",_context21.t0);case 10:case"end":return _context21.stop();}},_callee20);}));return function(_x24){return _ref25.apply(this,arguments);};}()));case 2:return _context22.abrupt("return",_context22.sent.filter(function(t){return!!t;}));case 3:case"end":return _context22.stop();}},_callee21);}));return _Qn.apply(this,arguments);}function ii(){return _ii.apply(this,arguments);}function _ii(){_ii=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args14=arguments;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:t=_args14.length>0&&_args14[0]!==undefined?_args14[0]:{};_context26.next=3;return Promise.all([Qn(t.themes||[]),Kn(t.langs||[]),t.engine||Wn(t.loadWasm||ei)]);case 3:_yield$Promise$all=_context26.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context26.abrupt("return",function(t){ni+=1,!1!==t.warnings&&ni>=10&&ni%10==0&&console.warn("[Shiki] ".concat(ni," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));var e=!1;if(!t.engine)throw new Ft("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(Yn),r=new ti(t.engine,n),o=new Zn(r,i,n,t.langAlias);var s;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=o.getTheme(t);if(!e)throw new Ft("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}u(),o.loadLanguages(t.flat(1));}function c(){return _c8.apply(this,arguments);}function _c8(){_c8=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(){var _len7,t,_key7,_iterator40,_step40,_e54,_args13=arguments;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:u();for(_len7=_args13.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=_args13[_key7];}_iterator40=_createForOfIteratorHelper(t.flat(1));try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){_e54=_step40.value;o.loadTheme(_e54);}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}case 4:case"end":return _context25.stop();}},_callee24);}));return _c8.apply(this,arguments);}function u(){if(e)throw new Ft("Shiki instance has been disposed");}function m(){e||(e=!0,o.dispose(),ni-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return s!==t&&(o.setTheme(e),s=t),{theme:e,colorMap:o.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=o.getGrammar("string"==typeof t?t:t.name);if(!e)throw new Ft("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),o.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),o.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _len8,t,_key8,_args11=arguments;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:for(_len8=_args11.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=_args11[_key8];}_context23.t0=a;_context23.next=4;return Kn(t);case 4:_context23.t1=_context23.sent;return _context23.abrupt("return",(0,_context23.t0)(_context23.t1));case 6:case"end":return _context23.stop();}},_callee22);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var _len9,t,_key9,_args12=arguments;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:for(_len9=_args12.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args12[_key9];}u();_context24.t0=c;_context24.next=5;return Qn(t);case 5:_context24.t1=_context24.sent;return _context24.abrupt("return",(0,_context24.t0)(_context24.t1));case 7:case"end":return _context24.stop();}},_callee23);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 9:case"end":return _context26.stop();}},_callee25);}));return _ii.apply(this,arguments);}function ri(){return _ri.apply(this,arguments);}function _ri(){_ri=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(){var t,e,_args15=arguments;return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:t=_args15.length>0&&_args15[0]!==undefined?_args15[0]:{};_context27.next=3;return ii(t);case 3:e=_context27.sent;return _context27.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(t,n){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang2=n.lang,i=_n$lang2===void 0?"text":_n$lang2,_n$theme2=n.theme,r=_n$theme2===void 0?t.getLoadedThemes()[0]:_n$theme2;if(Et(i)||$t(r))throw new Ft("Plain language does not have grammar state");if("ansi"===i)throw new Ft("ANSI language does not have grammar state");var _t$setTheme2=t.setTheme(r),o=_t$setTheme2.theme,s=_t$setTheme2.colorMap,l=t.getLanguage(i);return new Xt(oe(e,l,o,s,n).stateStack,l.name,o.name);}(e,t,n);},codeToTokensBase:function codeToTokensBase(t,n){return re(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return ue(e,t,n);},codeToTokens:function codeToTokens(t,n){return me(e,t,n);},codeToHast:function codeToHast(t,n){return pe(e,t,n);},codeToHtml:function codeToHtml(t,n){return Rn(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context27.stop();}},_callee26);}));return _ri.apply(this,arguments);}function oi(t,e,n){var i,r,o;if(e)i=t,r=e,o=function o(){return Wn(n);};else{var _e50=t;i=_e50.langs,r=_e50.themes,o=_e50.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var _t$themes,_t$langs;var e,n,s,l,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:n=function _n46(t){if(Bt(t))return"none";if("string"==typeof t){var _e52=r[t];if(!_e52)throw new Ft("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e52;}return t;};e=function _e53(t){if("string"==typeof t){if(Rt(t))return[];var _e51=i[t];if(!_e51)throw new Ft("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e51;}return t;};s=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context6.next=6;return ri(_objectSpread(_objectSpread({engine:o()},t),{},{themes:s,langs:l}));case 6:a=_context6.sent;return _context6.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context6.stop();}},_callee5);}));return function(_x9){return _ref23.apply(this,arguments);};}();}function si(t){var e=function(t){var e;return/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,_t104,_args6=arguments;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:n=_args6.length>0&&_args6[0]!==undefined?_args6[0]:{};if(!e){_context7.next=8;break;}_context7.next=4;return e;case 4:_t104=_context7.sent;_context7.next=7;return Promise.all([_t104.loadTheme.apply(_t104,_toConsumableArray(n.themes||[])),_t104.loadLanguage.apply(_t104,_toConsumableArray(n.langs||[]))]);case 7:return _context7.abrupt("return",_t104);case 8:return _context7.abrupt("return",(e=t(_objectSpread(_objectSpread({},n),{},{themes:n.themes||[],langs:n.langs||[]})),e));case 9:case"end":return _context7.stop();}},_callee6);}));}(t);return{getSingletonHighlighter:function getSingletonHighlighter(t){return e(t);},codeToHtml:function(){var _codeToHtml=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(t,n){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context8.abrupt("return",_context8.sent.codeToHtml(t,n));case 3:case"end":return _context8.stop();}},_callee7);}));function codeToHtml(_x10,_x11){return _codeToHtml.apply(this,arguments);}return codeToHtml;}(),codeToHast:function(){var _codeToHast=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,n){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context9.abrupt("return",_context9.sent.codeToHast(t,n));case 3:case"end":return _context9.stop();}},_callee8);}));function codeToHast(_x12,_x13){return _codeToHast.apply(this,arguments);}return codeToHast;}(),codeToTokens:function(){var _codeToTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t,n){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context10.abrupt("return",_context10.sent.codeToTokens(t,n));case 3:case"end":return _context10.stop();}},_callee9);}));function codeToTokens(_x14,_x15){return _codeToTokens.apply(this,arguments);}return codeToTokens;}(),codeToTokensBase:function(){var _codeToTokensBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t,n){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context11.abrupt("return",_context11.sent.codeToTokensBase(t,n));case 3:case"end":return _context11.stop();}},_callee10);}));function codeToTokensBase(_x16,_x17){return _codeToTokensBase.apply(this,arguments);}return codeToTokensBase;}(),codeToTokensWithThemes:function(){var _codeToTokensWithThemes=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t,n){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)});case 2:return _context12.abrupt("return",_context12.sent.codeToTokensWithThemes(t,n));case 3:case"end":return _context12.stop();}},_callee11);}));function codeToTokensWithThemes(_x18,_x19){return _codeToTokensWithThemes.apply(this,arguments);}return codeToTokensWithThemes;}(),getLastGrammarState:function(){var _getLastGrammarState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t,n){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context13.abrupt("return",_context13.sent.getLastGrammarState(t,n));case 3:case"end":return _context13.stop();}},_callee12);}));function getLastGrammarState(_x20,_x21){return _getLastGrammarState.apply(this,arguments);}return getLastGrammarState;}()};}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-22ee7e2e.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-38128ad5.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-4472c0f4.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-64afee93.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-86dd9411.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-46d295f1.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-7dc839c8.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-349d63bf.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-fc1a26f5.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-20c397c7.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-971f76ca.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-5036641d.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-92714c4d.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-4963689a.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-aa50180c.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-7164ad4c.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-17c81e35.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-a2724563.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-8a35fee3.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-4a260f2b.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-26bbbe7a.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-1182ee3c.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-962df834.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-20178c34.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-904e245e.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-a8e8c28b.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-80a174bd.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-df1ec844.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-a0d022e1.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-d13ba4f7.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-e3b5ba72.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-6e6ac84f.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-498a1e24.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-b69b212e.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-c7495bc6.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-b2070cb4.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-e35de69e.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-7393a29d.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-5bf38d68.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-23c5e67f.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-626dd879.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-28508030.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-09716540.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-8c3ddad5.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-cfbd2b03.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-568819c1.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-03e02970.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-01502ac9.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-a722ff0b.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-389d781a.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-ba2192a6.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-f39636aa.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-efdbc078.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-853cc7f6.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-11f9610e.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-b09871c5.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-b91c7791.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-6cd09927.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-1df17758.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-94dcf330.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-ffbf4a9f.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-8c26c04d.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-b835653d.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-fc9bb7f1.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-103797c9.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-d19abaec.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-b0dff19d.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-62ced541.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-4c678432.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-05eedccc.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-551e647b.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-7fbe3e17.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-7bc2d029.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-c535eea0.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-554d768f.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-3214e7b3.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-f69f18ed.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-66537653.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-95f3c381.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-9a40fb27.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-0e30bd4b.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-abf94c29.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-8070d2c6.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-9f6d6104.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-beb14934.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-b829167c.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-7e4a4d2b.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-78350f12.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-5c368136.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-dda6deeb.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-005637fa.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-e431fcc6.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-df021a4e.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-438a4cf1.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-e3438075.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-c335f71a.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-1cc92e3d.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-b9add75d.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-ce538784.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-7a1b6c1f.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-9b35ad5b.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-0426de90.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-fa09efb9.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-800a35f5.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-812f1b35.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-7e4374e8.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-60049698.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-2daf0a7d.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-aafb1a4f.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-67cb87d9.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-4e4dc210.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-3e73f218.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-41655708.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-7248098c.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-57d1ea2d.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-52e9d6a5.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-61c0b1c2.cjs.js");}},{id:"mermaid",name:"Mermaid","import":function _import(){return _context["import"]("../mermaid-c3ccc7c9.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-28eeb26e.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-673a2795.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-556714e3.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-87233527.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-6efff39c.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-10cc2dc3.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-6eac734a.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-80c1dc7b.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-aed21983.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-59a90921.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-0fb6106a.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-b82e29b4.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-13ce44c4.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-b5780156.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-8558fd1a.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-1b7d27f8.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-90526a01.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-cd5a8e75.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-9a98e05c.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-8482ea14.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-15b97e5e.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-d438d180.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-9c2521f0.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-53d1adf4.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-8df33ddd.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-abba3424.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-2c2849b1.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-a3db3c1f.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-03f34da2.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-80e68b61.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-5ebb30f6.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-febbf285.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-465f0814.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-91e30a84.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-c2028de0.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-bbf1b3b0.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-2744b5f8.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-a06e678f.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-650e6d81.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-721a01cc.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-881a046e.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-cfc52dd9.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-65b842a2.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-9917ff99.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-5987f2d8.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-ce95e683.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-9b39fb30.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-5b78d516.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-6db2b374.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-d52125c8.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-41e0bcb9.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-6e0c5a96.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-6f3f1f3b.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-f462264b.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-0c82ee23.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-3cab91f5.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-3a35873f.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-ed13fe36.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-207639a6.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-f043a204.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-1d49fbcb.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-66437078.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-49a3b744.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-78faff3b.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-53c05745.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-c1d975ae.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-71c753d3.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-62be2567.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-11fce737.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-313f2b1e.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-e4a791ab.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-d1cf9e35.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-9f43ca9a.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-463f4728.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-40f04b28.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-a65cf889.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-d4510fd6.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-d1acb0b1.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-8da08302.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-d3d84b63.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-1d36b716.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-08d00d60.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-c2d10a51.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-baf1e1f1.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-ad358ef7.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-2d84a154.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-3ffb53fe.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-2588d1ab.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-9a8735c1.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-6253977f.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-c021eaba.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-19c808de.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-2016afa9.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-08972182.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",_context["import"]("../wasm-2b3accdb.cjs.js").then(function(e){return e["default"](t);}));case 1:case"end":return _context2.stop();}},_callee);}));return function c(_x){return _ref.apply(this,arguments);};}();u=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-123d3c00.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-8180368b.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-0cf7a0f0.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-cf3e1ada.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-61603c64.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-56e83acc.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-93b9527b.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-8ac91d63.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-0264d406.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-0d891f5a.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-0ddfeebd.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-eee329e3.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-7888cdf8.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-a4342077.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-6d8cfe5f.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-7b0d7429.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-5d2e59f1.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-a2cc3491.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-caee8ed6.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-17d51311.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-5d78b81d.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a14ae0a.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-1e70322e.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-7c78ef32.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-cd7515fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-4e847bdf.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-5168fd63.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b65008a8.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-718a3275.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-a73fe966.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-45735b6a.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-c1c05174.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-5acc6d52.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-bea79cf9.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-a8c47756.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-29968b94.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d8c9d4b0.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-9516af0e.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-15da7ed8.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-18ae2a43.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-0a1b6c0b.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-869d8085.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-afe282dc.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-9bd52d45.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-218912d1.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-82a00987.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-be0e89d9.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-4c99f83d.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-c8b0af08.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-4d62a96c.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-c347b81b.cjs.js");}}];m=Object.fromEntries(u.map(function(t){return[t.id,t["import"]];}));!function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline";}(p||(p={}));g=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;j=/*#__PURE__*/function(){function j(){_classCallCheck(this,j);}return _createClass(j,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(g.lastIndex=0,g.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(g,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t2=e.substring(s.start,s.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(o){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();k=/*#__PURE__*/function(){function k(t){_classCallCheck(this,k);this.fn=t,this.cache=new Map();}return _createClass(k,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();S=/*#__PURE__*/function(){function S(t,e,n){var _this=this;_classCallCheck(this,S);this._colorMap=t,this._defaults=e,this._root=n,this._cachedMatchRoot=new k(function(t){return _this._root.match(t);});}return _createClass(S,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n6=0;_n6<e.length;_n6++){var _i3=e[_n6],_r=!1;if(">"===_i3){if(_n6===e.length-1)return!1;_i3=e[++_n6],_r=!0;}for(;t&&!C(t.scopeName,_i3);){if(_r)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new L(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t3=0,_r2=e.length;_t3<_r2;_t3++){var _r3=void 0,_o=e[_t3];if(!_o.settings)continue;if("string"==typeof _o.scope){var _t4=_o.scope;_t4=_t4.replace(/^[,]+/,""),_t4=_t4.replace(/[,]+$/,""),_r3=_t4.split(",");}else _r3=Array.isArray(_o.scope)?_o.scope:[""];var _s=-1;if("string"==typeof _o.settings.fontStyle){_s=0;var _t5=_o.settings.fontStyle.split(" ");for(var _e2=0,_n7=_t5.length;_e2<_n7;_e2++){switch(_t5[_e2]){case"italic":_s|=1;break;case"bold":_s|=2;break;case"underline":_s|=4;break;case"strikethrough":_s|=8;}}}var _l=null;"string"==typeof _o.settings.foreground&&w(_o.settings.foreground)&&(_l=_o.settings.foreground);var _a=null;"string"==typeof _o.settings.background&&w(_o.settings.background)&&(_a=_o.settings.background);for(var _e3=0,_o2=_r3.length;_e3<_o2;_e3++){var _o3=_r3[_e3].trim().split(" "),_c=_o3[_o3.length-1],_u=null;_o3.length>1&&(_u=_o3.slice(0,_o3.length-1),_u.reverse()),n[i++]=new T(_c,_u,_t3,_s,_l,_a);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=y(t.scope,e.scope);return 0!==n?n:(n=b(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e4=t.shift();-1!==_e4.fontStyle&&(n=_e4.fontStyle),null!==_e4.foreground&&(i=_e4.foreground),null!==_e4.background&&(r=_e4.background);}var o=new A(e),s=new L(n,o.getId(i),o.getId(r)),l=new P(new M(0,null,-1,0,0),[]);for(var _e5=0,_n8=t.length;_e5<_n8;_e5++){var _n9=t[_e5];l.insert(0,_n9.scope,_n9.parentScopes,_n9.fontStyle,o.getId(_n9.foreground),o.getId(_n9.background));}return new S(o,s,l);}(t,e);}}]);}();x=/*#__PURE__*/function(){function t(_t6,e){_classCallCheck(this,t);this.parent=_t6,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t7=this;var e=[];for(;_t7;)e.push(_t7.scopeName),_t7=_t7.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t8){return this===_t8||null!==this.parent&&this.parent["extends"](_t8);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t9){var e=[];var n=this;for(;n&&n!==_t9;)e.push(n.scopeName),n=n.parent;return n===_t9?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i4=_step.value;e=new t(e,_i4);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var _i5=0;_i5<arguments.length;_i5++)n=new t(n,_i5<0||arguments.length<=_i5?undefined:arguments[_i5]);return n;}}]);}();L=/*#__PURE__*/_createClass(function L(t,e,n){_classCallCheck(this,L);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});T=/*#__PURE__*/_createClass(function T(t,e,n,i,r,o){_classCallCheck(this,T);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});A=/*#__PURE__*/function(){function A(t){_classCallCheck(this,A);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e6=0,_n10=t.length;_e6<_n10;_e6++)this._color2id[t[_e6]]=_e6,this._id2color[_e6]=t[_e6];}else this._isFrozen=!1;}return _createClass(A,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();O=Object.freeze([]);M=/*#__PURE__*/function(){function t(_t10,e,n,i,r){_classCallCheck(this,t);this.scopeDepth=_t10,this.parentScopes=e||O,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t12,e,n,i){this.scopeDepth>_t12?console.log("how did this happen?"):this.scopeDepth=_t12,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t11){var e=[];for(var _n11=0,_i6=_t11.length;_n11<_i6;_n11++)e[_n11]=_t11[_n11].clone();return e;}}]);}();P=/*#__PURE__*/function(){function t(_t13){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);this._mainRule=_t13,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t15,_n12,_i7=e.indexOf(".");if(-1===_i7?(_t15=e,_n12=""):(_t15=e.substring(0,_i7),_n12=e.substring(_i7+1)),this._children.hasOwnProperty(_t15))return this._children[_t15].match(_n12);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,o,s){if(""===n)return void this._doInsertHere(e,i,r,o,s);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),M.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,o,s);}},{key:"_doInsertHere",value:function _doInsertHere(_t16,e,n,i,r){if(null!==e){for(var _o4=0,_s2=this._rulesWithParentScopes.length;_o4<_s2;_o4++){var _s3=this._rulesWithParentScopes[_o4];if(0===b(_s3.parentScopes,e))return void _s3.acceptOverwrite(_t16,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new M(_t16,e,n,i,r));}else this._mainRule.acceptOverwrite(_t16,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t14,e){if(_t14.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t14.scopeDepth;var n=0,i=0;for(;">"===_t14.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t14.parentScopes.length||i>=e.parentScopes.length);){var _r4=e.parentScopes[i].length-_t14.parentScopes[n].length;if(0!==_r4)return _r4;n++,i++;}return e.parentScopes.length-_t14.parentScopes.length;}}]);}();N=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t17){return _t17.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});}},{key:"getLanguageId",value:function getLanguageId(_t18){return(255&_t18)>>>0;}},{key:"getTokenType",value:function getTokenType(_t19){return(768&_t19)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t20){return!!(1024&_t20);}},{key:"getFontStyle",value:function getFontStyle(_t21){return(30720&_t21)>>>11;}},{key:"getForeground",value:function getForeground(_t22){return(16744448&_t22)>>>15;}},{key:"getBackground",value:function getBackground(_t23){return(4278190080&_t23)>>>24;}},{key:"set",value:function set(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();$=/*#__PURE__*/function(){function $(t){_classCallCheck(this,$);this.scopeName=t;}return _createClass($,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();B=/*#__PURE__*/function(){function B(t,e){_classCallCheck(this,B);this.scopeName=t,this.ruleName=e;}return _createClass(B,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();I=/*#__PURE__*/function(){function I(){_classCallCheck(this,I);this._references=[],this._seenReferenceKeys=new Set(),this.visitedRule=new Set();}return _createClass(I,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();_=/*#__PURE__*/function(){function _(t,e){_classCallCheck(this,_);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests=new Set(),this.seenPartialScopeRequests=new Set(),this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new $(this.initialScopeName)];}return _createClass(_,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new I();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n13=_step2.value;G(_n13,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t28=_step3.value;if(_t28 instanceof $){if(this.seenFullScopeRequests.has(_t28.scopeName))continue;this.seenFullScopeRequests.add(_t28.scopeName),this.Q.push(_t28);}else{if(this.seenFullScopeRequests.has(_t28.scopeName))continue;if(this.seenPartialScopeRequests.has(_t28.toKey()))continue;this.seenPartialScopeRequests.add(_t28.toKey()),this.Q.push(_t28);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();F=/*#__PURE__*/_createClass(function F(){_classCallCheck(this,F);this.kind=0;});U=/*#__PURE__*/_createClass(function U(){_classCallCheck(this,U);this.kind=1;});W=/*#__PURE__*/_createClass(function W(t){_classCallCheck(this,W);this.ruleName=t,this.kind=2;});V=/*#__PURE__*/_createClass(function V(t){_classCallCheck(this,V);this.scopeName=t,this.kind=3;});J=/*#__PURE__*/_createClass(function J(t,e){_classCallCheck(this,J);this.scopeName=t,this.ruleName=e,this.kind=4;});Y=/\\(\d+)/;K=/\\(\d+)/g;Q=-1;Z=-2;tt=/*#__PURE__*/function(){function tt(t,e,n,i){_classCallCheck(this,tt);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName);}return _createClass(tt,[{key:"debugName",get:function get(){var t=this.$location?"".concat(f(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?j.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();et=/*#__PURE__*/function(_tt){function et(t,e,n,i,r){var _this2;_classCallCheck(this,et);_this2=_callSuper(this,et,[t,e,n,i]),_this2.retokenizeCapturedWithRuleId=r;return _this2;}_inherits(et,_tt);return _createClass(et,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(tt);nt=/*#__PURE__*/function(_tt2){function nt(t,e,n,i,r){var _this3;_classCallCheck(this,nt);_this3=_callSuper(this,nt,[t,e,n,null]),_this3._match=new lt(i,_this3.id),_this3.captures=r,_this3._cachedCompiledPatterns=null;return _this3;}_inherits(nt,_tt2);return _createClass(nt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new at(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(tt);it=/*#__PURE__*/function(_tt3){function it(t,e,n,i,r){var _this4;_classCallCheck(this,it);_this4=_callSuper(this,it,[t,e,n,i]),_this4.patterns=r.patterns,_this4.hasMissingPatterns=r.hasMissingPatterns,_this4._cachedCompiledPatterns=null;return _this4;}_inherits(it,_tt3);return _createClass(it,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n15=_step6.value;t.getRule(_n15).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new at(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(tt);rt=/*#__PURE__*/function(_tt4){function rt(t,e,n,i,r,o,s,l,a,c){var _this5;_classCallCheck(this,rt);_this5=_callSuper(this,rt,[t,e,n,i]),_this5._begin=new lt(r,_this5.id),_this5.beginCaptures=o,_this5._end=new lt(s||"",-1),_this5.endHasBackReferences=_this5._end.hasBackReferences,_this5.endCaptures=l,_this5.applyEndPatternLast=a||!1,_this5.patterns=c.patterns,_this5.hasMissingPatterns=c.hasMissingPatterns,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(rt,_tt4);return _createClass(rt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new at();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e8=_step7.value;t.getRule(_e8).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(tt);ot=/*#__PURE__*/function(_tt5){function ot(t,e,n,i,r,o,s,l,a){var _this6;_classCallCheck(this,ot);_this6=_callSuper(this,ot,[t,e,n,i]),_this6._begin=new lt(r,_this6.id),_this6.beginCaptures=o,_this6.whileCaptures=l,_this6._while=new lt(s,Z),_this6.whileHasBackReferences=_this6._while.hasBackReferences,_this6.patterns=a.patterns,_this6.hasMissingPatterns=a.hasMissingPatterns,_this6._cachedCompiledPatterns=null,_this6._cachedCompiledWhilePatterns=null;return _this6;}_inherits(ot,_tt5);return _createClass(ot,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new at();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e9=_step8.value;t.getRule(_e9).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new at(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns;}}]);}(tt);st=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t31,e,n,i,r){return _t31.registerRule(function(_t32){return new et(e,_t32,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new nt(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=d({},i,e.repository));var _r7=e.patterns;return void 0===_r7&&e.include&&(_r7=[{include:e.include}]),new it(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r7,n,i));}return e["while"]?new ot(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _o6=0;for(var _t36 in e){if("$vscodeTextmateLocation"===_t36)continue;var _e10=parseInt(_t36,10);_e10>_o6&&(_o6=_e10);}for(var _t37=0;_t37<=_o6;_t37++)r[_t37]=null;for(var _o7 in e){if("$vscodeTextmateLocation"===_o7)continue;var _s4=parseInt(_o7,10);var _l2=0;e[_o7].patterns&&(_l2=t.getCompiledRuleId(e[_o7],n,i)),r[_s4]=t.createCaptureRule(n,e[_o7].$vscodeTextmateLocation,e[_o7].name,e[_o7].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _o8=0,_s5=e.length;_o8<_s5;_o8++){var _s6=e[_o8];var _l3=-1;if(_s6.include){var _e11=X(_s6.include);switch(_e11.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_s6.include],n,i);break;case 2:var _r8=i[_e11.ruleName];_r8&&(_l3=t.getCompiledRuleId(_r8,n,i));break;case 3:case 4:var _o9=_e11.scopeName,_a2=4===_e11.kind?_e11.ruleName:null,_c2=n.getExternalGrammar(_o9,i);if(_c2)if(_a2){var _e12=_c2.repository[_a2];_e12&&(_l3=t.getCompiledRuleId(_e12,n,_c2.repository));}else _l3=t.getCompiledRuleId(_c2.repository.$self,n,_c2.repository);}}else _l3=t.getCompiledRuleId(_s6,n,i);if(-1!==_l3){var _t35=n.getRule(_l3);var _e13=!1;if((_t35 instanceof it||_t35 instanceof rt||_t35 instanceof ot)&&_t35.hasMissingPatterns&&0===_t35.patterns.length&&(_e13=!0),_e13)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}();lt=/*#__PURE__*/function(){function t(_t38,e){_classCallCheck(this,t);if(_t38){var _e14=_t38.length;var _n16=0,_i11=[],_r9=!1;for(var _o10=0;_o10<_e14;_o10++){if("\\"===_t38.charAt(_o10)&&_o10+1<_e14){var _e15=_t38.charAt(_o10+1);"z"===_e15?(_i11.push(_t38.substring(_n16,_o10)),_i11.push("$(?!\\n)(?<!\\n)"),_n16=_o10+2):"A"!==_e15&&"G"!==_e15||(_r9=!0),_o10++;}}this.hasAnchor=_r9,0===_n16?this.source=_t38:(_i11.push(_t38.substring(_n16,_e14)),this.source=_i11.join(""));}else this.hasAnchor=!1,this.source=_t38;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=Y.test(this.source);}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t39){this.source!==_t39&&(this.source=_t39,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t40,e){var n=e.map(function(e){return _t40.substring(e.start,e.end);});return K.lastIndex=0,this.source.replace(K,function(_t41,e){return v(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var _t42,e,n,i,r=[],o=[],s=[],l=[];for(_t42=0,e=this.source.length;_t42<e;_t42++)n=this.source.charAt(_t42),r[_t42]=n,o[_t42]=n,s[_t42]=n,l[_t42]=n,"\\"===n&&_t42+1<e&&(i=this.source.charAt(_t42+1),"A"===i?(r[_t42+1]="",o[_t42+1]="",s[_t42+1]="A",l[_t42+1]="A"):"G"===i?(r[_t42+1]="",o[_t42+1]="G",s[_t42+1]="",l[_t42+1]="G"):(r[_t42+1]=i,o[_t42+1]=i,s[_t42+1]=i,l[_t42+1]=i),_t42++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t43,e){return this.hasAnchor&&this._anchorCache?_t43?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();at=/*#__PURE__*/function(){function at(){_classCallCheck(this,at);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(at,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _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);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e16=this._items.map(function(t){return t.source;});this._cached=new ct(t,_e16,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new ct(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();ct=/*#__PURE__*/function(){function ct(t,e,n){_classCallCheck(this,ct);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(ct,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e17=0,_n17=this.rules.length;_e17<_n17;_e17++)t.push(" - "+this.rules[_e17]+": "+this.regExps[_e17]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();ut=/*#__PURE__*/_createClass(function ut(t,e){_classCallCheck(this,ut);this.languageId=t,this.tokenType=e;});mt=/*#__PURE__*/function(){function t(_t44,e){var _this7=this;_classCallCheck(this,t);this._getBasicScopeAttributes=new k(function(_t45){var e=_this7._scopeToLanguage(_t45),n=_this7._toStandardTokenType(_t45);return new ut(e,n);}),this._defaultAttributes=new ut(_t44,8),this._embeddedLanguagesMatcher=new ht(Object.entries(e||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t46){return this._embeddedLanguagesMatcher.match(_t46)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0;}throw new Error("Unexpected match for standard token type!");}}]);}();mt._NULL_SCOPE_METADATA=new ut(0,0),mt.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;pt=mt;ht=/*#__PURE__*/function(){function ht(t){_classCallCheck(this,ht);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e18=t.map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),t=_ref3[0],e=_ref3[1];return v(t);});_e18.sort(),_e18.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e18.join(")|("),"))($|\\.)"),"");}}return _createClass(ht,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;dt=/*#__PURE__*/_createClass(function dt(t,e){_classCallCheck(this,dt);this.stack=t,this.stoppedEarly=e;});bt=/*#__PURE__*/_createClass(function bt(t,e){_classCallCheck(this,bt);this.scopes=t,this.endPos=e;});St=/*#__PURE__*/function(){function St(t,e,n,i,r,o,s,l){_classCallCheck(this,St);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new pt(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=xt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i15=0,_Object$keys=Object.keys(r);_i15<_Object$keys.length;_i15++){var _t47=_Object$keys[_i15];var _e23=D(_t47,vt);var _iterator10=_createForOfIteratorHelper(_e23),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n20=_step10.value;this._tokenTypeMatchers.push({matcher:_n20.matcher,type:r[_t47]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(St,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t48=_step11.value;_t48&&_t48.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this8=this;var t=function t(_t49){return _t49===_this8._rootScopeName?_this8._grammar:_this8.getExternalGrammar(_t49);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t50=i.injections;if(_t50)for(var _n21 in _t50)wt(e,_n21,_t50[_n21],this,i);var _r10=this._grammarRepository.injections(n);_r10&&_r10.forEach(function(t){var n=_this8.getExternalGrammar(t);if(n){var _t51=n.injectionSelector;_t51&&wt(e,_t51,n,_this8,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n22=this._grammarRepository.lookup(t);if(_n22)return this._includedGrammars[t]=xt(_n22,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=st.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==Tt.NULL)r=!1,e.reset();else{r=!0;var _t52=this._basicScopeAttributesProvider.getDefaultAttributes(),_n23=this.themeProvider.getDefaults(),_i16=N.set(0,_t52.languageId,_t52.tokenType,null,_n23.fontStyle,_n23.foregroundId,_n23.backgroundId),_o13=this.getRule(this._rootId).getName(null,null);var _s10;_s10=_o13?Ct.createRootAndLookUpScopeName(_o13,_i16,this):Ct.createRoot("unknown",_i16),e=new Tt(null,this._rootId,-1,-1,!1,null,_s10,_s10);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Ot(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=ft(this,o,r,0,e,l,!0,i);return R(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();Ct=/*#__PURE__*/function(){function t(_t53,e,n){_classCallCheck(this,t);this.parent=_t53,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e24=_step12.value;r=t._pushAttributed(r,_e24,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t56){var e=[];var n=this;for(;n&&n!==_t56;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t56?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e25=_step13.value;r=x.push(r,_e25.scopeNames),i=new t(i,r,_e25.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new x(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),o=new x(null,e),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(n,r,s);return new t(null,o,l);}},{key:"equals",value:function equals(_t54,e){for(;;){if(_t54===e)return!0;if(!_t54&&!e)return!0;if(!_t54||!e)return!1;if(_t54.scopeName!==e.scopeName||_t54.tokenAttributes!==e.tokenAttributes)return!1;_t54=_t54.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t55,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),N.set(_t55,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(e.tokenAttributes,r,s);return new t(e,o,l);}}]);}();Lt=/*#__PURE__*/function(){function t(_t57,e,n,i,r,o,s,l){_classCallCheck(this,t);this.parent=_t57,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,o,s,l){return new t(this,e,n,i,r,o,s,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t61){return _t61.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t62=[];return this._writeString(_t62,0),"["+_t62.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t63,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t63,e)),_t63[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t64){return this.contentNameScopesList===_t64?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t64);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t65){var e=this;for(;e&&e._enterPos===_t65._enterPos;){if(e.ruleId===_t65.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t58,e){return _t58===e||!!this._structuralEquals(_t58,e)&&Ct.equals(_t58.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.depth!==e.depth||_t59.ruleId!==e.ruleId||_t59.endRule!==e.endRule)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t60){for(;_t60;)_t60._enterPos=-1,_t60._anchorPos=-1,_t60=_t60.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=Ct.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,Ct.fromExtension(i,n.contentNameScopesList));}}]);}();Lt.NULL=new Lt(null,0,0,0,!1,null,null,null);Tt=Lt;At=/*#__PURE__*/function(){function At(t,e){var _this9=this;_classCallCheck(this,At);this.allowAny=!1,this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this9.allowAny=!0,[]):D(t,vt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return D(t,vt).map(function(t){return t.matcher;});});}return _createClass(At,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e26=_step14.value;if(_e26(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e27=_step15.value;if(_e27(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Ot=/*#__PURE__*/function(){function Ot(t,e,n,i){_classCallCheck(this,Ot);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Ot,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n24=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,_i17=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(_i17=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e28=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t66=_step16.value;_t66.matcher(_e28)&&(_n24=N.set(_n24,0,_t66.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(_i17=this.balancedBracketSelectors.match(_e28));}return _i17&&(_n24=N.set(_n24,0,8,_i17,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n24?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n24),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t67=0,_e29=this._binaryTokens.length;_t67<_e29;_t67++)n[_t67]=this._binaryTokens[_t67];return n;}}]);}();Mt=/*#__PURE__*/function(){function Mt(t,e){_classCallCheck(this,Mt);this._onigLib=e,this._grammars=new Map(),this._rawGrammars=new Map(),this._injectionGrammars=new Map(),this._theme=t;}return _createClass(Mt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t68=_step17.value;_t68.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _o14=this._rawGrammars.get(t);if(!_o14)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new St(t,e,n,i,r,o,s,l);}(t,_o14,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}();Pt=/*#__PURE__*/function(){function Pt(t){_classCallCheck(this,Pt);this._options=t,this._syncRegistry=new Mt(S.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(Pt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(S.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new At(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this10=this;var o=new _(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(function(t){return _this10._loadSingleGrammar(t.scopeName);}),o.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n25="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n25);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Nt=Tt.NULL;Ft=/*#__PURE__*/function(_Error){function Ft(t){var _this11;_classCallCheck(this,Ft);_this11=_callSuper(this,Ft,[t]),_this11.name="ShikiError";return _this11;}_inherits(Ft,_Error);return _createClass(Ft);}(/*#__PURE__*/_wrapNativeSuper(Error));Vt=[Ut()];Xt=/*#__PURE__*/function(){function Xt(t,e,n){_classCallCheck(this,Xt);_defineProperty(this,"_stack",void 0);_defineProperty(this,"lang",void 0);_defineProperty(this,"theme",void 0);this._stack=t,this.lang=e,this.theme=n;}return _createClass(Xt,[{key:"scopes",get:function get(){return function(t){var e=[],n=new Set();function i(t){var _t$nameScopesList;if(n.has(t))return;n.add(t);var r=t===null||t===void 0||(_t$nameScopesList=t.nameScopesList)===null||_t$nameScopesList===void 0?void 0:_t$nameScopesList.scopeName;r&&e.push(r),t.parent&&i(t.parent);}return i(t),e;}(this._stack);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new Xt(Nt,t,e);}}]);}();Yt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];Kt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};ee={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"};he=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];de=/*#__PURE__*/_createClass(function de(t,e,n){_classCallCheck(this,de);this.property=t,this.normal=e,n&&(this.space=n);});de.prototype.property={},de.prototype.normal={},de.prototype.space=null;je=/*#__PURE__*/_createClass(function je(t,e){_classCallCheck(this,je);this.property=t,this.attribute=e;});je.prototype.space=null,je.prototype["boolean"]=!1,je.prototype.booleanish=!1,je.prototype.overloadedBoolean=!1,je.prototype.number=!1,je.prototype.commaSeparated=!1,je.prototype.spaceSeparated=!1,je.prototype.commaOrSpaceSeparated=!1,je.prototype.mustUseProperty=!1,je.prototype.defined=!1;ye=0;be=Le();we=Le();ve=Le();ke=Le();Se=Le();xe=Le();Ce=Le();Te=Object.freeze({__proto__:null,"boolean":be,booleanish:we,commaOrSpaceSeparated:Ce,commaSeparated:xe,number:ke,overloadedBoolean:ve,spaceSeparated:Se});Ae=Object.keys(Te);Oe=/*#__PURE__*/function(_je){function Oe(t,e,n,i){var _this12;_classCallCheck(this,Oe);var r=-1;if(_this12=_callSuper(this,Oe,[t,e]),Me(_assertThisInitialized(_this12),"space",i),"number"==typeof n)for(;++r<Ae.length;){var _t91=Ae[r];Me(_assertThisInitialized(_this12),Ae[r],(n&Te[_t91])===Te[_t91]);}return _assertThisInitialized(_this12);}_inherits(Oe,_je);return _createClass(Oe);}(je);Oe.prototype.defined=!0;Pe={}.hasOwnProperty;De=Ne({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});Ee=Ne({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});Be=Ne({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$e,properties:{xmlns:null,xmlnsXLink:null}});Ie=Ne({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:we,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:Se,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:ke,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:Se,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:we,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}});_e=Ne({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xe,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Se,autoFocus:be,autoPlay:be,blocking:Se,capture:null,charSet:null,checked:be,cite:null,className:Se,cols:ke,colSpan:null,content:null,contentEditable:we,controls:be,controlsList:Se,coords:ke|xe,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":be,defer:be,dir:null,dirName:null,disabled:be,download:ve,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Se,height:ke,hidden:be,high:ke,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Se,itemRef:Se,itemScope:be,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:ke,pattern:null,ping:Se,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Se,required:be,reversed:be,rows:ke,rowSpan:ke,sandbox:Se,scope:null,scoped:be,seamless:be,selected:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:we,width:ke,wrap:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:ke,security:null,unselectable:null}});Ge=Ne({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Re,properties:{about:Ce,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:Se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xe,g2:xe,glyphName:xe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});He=/^data[-\w.:]+$/i;qe=/-[a-z]/g;ze=/[A-Z]/g;We=fe([Ee,De,Be,Ie,_e],"html");Ve=fe([Ee,De,Be,Ie,Ge],"svg");Je={}.hasOwnProperty;Ye=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];Ke={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};Qe=["cent","copy","divide","gt","lt","not","para","times"];Ze={}.hasOwnProperty;tn={};for(en in Ke)Ze.call(Ke,en)&&(tn[Ke[en]]=en);on=/^>|^->|<!--|-->|--!>|<!-$/g;sn=[">"];ln=["<",">"];mn=/[ \t\n\f\r]/g;dn=jn(1);fn=jn(-1);gn=[];yn={}.hasOwnProperty;wn=bn({body:function body(t,e,n){var i=dn(n,e);return!i||"comment"!==i.type;},caption:vn,colgroup:vn,dd:function dd(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=dn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:vn,html:function html(t,e,n){var i=dn(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=dn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:kn,rt:kn,tbody:function tbody(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:Sn,tfoot:function tfoot(t,e,n){return!dn(n,e);},th:Sn,thead:function thead(t,e,n){var i=dn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=dn(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});xn=bn({body:function body(t){var e=dn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&pn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=fn(n,e),r=dn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&wn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=t.children,n=[];var i=-1;for(;++i<e.length;){var _t93=e[i];if("element"===_t93.type&&("title"===_t93.tagName||"base"===_t93.tagName)){if(n.includes(_t93.tagName))return!1;n.push(_t93.tagName);}}return e.length>0;},html:function html(t){var e=dn(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=fn(n,e),r=dn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&wn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});Cn={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};Tn=["<","&"];On=function(t,e){var n=e||{};function i(e){var _r28;var r=i.invalid;var o=i.handlers;if(e&&Je.call(e,t)){var _n35=String(e[t]);r=Je.call(o,_n35)?o[_n35]:i.unknown;}for(var _len3=arguments.length,n=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){n[_key3-1]=arguments[_key3];}if(r)return(_r28=r).call.apply(_r28,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+rn(t.value,Object.assign({},i.settings.characterReferences,{subset:sn}))+">":"\x3c!--"+t.value.replace(on,function(t){return rn(t,Object.assign({},i.settings.characterReferences,{subset:ln}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=Ve);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r29=Ln(t,i,e[i]);_r29&&n.push(_r29);}for(;++r<n.length;){var _e41=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e41&&"'"!==_e41&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&xn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&wn(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:An(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:An}});Mn={};Pn={};Nn=[];Bn=function Bn(t,e){return t+(e-t%e)%e;};Gn=null;Hn=/*#__PURE__*/function(){function Hn(t){_classCallCheck(this,Hn);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=Hn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n36=0;_n36<e;_n36++){var _a9=t.charCodeAt(_n36);var _c7=_a9,_u5=!1;if(_a9>=55296&&_a9<=56319&&_n36+1<e){var _e42=t.charCodeAt(_n36+1);_e42>=56320&&_e42<=57343&&(_c7=65536+(_a9-55296<<10)|_e42-56320,_u5=!0);}i&&(r[_n36]=l,_u5&&(r[_n36+1]=l),_c7<=127?o[l+0]=_n36:_c7<=2047?(o[l+0]=_n36,o[l+1]=_n36):_c7<=65535?(o[l+0]=_n36,o[l+1]=_n36,o[l+2]=_n36):(o[l+0]=_n36,o[l+1]=_n36,o[l+2]=_n36,o[l+3]=_n36)),_c7<=127?s[l++]=_c7:_c7<=2047?(s[l++]=192|(1984&_c7)>>>6,s[l++]=128|(63&_c7)>>>0):_c7<=65535?(s[l++]=224|(61440&_c7)>>>12,s[l++]=128|(4032&_c7)>>>6,s[l++]=128|(63&_c7)>>>0):(s[l++]=240|(1835008&_c7)>>>18,s[l++]=128|(258048&_c7)>>>12,s[l++]=128|(4032&_c7)>>>6,s[l++]=128|(63&_c7)>>>0),_u5&&_n36++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(Hn,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n37=0,_i33=t.length;_n37<_i33;_n37++){var _r30=t.charCodeAt(_n37);var _o21=_r30,_s15=!1;if(_r30>=55296&&_r30<=56319&&_n37+1<_i33){var _e43=t.charCodeAt(_n37+1);_e43>=56320&&_e43<=57343&&(_o21=65536+(_r30-55296<<10)|_e43-56320,_s15=!0);}e+=_o21<=127?1:_o21<=2047?2:_o21<=65535?3:4,_s15&&_n37++;}return e;}}]);}();qn=/*#__PURE__*/function(){function qn(t){_classCallCheck(this,qn);_defineProperty(this,"id",++qn.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!Gn)throw new Ft("Must invoke loadWasm first.");this._onigBinding=Gn,this.content=t;var e=new Hn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!qn._sharedPtrInUse?(qn._sharedPtr||(qn._sharedPtr=Gn.omalloc(1e4)),qn._sharedPtrInUse=!0,Gn.HEAPU8.set(e.utf8Value,qn._sharedPtr),this.ptr=qn._sharedPtr):this.ptr=e.createString(Gn);}return _createClass(qn,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===qn._sharedPtr?qn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(qn,"LAST_ID",0);_defineProperty(qn,"_sharedPtr",0);_defineProperty(qn,"_sharedPtrInUse",!1);zn=/*#__PURE__*/function(){function zn(t){_classCallCheck(this,zn);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!Gn)throw new Ft("Must invoke loadWasm first.");var e=[],n=[];for(var _i34=0,_r31=t.length;_i34<_r31;_i34++){var _r32=new Hn(t[_i34]);e[_i34]=_r32.createString(Gn),n[_i34]=_r32.utf8Length;}var i=Gn.omalloc(4*t.length);Gn.HEAPU32.set(e,i/4);var r=Gn.omalloc(4*t.length);Gn.HEAPU32.set(n,r/4);var o=Gn.createOnigScanner(i,r,t.length);for(var _n38=0,_i35=t.length;_n38<_i35;_n38++)Gn.ofree(e[_n38]);Gn.ofree(r),Gn.ofree(i),0===o&&function(t){throw new Ft(t.UTF8ToString(t.getLastOnigError()));}(Gn),this._onigBinding=Gn,this._ptr=o;}return _createClass(zn,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new qn(t);var _n39=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n39;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e44=0;_e44<c;_e44++){var _n40=t.convertUtf8OffsetToUtf16(s[l++]),_i36=t.convertUtf8OffsetToUtf16(s[l++]);u[_e44]={start:_n40,end:_i36,length:_i36-_n40};}return{index:a,captureIndices:u};}}]);}();Vn={light:"#333333",dark:"#bbbbbb"};Jn={light:"#fffffe",dark:"#1e1e1e"};Xn="__shiki_resolved";Zn=/*#__PURE__*/function(_Pt){function Zn(t,e,n){var _this13;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,Zn);(_this13=_callSuper(this,Zn,[t]),_defineProperty(_assertThisInitialized(_this13),"_resolver",void 0),_defineProperty(_assertThisInitialized(_this13),"_themes",void 0),_defineProperty(_assertThisInitialized(_this13),"_langs",void 0),_defineProperty(_assertThisInitialized(_this13),"_alias",void 0),_defineProperty(_assertThisInitialized(_this13),"_resolvedThemes",new Map()),_defineProperty(_assertThisInitialized(_this13),"_resolvedGrammars",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langMap",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langGraph",new Map()),_defineProperty(_assertThisInitialized(_this13),"_textmateThemeCache",new WeakMap()),_defineProperty(_assertThisInitialized(_this13),"_loadedThemesCache",null),_defineProperty(_assertThisInitialized(_this13),"_loadedLanguagesCache",null)),_this13._resolver=t,_this13._themes=e,_this13._langs=n,_this13._alias=i,_this13._themes.map(function(t){return _this13.loadTheme(t);}),_this13.loadLanguages(_this13._langs);return _this13;}_inherits(Zn,_Pt);return _createClass(Zn,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=Yn(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=S.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e45=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e45.has(t))throw new Ft("Circular alias `".concat(Array.from(_e45).join(" -> ")," -> ").concat(t,"`"));_e45.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this14=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this14._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator37=_createForOfIteratorHelper(e),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t99=_step37.value;this._resolvedGrammars["delete"](_t99.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t99.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t99.scopeName),this.loadLanguage(this._langMap.get(_t99.name));}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}}}},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(Zn.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator38=_createForOfIteratorHelper(t),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _e48=_step38.value;this.resolveEmbeddedLanguages(_e48);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t100=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new Ft("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t100.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i38=0,_e46=e;_i38<_e46.length;_i38++){var _e46$_i=_slicedToArray(_e46[_i38],2),_t101=_e46$_i[0],_n44=_e46$_i[1];this._resolver.addLanguage(_n44);}for(var _i39=0,_e47=e;_i39<_e47.length;_i39++){var _e47$_i=_slicedToArray(_e47[_i39],2),_t102=_e47$_i[0],_n45=_e47$_i[1];this.loadLanguage(_n45);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator39=_createForOfIteratorHelper(t.embeddedLangs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e49=_step39.value;this._langGraph.set(_e49,this._langMap.get(_e49));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}}]);}(Pt);ti=/*#__PURE__*/function(){function ti(t,e){var _this15=this;_classCallCheck(this,ti);_defineProperty(this,"_langs",new Map());_defineProperty(this,"_scopeToLang",new Map());_defineProperty(this,"_injections",new Map());_defineProperty(this,"_onigLib",void 0);this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this15.addLanguage(t);});}return _createClass(ti,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this16=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this16._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this16._injections.get(e)||_this16._injections.set(e,[]),_this16._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t103=1;_t103<=e.length;_t103++){var i=e.slice(0,_t103).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();ni=0;new Set("!?:=+$(){}_><# "),new Set("-!:=_>< ");li=oi({langs:a,themes:m,engine:function engine(){return Wn(c);}});_si=si(li);ai=_si.codeToHtml;ci=_si.codeToHast;ui=_si.codeToTokens;mi=_si.codeToTokensBase;pi=_si.codeToTokensWithThemes;hi=_si.getSingletonHighlighter;di=_si.getLastGrammarState;_export("N",fi=/*#__PURE__*/function(_o22){function fi(){var _this17;_classCallCheck(this,fi);_this17=_callSuper(this,fi,arguments),_this17.code="",_this17.language="javascript",_this17.theme="min-light",_this17.highlightedCode="";return _this17;}_inherits(fi,_o22);return _createClass(fi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context14.t0){_context14.next=6;break;}_context14.next=4;return ai(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context14.sent;this.requestUpdate();case 6:case"end":return _context14.stop();}},_callee13,this);}));function updated(_x22){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],fi.prototype,"code",void 0),t([s({type:String,reflect:!0})],fi.prototype,"language",void 0),t([s({type:String,reflect:!0})],fi.prototype,"theme",void 0),t([n()],fi.prototype,"highlightedCode",void 0),_export("N",fi=t([i("nile-highlighter")],fi));}};});
|
2
2
|
//# sourceMappingURL=nile-highlighter.cjs.js.map
|