Plugin Directory

Changeset 3084117

Timestamp:
05/09/2024 04:39:27 PM (3 months ago)
Author:
kbat82
Message:

Update to version 1.2.3 from GitHub

Location:
pattern-css
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pattern-css/tags/1.2.3/build/index.asset.php

    r3073927 r3084117  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => '681d2c8596360c5ea470');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => '');
  • pattern-css/tags/1.2.3/build/index.js

    r3073927 r3084117  
    1 (()=>{var e,t,n,a,s={69:function(e,t,n){"use strict";var a,s=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(609)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),h="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),d="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(d,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(d," {\n    color: transparent !important;\n  }\n\n  .").concat(d,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,a=e.selectionStart,s=e.selectionEnd;t._recordChange({value:n,selectionStart:a,selectionEnd:s})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var a,s,o;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(a=t._getLines(d.value,d.selectionStart).pop())||void 0===a?void 0:a.match(m),f=null===(s=t._getLines(e.value,e.selectionStart).pop())||void 0===s?void 0:s.match(m);if((null==g?void 0:g[1])&&(null===(o=null==f?void 0:f[1])||void 0===o?void 0:o.startsWith(g[1])))return void(t._history.stack[t._history.offset]=r(r({},e),{timestamp:h}))}}t._history.stack.push(r(r({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,a=t._history.stack[t._history.offset];a&&n&&(t._history.stack[t._history.offset]=r(r({},a),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a-1];s&&(t._updateInput(s),t._history.offset=Math.max(a-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a+1];s&&(t._updateInput(s),t._history.offset=Math.min(a+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,a=n.tabSize,s=n.insertSpaces,r=n.ignoreTabKey,o=n.onKeyDown;if(!o||(o(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,d=(s?" ":"\t").repeat(a);if(9===e.keyCode&&!r&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(_=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(l!==f){var y=_[m];t._applyEdits({value:f,selectionStart:(null==y?void 0:y.startsWith(d))?c-d.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var _,b=(_=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;y=_[b],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=b&&t<=v?d+e:e})).join("\n"),selectionStart:y&&/\S/.test(y)?c+d.length:c,selectionEnd:u+d.length*(v-b+1)})}else{var w=c+d.length;t._applyEdits({value:l.substring(0,c)+d+l.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=c!==u;l.substring(0,c).endsWith(d)&&!k&&(e.preventDefault(),w=c-d.length,t._applyEdits({value:l.substring(0,c-d.length)+l.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var N=t._getLines(l,c).pop(),S=null==N?void 0:N.match(/^\s+/);if(null==S?void 0:S[0]){e.preventDefault();var L="\n"+S[0];w=c+L.length,t._applyEdits({value:l.substring(0,c)+L+l.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),c!==u&&P&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+P[0]+l.substring(c,u)+P[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(h?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(h?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||h&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,a=n.value,s=n.selectionStart,r=n.selectionEnd;t._recordChange({value:a,selectionStart:s,selectionEnd:r},!0),t.props.onValueChange(a)},t._history={stack:[],offset:-1},t._input=null,t}return s(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.style,s=t.padding,o=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,h=t.disabled,g=t.form,y=t.maxLength,_=t.minLength,b=t.name,v=t.placeholder,w=t.readOnly,k=t.required,N=t.onClick,S=t.onFocus,L=t.onBlur,P=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),j=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),x={paddingTop:"object"==typeof s?s.top:s,paddingRight:"object"==typeof s?s.right:s,paddingBottom:"object"==typeof s?s.bottom:s,paddingLeft:"object"==typeof s?s.left:s},A=o(n);return u.createElement("div",r({},j,{style:r(r({},f.container),a)}),u.createElement("pre",r({className:C,"aria-hidden":"true",style:r(r(r({},f.editor),f.highlight),x)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),u.createElement("textarea",{ref:function(t){return e._input=t},style:r(r(r({},f.editor),f.textarea),x),className:d+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:N,onKeyUp:P,onFocus:S,onBlur:L,disabled:h,form:g,maxLength:y,minLength:_,name:b,placeholder:v,readOnly:w,required:k,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},63:(e,t,n)=>{"use strict";var a=n(609),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=r({inst:{value:n,getSnapshot:t}}),s=a[0].inst,u=a[1];return i((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},888:(e,t,n)=>{"use strict";e.exports=n(63)},486:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const s=a(n(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const s=e.charCodeAt(n);let r=s,o=!1;if(s>=55296&&s<=56319&&n+1<a){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(s-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),a=n!==t,s=a?new Uint32Array(t+1):null;a&&(s[t]=n);const r=a?new Uint32Array(n+1):null;a&&(r[n]=t);const o=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}a&&(s[n]=l,u&&(s[n+1]=l),c<=127?r[l+0]=n:c<=2047?(r[l+0]=n,r[l+1]=n):c<=65535?(r[l+0]=n,r[l+1]=n,r[l+2]=n):(r[l+0]=n,r[l+1]=n,r[l+2]=n,r[l+3]=n)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let a=0,s=e.length;a<s;a++){const s=new i(e[a]);t[a]=s.createString(r),n[a]=s.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const s=r._omalloc(4*e.length);r.HEAPU32.set(n,s/4);const o=r._createOnigScanner(a,s,e.length);for(let n=0,a=e.length;n<a;n++)r._ofree(t[n]);r._ofree(s),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=o,s=0;if("number"==typeof n?(8&n&&(a=!0),s=n):"boolean"==typeof n&&(a=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,a,s);return e.dispose(),n}return this._findNextMatchSync(e,t,a,s)}_findNextMatchSync(e,t,n,a){const s=this._onigBinding;let r;if(r=n?s._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):s._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=s.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:n,end:a,length:a-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,n,a){(0,s.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),a),{}}}).then((e=>{r=e,n()}))}(t,n,a,o),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,n=a}));var s,r=Object.assign({},a),o=[];s=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||P(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var p,h,d,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&g)return g.decode(e.subarray(t,s));for(var r="";t<s;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=d=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var _=[],b=[],v=[];function w(e){_.unshift(e)}function k(e){v.unshift(e)}var N=0,S=null,L=null;function P(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,j;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==C&&i)return new Uint8Array(i);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){P(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function E(e){try{return l.grow(e-p.byteLength+65535>>>16),y(l.buffer),1}catch(e){}}x(C="onig.wasm")||(C=function(e){return a.locateFile?a.locateFile(e,""):""+e}(C)),j="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var I,B={emscripten_get_now:j,emscripten_memcpy_big:function(e,t,n){h.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=h.length,a=2147483648;if((e>>>=0)>a)return!1;for(var s=1;s<=4;s*=2){var r=n*(1+.2/s);if(r=Math.min(r,e+100663296),E(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,a){for(var s=0,r=0;r<n;r++){var o=d[t>>2],i=d[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,h[o+l]);s+=i}return d[a>>2]=s,0}};function M(e){function n(){I||(I=!0,a.calledRun=!0,m||(T(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());T(v)}()))}e=e||o,N>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)w(a.preRun.shift());T(_)}(),N>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:B,wasi_snapshot_preview1:B};function t(e,t){var n=e.exports;a.asm=n,y((l=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(N--,a.monitorRunDependencies&&a.monitorRunDependencies(N),0==N&&(null!==S&&(clearInterval(S),S=null),L)){var t=L;L=null,t()}}()}function s(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(C)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),P(e)}))}if(N++,a.monitorRunDependencies&&a.monitorRunDependencies(N),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(C)||"function"!=typeof fetch?r(s):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(s)}))}))).catch(n)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},L=function e(){I||M(),I||(L=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(770);var e,t},e.exports=t()},217:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return!!(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,a,s,r,o,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),h=n.getForeground(e),d=n.getBackground(e);return 0!==t&&(l=t),8!==a&&(c=a),null!==s&&(u=s?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(d=i),(l|c<<8|u<<10|p<<11|h<<15|d<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=n(878);class s{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=s;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new s(t,n)})),this._defaultAttributes=new s(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[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!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new s(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=n(350),s=n(36),r=n(736),o=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function h(e,t,n,a,s){const o=r.createMatchers(t,d),l=i.RuleFactory.getCompiledRuleId(n,a,s.repository);for(const n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:s,priority:n.priority})}function d(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let a=n;a<t.length;a++)if(m(t[a],e))return n=a+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,a,s,r,o,i){return new g(e,t,n,a,s,r,o,i)};class g{constructor(e,t,n,a,s,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s)){const t=r.createMatchers(e,d);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const a=n.injections;if(a)for(let t in a)h(e,t,a[t],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&h(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=s.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new b(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,l,r,0,t,u,!0,a);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new y(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),s=new l.ScopeStack(null,e),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(t,a,r);return new y(null,s,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let a=-1,r=0,o=0;return null!==n&&(a=n.fontStyle,r=n.foregroundId,o=n.backgroundId),s.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const e of n)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),s=e.scopePath.push(t),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class _{constructor(e,t,n,a,s,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,s,r,o){return new _(this,e,t,n,a,s,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,d).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,d).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class b{constructor(e,t,n,s){this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=s.EncodedTokenAttributes.set(n,0,s.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=s.EncodedTokenAttributes.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=b},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=n(878);class s{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=s;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof s?c({baseGrammar:o,selfGrammar:r},a):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=n.injections(e.scopeName);if(i)for(const e of i)a.add(new s(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},n);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const s={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?l(p.ruleName,s,n):c(s,n)}else 4===p.kind?n.add(new r(p.scopeName,p.ruleName)):n.add(new s(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new s(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof s){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class d{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=d;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new d(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new g(n,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=n(350),s=n(44),r=n(792),o=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,s,l,p,d,m){const g=t.content.length;let f=!1,y=-1;if(d){const o=function(e,t,n,s,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof r.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=u(p.rule,e,p.stack.endRule,n,s===l),m=c.findNextMatchSync(t,s,d);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(m.ruleId!==r.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),h(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>s&&(s=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:s,anchorPosition:l,isFirstLine:n}}(e,t,n,s,l,p);l=o.stack,s=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const _=Date.now();for(;!f;){if(0!==m&&Date.now()-_>m)return new i(l,!0);b()}return new i(l,!1);function b(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${s}: |${t.content.substr(s).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,s,r,i){const l=function(e,t,n,s,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,r.endRule,n,s===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const d=u.findNextMatchSync(t,s,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${s}, anchorPosition: ${i})`),console.log(u.toString()),d&&console.log(`matched rule id: ${d.ruleId} from ${d.captureIndices[0].start} to ${d.captureIndices[0].end}`)}return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,s,r,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,s,r,o,i){let l,u=Number.MAX_VALUE,p=null,h=0;const d=o.contentNameScopesList.getScopeNames();for(let o=0,m=e.length;o<m;o++){const m=e[o];if(!m.matcher(d))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:y}=c(g,t,null,s,r===i),_=f.findNextMatchSync(n,r,y);if(!_)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const b=_.captureIndices[0].start;if(!(b>=u)&&(u=b,p=_.captureIndices,l=_.ruleId,h=m.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,s,r,i);if(!p)return l;if(!l)return p;const h=l.captureIndices[0].start,d=p.captureIndices[0].start;return d<h||p.priorityMatch&&d===h?p:l}(e,t,n,s,l,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,d=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>s;if(d===r.endRuleId){const r=l.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),h(e,t,n,l,p,r.endCaptures,u),p.produce(l,u[0].end);const o=l;if(l=l.parent,y=o.getAnchorPos(),!m&&o.getEnterPos()===s)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,p.produce(l,g),void(f=!0)}else{const o=e.getRule(d);p.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),_=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(d,s,y,u[0].end===g,null,_,_),o instanceof r.BeginEndRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName+" - "+s.debugBeginRegExp),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.endHasBackReferences&&(l=l.withEndRule(s.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.whileHasBackReferences&&(l=l.withEndRule(s.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const s=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+s.debugName+" - "+s.debugMatchRegExp),h(e,t,n,l,p,s.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>s&&(s=u[0].end,n=!1)}}function c(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileAG(t,n,s,r),findOptions:0}}function u(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileWhileAG(t,n,s,r),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function h(e,t,n,a,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,m.start):r.produce(a,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),h=o.pushAttributed(p,e),d=a.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,h),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,d,r,!1,0),s.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new d(t,m.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class d{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=d},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),l=new s,c=0,u=null,p=[],h=[];function d(){p.push(c),h.push(u)}function m(){c=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),d(),c=1;continue}if(2===l.type){u=[],d(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||g("expected colon"),r(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,d(),c=4,u=t;continue}if(3===l.type){let n={};o&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,d(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),d(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),d(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class s{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,s=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(a=s.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===a){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(a=s.charCodeAt(r),r++,l++,92!==a){if(34===a)break}else r++,l++}t.value=s.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,l++;else if(123===a)t.type=3,r++,l++;else if(93===a)t.type=4,r++,l++;else if(125===a)t.type=5,r++,l++;else if(58===a)t.type=6,r++,l++;else if(44===a)t.type=7,r++,l++;else if(110===a){if(t.type=8,r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;r++,l++}else if(116===a){if(t.type=9,r++,l++,a=s.charCodeAt(r),114!==a)return!1;if(r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else if(102===a){if(t.type=10,r++,l++,a=s.charCodeAt(r),97!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),115!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(a=s.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=s.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=n(391),o=n(50),i=n(652),l=n(583),c=n(965);s(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new r.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,a,s){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,n,a,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,s)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],s=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}(e);let r=s.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=s.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=s.next()}return a;function o(){if("-"===r){r=s.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=s.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=s.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=s.next()),e}if(n(r)){const e=[];do{e.push(r),r=s.next()}while(n(r));return n=>t(e,n)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=n(69),s=n(350),r=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,o=t,s.DebugFlags.InDebugMode?r.parseJSON(n,o,!0):JSON.parse(n)):function(e,t){return s.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var n,o}},69:(e,t)=>{function n(e,t,n){const a=e.length;let s=0,r=1,o=0;function i(t){if(null===n)s+=t;else for(;t>0;)10===e.charCodeAt(s)?(s++,r++,o=0):(s++,o++),t--}function l(e){null===n?s=e:i(e-s)}function c(){for(;s<a;){let t=e.charCodeAt(s);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(s,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,s);l(-1!==n?n+t.length:a)}function h(t){let n=e.indexOf(t,s);if(-1!==n){let a=e.substring(s,n);return l(n+t.length),a}{let t=e.substr(s);return l(a),t}}a>0&&65279===e.charCodeAt(0)&&(s=1);let d=0,m=null,g=[],f=[],y=null;function _(e,t){g.push(d),f.push(m),d=e,m=t}function b(){if(0===g.length)return v("illegal state stack");d=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+s+": "+t+" ~~~"+e.substr(s,50)+"~~~")}const w=function(){if(null===y)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m[y]=e,y=null,_(1,e)},k=function(){if(null===y)return v("missing <key>");let e=[];m[y]=e,y=null,_(2,e)},N=function(){let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m.push(e),_(1,e)},S=function(){let e=[];m.push(e),_(2,e)};function L(){if(1!==d)return v("unexpected </dict>");b()}function P(){return 1===d||2!==d?v("unexpected </array>"):void b()}function C(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function j(e){if(isNaN(e))return v("cannot parse float");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function x(e){if(isNaN(e))return v("cannot parse integer");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function A(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function T(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function E(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function R(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;s<a&&(c(),!(s>=a));){const l=e.charCodeAt(s);if(i(1),60!==l)return v("expected <");if(s>=a)return v("unexpected end of input");const h=e.charCodeAt(s);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),L();continue}if(u("array")){p(">"),P();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===d?w():2===d?N():(m={},null!==n&&(m[n]={filename:t,line:r,char:o}),_(1,m)),g.isClosed&&L();continue;case"array":1===d?k():2===d?S():(m=[],_(2,m)),g.isClosed&&P();continue;case"key":I=O(g),1!==d?v("unexpected <key>"):null!==y?v("too many <key>"):y=I;continue;case"string":C(O(g));continue;case"real":j(parseFloat(O(g)));continue;case"integer":x(parseInt(O(g),10));continue;case"date":A(new Date(O(g)));continue;case"data":T(O(g));continue;case"true":O(g),E(!0);continue;case"false":O(g),E(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var I;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return n(e,t,a)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,s,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,n,s,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=n(878),s=n(965),r=/\\(\d+)/,o=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,s){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,a,s){super(e,t,n,null),this._match=new m(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,a,s,r,o,i,l,c){super(e,t,n,a),this._begin=new m(s,this.id),this.beginCaptures=r,this._end=new m(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,n,a,s,r,o,i,l,c){super(e,n,a,s),this._begin=new m(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class d{static createCaptureRule(e,t,n,a,s){return e.registerRule((e=>new l(t,e,n,a,s)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((s=>{if(e.id=s,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=a.mergeObjects({},n,e.repository));let s=e.patterns;return void 0===s&&e.include&&(s=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(s,t,n))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,d._compileCaptures(e.whileCaptures||e.captures,t,n),d._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,d._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,d._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let s=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>s&&(s=e)}for(let e=0;e<=s;e++)a[e]=null;for(const s in e){if("$vscodeTextmateLocation"===s)continue;const r=parseInt(s,10);let o=0;e[s].patterns&&(o=d.getCompiledRuleId(e[s],t,n)),a[r]=d.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,o)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=s.parseInclude(o.include);switch(e.kind){case 0:case 1:i=d.getCompiledRuleId(n[o.include],t,n);break;case 2:let a=n[e.ruleName];a&&(i=d.getCompiledRuleId(a,t,n));break;case 3:case 4:const s=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(s,n);if(l)if(r){let e=l.repository[r];e&&(i=d.getCompiledRuleId(e,t,l.repository))}else i=d.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=d.getCompiledRuleId(o,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=d;class m{constructor(e,t){if(e){const t=e.length;let n=0,a=[],s=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(n,r)),a.push("$(?!\\n)(?<!\\n)"),n=r+2):"A"!==t&&"G"!==t||(s=!0),r++}this.hasAnchor=s,0===n?this.source=e:(a.push(e.substring(n,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,a,s=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,r[e]=n,o[e]=n,i[e]=n,"\\"===n&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(s[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class s{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(n,l.getId(r),l.getId(o)),d=new h(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];d.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new s(l,c,d)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,a=t[n];for(;e;){if(o(e.scopeName,a)){if(n++,n===t.length)return!0;a=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=s;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new r(t,e[n]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],s=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),n[s++]=new c(o,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,a,s,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=s,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,n,a,s){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=a,this.background=s}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,a=t.parentScopes;let s=null===n?0:n.length,r=null===a?0:a.length;if(s===r)for(let e=0;e<s;e++){const t=n[e].length,s=a[e].length;if(t!==s)return s-t}return r-s}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,a=e.indexOf(".");return-1===a?(t=e,n=""):(t=e.substring(0,a),n=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,a,s,r){if(""===t)return void this._doInsertHere(e,n,a,s,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,n,a,s,r)}_doInsertHere(e,t,n,s,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,s,r)}-1===n&&(n=this._mainRule.fontStyle),0===s&&(s=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,s,r))}else this._mainRule.acceptOverwrite(e,n,s,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=n(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=n(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function s(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,((e,a,s,r)=>{let o=n[parseInt(a||s,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=s,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let a=0;a<n;a++){let n=s(e[a],t[a]);if(0!==n)return n}return 0}return n-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(787)})()},229:(e,t,n)=>{"use strict";e.exports=n.p+"c939b543261a8fcd831e.wasm"},609:e=>{"use strict";e.exports=window.React},673:()=>{},485:()=>{}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="pattern-css:",o.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+s){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",a+s),i.src=e),n[e]=[t];var h=(t,a)=>{i.onerror=i.onload=null,clearTimeout(d);var s=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(a))),t)return t(a)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={57:0};o.f.j=(t,n)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=s);var r=o.p+o.u(t),i=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",i.name="ChunkLoadError",i.type=s,i.request=r,a[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,s,[r,i,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);l&&l(o)}for(t&&t(n);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkpattern_css=globalThis.webpackChunkpattern_css||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.hooks;var t=o(609);const n=window.wp.blockEditor,a=window.wp.components,s=window.wp.element,r=window.wp.data,i=window.wp.escapeHtml,l=window.wp.i18n,c=window.wp.htmlEntities;var u=o(69),p=o.n(u),h=o(486),d=o(217),m="/";const g=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var f,y,_,b,v=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(v||{});class w{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=w.getLanguageId(e),n=w.getTokenType(e),a=w.getFontStyle(e),s=w.getForeground(e),r=w.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:s,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return!!(1024&e)}static set(e,t,n,a,s,r){let o=w.getLanguageId(e),i=w.getTokenType(e),l=w.getFontStyle(e),c=w.getForeground(e),u=w.getBackground(e);return 0!==t&&(o=t),0!==n&&(i=8===n?0:n),-1!==a&&(l=a),0!==s&&(c=s),0!==r&&(u=r),(o|i<<8|l<<11|(w.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function k(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function N(e){return e.startsWith("./")?e.slice(2):e}function S(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function L(...e){return e.map(k).map(N).join("/")}function P(e){return 32===e||9===e}function C(e){return 10===e||13===e}function j(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(f||(f={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(y||(y={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(_||(_={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(b||(b={}));const x=function(e,t=[],n=y.DEFAULT){let a=null,s=[];const r=[];function o(e){Array.isArray(s)?s.push(e):null!==a&&(s[a]=e)}return function(e,t,n=y.DEFAULT){const a=function(e,t=!1){const n=e.length;let a=0,s="",r=0,o=16,i=0,l=0,c=0,u=0,p=0;function h(t,n){let s=0,r=0;for(;s<t||!n;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,s++}return s<t&&(r=-1),r}function d(){if(s="",p=0,r=a,l=i,u=c,a>=n)return r=n,o=17;let t=e.charCodeAt(a);if(P(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(P(t));return o=15}if(C(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),i++,c=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,s=function(){let t="",s=a;for(;;){if(a>=n){t+=e.substring(s,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(s,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(C(r)){t+=e.substring(s,a),p=2;break}p=6}a++}else{if(t+=e.substring(s,a),a++,a>=n){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}s=a}}return t}(),o=10;case 47:const l=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<n&&!C(e.charCodeAt(a));)a++;return s=e.substring(l,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=n-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,C(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,c=a)}return r||(a++,p=1),s=e.substring(l,a),o=13}return s+=String.fromCharCode(t),a++,o=16;case 45:if(s+=String.fromCharCode(t),a++,a===n||!j(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&j(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&j(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&j(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&j(e.charCodeAt(a))){for(a++;a<e.length&&j(e.charCodeAt(a));)a++;n=a}else p=3;return e.substring(t,n)}(),o=11;default:for(;a<n&&m(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(s=e.substring(r,a),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(t),a++,o=16}}function m(e){if(P(e)||C(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,s="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>l,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),s=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}const c=o(t.onObjectBegin),u=l(t.onObjectProperty),p=r(t.onObjectEnd),h=o(t.onArrayBegin),d=r(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=r(t.onComment),_=i(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function w(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:b||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:b?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function N(e){const t=a.getTokenValue();return e?m(t):(u(t),s.push(t)),w(),!0}function S(){switch(a.getToken()){case 3:return function(){h(),w();let e=!0,t=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&v)break}else t&&k(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||k(4,[],[4,5]),t=!0}return d(),e||s.pop(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&v)break}else e&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),!1):(N(!1),6===a.getToken()?(g(":"),w(),S()||k(4,[],[2,5])):k(5,[],[2,5]),s.pop(),!0))||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return N(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}w(),17===a.getToken()?!!n.allowEmptyContent||k(4,[],[]):S()?17!==a.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(s),s=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(s),s=e,a=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(e,n,a)=>{t.push({error:e,offset:n,length:a})}},n),s[0]};var A;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(A||(A={}));const T="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,E="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,R="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,O=T||!E&&!R;let I="",B="";let M=null;function G(e){if(O)return`${I}${e}`;{const t=o(485);return t.isAbsolute(e)?e:t.resolve(m,"..",e)}}async function F(e){const t=[],n=await async function(e){const t=G(e);if(O)return await fetch(t).then((e=>e.text()));{const e=o(673);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(n)}catch(e){if(a=x(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function D(e){const t=$(await F(e));if(t.include){const n=await D(L(...S(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function $(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...V(e)};var a;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(a=n).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),n}const U={light:"#333333",dark:"#bbbbbb"},W={light:"#fffffe",dark:"#1e1e1e"};function V(e){let t,n,a=e.settings?e.settings:e.tokenColors;const s=a?a.find((e=>!e.name&&!e.scope)):void 0;return s?.settings?.foreground&&(t=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?U.light:U.dark),n||(n="light"===e.type?W.light:W.dark),{fg:t,bg:n}}class q{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await F(e)}(g.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function z(e,t){let n=[];for(let a=0,s=t.length;a<s;a++){let s=t.slice(0,a),r=t[a];n[a]={scopeName:r,themeMatches:J(e,r,s)}}return n}function H(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function K(e,t,n,a){if(!H(e,n))return!1;let s=t.length-1,r=a.length-1;for(;s>=0&&r>=0;)H(t[s],a[r])&&s--,r--;return-1===s}function J(e,t,n){let a=[],s=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);K(l[l.length-1],l.slice(0,l.length-1),t,n)&&(a[s++]=i,e=r)}}return a}var Q=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],X={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Y(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)X[a]&&t.push({type:"setDecoration",value:X[a]});else if(a<=29){const e=X[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-30]}});else if(38===a){const n=Z(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-40]}});else if(48===a){const n=Z(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-100+8]}})}return t}var te={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ne(e=te){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return s=e.index,function(){if(a)return a;a=[];for(let e=0;e<Q.length;e++)a.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)a.push(n([e[t],e[s],e[r]]));let s=8;for(let e=0;e<24;e++,s+=10)a.push(n([s,s,s]));return a}()[s]}var s}}}const ae={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function se(e,t={}){const n=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),s=t.elements||{};function r(e="",t={},n){const a=s[e]||ae[e];return a?(n=n.filter(Boolean),a({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",r("code",{},e.map(((n,s)=>{const o=s+1;return r("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:n,index:s},n.map(((e,a)=>{const s=[`color: ${e.color||t.fg}`];return e.fontStyle&v.Italic&&s.push("font-style: italic"),e.fontStyle&v.Bold&&s.push("font-weight: bold"),e.fontStyle&v.Underline&&s.push("text-decoration: underline"),r("token",{style:s.join("; "),tokens:n,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>re[e])))]);var o})))})))])}const re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class oe extends d.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=g.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await D(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=$(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ie(e){return"string"==typeof e?g.find((t=>t.id===e||t.aliases?.includes(e))):e}async function le(e){const{_languages:t,_themes:n,_wasmPath:a}=function(e){let t=g,n=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(ie)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:a}}(e),s=new q(async function(e){if(!M){let t;if(O)t="string"==typeof B?(0,h.loadWASM)({data:await fetch(G(L(...S(e),"onig.wasm")))}):(0,h.loadWASM)({data:B});else{const e=o(485).join(486,"../onig.wasm"),n=o(673).readFileSync(e).buffer;t=(0,h.loadWASM)(n)}M=t.then((()=>({createOnigScanner:e=>(0,h.createOnigScanner)(e),createOnigString:e=>(0,h.createOnigString)(e)})))}return M}(a),"vscode-oniguruma"),r=new oe(s);e.paths?.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(s.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await r.loadThemes(n))[0];let l;await r.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<Q.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,a=Q[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${a})`}return e}();function u(e){const t=e?r.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(r.setTheme(t),l=t);const n=r.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:s}=function(e){const t=r.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,a,s){let r=n.split(/\r\n|\r|\n/),o=d.INITIAL,i=[],l=[];for(let n=0,c=r.length;n<c;n++){let c,u,p,h=r[n];if(""===h){i=[],l.push([]);continue}s.includeExplanation&&(c=a.tokenizeLine(h,o),u=c.tokens,p=0);let d=a.tokenizeLine2(h,o),m=d.tokens.length/2;for(let n=0;n<m;n++){let a=d.tokens[2*n],r=n+1<m?d.tokens[2*n+2]:h.length;if(a===r)continue;let o=d.tokens[2*n+1],l=t[w.getForeground(o)],c=w.getFontStyle(o),g=[];if(s.includeExplanation){let t=0;for(;a+t<r;){let n=u[p],a=h.substring(n.startIndex,n.endIndex);t+=a.length,g.push({content:a,scopes:z(e,n.scopes)}),p++}}i.push({content:h.substring(a,r),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],o=d.ruleStack}return l}(o,i,e,s,a)}function m(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),a=ne(Object.fromEntries(Q.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(a){const s=[];let r=0;do{const o=Y(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const a=ee(o.sequence);for(const s of a)"resetAll"===s.type?(e=null,t=null,n.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?t=null:"resetDecoration"===s.type&&n.delete(s.value);for(const s of a)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?t=s.value:"setDecoration"===s.type&&n.add(s.value)}r=o.position}while(r<a.length);return s}}}();return n.map((t=>s.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let s=v.None;return t.decorations.has("bold")&&(s|=v.Bold),t.decorations.has("italic")&&(s|=v.Italic),t.decorations.has("underline")&&(s|=v.Underline),{content:t.value,color:n,fontStyle:s}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let a;a="object"==typeof t?t:{lang:t,theme:n};const s=p(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=u(a.theme);return se(s,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:m,ansiToHtml:function(e,t){const n=m(e,t?.theme),{_theme:a}=u(t?.theme);return se(n,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await r.loadTheme(e)},loadLanguage:async function(e){const t=ie(e);s.addLanguage(t),await r.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return r.getLoadedThemes()},getLoadedLanguages:function(){return r.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var ce=o(888);const ue=()=>{},pe=ue(),he=Object,de=e=>e===pe,me=e=>"function"==typeof e,ge=(e,t)=>({...e,...t}),fe=new WeakMap;let ye=0;const _e=e=>{const t=typeof e,n=e&&e.constructor,a=n==Date;let s,r;if(he(e)!==e||a||n==RegExp)s=a?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=fe.get(e),s)return s;if(s=++ye+"~",fe.set(e,s),n==Array){for(s="@",r=0;r<e.length;r++)s+=_e(e[r])+",";fe.set(e,s)}if(n==he){s="#";const t=he.keys(e).sort();for(;!de(r=t.pop());)de(e[r])||(s+=r+":"+_e(e[r])+",");fe.set(e,s)}}return s},be=new WeakMap,ve={},we={},ke="undefined",Ne=typeof window!=ke,Se=typeof document!=ke,Le=(e,t)=>{const n=be.get(e);return[()=>!de(t)&&e.get(t)||ve,a=>{if(!de(t)){const s=e.get(t);t in we||(we[t]=s),n[5](t,ge(s,a),s||ve)}},n[6],()=>!de(t)&&t in we?we[t]:!de(t)&&e.get(t)||ve]};let Pe=!0;const[Ce,je]=Ne&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],xe={isOnline:()=>Pe,isVisible:()=>{const e=Se&&document.visibilityState;return de(e)||"hidden"!==e}},Ae={initFocus:e=>(Se&&document.addEventListener("visibilitychange",e),Ce("focus",e),()=>{Se&&document.removeEventListener("visibilitychange",e),je("focus",e)}),initReconnect:e=>{const t=()=>{Pe=!0,e()},n=()=>{Pe=!1};return Ce("online",t),Ce("offline",n),()=>{je("online",t),je("offline",n)}}},Te=!t.useId,Ee=!Ne||"Deno"in window,Re=Ee?t.useEffect:t.useLayoutEffect,Oe="undefined"!=typeof navigator&&navigator.connection,Ie=!Ee&&Oe&&(["slow-2g","2g"].includes(Oe.effectiveType)||Oe.saveData),Be=e=>{if(me(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_e(e):"",t]};let Me=0;const Ge=()=>++Me;async function Fe(...e){const[t,n,a,s]=e,r=ge({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let o=r.populateCache;const i=r.rollbackOnError;let l=r.optimisticData;const c=r.throwOnError;if(me(n)){const e=n,a=[],s=t.keys();for(const n of s)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&a.push(n);return Promise.all(a.map(u))}return u(n);async function u(n){const[s]=Be(n);if(!s)return;const[u,p]=Le(t,s),[h,d,m,g]=be.get(t),f=()=>{const e=h[s];return(me(r.revalidate)?r.revalidate(u().data,n):!1!==r.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return f();let y,_=a;const b=Ge();d[s]=[b,0];const v=!de(l),w=u(),k=w.data,N=w._c,S=de(N)?k:N;if(v&&(l=me(l)?l(S,k):l,p({data:l,_c:S})),me(_))try{_=_(S)}catch(e){y=e}if(_&&me(_.then)){if(_=await _.catch((e=>{y=e})),b!==d[s][0]){if(y)throw y;return _}y&&v&&(e=>"function"==typeof i?i(e):!1!==i)(y)&&(o=!0,p({data:S,_c:pe}))}if(o&&!y)if(me(o)){const e=o(_,S);p({data:e,error:pe,_c:pe})}else p({data:_,error:pe,_c:pe});if(d[s][1]=Ge(),Promise.resolve(f()).then((()=>{p({_c:pe})})),!y)return _;if(c)throw y}}const De=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$e=(e,t)=>{if(!be.has(e)){const n=ge(Ae,t),a={},s=Fe.bind(pe,e);let r=ue;const o={},i=(e,t)=>{const n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,a)=>{e.set(t,n);const s=o[t];if(s)for(const e of s)e(n,a)},c=()=>{if(!be.has(e)&&(be.set(e,[a,{},{},{},s,l,i]),!Ee)){const t=n.initFocus(setTimeout.bind(pe,De.bind(pe,a,0))),s=n.initReconnect(setTimeout.bind(pe,De.bind(pe,a,1)));r=()=>{t&&t(),s&&s(),be.delete(e)}}};return c(),[e,s,c,r]}return[e,be.get(e)[4]]},[Ue,We]=$e(new Map),Ve=ge({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:(e,__,t,n,a)=>{const s=t.errorRetryCount,r=a.retryCount,o=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!de(s)&&r>s||setTimeout(n,o,a)},onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ie?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ie?5e3:3e3,compare:(e,t)=>_e(e)==_e(t),isPaused:()=>!1,cache:Ue,mutate:We,fallback:{}},xe),qe=(e,t)=>{const n=ge(e,t);if(t){const{use:a,fallback:s}=e,{use:r,fallback:o}=t;a&&r&&(n.use=a.concat(r)),s&&o&&(n.fallback=ge(s,o))}return n},ze=(0,t.createContext)({}),He=Ne&&window.__SWR_DEVTOOLS_USE__,Ke=He?window.__SWR_DEVTOOLS_USE__:[],Je=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Qe=Ke.concat((e=>(t,n,a)=>e(t,n&&((...e)=>{const[a]=Be(t),[,,,s]=be.get(Ue);if(a.startsWith("$inf$"))return n(...e);const r=s[a];return de(r)?n(...e):(delete s[a],r)}),a)));He&&(window.__SWR_DEVTOOLS_REACT__=t);const Xe=t.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ye={dedupe:!0};he.defineProperty((e=>{const{value:n}=e,a=(0,t.useContext)(ze),s=me(n),r=(0,t.useMemo)((()=>s?n(a):n),[s,a,n]),o=(0,t.useMemo)((()=>s?r:qe(a,r)),[s,a,r]),i=r&&r.provider,l=(0,t.useRef)(pe);i&&!l.current&&(l.current=$e(i(o.cache||Ue),r));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),Re((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,t.createElement)(ze.Provider,ge(e,{value:o}))}),"defaultValue",{value:Ve});const Ze=(et=(e,n,a)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:d}=a,[m,g,f,y]=be.get(s),[_,b]=Be(e),v=(0,t.useRef)(!1),w=(0,t.useRef)(!1),k=(0,t.useRef)(_),N=(0,t.useRef)(n),S=(0,t.useRef)(a),L=()=>S.current,P=()=>L().isVisible()&&L().isOnline(),[C,j,x,A]=Le(s,_),T=(0,t.useRef)({}).current,E=de(i)?a.fallback[_]:i,R=(e,t)=>{for(const n in T){const a=n;if("data"===a){if(!r(e[a],t[a])){if(!de(e[a]))return!1;if(!r(U,t[a]))return!1}}else if(t[a]!==e[a])return!1}return!0},O=(0,t.useMemo)((()=>{const e=!!_&&!!n&&(de(l)?!L().isPaused()&&!o&&(!!de(c)||c):l),t=t=>{const n=ge(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},a=C(),s=A(),r=t(a),i=a===s?r:t(s);let u=r;return[()=>{const e=t(C());return R(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[s,_]),I=(0,ce.useSyncExternalStore)((0,t.useCallback)((e=>x(_,((t,n)=>{R(n,t)||e()}))),[s,_]),O[0],O[1]),B=!v.current,M=m[_]&&m[_].length>0,G=I.data,F=de(G)?E:G,D=I.error,$=(0,t.useRef)(F),U=d?de(G)?$.current:G:F,W=!(M&&!de(D))&&(B&&!de(l)?l:!L().isPaused()&&(o?!de(F)&&c:de(F)||c)),V=!!(_&&n&&B&&W),q=de(I.isValidating)?V:I.isValidating,z=de(I.isLoading)?V:I.isLoading,H=(0,t.useCallback)((async e=>{const t=N.current;if(!_||!t||w.current||L().isPaused())return!1;let n,s,o=!0;const i=e||{},l=!f[_]||!i.dedupe,c=()=>Te?!w.current&&_===k.current&&v.current:_===k.current,u={isValidating:!1,isLoading:!1},p=()=>{j(u)},h=()=>{const e=f[_];e&&e[1]===s&&delete f[_]},d={isValidating:!0};de(C().data)&&(d.isLoading=!0);try{if(l&&(j(d),a.loadingTimeout&&de(C().data)&&setTimeout((()=>{o&&c()&&L().onLoadingSlow(_,a)}),a.loadingTimeout),f[_]=[t(b),Ge()]),[n,s]=f[_],n=await n,l&&setTimeout(h,a.dedupingInterval),!f[_]||f[_][1]!==s)return l&&c()&&L().onDiscarded(_),!1;u.error=pe;const e=g[_];if(!de(e)&&(s<=e[0]||s<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(_),!1;const i=C().data;u.data=r(i,n)?i:n,l&&c()&&L().onSuccess(n,_,a)}catch(e){h();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||me(n)&&n(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!P()||t.onErrorRetry(e,_,t,(e=>{const t=m[_];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return o=!1,p(),!0}),[_,s]),K=(0,t.useCallback)(((...e)=>Fe(s,k.current,...e)),[]);if(Re((()=>{N.current=n,S.current=a,de(G)||($.current=G)})),Re((()=>{if(!_)return;const e=H.bind(pe,Ye);let t=0;const n=((e,t,n)=>{const a=t[e]||(t[e]=[]);return a.push(n),()=>{const e=a.indexOf(n);e>=0&&(a[e]=a[a.length-1],a.pop())}})(_,m,((n,a={})=>{if(0==n){const n=Date.now();L().revalidateOnFocus&&n>t&&P()&&(t=n+L().focusThrottleInterval,e())}else if(1==n)L().revalidateOnReconnect&&P()&&e();else{if(2==n)return H();if(3==n)return H(a)}}));return w.current=!1,k.current=_,v.current=!0,j({_k:b}),W&&(de(F)||Ee?e():(a=e,Ne&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(a):setTimeout(a,1))),()=>{w.current=!0,n()};var a}),[_]),Re((()=>{let e;function t(){const t=me(u)?u(C().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){C().error||!p&&!L().isVisible()||!h&&!L().isOnline()?t():H(Ye).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,h,_]),(0,t.useDebugValue)(U),o&&de(F)&&_){if(!Te&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,S.current=a,w.current=!1;const e=y[_];if(!de(e)){const t=K(e);Xe(t)}if(!de(D))throw D;{const e=H(Ye);de(U)||(e.status="fulfilled",e.value=!0),Xe(e)}}return{mutate:K,get data(){return T.data=!0,U},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,q},get isLoading(){return T.isLoading=!0,z}}},function(...e){const n=ge(Ve,(0,t.useContext)(ze)),[a,s,r]=Je(e),o=qe(n,r);let i=et;const{use:l}=o,c=(l||[]).concat(Qe);for(let e=c.length;e--;)i=c[e](i);return i(a,s||o.fetcher||null,o)});var et;const tt=((e,t)=>(...n)=>{const[a,s,r]=Je(n),o=(r.use||[]).concat(t);return e(a,s,{...r,use:o})})(Ze,(e=>(t,n,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,n,a)))),nt=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;return le({langs:[t],theme:e})};let at=!1;const st=({theme:e,lang:t,ready:n=!0})=>{const[a,r]=(0,s.useState)(!1);var o;at||(at=!0,o=window.patternCss?.pluginUrl+"build/shiki/",I=o.endsWith("/")?o:o+"/");const{data:i,error:l}=tt({theme:e,lang:t,ready:n&&a},nt);return(0,s.useEffect)((()=>{const e=window.patternCss?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{B=e,r(!0)}))}),[]),{highlighter:i,error:l,loading:!i&&!l||!a}},rt=(0,s.forwardRef)(((e,n)=>{var a,r;const o=(0,s.useRef)(null),{value:i,onChange:l,onFocus:u,onBlur:h,lineOptions:d=[],...m}=e,{highlighter:g,error:f,loading:y}=st({theme:"light-plus",lang:"css"});return y?null:f?(0,t.createElement)("p",null,f.message):(0,t.createElement)("div",{ref:o},(0,t.createElement)(p(),{ref:n,value:(0,c.decodeEntities)(i),className:"font-jetbrains-mono border border-solid border-gray-600 wp-focus",onValueChange:l,...m,padding:{top:6,bottom:6,left:8,right:8},style:{minHeight:300,backgroundColor:null!==(a=g?.getBackgroundColor())&&void 0!==a?a:"#fff",color:null!==(r=g?.getForegroundColor())&&void 0!==r?r:"#000"},onKeyDown:e=>"Tab"===e.key&&o.current?.querySelector("textarea")?.focus(),onFocus:u,onBlur:h,highlight:e=>g?.codeToHtml((0,c.decodeEntities)(e),{lang:"css",lineOptions:d})?.replace(/<\/?[pre|code][^>]*>/g,"")}))})),ot=({handleChange:e,editorWrapperRef:n})=>(0,t.createElement)("div",{className:"flex gap-1 absolute top-px right-px"},(0,t.createElement)(a.Tooltip,{text:(0,l.__)("Clear CSS","pattern-css")},(0,t.createElement)(a.Button,{icon:"no-alt",size:"small",onClick:()=>{e(""),n.current?.querySelector("textarea")?.focus()},className:"text-gray-600 wp-focus gap-0 p-1"},(0,t.createElement)("span",{className:"sr-only"},(0,l.__)("Clear CSS","pattern-css"))))),it=window.wp.editor,lt=(e,t)=>[...new Set([...e.filter((e=>!e.startsWith("pcss-"))),t].filter(Boolean))].join(" "),ct=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],ut=[];class pt{scopes=[];referenceId=1;references=new Map;wrappedObjects=new WeakMap;externalObjects=new WeakMap;buffers=new Map;instanceData=0;pendingException=null;constructor(e){this.id=ut.length,ut.push(this),this.instance=e,this.table=e.exports.__indirect_function_table,this.exports={},this.pushScope();let t=this.scopes[this.scopes.length-1],n=t.length;t.push(this.exports);try{this.instance.exports.napi_register_module_v1(this.id,n),this.instance.exports.napi_register_wasm_v1&&this.instance.exports.napi_register_wasm_v1(this.id,n)}finally{if(this.popScope(),this.pendingException){let e=this.pendingException;throw this.pendingException=null,e}}}destroy(){ut[this.id]=void 0}getString(e,t=function(e,t){let n=0;for(;0!==e[t];)n++,t++;return n}(this.memory,e)){return ht.decode(this.memory.subarray(e,e+t))}pushScope(){let e=this.scopes.length;return this.scopes.push([void 0,null,globalThis,!0,!1]),e}popScope(){this.scopes.pop();for(let[e,t]of this.buffers)e.byteLength&&t.byteLength&&e.set(t);this.buffers.clear()}get(e){return this.scopes[this.scopes.length-1][e]}set(e,t){this.scopes[this.scopes.length-1][e]=t}pushValue(e){let t=this.scopes[this.scopes.length-1],n=t.length;return t.push(e),n}createValue(e,t){if("boolean"==typeof e)return this.setPointer(t,e?3:4),0;if(void 0===e)return this.setPointer(t,0),0;if(null===e)return this.setPointer(t,1),0;if(e===globalThis)return this.setPointer(t,2),0;let n=this.pushValue(e);return this.setPointer(t,n),0}setPointer(e,t){return this.u32[e>>2]=t,0}_u32=new Uint32Array;get u32(){return 0===this._u32.byteLength&&(this._u32=new Uint32Array(this.instance.exports.memory.buffer)),this._u32}_i32=new Int32Array;get i32(){return 0===this._i32.byteLength&&(this._i32=new Int32Array(this.instance.exports.memory.buffer)),this._i32}_u16=new Uint16Array;get u16(){return 0===this._u16.byteLength&&(this._u16=new Uint16Array(this.instance.exports.memory.buffer)),this._u16}_u64=new BigUint64Array;get u64(){return 0===this._u64.byteLength&&(this._u64=new BigUint64Array(this.instance.exports.memory.buffer)),this._u64}_i64=new BigInt64Array;get i64(){return 0===this._i64.byteLength&&(this._i64=new BigInt64Array(this.instance.exports.memory.buffer)),this._i64}_f64=new Float64Array;get f64(){return 0===this._f64.byteLength&&(this._f64=new Float64Array(this.instance.exports.memory.buffer)),this._f64}_buf=new Uint8Array;get memory(){return 0===this._buf.byteLength&&(this._buf=new Uint8Array(this.instance.exports.memory.buffer)),this._buf}getBufferInfo(e,t){if(this.buffers.has(e)){let n=this.buffers.get(e);return this.setPointer(t,n.byteOffset),n.byteLength}if(e instanceof ArrayBuffer){let n=this.copyBuffer(new Uint8Array(e));return this.setPointer(t,n.byteOffset),n.byteLength}if(e.buffer===this.instance.exports.memory.buffer)return this.setPointer(t,e.byteOffset),e.byteLength;let n=this.copyBuffer(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return this.setPointer(t,n.byteOffset),n.byteLength}copyBuffer(e){let t=this.instance.exports.napi_wasm_malloc(e.byteLength),n=this.memory;n.set(e,t);let a=n.subarray(t,t+e.byteLength);return this.buffers.set(e,a),a}createFunction(e,t){let n=this,a=n.table.get(e);return function(...e){let s=n.pushScope();try{let r=n.scopes[s],o=r.length;r.push({thisArg:this,args:e,data:t,newTarget:new.target});let i=a(n.id,o);return n.get(i)}finally{if(n.popScope(),n.pendingException){let e=n.pendingException;throw n.pendingException=null,e}}}}readPropertyDescriptor(e){let t=this.u32,n=t[e++],a=t[e++],s=t[e++],r=t[e++],o=t[e++],i=t[e++],l=t[e++],c=t[e++],u=n?this.getString(n):this.get(a),p=Boolean(1&l),h=Boolean(2&l),d=Boolean(4&l),m=Boolean(1024&l),g=r?this.createFunction(r,c):void 0,f=o?this.createFunction(o,c):void 0,y=s?this.createFunction(s,c):i?this.get(i):void 0,_={name:u,static:m,configurable:d,enumerable:h};return g||f?(_.get=g,_.set=f):y&&(_.writable=p,_.value=y),_}}const ht=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),dt=new TextDecoder("latin1"),mt=new TextDecoder("utf-16"),gt=new TextEncoder;class ft{constructor(e,t,n,a){this.env=e,this.finalize=t,this.hint=n,this.data=a}}const yt=new FinalizationRegistry((e=>{e.finalize&&e.finalize(e.env,e.data,e.hint)}));class _t{}const bt=[];class vt{constructor(e,t,n,a){this.env=e,this.fn=t,this.nativeFn=n,this.context=a,this.id=bt.length,bt.push(this)}}const wt={napi_open_handle_scope(e,t){let n=ut[e],a=n.pushScope();return n.setPointer(t,a)},napi_close_handle_scope(e,t){let n=ut[e];return t!==n.scopes.length-1?13:(n.popScope(),0)},napi_open_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_close_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_escape_handle(e,t,n,a){throw new Error("not implemented")},napi_create_object:(e,t)=>ut[e].createValue({},t),napi_set_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=s.get(a);return r[o]=i,0},napi_get_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.createValue(r[o],a)},napi_delete_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=!1;try{i=delete r[o]}catch(e){}return a&&(s.memory[a]=i?1:0),0},napi_has_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=o in r?1:0,0},napi_has_own_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r.hasOwnProperty(o)?1:0,0},napi_set_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[s.getString(n)]=o,0},napi_get_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.createValue(r[o],a)},napi_has_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.memory[a]=o in r?1:0,0},napi_get_property_names(e,t,n){let a=ut[e],s=a.get(t),r=Object.keys(s);return a.createValue(r,n)},napi_get_all_property_names(e,t,n,a,s,r){throw new Error("not implemented")},napi_define_properties(e,t,n,a){let s=ut[e],r=s.get(t),o=a>>2;for(let e=0;e<n;e++){let e=s.readPropertyDescriptor(o);Object.defineProperty(r,e.name,e),o+=8}return 0},napi_object_freeze(e,t){let n=ut[e].get(t);return Object.freeze(n),0},napi_object_seal(e,t){let n=ut[e].get(t);return Object.seal(n),0},napi_get_prototype(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Object.getPrototypeOf(s),n)},napi_define_class(e,t,n,a,s,r,o,i){let l=ut[e],c=l.createFunction(a,s);Object.defineProperty(c,"name",{value:l.getString(t,n),configurable:!0});let u=o>>2;for(let e=0;e<r;e++){let e=l.readPropertyDescriptor(u);e.static?Object.defineProperty(c,e.name,e):Object.defineProperty(c.prototype,e.name,e),u+=8}return l.createValue(c,i)},napi_create_reference(e,t,n,a){let s=ut[e],r=s.referenceId++;return s.references.set(r,{value:s.get(t),refcount:n}),s.setPointer(a,r)},napi_delete_reference:(e,t)=>(ut[e].references.delete(t),0),napi_get_reference_value(e,t,n){let a=ut[e],s=a.references.get(t);return a.createValue(s.value,n)},napi_reference_ref(e,t,n){let a=ut[e],s=a.references.get(t);return s.refcount++,a.setPointer(n,s.refcount)},napi_reference_unref(e,t,n){let a=ut[e],s=a.references.get(t);return 0===s.refcount?9:(s.refcount--,a.setPointer(n,s.refcount))},napi_add_env_cleanup_hook:()=>0,napi_remove_env_cleanup_hook:()=>0,napi_add_async_cleanup_hook:()=>0,napi_remove_async_cleanup_hook:()=>0,napi_set_instance_data:(e,t,n,a)=>(ut[e].instanceData=t,0),napi_get_instance_data(e,t){let n=ut[e];return n.setPointer(t,n.instanceData)},napi_get_boolean:(e,t,n)=>ut[e].setPointer(n,t?3:4),napi_get_value_bool(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s?1:0,0},napi_create_int32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_int32(e,t,n){let a=ut[e],s=a.get(t);return a.i32[n>>2]=s,0},napi_create_uint32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_uint32(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s)},napi_create_int64:(e,t,n)=>ut[e].createValue(Number(t),n),napi_get_value_int64(e,t,n){let a=ut[e],s=a.get(t);return a.i64[n>>3]=s,0},napi_create_double:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_double(e,t,n){let a=ut[e],s=a.get(t);return a.f64[n>>3]=s,0},napi_create_bigint_int64:(e,t,n)=>ut[e].createValue(BigInt.asIntN(64,t),n),napi_get_value_bigint_int64(e,t,n,a){let s=ut[e],r=s.get(t);return s.i64[n>>3]=r,a&&(s.memory[a]=BigInt.asIntN(64,r)===r?1:0),0},napi_create_bigint_uint64:(e,t,n)=>ut[e].createValue(BigInt.asUintN(64,t),n),napi_get_value_bigint_uint64(e,t,n,a){let s=ut[e],r=s.get(t);return s.u64[n>>3]=r,a&&(s.memory[a]=BigInt.asUintN(64,r)===r?1:0),0},napi_create_bigint_words(e,t,n,a,s){let r=ut[e],o=r.u64,i=a>>3,l=0n,c=0n;for(let e=0;e<n;e++)l+=o[i++]<<c,c+=64n;return l*=BigInt((-1)**t),r.createValue(l,s)},napi_get_value_bigint_words(e,t,n,a,s){let r=ut[e],o=r.get(t),i=r.u32[a>>2];n&&(r.i32[n]=o<0n?1:0);let l=0;if(s){let e=(1n<<64n)-1n,t=r.u64,n=s>>3;for(o<0n&&(o=-o);l<i&&0n!==o;l++)t[n++]=o&e,o>>=64n}for(;o>0n;)l++,o>>=64n;return r.setPointer(a,l)},napi_get_null:(e,t)=>ut[e].setPointer(t,1),napi_create_array:(e,t)=>ut[e].createValue([],t),napi_create_array_with_length:(e,t,n)=>ut[e].createValue(new Array(t),n),napi_set_element(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[n]=o,0},napi_get_element(e,t,n,a){let s=ut[e],r=s.get(t)[n];return s.createValue(r,a)},napi_has_element(e,t,n,a){let s=ut[e],r=s.get(t);return s.memory[a]=r.hasOwnProperty(n)?1:0,0},napi_delete_element(e,t,n,a){let s=ut[e],r=s.get(t),o=!1;try{o=delete r[n]}catch(e){}return a&&(s.memory[a]=o?1:0),0},napi_get_array_length(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s.length)},napi_get_undefined:(e,t)=>ut[e].setPointer(t,0),napi_create_function(e,t,n,a,s,r){let o=ut[e],i=o.createFunction(a,s);return Object.defineProperty(i,"name",{value:o.getString(t,n),configurable:!0}),o.createValue(i,r)},napi_call_function(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.get(n),c=new Array(a),u=o.u32;for(let e=0;e<a;e++)c[e]=o.get(u[s>>2]),s+=4;try{let e=l.apply(i,c);return o.createValue(e,r)}catch(e){return o.pendingException=e,10}},napi_new_instance(e,t,n,a,s){let r=ut[e],o=r.get(t),i=new Array(n),l=r.u32;for(let e=0;e<n;e++)i[e]=r.get(l[a>>2]),a+=4;try{let e=new o(...i);return r.createValue(e,s)}catch(e){return r.pendingException=e,10}},napi_get_cb_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);o.setPointer(n,i.args.length);for(let e=0;e<i.args.length;e++)o.createValue(i.args[e],a),a+=4;return o.createValue(i.thisArg,s),o.setPointer(r,i.data),0},napi_get_new_target(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(s.newTarget,n)},napi_create_threadsafe_function(e,t,n,a,s,r,o,i,l,c,u){let p=ut[e],h=t?p.get(t):void 0,d=c?p.table.get(c):void 0,m=new vt(p,h,d,l);if(i){let t=p.table.get(i);yt.register(m,new ft(e,t,0,m.id))}return p.setPointer(u,m.id),0},napi_ref_threadsafe_function:()=>0,napi_unref_threadsafe_function:()=>0,napi_acquire_threadsafe_function:()=>0,napi_release_threadsafe_function:(e,t)=>(bt[e]=void 0,0),napi_call_threadsafe_function(e,t,n){let a=bt[e];a.env.pushScope();try{if(a.nativeFn){let e=a.fn?a.env.pushValue(a.fn):0;a.nativeFn(a.env.id,e,a.context,t)}else a.fn&&a.fn()}finally{a.env.popScope()}},napi_get_threadsafe_function_context(e,t){let n=bt[e];return n.env.setPointer(t,n.context),0},napi_throw(e,t){let n=ut[e];return n.pendingException=n.get(t),0},napi_throw_error(e,t,n){let a=ut[e],s=new Error(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_type_error(e,t,n){let a=ut[e],s=new TypeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_range_error(e,t,n){let a=ut[e],s=new RangeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_create_error(e,t,n,a){let s=ut[e],r=new Error(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_type_error(e,t,n,a){let s=ut[e],r=new TypeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_range_error(e,t,n,a){let s=ut[e],r=new RangeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_get_and_clear_last_exception(e,t){let n=ut[e],a=n.pendingException;return n.pendingException=null,n.createValue(a,t)},napi_is_exception_pending(e,t){let n=ut[e];return n.memory[t]=n.pendingException?1:0,0},napi_fatal_exception(e,t){throw new Error("not implemented")},napi_fatal_error(e,t,n,a){throw new Error("not implemented")},napi_get_global:(e,t)=>ut[e].setPointer(t,2),napi_create_buffer(e,t,n,a){let s=ut[e],r=s.instance.exports.napi_wasm_malloc(t);n&&s.setPointer(n,r);let o=void 0!==globalThis.Buffer?globalThis.Buffer.from(s.memory.buffer,r,t):s.memory.subarray(r,r+t);return s.createValue(o,a)},napi_create_buffer_copy(e,t,n,a,s){let r=ut[e],o=r.instance.exports.napi_wasm_malloc(t);r.memory.set(r.memory.subarray(n,n+t),o),a&&r.setPointer(a,o);let i=void 0!==globalThis.Buffer?globalThis.Buffer.from(r.memory.buffer,o,t):buf;return r.createValue(i,s)},napi_create_external_buffer(e,t,n,a,s,r){let o=ut[e],i=void 0!==globalThis.Buffer?globalThis.Buffer.from(o.memory.buffer,n,t):o.memory.subarray(n,n+t);if(a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return o.createValue(i,r)},napi_get_buffer_info(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getBufferInfo(r,n);return s.setPointer(a,o)},napi_create_arraybuffer(e,t,n,a){let s=ut[e],r=new ArrayBuffer(t);return n&&s.getBufferInfo(r,ptr),s.createValue(r,a)},napi_create_external_arraybuffer:(e,t,n,a,s,r)=>22,napi_get_arraybuffer_info(e,t,n,a){let s=ut[e],r=s.getBufferInfo(s.get(t),n);return s.setPointer(a,r)},napi_detach_arraybuffer(e,t){let n=ut[e].get(t);return"function"==typeof structuredClone&&structuredClone(n,{transfer:[n]}),0},napi_is_detached_arraybuffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=0===s.byteLength?1:0,0},napi_create_typedarray(e,t,n,a,s,r){let o=ut[e],i=new(0,ct[t])(o.get(a),s,n);return o.createValue(i,r)},napi_create_dataview(e,t,n,a,s){let r=ut[e],o=r.get(n),i=new DataView(o,a,t);return r.createValue(i,s)},napi_get_typedarray_info(e,t,n,a,s,r,o){let i=ut[e],l=i.get(t);return i.setPointer(n,ct.indexOf(l.constructor)),i.setPointer(a,l.length),i.getBufferInfo(l,s),i.createValue(l.buffer,r),i.setPointer(o,l.byteOffset)},napi_get_dataview_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);return o.setPointer(n,i.byteLength),o.getBufferInfo(i,a),o.createValue(i.buffer,s),o.setPointer(r,i.byteOffset)},napi_create_string_utf8(e,t,n,a){let s=ut[e],r=ht.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_utf8(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,function(e){let t=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319&&n<e.length-1){let t=e.charCodeAt(++n);56320==(64512&t)?a=((1023&a)<<10)+(1023&t)+65536:n--}4294967168&a?4294965248&a?4294901760&a?4292870144&a||(t+=4):t+=3:t+=2:t++}return t}(o));let i=gt.encodeInto(o,r.memory.subarray(n,n+a-1));return r.memory[n+i.written]=0,r.setPointer(s,i.written)},napi_create_string_latin1(e,t,n,a){let s=ut[e],r=dt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_latin1(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.memory,l=Math.min(o.length,a-1);for(let e=0;e<l;e++){let t=o.charCodeAt(e);i[n++]=t}return i[n]=0,r.setPointer(s,l)},napi_create_string_utf16(e,t,n,a){let s=ut[e],r=mt.decode(s.memory.subarray(t,t+2*n));return s.createValue(r,a)},napi_get_value_string_utf16(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.u16,l=n>>1,c=Math.min(o.length,a-1);for(let e=0;e<c;e++){let t=o.charCodeAt(e);i[l++]=t}return i[l]=0,r.setPointer(s,c)},napi_create_date:(e,t,n)=>ut[e].createValue(new Date(t),n),napi_get_date_value(e,t,n){let a=ut[e],s=a.get(t);a.f64[n>>3]=s.valueOf()},napi_create_symbol(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Symbol(s),n)},napi_coerce_to_bool(e,t,n){let a=ut[e];return a.createValue(Boolean(a.get(t)),n)},napi_coerce_to_number(e,t,n){let a=ut[e];return a.createValue(Number(a.get(t)),n)},napi_coerce_to_object(e,t,n){let a=ut[e];return a.createValue(Object(a.get(t)),n)},napi_coerce_to_string(e,t,n){let a=ut[e];return a.createValue(String(a.get(t)),n)},napi_typeof(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,(()=>{switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"number":return 3;case"string":return 4;case"symbol":return 5;case"object":return null===s?1:s instanceof _t?8:6;case"function":return 7;case"bigint":return 9}})())},napi_instanceof(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r instanceof o?1:0,0},napi_is_array(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=Array.isArray(s)?1:0,0},napi_is_buffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=(void 0!==globalThis.Buffer?globalThis.Buffer.isBuffer(s):s instanceof Uint8Array)?1:0,0},napi_is_date(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Date?1:0,0},napi_is_error(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Error?1:0,0},napi_is_typedarray(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=!ArrayBuffer.isView(s)||s instanceof DataView?0:1,0},napi_is_dataview(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof DataView?1:0,0},napi_strict_equals(e,t,n,a){let s=ut[e];return s.memory[a]=s.get(t)===s.get(n)?1:0,0},napi_wrap(e,t,n,a,s,r){let o=ut[e],i=o.get(t);if(o.wrappedObjects.set(i,n),a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return r?wt.napi_create_reference(e,t,1,r):0},napi_unwrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return a.setPointer(n,r),0},napi_remove_wrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return yt.unregister(s),a.wrappedObjects.delete(s),a.setPointer(n,r)},napi_type_tag_object(e,t,n){throw new Error("not implemented")},napi_check_object_type_tag(e,t,n){throw new Error("not implemented")},napi_add_finalizer(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.table.get(a);return yt.register(i,new ft(e,l,s,n)),r?wt.napi_create_reference(e,t,1,r):0},napi_create_promise(e,t,n){let a=ut[e],s=new Promise(((e,n)=>{a.createValue({resolve:e,reject:n},t)}));return a.createValue(s,n)},napi_resolve_deferred(e,t,n){let a=ut[e],{resolve:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_reject_deferred(e,t,n){let a=ut[e],{reject:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_is_promise(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Promise?1:0,0},napi_run_script(e,t,n){let a=ut[e],s=a.get(t),r=(0,eval)(s);return a.createValue(r,n)},napi_create_external(e,t,n,a,s){let r=ut[e],o=new _t;if(r.externalObjects.set(o,t),n){let s=r.table.get(n);yt.register(o,new ft(e,s,a,t))}return r.createValue(o,s)},napi_get_value_external(e,t,n){let a=ut[e],s=a.get(t),r=a.externalObjects.get(s);return a.setPointer(n,r)},napi_adjust_external_memory:()=>0};let kt;function Nt(e,t,n){kt(e,t,n)}const St=0,Lt=1,Pt=2;let Ct,jt,xt;function At(e){return Ct.transform(e)}(async function(e){if(Ct)return;if(jt)return void await jt;let t;("string"==typeof(e=e??new URL(o(229),o.b))||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=async function(e){try{return(await o.e(996).then(o.t.bind(o,996,19))).readFileSync(e)}catch{return fetch(e)}}(e)),jt=e.then((e=>async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(e,{env:{...wt,await_promise_sync:Nt,__getrandom_custom:(e,n)=>{let a=t.memory.subarray(e,e+n);crypto.getRandomValues(a)}}}))).then((({instance:e})=>{e.exports.register_module(),t=new pt(e),xt=function(e){let t,n,a,{instance:s,exports:r}=e,{asyncify_get_state:o,asyncify_start_unwind:i,asyncify_stop_unwind:l,asyncify_start_rewind:c,asyncify_stop_rewind:u}=s.exports,p=s.exports.napi_wasm_malloc(4104),h=p+8,d=p+8+4096;function m(){if(o()!==St)throw new Error(`Invalid async state ${o()}, expected 0.`)}return new Int32Array(e.memory.buffer,p).set([h,d]),kt=(s,r,l)=>{if(o()===Pt)return u(),null!=n&&e.createValue(n,r),null!=a&&e.createValue(a,l),void(t=n=a=null);m(),t=e.get(s),i(p)},async function(e){m();let s=r.bundle(e);for(;o()===Lt;){l();try{n=await t}catch(e){a=e}m(),c(p),s=r.bundle(e)}return m(),s}}(t),Ct=t.exports})),await jt})().then((()=>{window.patternCss.transform=At}));const Tt=(e,t,n)=>{const a=new Set([e.className?.split(" "),n.className?.split(" ")].flat().filter(Boolean)),{pcssClassId:s}=n;return!s||a.has(s)?e:(a.add(s),{...e,className:[...a].join(" ")})},Et={pcssAdditionalCss:{type:"string"},pcssAdditionalCssCompiled:{type:"string",default:""},pcssClassId:{type:"string",default:""}};(0,e.addFilter)("blocks.registerBlockType","kevinbatdorf/pcss-block-settings",(e=>{const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n;const a=null!==(n=t?.(e))&&void 0!==n?n:{};return Tt(a,0,e)},{...e,attributes:{...e.attributes,...Et}}})),(0,e.addFilter)("editor.BlockEdit","kevinbatdorf/pcss-block-control",(e=>o=>((e,o)=>{const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,d]=(0,s.useState)([]),m=(0,r.useSelect)((e=>{const{isSavingPost:t,isAutosavingPost:n}=e(it.store);return t()||n()}),[]),{attributes:g,setAttributes:f,clientId:y}=o,{pcssClassId:_,pcssAdditionalCss:b,pcssAdditionalCssCompiled:v,className:w}=g,[k,N]=(0,s.useState)(b),[S,L]=(0,s.useState)(),[P,C]=(0,s.useState)(v||""),j="[block] {\n  \n}",x=(0,s.useCallback)((e=>{if(void 0===e)return void N(void 0);const t=(0,i.escapeHTML)(e);if(d([]),N(t),!window.patternCss?.transform)return;const n=window.patternCss.transform({filename:"raw.css",code:(new TextEncoder).encode(t),minify:!0,errorRecovery:!0,visitor:{Selector(e){const{name:t,type:n}=e[0],{name:a,type:s}=window.patternCss.selectorOverride||{};return"attribute"===n&&"block"===t||n===s&&t===a?[{...e[0],type:"class",name:_},...e.slice(1)]:"nesting"===e[0].type?e:[{type:"class",name:_},{type:"combinator",value:"descendant"},...e]}}});n.warnings.length>0?d(n.warnings):L(n.code)}),[_]);return(0,s.useEffect)((()=>{b&&x(b)}),[x,b]),(0,s.useEffect)((()=>{void 0!==S&&C((new TextDecoder).decode(S))}),[S]),(0,s.useEffect)((()=>{if(void 0===k)return;f({pcssAdditionalCss:k,pcssClassId:_||`pcss-${y?.split("-")[0]}`});const e=w?.split(" ")||[];e?.includes(_)||f({className:lt(e,_)})}),[k,f,_,y,w]),(0,s.useEffect)((()=>{if(!_||!m)return;const e=w?.split(" ")||[];if(e?.find((e=>e.startsWith(_))))return;const t=lt(e,_);f({className:t})}),[m,w,_,f]),(0,s.useEffect)((()=>{P!==v&&f({pcssAdditionalCssCompiled:P})}),[P,f,v]),(0,s.useLayoutEffect)((()=>{if(void 0===P)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow,t=e?e?.document:document.querySelector(".editor-styles-wrapper");if(!t)return;const n=`pcss-styles-block-${_}`,a=t?.querySelector(`#${n}`);if(a)return void(a.innerHTML=P);const s=e?.document?e.document.createElement("style"):document.createElement("style");s.id=n,s.innerHTML=P,e?.document?.head?e.document.head.appendChild(s):t.appendChild(s)}),[P,_]),(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(e,{...o}),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Additional CSS",initialOpen:!1,className:"pattern-css-editor"},(0,t.createElement)("div",{className:"relative",ref:c},(0,t.createElement)(rt,{value:null!=k?k:j,"data-cy":"pcss-editor-block",onChange:x,onFocus:e=>{e.target.value===j&&(e=>{const t=e.value.split("\n"),n=t[0].length+t[1].length+1;requestAnimationFrame((()=>{e.focus(),e.setSelectionRange(n,n)}))})(e.target),p(!0)},onBlur:()=>p(!1),lineOptions:h.map((({loc:e})=>({line:e.line,classes:["line-error"]})))}),u?null:(0,t.createElement)(ot,{handleChange:x,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
     1(()=>{var e,t,n,a,s={69:function(e,t,n){"use strict";var a,s=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(609)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),h="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),d="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(d,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(d," {\n    color: transparent !important;\n  }\n\n  .").concat(d,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,a=e.selectionStart,s=e.selectionEnd;t._recordChange({value:n,selectionStart:a,selectionEnd:s})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var a,s,o;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(a=t._getLines(d.value,d.selectionStart).pop())||void 0===a?void 0:a.match(m),f=null===(s=t._getLines(e.value,e.selectionStart).pop())||void 0===s?void 0:s.match(m);if((null==g?void 0:g[1])&&(null===(o=null==f?void 0:f[1])||void 0===o?void 0:o.startsWith(g[1])))return void(t._history.stack[t._history.offset]=r(r({},e),{timestamp:h}))}}t._history.stack.push(r(r({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,a=t._history.stack[t._history.offset];a&&n&&(t._history.stack[t._history.offset]=r(r({},a),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a-1];s&&(t._updateInput(s),t._history.offset=Math.max(a-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a+1];s&&(t._updateInput(s),t._history.offset=Math.min(a+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,a=n.tabSize,s=n.insertSpaces,r=n.ignoreTabKey,o=n.onKeyDown;if(!o||(o(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,d=(s?" ":"\t").repeat(a);if(9===e.keyCode&&!r&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(_=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(l!==f){var y=_[m];t._applyEdits({value:f,selectionStart:(null==y?void 0:y.startsWith(d))?c-d.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var _,b=(_=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;y=_[b],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=b&&t<=v?d+e:e})).join("\n"),selectionStart:y&&/\S/.test(y)?c+d.length:c,selectionEnd:u+d.length*(v-b+1)})}else{var w=c+d.length;t._applyEdits({value:l.substring(0,c)+d+l.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=c!==u;l.substring(0,c).endsWith(d)&&!k&&(e.preventDefault(),w=c-d.length,t._applyEdits({value:l.substring(0,c-d.length)+l.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var N=t._getLines(l,c).pop(),S=null==N?void 0:N.match(/^\s+/);if(null==S?void 0:S[0]){e.preventDefault();var L="\n"+S[0];w=c+L.length,t._applyEdits({value:l.substring(0,c)+L+l.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),c!==u&&P&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+P[0]+l.substring(c,u)+P[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(h?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(h?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||h&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,a=n.value,s=n.selectionStart,r=n.selectionEnd;t._recordChange({value:a,selectionStart:s,selectionEnd:r},!0),t.props.onValueChange(a)},t._history={stack:[],offset:-1},t._input=null,t}return s(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.style,s=t.padding,o=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,h=t.disabled,g=t.form,y=t.maxLength,_=t.minLength,b=t.name,v=t.placeholder,w=t.readOnly,k=t.required,N=t.onClick,S=t.onFocus,L=t.onBlur,P=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),j=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),x={paddingTop:"object"==typeof s?s.top:s,paddingRight:"object"==typeof s?s.right:s,paddingBottom:"object"==typeof s?s.bottom:s,paddingLeft:"object"==typeof s?s.left:s},A=o(n);return u.createElement("div",r({},j,{style:r(r({},f.container),a)}),u.createElement("pre",r({className:C,"aria-hidden":"true",style:r(r(r({},f.editor),f.highlight),x)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),u.createElement("textarea",{ref:function(t){return e._input=t},style:r(r(r({},f.editor),f.textarea),x),className:d+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:N,onKeyUp:P,onFocus:S,onBlur:L,disabled:h,form:g,maxLength:y,minLength:_,name:b,placeholder:v,readOnly:w,required:k,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},63:(e,t,n)=>{"use strict";var a=n(609),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=r({inst:{value:n,getSnapshot:t}}),s=a[0].inst,u=a[1];return i((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},888:(e,t,n)=>{"use strict";e.exports=n(63)},486:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const s=a(n(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const s=e.charCodeAt(n);let r=s,o=!1;if(s>=55296&&s<=56319&&n+1<a){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(s-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),a=n!==t,s=a?new Uint32Array(t+1):null;a&&(s[t]=n);const r=a?new Uint32Array(n+1):null;a&&(r[n]=t);const o=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}a&&(s[n]=l,u&&(s[n+1]=l),c<=127?r[l+0]=n:c<=2047?(r[l+0]=n,r[l+1]=n):c<=65535?(r[l+0]=n,r[l+1]=n,r[l+2]=n):(r[l+0]=n,r[l+1]=n,r[l+2]=n,r[l+3]=n)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let a=0,s=e.length;a<s;a++){const s=new i(e[a]);t[a]=s.createString(r),n[a]=s.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const s=r._omalloc(4*e.length);r.HEAPU32.set(n,s/4);const o=r._createOnigScanner(a,s,e.length);for(let n=0,a=e.length;n<a;n++)r._ofree(t[n]);r._ofree(s),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=o,s=0;if("number"==typeof n?(8&n&&(a=!0),s=n):"boolean"==typeof n&&(a=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,a,s);return e.dispose(),n}return this._findNextMatchSync(e,t,a,s)}_findNextMatchSync(e,t,n,a){const s=this._onigBinding;let r;if(r=n?s._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):s._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=s.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:n,end:a,length:a-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,n,a){(0,s.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),a),{}}}).then((e=>{r=e,n()}))}(t,n,a,o),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,n=a}));var s,r=Object.assign({},a),o=[];s=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||P(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var p,h,d,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&g)return g.decode(e.subarray(t,s));for(var r="";t<s;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=d=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var _=[],b=[],v=[];function w(e){_.unshift(e)}function k(e){v.unshift(e)}var N=0,S=null,L=null;function P(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,j;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==C&&i)return new Uint8Array(i);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){P(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function E(e){try{return l.grow(e-p.byteLength+65535>>>16),y(l.buffer),1}catch(e){}}x(C="onig.wasm")||(C=function(e){return a.locateFile?a.locateFile(e,""):""+e}(C)),j="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var I,B={emscripten_get_now:j,emscripten_memcpy_big:function(e,t,n){h.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=h.length,a=2147483648;if((e>>>=0)>a)return!1;for(var s=1;s<=4;s*=2){var r=n*(1+.2/s);if(r=Math.min(r,e+100663296),E(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,a){for(var s=0,r=0;r<n;r++){var o=d[t>>2],i=d[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,h[o+l]);s+=i}return d[a>>2]=s,0}};function M(e){function n(){I||(I=!0,a.calledRun=!0,m||(T(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());T(v)}()))}e=e||o,N>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)w(a.preRun.shift());T(_)}(),N>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:B,wasi_snapshot_preview1:B};function t(e,t){var n=e.exports;a.asm=n,y((l=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(N--,a.monitorRunDependencies&&a.monitorRunDependencies(N),0==N&&(null!==S&&(clearInterval(S),S=null),L)){var t=L;L=null,t()}}()}function s(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(C)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),P(e)}))}if(N++,a.monitorRunDependencies&&a.monitorRunDependencies(N),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(C)||"function"!=typeof fetch?r(s):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(s)}))}))).catch(n)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},L=function e(){I||M(),I||(L=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(770);var e,t},e.exports=t()},217:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return!!(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,a,s,r,o,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),h=n.getForeground(e),d=n.getBackground(e);return 0!==t&&(l=t),8!==a&&(c=a),null!==s&&(u=s?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(d=i),(l|c<<8|u<<10|p<<11|h<<15|d<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=n(878);class s{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=s;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new s(t,n)})),this._defaultAttributes=new s(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[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!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new s(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=n(350),s=n(36),r=n(736),o=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function h(e,t,n,a,s){const o=r.createMatchers(t,d),l=i.RuleFactory.getCompiledRuleId(n,a,s.repository);for(const n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:s,priority:n.priority})}function d(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let a=n;a<t.length;a++)if(m(t[a],e))return n=a+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,a,s,r,o,i){return new g(e,t,n,a,s,r,o,i)};class g{constructor(e,t,n,a,s,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s)){const t=r.createMatchers(e,d);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const a=n.injections;if(a)for(let t in a)h(e,t,a[t],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&h(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=s.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new b(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,l,r,0,t,u,!0,a);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new y(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),s=new l.ScopeStack(null,e),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(t,a,r);return new y(null,s,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let a=-1,r=0,o=0;return null!==n&&(a=n.fontStyle,r=n.foregroundId,o=n.backgroundId),s.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const e of n)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),s=e.scopePath.push(t),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class _{constructor(e,t,n,a,s,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,s,r,o){return new _(this,e,t,n,a,s,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,d).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,d).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class b{constructor(e,t,n,s){this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=s.EncodedTokenAttributes.set(n,0,s.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=s.EncodedTokenAttributes.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=b},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=n(878);class s{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=s;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof s?c({baseGrammar:o,selfGrammar:r},a):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=n.injections(e.scopeName);if(i)for(const e of i)a.add(new s(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},n);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const s={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?l(p.ruleName,s,n):c(s,n)}else 4===p.kind?n.add(new r(p.scopeName,p.ruleName)):n.add(new s(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new s(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof s){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class d{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=d;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new d(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new g(n,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=n(350),s=n(44),r=n(792),o=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,s,l,p,d,m){const g=t.content.length;let f=!1,y=-1;if(d){const o=function(e,t,n,s,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof r.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=u(p.rule,e,p.stack.endRule,n,s===l),m=c.findNextMatchSync(t,s,d);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(m.ruleId!==r.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),h(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>s&&(s=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:s,anchorPosition:l,isFirstLine:n}}(e,t,n,s,l,p);l=o.stack,s=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const _=Date.now();for(;!f;){if(0!==m&&Date.now()-_>m)return new i(l,!0);b()}return new i(l,!1);function b(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${s}: |${t.content.substr(s).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,s,r,i){const l=function(e,t,n,s,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,r.endRule,n,s===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const d=u.findNextMatchSync(t,s,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${s}, anchorPosition: ${i})`),console.log(u.toString()),d&&console.log(`matched rule id: ${d.ruleId} from ${d.captureIndices[0].start} to ${d.captureIndices[0].end}`)}return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,s,r,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,s,r,o,i){let l,u=Number.MAX_VALUE,p=null,h=0;const d=o.contentNameScopesList.getScopeNames();for(let o=0,m=e.length;o<m;o++){const m=e[o];if(!m.matcher(d))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:y}=c(g,t,null,s,r===i),_=f.findNextMatchSync(n,r,y);if(!_)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const b=_.captureIndices[0].start;if(!(b>=u)&&(u=b,p=_.captureIndices,l=_.ruleId,h=m.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,s,r,i);if(!p)return l;if(!l)return p;const h=l.captureIndices[0].start,d=p.captureIndices[0].start;return d<h||p.priorityMatch&&d===h?p:l}(e,t,n,s,l,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,d=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>s;if(d===r.endRuleId){const r=l.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),h(e,t,n,l,p,r.endCaptures,u),p.produce(l,u[0].end);const o=l;if(l=l.parent,y=o.getAnchorPos(),!m&&o.getEnterPos()===s)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,p.produce(l,g),void(f=!0)}else{const o=e.getRule(d);p.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),_=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(d,s,y,u[0].end===g,null,_,_),o instanceof r.BeginEndRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName+" - "+s.debugBeginRegExp),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.endHasBackReferences&&(l=l.withEndRule(s.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.whileHasBackReferences&&(l=l.withEndRule(s.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const s=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+s.debugName+" - "+s.debugMatchRegExp),h(e,t,n,l,p,s.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>s&&(s=u[0].end,n=!1)}}function c(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileAG(t,n,s,r),findOptions:0}}function u(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileWhileAG(t,n,s,r),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function h(e,t,n,a,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,m.start):r.produce(a,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),h=o.pushAttributed(p,e),d=a.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,h),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,d,r,!1,0),s.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new d(t,m.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class d{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=d},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),l=new s,c=0,u=null,p=[],h=[];function d(){p.push(c),h.push(u)}function m(){c=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),d(),c=1;continue}if(2===l.type){u=[],d(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||g("expected colon"),r(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,d(),c=4,u=t;continue}if(3===l.type){let n={};o&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,d(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),d(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),d(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class s{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,s=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(a=s.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===a){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(a=s.charCodeAt(r),r++,l++,92!==a){if(34===a)break}else r++,l++}t.value=s.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,l++;else if(123===a)t.type=3,r++,l++;else if(93===a)t.type=4,r++,l++;else if(125===a)t.type=5,r++,l++;else if(58===a)t.type=6,r++,l++;else if(44===a)t.type=7,r++,l++;else if(110===a){if(t.type=8,r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;r++,l++}else if(116===a){if(t.type=9,r++,l++,a=s.charCodeAt(r),114!==a)return!1;if(r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else if(102===a){if(t.type=10,r++,l++,a=s.charCodeAt(r),97!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),115!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(a=s.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=s.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=n(391),o=n(50),i=n(652),l=n(583),c=n(965);s(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new r.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,a,s){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,n,a,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,s)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],s=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}(e);let r=s.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=s.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=s.next()}return a;function o(){if("-"===r){r=s.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=s.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=s.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=s.next()),e}if(n(r)){const e=[];do{e.push(r),r=s.next()}while(n(r));return n=>t(e,n)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=n(69),s=n(350),r=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,o=t,s.DebugFlags.InDebugMode?r.parseJSON(n,o,!0):JSON.parse(n)):function(e,t){return s.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var n,o}},69:(e,t)=>{function n(e,t,n){const a=e.length;let s=0,r=1,o=0;function i(t){if(null===n)s+=t;else for(;t>0;)10===e.charCodeAt(s)?(s++,r++,o=0):(s++,o++),t--}function l(e){null===n?s=e:i(e-s)}function c(){for(;s<a;){let t=e.charCodeAt(s);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(s,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,s);l(-1!==n?n+t.length:a)}function h(t){let n=e.indexOf(t,s);if(-1!==n){let a=e.substring(s,n);return l(n+t.length),a}{let t=e.substr(s);return l(a),t}}a>0&&65279===e.charCodeAt(0)&&(s=1);let d=0,m=null,g=[],f=[],y=null;function _(e,t){g.push(d),f.push(m),d=e,m=t}function b(){if(0===g.length)return v("illegal state stack");d=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+s+": "+t+" ~~~"+e.substr(s,50)+"~~~")}const w=function(){if(null===y)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m[y]=e,y=null,_(1,e)},k=function(){if(null===y)return v("missing <key>");let e=[];m[y]=e,y=null,_(2,e)},N=function(){let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m.push(e),_(1,e)},S=function(){let e=[];m.push(e),_(2,e)};function L(){if(1!==d)return v("unexpected </dict>");b()}function P(){return 1===d||2!==d?v("unexpected </array>"):void b()}function C(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function j(e){if(isNaN(e))return v("cannot parse float");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function x(e){if(isNaN(e))return v("cannot parse integer");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function A(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function T(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function E(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function R(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;s<a&&(c(),!(s>=a));){const l=e.charCodeAt(s);if(i(1),60!==l)return v("expected <");if(s>=a)return v("unexpected end of input");const h=e.charCodeAt(s);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),L();continue}if(u("array")){p(">"),P();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===d?w():2===d?N():(m={},null!==n&&(m[n]={filename:t,line:r,char:o}),_(1,m)),g.isClosed&&L();continue;case"array":1===d?k():2===d?S():(m=[],_(2,m)),g.isClosed&&P();continue;case"key":I=O(g),1!==d?v("unexpected <key>"):null!==y?v("too many <key>"):y=I;continue;case"string":C(O(g));continue;case"real":j(parseFloat(O(g)));continue;case"integer":x(parseInt(O(g),10));continue;case"date":A(new Date(O(g)));continue;case"data":T(O(g));continue;case"true":O(g),E(!0);continue;case"false":O(g),E(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var I;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return n(e,t,a)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,s,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,n,s,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=n(878),s=n(965),r=/\\(\d+)/,o=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,s){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,a,s){super(e,t,n,null),this._match=new m(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,a,s,r,o,i,l,c){super(e,t,n,a),this._begin=new m(s,this.id),this.beginCaptures=r,this._end=new m(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,n,a,s,r,o,i,l,c){super(e,n,a,s),this._begin=new m(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class d{static createCaptureRule(e,t,n,a,s){return e.registerRule((e=>new l(t,e,n,a,s)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((s=>{if(e.id=s,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=a.mergeObjects({},n,e.repository));let s=e.patterns;return void 0===s&&e.include&&(s=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(s,t,n))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,d._compileCaptures(e.whileCaptures||e.captures,t,n),d._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,d._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,d._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let s=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>s&&(s=e)}for(let e=0;e<=s;e++)a[e]=null;for(const s in e){if("$vscodeTextmateLocation"===s)continue;const r=parseInt(s,10);let o=0;e[s].patterns&&(o=d.getCompiledRuleId(e[s],t,n)),a[r]=d.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,o)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=s.parseInclude(o.include);switch(e.kind){case 0:case 1:i=d.getCompiledRuleId(n[o.include],t,n);break;case 2:let a=n[e.ruleName];a&&(i=d.getCompiledRuleId(a,t,n));break;case 3:case 4:const s=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(s,n);if(l)if(r){let e=l.repository[r];e&&(i=d.getCompiledRuleId(e,t,l.repository))}else i=d.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=d.getCompiledRuleId(o,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=d;class m{constructor(e,t){if(e){const t=e.length;let n=0,a=[],s=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(n,r)),a.push("$(?!\\n)(?<!\\n)"),n=r+2):"A"!==t&&"G"!==t||(s=!0),r++}this.hasAnchor=s,0===n?this.source=e:(a.push(e.substring(n,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,a,s=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,r[e]=n,o[e]=n,i[e]=n,"\\"===n&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(s[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class s{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(n,l.getId(r),l.getId(o)),d=new h(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];d.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new s(l,c,d)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,a=t[n];for(;e;){if(o(e.scopeName,a)){if(n++,n===t.length)return!0;a=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=s;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new r(t,e[n]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],s=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),n[s++]=new c(o,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,a,s,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=s,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,n,a,s){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=a,this.background=s}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,a=t.parentScopes;let s=null===n?0:n.length,r=null===a?0:a.length;if(s===r)for(let e=0;e<s;e++){const t=n[e].length,s=a[e].length;if(t!==s)return s-t}return r-s}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,a=e.indexOf(".");return-1===a?(t=e,n=""):(t=e.substring(0,a),n=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,a,s,r){if(""===t)return void this._doInsertHere(e,n,a,s,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,n,a,s,r)}_doInsertHere(e,t,n,s,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,s,r)}-1===n&&(n=this._mainRule.fontStyle),0===s&&(s=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,s,r))}else this._mainRule.acceptOverwrite(e,n,s,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=n(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=n(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function s(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,((e,a,s,r)=>{let o=n[parseInt(a||s,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=s,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let a=0;a<n;a++){let n=s(e[a],t[a]);if(0!==n)return n}return 0}return n-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(787)})()},229:(e,t,n)=>{"use strict";e.exports=n.p+"c939b543261a8fcd831e.wasm"},609:e=>{"use strict";e.exports=window.React},673:()=>{},485:()=>{}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="pattern-css:",o.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+s){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",a+s),i.src=e),n[e]=[t];var h=(t,a)=>{i.onerror=i.onload=null,clearTimeout(d);var s=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(a))),t)return t(a)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={57:0};o.f.j=(t,n)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=s);var r=o.p+o.u(t),i=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",i.name="ChunkLoadError",i.type=s,i.request=r,a[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,s,[r,i,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);l&&l(o)}for(t&&t(n);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkpattern_css=globalThis.webpackChunkpattern_css||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.hooks;var t=o(609);const n=window.wp.blockEditor,a=window.wp.components,s=window.wp.element,r=window.wp.data,i=window.wp.escapeHtml,l=window.wp.i18n,c=window.wp.htmlEntities;var u=o(69),p=o.n(u),h=o(486),d=o(217),m="/";const g=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var f,y,_,b,v=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(v||{});class w{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=w.getLanguageId(e),n=w.getTokenType(e),a=w.getFontStyle(e),s=w.getForeground(e),r=w.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:s,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return!!(1024&e)}static set(e,t,n,a,s,r){let o=w.getLanguageId(e),i=w.getTokenType(e),l=w.getFontStyle(e),c=w.getForeground(e),u=w.getBackground(e);return 0!==t&&(o=t),0!==n&&(i=8===n?0:n),-1!==a&&(l=a),0!==s&&(c=s),0!==r&&(u=r),(o|i<<8|l<<11|(w.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function k(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function N(e){return e.startsWith("./")?e.slice(2):e}function S(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function L(...e){return e.map(k).map(N).join("/")}function P(e){return 32===e||9===e}function C(e){return 10===e||13===e}function j(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(f||(f={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(y||(y={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(_||(_={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(b||(b={}));const x=function(e,t=[],n=y.DEFAULT){let a=null,s=[];const r=[];function o(e){Array.isArray(s)?s.push(e):null!==a&&(s[a]=e)}return function(e,t,n=y.DEFAULT){const a=function(e,t=!1){const n=e.length;let a=0,s="",r=0,o=16,i=0,l=0,c=0,u=0,p=0;function h(t,n){let s=0,r=0;for(;s<t||!n;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,s++}return s<t&&(r=-1),r}function d(){if(s="",p=0,r=a,l=i,u=c,a>=n)return r=n,o=17;let t=e.charCodeAt(a);if(P(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(P(t));return o=15}if(C(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),i++,c=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,s=function(){let t="",s=a;for(;;){if(a>=n){t+=e.substring(s,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(s,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(C(r)){t+=e.substring(s,a),p=2;break}p=6}a++}else{if(t+=e.substring(s,a),a++,a>=n){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}s=a}}return t}(),o=10;case 47:const l=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<n&&!C(e.charCodeAt(a));)a++;return s=e.substring(l,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=n-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,C(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,c=a)}return r||(a++,p=1),s=e.substring(l,a),o=13}return s+=String.fromCharCode(t),a++,o=16;case 45:if(s+=String.fromCharCode(t),a++,a===n||!j(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&j(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&j(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&j(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&j(e.charCodeAt(a))){for(a++;a<e.length&&j(e.charCodeAt(a));)a++;n=a}else p=3;return e.substring(t,n)}(),o=11;default:for(;a<n&&m(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(s=e.substring(r,a),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(t),a++,o=16}}function m(e){if(P(e)||C(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,s="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>l,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),s=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}const c=o(t.onObjectBegin),u=l(t.onObjectProperty),p=r(t.onObjectEnd),h=o(t.onArrayBegin),d=r(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=r(t.onComment),_=i(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function w(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:b||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:b?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function N(e){const t=a.getTokenValue();return e?m(t):(u(t),s.push(t)),w(),!0}function S(){switch(a.getToken()){case 3:return function(){h(),w();let e=!0,t=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&v)break}else t&&k(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||k(4,[],[4,5]),t=!0}return d(),e||s.pop(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&v)break}else e&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),!1):(N(!1),6===a.getToken()?(g(":"),w(),S()||k(4,[],[2,5])):k(5,[],[2,5]),s.pop(),!0))||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return N(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}w(),17===a.getToken()?!!n.allowEmptyContent||k(4,[],[]):S()?17!==a.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(s),s=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(s),s=e,a=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(e,n,a)=>{t.push({error:e,offset:n,length:a})}},n),s[0]};var A;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(A||(A={}));const T="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,E="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,R="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,O=T||!E&&!R;let I="",B="";let M=null;function G(e){if(O)return`${I}${e}`;{const t=o(485);return t.isAbsolute(e)?e:t.resolve(m,"..",e)}}async function F(e){const t=[],n=await async function(e){const t=G(e);if(O)return await fetch(t).then((e=>e.text()));{const e=o(673);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(n)}catch(e){if(a=x(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function D(e){const t=$(await F(e));if(t.include){const n=await D(L(...S(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function $(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...V(e)};var a;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(a=n).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),n}const U={light:"#333333",dark:"#bbbbbb"},W={light:"#fffffe",dark:"#1e1e1e"};function V(e){let t,n,a=e.settings?e.settings:e.tokenColors;const s=a?a.find((e=>!e.name&&!e.scope)):void 0;return s?.settings?.foreground&&(t=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?U.light:U.dark),n||(n="light"===e.type?W.light:W.dark),{fg:t,bg:n}}class q{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await F(e)}(g.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function z(e,t){let n=[];for(let a=0,s=t.length;a<s;a++){let s=t.slice(0,a),r=t[a];n[a]={scopeName:r,themeMatches:J(e,r,s)}}return n}function H(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function K(e,t,n,a){if(!H(e,n))return!1;let s=t.length-1,r=a.length-1;for(;s>=0&&r>=0;)H(t[s],a[r])&&s--,r--;return-1===s}function J(e,t,n){let a=[],s=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);K(l[l.length-1],l.slice(0,l.length-1),t,n)&&(a[s++]=i,e=r)}}return a}var Q=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],X={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Y(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)X[a]&&t.push({type:"setDecoration",value:X[a]});else if(a<=29){const e=X[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-30]}});else if(38===a){const n=Z(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-40]}});else if(48===a){const n=Z(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-100+8]}})}return t}var te={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ne(e=te){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return s=e.index,function(){if(a)return a;a=[];for(let e=0;e<Q.length;e++)a.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)a.push(n([e[t],e[s],e[r]]));let s=8;for(let e=0;e<24;e++,s+=10)a.push(n([s,s,s]));return a}()[s]}var s}}}const ae={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function se(e,t={}){const n=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),s=t.elements||{};function r(e="",t={},n){const a=s[e]||ae[e];return a?(n=n.filter(Boolean),a({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",r("code",{},e.map(((n,s)=>{const o=s+1;return r("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:n,index:s},n.map(((e,a)=>{const s=[`color: ${e.color||t.fg}`];return e.fontStyle&v.Italic&&s.push("font-style: italic"),e.fontStyle&v.Bold&&s.push("font-weight: bold"),e.fontStyle&v.Underline&&s.push("text-decoration: underline"),r("token",{style:s.join("; "),tokens:n,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>re[e])))]);var o})))})))])}const re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class oe extends d.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=g.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await D(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=$(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ie(e){return"string"==typeof e?g.find((t=>t.id===e||t.aliases?.includes(e))):e}async function le(e){const{_languages:t,_themes:n,_wasmPath:a}=function(e){let t=g,n=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(ie)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:a}}(e),s=new q(async function(e){if(!M){let t;if(O)t="string"==typeof B?(0,h.loadWASM)({data:await fetch(G(L(...S(e),"onig.wasm")))}):(0,h.loadWASM)({data:B});else{const e=o(485).join(486,"../onig.wasm"),n=o(673).readFileSync(e).buffer;t=(0,h.loadWASM)(n)}M=t.then((()=>({createOnigScanner:e=>(0,h.createOnigScanner)(e),createOnigString:e=>(0,h.createOnigString)(e)})))}return M}(a),"vscode-oniguruma"),r=new oe(s);e.paths?.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(s.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await r.loadThemes(n))[0];let l;await r.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<Q.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,a=Q[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${a})`}return e}();function u(e){const t=e?r.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(r.setTheme(t),l=t);const n=r.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:s}=function(e){const t=r.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,a,s){let r=n.split(/\r\n|\r|\n/),o=d.INITIAL,i=[],l=[];for(let n=0,c=r.length;n<c;n++){let c,u,p,h=r[n];if(""===h){i=[],l.push([]);continue}s.includeExplanation&&(c=a.tokenizeLine(h,o),u=c.tokens,p=0);let d=a.tokenizeLine2(h,o),m=d.tokens.length/2;for(let n=0;n<m;n++){let a=d.tokens[2*n],r=n+1<m?d.tokens[2*n+2]:h.length;if(a===r)continue;let o=d.tokens[2*n+1],l=t[w.getForeground(o)],c=w.getFontStyle(o),g=[];if(s.includeExplanation){let t=0;for(;a+t<r;){let n=u[p],a=h.substring(n.startIndex,n.endIndex);t+=a.length,g.push({content:a,scopes:z(e,n.scopes)}),p++}}i.push({content:h.substring(a,r),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],o=d.ruleStack}return l}(o,i,e,s,a)}function m(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),a=ne(Object.fromEntries(Q.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(a){const s=[];let r=0;do{const o=Y(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const a=ee(o.sequence);for(const s of a)"resetAll"===s.type?(e=null,t=null,n.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?t=null:"resetDecoration"===s.type&&n.delete(s.value);for(const s of a)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?t=s.value:"setDecoration"===s.type&&n.add(s.value)}r=o.position}while(r<a.length);return s}}}();return n.map((t=>s.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let s=v.None;return t.decorations.has("bold")&&(s|=v.Bold),t.decorations.has("italic")&&(s|=v.Italic),t.decorations.has("underline")&&(s|=v.Underline),{content:t.value,color:n,fontStyle:s}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let a;a="object"==typeof t?t:{lang:t,theme:n};const s=p(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=u(a.theme);return se(s,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:m,ansiToHtml:function(e,t){const n=m(e,t?.theme),{_theme:a}=u(t?.theme);return se(n,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await r.loadTheme(e)},loadLanguage:async function(e){const t=ie(e);s.addLanguage(t),await r.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return r.getLoadedThemes()},getLoadedLanguages:function(){return r.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var ce=o(888);const ue=()=>{},pe=ue(),he=Object,de=e=>e===pe,me=e=>"function"==typeof e,ge=(e,t)=>({...e,...t}),fe=new WeakMap;let ye=0;const _e=e=>{const t=typeof e,n=e&&e.constructor,a=n==Date;let s,r;if(he(e)!==e||a||n==RegExp)s=a?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=fe.get(e),s)return s;if(s=++ye+"~",fe.set(e,s),n==Array){for(s="@",r=0;r<e.length;r++)s+=_e(e[r])+",";fe.set(e,s)}if(n==he){s="#";const t=he.keys(e).sort();for(;!de(r=t.pop());)de(e[r])||(s+=r+":"+_e(e[r])+",");fe.set(e,s)}}return s},be=new WeakMap,ve={},we={},ke="undefined",Ne=typeof window!=ke,Se=typeof document!=ke,Le=(e,t)=>{const n=be.get(e);return[()=>!de(t)&&e.get(t)||ve,a=>{if(!de(t)){const s=e.get(t);t in we||(we[t]=s),n[5](t,ge(s,a),s||ve)}},n[6],()=>!de(t)&&t in we?we[t]:!de(t)&&e.get(t)||ve]};let Pe=!0;const[Ce,je]=Ne&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],xe={isOnline:()=>Pe,isVisible:()=>{const e=Se&&document.visibilityState;return de(e)||"hidden"!==e}},Ae={initFocus:e=>(Se&&document.addEventListener("visibilitychange",e),Ce("focus",e),()=>{Se&&document.removeEventListener("visibilitychange",e),je("focus",e)}),initReconnect:e=>{const t=()=>{Pe=!0,e()},n=()=>{Pe=!1};return Ce("online",t),Ce("offline",n),()=>{je("online",t),je("offline",n)}}},Te=!t.useId,Ee=!Ne||"Deno"in window,Re=Ee?t.useEffect:t.useLayoutEffect,Oe="undefined"!=typeof navigator&&navigator.connection,Ie=!Ee&&Oe&&(["slow-2g","2g"].includes(Oe.effectiveType)||Oe.saveData),Be=e=>{if(me(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_e(e):"",t]};let Me=0;const Ge=()=>++Me;async function Fe(...e){const[t,n,a,s]=e,r=ge({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let o=r.populateCache;const i=r.rollbackOnError;let l=r.optimisticData;const c=r.throwOnError;if(me(n)){const e=n,a=[],s=t.keys();for(const n of s)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&a.push(n);return Promise.all(a.map(u))}return u(n);async function u(n){const[s]=Be(n);if(!s)return;const[u,p]=Le(t,s),[h,d,m,g]=be.get(t),f=()=>{const e=h[s];return(me(r.revalidate)?r.revalidate(u().data,n):!1!==r.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return f();let y,_=a;const b=Ge();d[s]=[b,0];const v=!de(l),w=u(),k=w.data,N=w._c,S=de(N)?k:N;if(v&&(l=me(l)?l(S,k):l,p({data:l,_c:S})),me(_))try{_=_(S)}catch(e){y=e}if(_&&me(_.then)){if(_=await _.catch((e=>{y=e})),b!==d[s][0]){if(y)throw y;return _}y&&v&&(e=>"function"==typeof i?i(e):!1!==i)(y)&&(o=!0,p({data:S,_c:pe}))}if(o&&!y)if(me(o)){const e=o(_,S);p({data:e,error:pe,_c:pe})}else p({data:_,error:pe,_c:pe});if(d[s][1]=Ge(),Promise.resolve(f()).then((()=>{p({_c:pe})})),!y)return _;if(c)throw y}}const De=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$e=(e,t)=>{if(!be.has(e)){const n=ge(Ae,t),a={},s=Fe.bind(pe,e);let r=ue;const o={},i=(e,t)=>{const n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,a)=>{e.set(t,n);const s=o[t];if(s)for(const e of s)e(n,a)},c=()=>{if(!be.has(e)&&(be.set(e,[a,{},{},{},s,l,i]),!Ee)){const t=n.initFocus(setTimeout.bind(pe,De.bind(pe,a,0))),s=n.initReconnect(setTimeout.bind(pe,De.bind(pe,a,1)));r=()=>{t&&t(),s&&s(),be.delete(e)}}};return c(),[e,s,c,r]}return[e,be.get(e)[4]]},[Ue,We]=$e(new Map),Ve=ge({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:(e,__,t,n,a)=>{const s=t.errorRetryCount,r=a.retryCount,o=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!de(s)&&r>s||setTimeout(n,o,a)},onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ie?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ie?5e3:3e3,compare:(e,t)=>_e(e)==_e(t),isPaused:()=>!1,cache:Ue,mutate:We,fallback:{}},xe),qe=(e,t)=>{const n=ge(e,t);if(t){const{use:a,fallback:s}=e,{use:r,fallback:o}=t;a&&r&&(n.use=a.concat(r)),s&&o&&(n.fallback=ge(s,o))}return n},ze=(0,t.createContext)({}),He=Ne&&window.__SWR_DEVTOOLS_USE__,Ke=He?window.__SWR_DEVTOOLS_USE__:[],Je=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Qe=Ke.concat((e=>(t,n,a)=>e(t,n&&((...e)=>{const[a]=Be(t),[,,,s]=be.get(Ue);if(a.startsWith("$inf$"))return n(...e);const r=s[a];return de(r)?n(...e):(delete s[a],r)}),a)));He&&(window.__SWR_DEVTOOLS_REACT__=t);const Xe=t.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ye={dedupe:!0};he.defineProperty((e=>{const{value:n}=e,a=(0,t.useContext)(ze),s=me(n),r=(0,t.useMemo)((()=>s?n(a):n),[s,a,n]),o=(0,t.useMemo)((()=>s?r:qe(a,r)),[s,a,r]),i=r&&r.provider,l=(0,t.useRef)(pe);i&&!l.current&&(l.current=$e(i(o.cache||Ue),r));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),Re((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,t.createElement)(ze.Provider,ge(e,{value:o}))}),"defaultValue",{value:Ve});const Ze=(et=(e,n,a)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:d}=a,[m,g,f,y]=be.get(s),[_,b]=Be(e),v=(0,t.useRef)(!1),w=(0,t.useRef)(!1),k=(0,t.useRef)(_),N=(0,t.useRef)(n),S=(0,t.useRef)(a),L=()=>S.current,P=()=>L().isVisible()&&L().isOnline(),[C,j,x,A]=Le(s,_),T=(0,t.useRef)({}).current,E=de(i)?a.fallback[_]:i,R=(e,t)=>{for(const n in T){const a=n;if("data"===a){if(!r(e[a],t[a])){if(!de(e[a]))return!1;if(!r(U,t[a]))return!1}}else if(t[a]!==e[a])return!1}return!0},O=(0,t.useMemo)((()=>{const e=!!_&&!!n&&(de(l)?!L().isPaused()&&!o&&(!!de(c)||c):l),t=t=>{const n=ge(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},a=C(),s=A(),r=t(a),i=a===s?r:t(s);let u=r;return[()=>{const e=t(C());return R(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[s,_]),I=(0,ce.useSyncExternalStore)((0,t.useCallback)((e=>x(_,((t,n)=>{R(n,t)||e()}))),[s,_]),O[0],O[1]),B=!v.current,M=m[_]&&m[_].length>0,G=I.data,F=de(G)?E:G,D=I.error,$=(0,t.useRef)(F),U=d?de(G)?$.current:G:F,W=!(M&&!de(D))&&(B&&!de(l)?l:!L().isPaused()&&(o?!de(F)&&c:de(F)||c)),V=!!(_&&n&&B&&W),q=de(I.isValidating)?V:I.isValidating,z=de(I.isLoading)?V:I.isLoading,H=(0,t.useCallback)((async e=>{const t=N.current;if(!_||!t||w.current||L().isPaused())return!1;let n,s,o=!0;const i=e||{},l=!f[_]||!i.dedupe,c=()=>Te?!w.current&&_===k.current&&v.current:_===k.current,u={isValidating:!1,isLoading:!1},p=()=>{j(u)},h=()=>{const e=f[_];e&&e[1]===s&&delete f[_]},d={isValidating:!0};de(C().data)&&(d.isLoading=!0);try{if(l&&(j(d),a.loadingTimeout&&de(C().data)&&setTimeout((()=>{o&&c()&&L().onLoadingSlow(_,a)}),a.loadingTimeout),f[_]=[t(b),Ge()]),[n,s]=f[_],n=await n,l&&setTimeout(h,a.dedupingInterval),!f[_]||f[_][1]!==s)return l&&c()&&L().onDiscarded(_),!1;u.error=pe;const e=g[_];if(!de(e)&&(s<=e[0]||s<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(_),!1;const i=C().data;u.data=r(i,n)?i:n,l&&c()&&L().onSuccess(n,_,a)}catch(e){h();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||me(n)&&n(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!P()||t.onErrorRetry(e,_,t,(e=>{const t=m[_];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return o=!1,p(),!0}),[_,s]),K=(0,t.useCallback)(((...e)=>Fe(s,k.current,...e)),[]);if(Re((()=>{N.current=n,S.current=a,de(G)||($.current=G)})),Re((()=>{if(!_)return;const e=H.bind(pe,Ye);let t=0;const n=((e,t,n)=>{const a=t[e]||(t[e]=[]);return a.push(n),()=>{const e=a.indexOf(n);e>=0&&(a[e]=a[a.length-1],a.pop())}})(_,m,((n,a={})=>{if(0==n){const n=Date.now();L().revalidateOnFocus&&n>t&&P()&&(t=n+L().focusThrottleInterval,e())}else if(1==n)L().revalidateOnReconnect&&P()&&e();else{if(2==n)return H();if(3==n)return H(a)}}));return w.current=!1,k.current=_,v.current=!0,j({_k:b}),W&&(de(F)||Ee?e():(a=e,Ne&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(a):setTimeout(a,1))),()=>{w.current=!0,n()};var a}),[_]),Re((()=>{let e;function t(){const t=me(u)?u(C().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){C().error||!p&&!L().isVisible()||!h&&!L().isOnline()?t():H(Ye).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,h,_]),(0,t.useDebugValue)(U),o&&de(F)&&_){if(!Te&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,S.current=a,w.current=!1;const e=y[_];if(!de(e)){const t=K(e);Xe(t)}if(!de(D))throw D;{const e=H(Ye);de(U)||(e.status="fulfilled",e.value=!0),Xe(e)}}return{mutate:K,get data(){return T.data=!0,U},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,q},get isLoading(){return T.isLoading=!0,z}}},function(...e){const n=ge(Ve,(0,t.useContext)(ze)),[a,s,r]=Je(e),o=qe(n,r);let i=et;const{use:l}=o,c=(l||[]).concat(Qe);for(let e=c.length;e--;)i=c[e](i);return i(a,s||o.fetcher||null,o)});var et;const tt=((e,t)=>(...n)=>{const[a,s,r]=Je(n),o=(r.use||[]).concat(t);return e(a,s,{...r,use:o})})(Ze,(e=>(t,n,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,n,a)))),nt=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;return le({langs:[t],theme:e})};let at=!1;const st=({theme:e,lang:t,ready:n=!0})=>{const[a,r]=(0,s.useState)(!1);var o;at||(at=!0,o=window.patternCss?.pluginUrl+"build/shiki/",I=o.endsWith("/")?o:o+"/");const{data:i,error:l}=tt({theme:e,lang:t,ready:n&&a},nt);return(0,s.useEffect)((()=>{const e=window.patternCss?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{B=e,r(!0)}))}),[]),{highlighter:i,error:l,loading:!i&&!l||!a}},rt=(0,s.forwardRef)(((e,n)=>{var a,r;const o=(0,s.useRef)(null),{value:i,onChange:l,onFocus:u,onBlur:h,lineOptions:d=[],...m}=e,{highlighter:g,error:f,loading:y}=st({theme:"light-plus",lang:"css"});return y?null:f?(0,t.createElement)("p",null,f.message):(0,t.createElement)("div",{ref:o},(0,t.createElement)(p(),{ref:n,value:(0,c.decodeEntities)(i),className:"font-jetbrains-mono border border-solid border-gray-600 wp-focus",onValueChange:l,...m,padding:{top:6,bottom:6,left:8,right:8},style:{minHeight:300,backgroundColor:null!==(a=g?.getBackgroundColor())&&void 0!==a?a:"#fff",color:null!==(r=g?.getForegroundColor())&&void 0!==r?r:"#000"},onKeyDown:e=>"Tab"===e.key&&o.current?.querySelector("textarea")?.focus(),onFocus:u,onBlur:h,highlight:e=>g?.codeToHtml((0,c.decodeEntities)(e),{lang:"css",lineOptions:d})?.replace(/<\/?[pre|code][^>]*>/g,"")}))})),ot=({handleChange:e,editorWrapperRef:n})=>(0,t.createElement)("div",{className:"flex gap-1 absolute top-px right-px"},(0,t.createElement)(a.Tooltip,{text:(0,l.__)("Clear CSS","pattern-css")},(0,t.createElement)(a.Button,{icon:"no-alt",size:"small",onClick:()=>{e(""),n.current?.querySelector("textarea")?.focus()},className:"text-gray-600 wp-focus gap-0 p-1"},(0,t.createElement)("span",{className:"sr-only"},(0,l.__)("Clear CSS","pattern-css"))))),it=window.wp.editor,lt=(e,t)=>[...new Set([...e.filter((e=>!e.startsWith("pcss-"))),t].filter(Boolean))].join(" "),ct=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],ut=[];class pt{scopes=[];referenceId=1;references=new Map;wrappedObjects=new WeakMap;externalObjects=new WeakMap;buffers=new Map;instanceData=0;pendingException=null;constructor(e){this.id=ut.length,ut.push(this),this.instance=e,this.table=e.exports.__indirect_function_table,this.exports={},this.pushScope();let t=this.scopes[this.scopes.length-1],n=t.length;t.push(this.exports);try{this.instance.exports.napi_register_module_v1(this.id,n),this.instance.exports.napi_register_wasm_v1&&this.instance.exports.napi_register_wasm_v1(this.id,n)}finally{if(this.popScope(),this.pendingException){let e=this.pendingException;throw this.pendingException=null,e}}}destroy(){ut[this.id]=void 0}getString(e,t=function(e,t){let n=0;for(;0!==e[t];)n++,t++;return n}(this.memory,e)){return ht.decode(this.memory.subarray(e,e+t))}pushScope(){let e=this.scopes.length;return this.scopes.push([void 0,null,globalThis,!0,!1]),e}popScope(){this.scopes.pop();for(let[e,t]of this.buffers)e.byteLength&&t.byteLength&&e.set(t);this.buffers.clear()}get(e){return this.scopes[this.scopes.length-1][e]}set(e,t){this.scopes[this.scopes.length-1][e]=t}pushValue(e){let t=this.scopes[this.scopes.length-1],n=t.length;return t.push(e),n}createValue(e,t){if("boolean"==typeof e)return this.setPointer(t,e?3:4),0;if(void 0===e)return this.setPointer(t,0),0;if(null===e)return this.setPointer(t,1),0;if(e===globalThis)return this.setPointer(t,2),0;let n=this.pushValue(e);return this.setPointer(t,n),0}setPointer(e,t){return this.u32[e>>2]=t,0}_u32=new Uint32Array;get u32(){return 0===this._u32.byteLength&&(this._u32=new Uint32Array(this.instance.exports.memory.buffer)),this._u32}_i32=new Int32Array;get i32(){return 0===this._i32.byteLength&&(this._i32=new Int32Array(this.instance.exports.memory.buffer)),this._i32}_u16=new Uint16Array;get u16(){return 0===this._u16.byteLength&&(this._u16=new Uint16Array(this.instance.exports.memory.buffer)),this._u16}_u64=new BigUint64Array;get u64(){return 0===this._u64.byteLength&&(this._u64=new BigUint64Array(this.instance.exports.memory.buffer)),this._u64}_i64=new BigInt64Array;get i64(){return 0===this._i64.byteLength&&(this._i64=new BigInt64Array(this.instance.exports.memory.buffer)),this._i64}_f64=new Float64Array;get f64(){return 0===this._f64.byteLength&&(this._f64=new Float64Array(this.instance.exports.memory.buffer)),this._f64}_buf=new Uint8Array;get memory(){return 0===this._buf.byteLength&&(this._buf=new Uint8Array(this.instance.exports.memory.buffer)),this._buf}getBufferInfo(e,t){if(this.buffers.has(e)){let n=this.buffers.get(e);return this.setPointer(t,n.byteOffset),n.byteLength}if(e instanceof ArrayBuffer){let n=this.copyBuffer(new Uint8Array(e));return this.setPointer(t,n.byteOffset),n.byteLength}if(e.buffer===this.instance.exports.memory.buffer)return this.setPointer(t,e.byteOffset),e.byteLength;let n=this.copyBuffer(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return this.setPointer(t,n.byteOffset),n.byteLength}copyBuffer(e){let t=this.instance.exports.napi_wasm_malloc(e.byteLength),n=this.memory;n.set(e,t);let a=n.subarray(t,t+e.byteLength);return this.buffers.set(e,a),a}createFunction(e,t){let n=this,a=n.table.get(e);return function(...e){let s=n.pushScope();try{let r=n.scopes[s],o=r.length;r.push({thisArg:this,args:e,data:t,newTarget:new.target});let i=a(n.id,o);return n.get(i)}finally{if(n.popScope(),n.pendingException){let e=n.pendingException;throw n.pendingException=null,e}}}}readPropertyDescriptor(e){let t=this.u32,n=t[e++],a=t[e++],s=t[e++],r=t[e++],o=t[e++],i=t[e++],l=t[e++],c=t[e++],u=n?this.getString(n):this.get(a),p=Boolean(1&l),h=Boolean(2&l),d=Boolean(4&l),m=Boolean(1024&l),g=r?this.createFunction(r,c):void 0,f=o?this.createFunction(o,c):void 0,y=s?this.createFunction(s,c):i?this.get(i):void 0,_={name:u,static:m,configurable:d,enumerable:h};return g||f?(_.get=g,_.set=f):y&&(_.writable=p,_.value=y),_}}const ht=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),dt=new TextDecoder("latin1"),mt=new TextDecoder("utf-16"),gt=new TextEncoder;class ft{constructor(e,t,n,a){this.env=e,this.finalize=t,this.hint=n,this.data=a}}const yt=new FinalizationRegistry((e=>{e.finalize&&e.finalize(e.env,e.data,e.hint)}));class _t{}const bt=[];class vt{constructor(e,t,n,a){this.env=e,this.fn=t,this.nativeFn=n,this.context=a,this.id=bt.length,bt.push(this)}}const wt={napi_open_handle_scope(e,t){let n=ut[e],a=n.pushScope();return n.setPointer(t,a)},napi_close_handle_scope(e,t){let n=ut[e];return t!==n.scopes.length-1?13:(n.popScope(),0)},napi_open_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_close_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_escape_handle(e,t,n,a){throw new Error("not implemented")},napi_create_object:(e,t)=>ut[e].createValue({},t),napi_set_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=s.get(a);return r[o]=i,0},napi_get_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.createValue(r[o],a)},napi_delete_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=!1;try{i=delete r[o]}catch(e){}return a&&(s.memory[a]=i?1:0),0},napi_has_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=o in r?1:0,0},napi_has_own_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r.hasOwnProperty(o)?1:0,0},napi_set_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[s.getString(n)]=o,0},napi_get_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.createValue(r[o],a)},napi_has_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.memory[a]=o in r?1:0,0},napi_get_property_names(e,t,n){let a=ut[e],s=a.get(t),r=Object.keys(s);return a.createValue(r,n)},napi_get_all_property_names(e,t,n,a,s,r){throw new Error("not implemented")},napi_define_properties(e,t,n,a){let s=ut[e],r=s.get(t),o=a>>2;for(let e=0;e<n;e++){let e=s.readPropertyDescriptor(o);Object.defineProperty(r,e.name,e),o+=8}return 0},napi_object_freeze(e,t){let n=ut[e].get(t);return Object.freeze(n),0},napi_object_seal(e,t){let n=ut[e].get(t);return Object.seal(n),0},napi_get_prototype(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Object.getPrototypeOf(s),n)},napi_define_class(e,t,n,a,s,r,o,i){let l=ut[e],c=l.createFunction(a,s);Object.defineProperty(c,"name",{value:l.getString(t,n),configurable:!0});let u=o>>2;for(let e=0;e<r;e++){let e=l.readPropertyDescriptor(u);e.static?Object.defineProperty(c,e.name,e):Object.defineProperty(c.prototype,e.name,e),u+=8}return l.createValue(c,i)},napi_create_reference(e,t,n,a){let s=ut[e],r=s.referenceId++;return s.references.set(r,{value:s.get(t),refcount:n}),s.setPointer(a,r)},napi_delete_reference:(e,t)=>(ut[e].references.delete(t),0),napi_get_reference_value(e,t,n){let a=ut[e],s=a.references.get(t);return a.createValue(s.value,n)},napi_reference_ref(e,t,n){let a=ut[e],s=a.references.get(t);return s.refcount++,a.setPointer(n,s.refcount)},napi_reference_unref(e,t,n){let a=ut[e],s=a.references.get(t);return 0===s.refcount?9:(s.refcount--,a.setPointer(n,s.refcount))},napi_add_env_cleanup_hook:()=>0,napi_remove_env_cleanup_hook:()=>0,napi_add_async_cleanup_hook:()=>0,napi_remove_async_cleanup_hook:()=>0,napi_set_instance_data:(e,t,n,a)=>(ut[e].instanceData=t,0),napi_get_instance_data(e,t){let n=ut[e];return n.setPointer(t,n.instanceData)},napi_get_boolean:(e,t,n)=>ut[e].setPointer(n,t?3:4),napi_get_value_bool(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s?1:0,0},napi_create_int32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_int32(e,t,n){let a=ut[e],s=a.get(t);return a.i32[n>>2]=s,0},napi_create_uint32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_uint32(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s)},napi_create_int64:(e,t,n)=>ut[e].createValue(Number(t),n),napi_get_value_int64(e,t,n){let a=ut[e],s=a.get(t);return a.i64[n>>3]=s,0},napi_create_double:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_double(e,t,n){let a=ut[e],s=a.get(t);return a.f64[n>>3]=s,0},napi_create_bigint_int64:(e,t,n)=>ut[e].createValue(BigInt.asIntN(64,t),n),napi_get_value_bigint_int64(e,t,n,a){let s=ut[e],r=s.get(t);return s.i64[n>>3]=r,a&&(s.memory[a]=BigInt.asIntN(64,r)===r?1:0),0},napi_create_bigint_uint64:(e,t,n)=>ut[e].createValue(BigInt.asUintN(64,t),n),napi_get_value_bigint_uint64(e,t,n,a){let s=ut[e],r=s.get(t);return s.u64[n>>3]=r,a&&(s.memory[a]=BigInt.asUintN(64,r)===r?1:0),0},napi_create_bigint_words(e,t,n,a,s){let r=ut[e],o=r.u64,i=a>>3,l=0n,c=0n;for(let e=0;e<n;e++)l+=o[i++]<<c,c+=64n;return l*=BigInt((-1)**t),r.createValue(l,s)},napi_get_value_bigint_words(e,t,n,a,s){let r=ut[e],o=r.get(t),i=r.u32[a>>2];n&&(r.i32[n]=o<0n?1:0);let l=0;if(s){let e=(1n<<64n)-1n,t=r.u64,n=s>>3;for(o<0n&&(o=-o);l<i&&0n!==o;l++)t[n++]=o&e,o>>=64n}for(;o>0n;)l++,o>>=64n;return r.setPointer(a,l)},napi_get_null:(e,t)=>ut[e].setPointer(t,1),napi_create_array:(e,t)=>ut[e].createValue([],t),napi_create_array_with_length:(e,t,n)=>ut[e].createValue(new Array(t),n),napi_set_element(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[n]=o,0},napi_get_element(e,t,n,a){let s=ut[e],r=s.get(t)[n];return s.createValue(r,a)},napi_has_element(e,t,n,a){let s=ut[e],r=s.get(t);return s.memory[a]=r.hasOwnProperty(n)?1:0,0},napi_delete_element(e,t,n,a){let s=ut[e],r=s.get(t),o=!1;try{o=delete r[n]}catch(e){}return a&&(s.memory[a]=o?1:0),0},napi_get_array_length(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s.length)},napi_get_undefined:(e,t)=>ut[e].setPointer(t,0),napi_create_function(e,t,n,a,s,r){let o=ut[e],i=o.createFunction(a,s);return Object.defineProperty(i,"name",{value:o.getString(t,n),configurable:!0}),o.createValue(i,r)},napi_call_function(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.get(n),c=new Array(a),u=o.u32;for(let e=0;e<a;e++)c[e]=o.get(u[s>>2]),s+=4;try{let e=l.apply(i,c);return o.createValue(e,r)}catch(e){return o.pendingException=e,10}},napi_new_instance(e,t,n,a,s){let r=ut[e],o=r.get(t),i=new Array(n),l=r.u32;for(let e=0;e<n;e++)i[e]=r.get(l[a>>2]),a+=4;try{let e=new o(...i);return r.createValue(e,s)}catch(e){return r.pendingException=e,10}},napi_get_cb_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);o.setPointer(n,i.args.length);for(let e=0;e<i.args.length;e++)o.createValue(i.args[e],a),a+=4;return o.createValue(i.thisArg,s),o.setPointer(r,i.data),0},napi_get_new_target(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(s.newTarget,n)},napi_create_threadsafe_function(e,t,n,a,s,r,o,i,l,c,u){let p=ut[e],h=t?p.get(t):void 0,d=c?p.table.get(c):void 0,m=new vt(p,h,d,l);if(i){let t=p.table.get(i);yt.register(m,new ft(e,t,0,m.id))}return p.setPointer(u,m.id),0},napi_ref_threadsafe_function:()=>0,napi_unref_threadsafe_function:()=>0,napi_acquire_threadsafe_function:()=>0,napi_release_threadsafe_function:(e,t)=>(bt[e]=void 0,0),napi_call_threadsafe_function(e,t,n){let a=bt[e];a.env.pushScope();try{if(a.nativeFn){let e=a.fn?a.env.pushValue(a.fn):0;a.nativeFn(a.env.id,e,a.context,t)}else a.fn&&a.fn()}finally{a.env.popScope()}},napi_get_threadsafe_function_context(e,t){let n=bt[e];return n.env.setPointer(t,n.context),0},napi_throw(e,t){let n=ut[e];return n.pendingException=n.get(t),0},napi_throw_error(e,t,n){let a=ut[e],s=new Error(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_type_error(e,t,n){let a=ut[e],s=new TypeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_range_error(e,t,n){let a=ut[e],s=new RangeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_create_error(e,t,n,a){let s=ut[e],r=new Error(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_type_error(e,t,n,a){let s=ut[e],r=new TypeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_range_error(e,t,n,a){let s=ut[e],r=new RangeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_get_and_clear_last_exception(e,t){let n=ut[e],a=n.pendingException;return n.pendingException=null,n.createValue(a,t)},napi_is_exception_pending(e,t){let n=ut[e];return n.memory[t]=n.pendingException?1:0,0},napi_fatal_exception(e,t){throw new Error("not implemented")},napi_fatal_error(e,t,n,a){throw new Error("not implemented")},napi_get_global:(e,t)=>ut[e].setPointer(t,2),napi_create_buffer(e,t,n,a){let s=ut[e],r=s.instance.exports.napi_wasm_malloc(t);n&&s.setPointer(n,r);let o=void 0!==globalThis.Buffer?globalThis.Buffer.from(s.memory.buffer,r,t):s.memory.subarray(r,r+t);return s.createValue(o,a)},napi_create_buffer_copy(e,t,n,a,s){let r=ut[e],o=r.instance.exports.napi_wasm_malloc(t);r.memory.set(r.memory.subarray(n,n+t),o),a&&r.setPointer(a,o);let i=void 0!==globalThis.Buffer?globalThis.Buffer.from(r.memory.buffer,o,t):buf;return r.createValue(i,s)},napi_create_external_buffer(e,t,n,a,s,r){let o=ut[e],i=void 0!==globalThis.Buffer?globalThis.Buffer.from(o.memory.buffer,n,t):o.memory.subarray(n,n+t);if(a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return o.createValue(i,r)},napi_get_buffer_info(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getBufferInfo(r,n);return s.setPointer(a,o)},napi_create_arraybuffer(e,t,n,a){let s=ut[e],r=new ArrayBuffer(t);return n&&s.getBufferInfo(r,ptr),s.createValue(r,a)},napi_create_external_arraybuffer:(e,t,n,a,s,r)=>22,napi_get_arraybuffer_info(e,t,n,a){let s=ut[e],r=s.getBufferInfo(s.get(t),n);return s.setPointer(a,r)},napi_detach_arraybuffer(e,t){let n=ut[e].get(t);return"function"==typeof structuredClone&&structuredClone(n,{transfer:[n]}),0},napi_is_detached_arraybuffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=0===s.byteLength?1:0,0},napi_create_typedarray(e,t,n,a,s,r){let o=ut[e],i=new(0,ct[t])(o.get(a),s,n);return o.createValue(i,r)},napi_create_dataview(e,t,n,a,s){let r=ut[e],o=r.get(n),i=new DataView(o,a,t);return r.createValue(i,s)},napi_get_typedarray_info(e,t,n,a,s,r,o){let i=ut[e],l=i.get(t);return i.setPointer(n,ct.indexOf(l.constructor)),i.setPointer(a,l.length),i.getBufferInfo(l,s),i.createValue(l.buffer,r),i.setPointer(o,l.byteOffset)},napi_get_dataview_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);return o.setPointer(n,i.byteLength),o.getBufferInfo(i,a),o.createValue(i.buffer,s),o.setPointer(r,i.byteOffset)},napi_create_string_utf8(e,t,n,a){let s=ut[e],r=ht.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_utf8(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,function(e){let t=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319&&n<e.length-1){let t=e.charCodeAt(++n);56320==(64512&t)?a=((1023&a)<<10)+(1023&t)+65536:n--}4294967168&a?4294965248&a?4294901760&a?4292870144&a||(t+=4):t+=3:t+=2:t++}return t}(o));let i=gt.encodeInto(o,r.memory.subarray(n,n+a-1));return r.memory[n+i.written]=0,r.setPointer(s,i.written)},napi_create_string_latin1(e,t,n,a){let s=ut[e],r=dt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_latin1(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.memory,l=Math.min(o.length,a-1);for(let e=0;e<l;e++){let t=o.charCodeAt(e);i[n++]=t}return i[n]=0,r.setPointer(s,l)},napi_create_string_utf16(e,t,n,a){let s=ut[e],r=mt.decode(s.memory.subarray(t,t+2*n));return s.createValue(r,a)},napi_get_value_string_utf16(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.u16,l=n>>1,c=Math.min(o.length,a-1);for(let e=0;e<c;e++){let t=o.charCodeAt(e);i[l++]=t}return i[l]=0,r.setPointer(s,c)},napi_create_date:(e,t,n)=>ut[e].createValue(new Date(t),n),napi_get_date_value(e,t,n){let a=ut[e],s=a.get(t);a.f64[n>>3]=s.valueOf()},napi_create_symbol(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Symbol(s),n)},napi_coerce_to_bool(e,t,n){let a=ut[e];return a.createValue(Boolean(a.get(t)),n)},napi_coerce_to_number(e,t,n){let a=ut[e];return a.createValue(Number(a.get(t)),n)},napi_coerce_to_object(e,t,n){let a=ut[e];return a.createValue(Object(a.get(t)),n)},napi_coerce_to_string(e,t,n){let a=ut[e];return a.createValue(String(a.get(t)),n)},napi_typeof(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,(()=>{switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"number":return 3;case"string":return 4;case"symbol":return 5;case"object":return null===s?1:s instanceof _t?8:6;case"function":return 7;case"bigint":return 9}})())},napi_instanceof(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r instanceof o?1:0,0},napi_is_array(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=Array.isArray(s)?1:0,0},napi_is_buffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=(void 0!==globalThis.Buffer?globalThis.Buffer.isBuffer(s):s instanceof Uint8Array)?1:0,0},napi_is_date(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Date?1:0,0},napi_is_error(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Error?1:0,0},napi_is_typedarray(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=!ArrayBuffer.isView(s)||s instanceof DataView?0:1,0},napi_is_dataview(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof DataView?1:0,0},napi_strict_equals(e,t,n,a){let s=ut[e];return s.memory[a]=s.get(t)===s.get(n)?1:0,0},napi_wrap(e,t,n,a,s,r){let o=ut[e],i=o.get(t);if(o.wrappedObjects.set(i,n),a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return r?wt.napi_create_reference(e,t,1,r):0},napi_unwrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return a.setPointer(n,r),0},napi_remove_wrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return yt.unregister(s),a.wrappedObjects.delete(s),a.setPointer(n,r)},napi_type_tag_object(e,t,n){throw new Error("not implemented")},napi_check_object_type_tag(e,t,n){throw new Error("not implemented")},napi_add_finalizer(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.table.get(a);return yt.register(i,new ft(e,l,s,n)),r?wt.napi_create_reference(e,t,1,r):0},napi_create_promise(e,t,n){let a=ut[e],s=new Promise(((e,n)=>{a.createValue({resolve:e,reject:n},t)}));return a.createValue(s,n)},napi_resolve_deferred(e,t,n){let a=ut[e],{resolve:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_reject_deferred(e,t,n){let a=ut[e],{reject:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_is_promise(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Promise?1:0,0},napi_run_script(e,t,n){let a=ut[e],s=a.get(t),r=(0,eval)(s);return a.createValue(r,n)},napi_create_external(e,t,n,a,s){let r=ut[e],o=new _t;if(r.externalObjects.set(o,t),n){let s=r.table.get(n);yt.register(o,new ft(e,s,a,t))}return r.createValue(o,s)},napi_get_value_external(e,t,n){let a=ut[e],s=a.get(t),r=a.externalObjects.get(s);return a.setPointer(n,r)},napi_adjust_external_memory:()=>0};let kt;function Nt(e,t,n){kt(e,t,n)}const St=0,Lt=1,Pt=2;let Ct,jt,xt;function At(e){return Ct.transform(e)}(async function(e){if(Ct)return;if(jt)return void await jt;let t;("string"==typeof(e=e??new URL(o(229),o.b))||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=async function(e){try{return(await o.e(996).then(o.t.bind(o,996,19))).readFileSync(e)}catch{return fetch(e)}}(e)),jt=e.then((e=>async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(e,{env:{...wt,await_promise_sync:Nt,__getrandom_custom:(e,n)=>{let a=t.memory.subarray(e,e+n);crypto.getRandomValues(a)}}}))).then((({instance:e})=>{e.exports.register_module(),t=new pt(e),xt=function(e){let t,n,a,{instance:s,exports:r}=e,{asyncify_get_state:o,asyncify_start_unwind:i,asyncify_stop_unwind:l,asyncify_start_rewind:c,asyncify_stop_rewind:u}=s.exports,p=s.exports.napi_wasm_malloc(4104),h=p+8,d=p+8+4096;function m(){if(o()!==St)throw new Error(`Invalid async state ${o()}, expected 0.`)}return new Int32Array(e.memory.buffer,p).set([h,d]),kt=(s,r,l)=>{if(o()===Pt)return u(),null!=n&&e.createValue(n,r),null!=a&&e.createValue(a,l),void(t=n=a=null);m(),t=e.get(s),i(p)},async function(e){m();let s=r.bundle(e);for(;o()===Lt;){l();try{n=await t}catch(e){a=e}m(),c(p),s=r.bundle(e)}return m(),s}}(t),Ct=t.exports})),await jt})().then((()=>{window.patternCss.transform=At}));const Tt=(e,t,n)=>{const a=new Set([e.className?.split(" "),n.className?.split(" ")].flat().filter(Boolean)),{pcssClassId:s}=n;return!s||a.has(s)?e:(a.add(s),{...e,className:[...a].join(" ")})},Et={pcssAdditionalCss:{type:"string"},pcssAdditionalCssCompiled:{type:"string",default:""},pcssClassId:{type:"string",default:""}};(0,e.addFilter)("blocks.registerBlockType","kevinbatdorf/pcss-block-settings",(e=>{const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n;const a=null!==(n=t?.(e))&&void 0!==n?n:{};return Tt(a,0,e)},{...e,attributes:{...e.attributes,...Et}}})),(0,e.addFilter)("editor.BlockEdit","kevinbatdorf/pcss-block-control",(e=>o=>((e,o)=>{const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,d]=(0,s.useState)([]),m=(0,r.useSelect)((e=>{const{isSavingPost:t,isAutosavingPost:n}=e(it.store);return t()||n()}),[]),{attributes:g,setAttributes:f,clientId:y}=o,{pcssClassId:_,pcssAdditionalCss:b,pcssAdditionalCssCompiled:v,className:w}=g,[k,N]=(0,s.useState)(b),[S,L]=(0,s.useState)(),[P,C]=(0,s.useState)(v||""),j="[block] {\n  \n}",x=(0,s.useCallback)((e=>{if(void 0===e)return void N(void 0);const t=(0,i.escapeHTML)(e);if(d([]),N(t),!window.patternCss?.transform)return;const n=window.patternCss.transform({filename:"raw.css",code:(new TextEncoder).encode(t),minify:!0,errorRecovery:!0,visitor:{Selector(e){const{name:t,type:n}=e[0],{name:a,type:s}=window.patternCss.selectorOverride||{};return"attribute"===n&&"block"===t||n===s&&t===a?[{...e[0],type:"class",name:_},...e.slice(1)]:"nesting"===e[0].type?e:[{type:"class",name:_},{type:"combinator",value:"descendant"},...e]}}});n.warnings.length>0?d(n.warnings):L(n.code)}),[_]);return(0,s.useEffect)((()=>{b&&x(b)}),[x,b]),(0,s.useEffect)((()=>{void 0!==S&&C((new TextDecoder).decode(S))}),[S]),(0,s.useEffect)((()=>{if(void 0===k)return;f({pcssAdditionalCss:k,pcssClassId:_||`pcss-${y?.split("-")[0]}`});const e=w?.split(" ")||[];e?.includes(_)||f({className:lt(e,_)})}),[k,f,_,y,w]),(0,s.useEffect)((()=>{if(!_||!m)return;const e=w?.split(" ")||[];if(e?.find((e=>e.startsWith(_))))return;const t=lt(e,_);f({className:t})}),[m,w,_,f]),(0,s.useEffect)((()=>{P!==v&&f({pcssAdditionalCssCompiled:P})}),[P,f,v]),(0,s.useLayoutEffect)((()=>{if(void 0===P)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow,t=e?e?.document:document.querySelector(".editor-styles-wrapper");if(!t)return;const n=`pcss-styles-block-${_}`,a=t?.querySelector(`#${n}`);if(a)return void(a.innerHTML=P);const s=e?.document?e.document.createElement("style"):document.createElement("style");s.id=n,s.innerHTML=P,e?.document?.head?e.document.head.appendChild(s):t.appendChild(s)}),[P,_]),(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(e,{...o}),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Additional CSS",initialOpen:!1,className:"pattern-css-editor"},(0,t.createElement)("div",{className:"relative",ref:c},(0,t.createElement)(rt,{value:null!=k?k:j,"data-cy":"pcss-editor-block",onChange:x,onFocus:e=>{e.target.value===j&&(e=>{const t=e.value.split("\n"),n=t[0].length+t[1].length+1;requestAnimationFrame((()=>{e.focus(),e.setSelectionRange(n,n)}))})(e.target),p(!0)},onBlur:()=>p(!1),lineOptions:h.map((({loc:e})=>({line:e.line,classes:["line-error"]})))}),u?null:(0,t.createElement)(ot,{handleChange:x,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
    22// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
    33// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
  • pattern-css/tags/1.2.3/package.json

    r3073927 r3084117  
    2424        "@types/wordpress__editor": "^13.6.8",
    2525        "@types/wordpress__plugins": "^3.0.3",
    26         "@typescript-eslint/eslint-plugin": "^7.7.0",
    27         "@typescript-eslint/parser": "^7.7.0",
    28         "@wordpress/block-editor": "^12.23.0",
    29         "@wordpress/env": "^9.7.0",
    30         "@wordpress/scripts": "^27.6.0",
    31         "@wordpress/url": "^3.56.0",
     26        "@typescript-eslint/eslint-plugin": "^7..0",
     27        "@typescript-eslint/parser": "^7..0",
     28        "@wordpress/block-editor": "^12.2.0",
     29        "@wordpress/env": "^9..0",
     30        "@wordpress/scripts": "^27..0",
     31        "@wordpress/url": "^3.5.0",
    3232        "autoprefixer": "^10.4.19",
    33         "cypress": "^13.8.0",
     33        "cypress": "^13..0",
    3434        "cypress-wait-until": "^3.0.1",
    35         "eslint": "^8.0.0",
     35        "eslint": "^8..0",
    3636        "eslint-config-prettier": "^9.1.0",
    3737        "eslint-plugin-cypress": "^2.15.2",
     
    3939        "eslint-plugin-prettier": "^5.1.3",
    4040        "eslint-plugin-react": "^7.34.1",
    41         "eslint-plugin-react-hooks": "^4.6.0",
     41        "eslint-plugin-react-hooks": "^4.6.",
    4242        "fast-glob": "^3.3.2",
    4343        "glob": "^10.3.12",
     
    5050    },
    5151    "dependencies": {
    52         "@wordpress/block-editor": "^12.23.0",
    53         "@wordpress/blocks": "^12.32.0",
    54         "@wordpress/edit-post": "^7.32.0",
    55         "@wordpress/editor": "^13.32.0",
    56         "@wordpress/element": "^5.32.0",
    57         "@wordpress/i18n": "^4.55.0",
    58         "@wordpress/plugins": "^6.23.0",
     52        "@wordpress/block-editor": "^12.2.0",
     53        "@wordpress/blocks": "^12.3.0",
     54        "@wordpress/edit-post": "^7.3.0",
     55        "@wordpress/editor": "^13.3.0",
     56        "@wordpress/element": "^5.3.0",
     57        "@wordpress/i18n": "^4.5.0",
     58        "@wordpress/plugins": "^6.2.0",
    5959        "browserlist": "^1.0.1",
    6060        "lightningcss": "1.24.1",
  • pattern-css/tags/1.2.3/pattern-css.php

    r3073927 r3084117  
    55 * Requires at least: 6.0
    66 * Requires PHP:      7.0
    7  * Version:           1.2.2
     7 * Version:           1.2.
    88 * Author:            Kevin Batdorf
    99 * Author URI:        https://twitter.com/kevinbatdorf
  • pattern-css/tags/1.2.3/readme.txt

    r3073927 r3084117  
    33Tags:              css, styles, inline, pattern, sync
    44Tested up to:      6.5
    5 Stable tag:        1.2.2
     5Stable tag:        1.2.
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    132132== Changelog ==
    133133
     134
     135
     136
    134137= 1.2.2 - 2024-04-19 =
    135138- Fixed an issue where CSS media queries using <= were stripped out
  • pattern-css/tags/1.2.3/src/components/BlockControl.tsx

    r3073927 r3084117  
    1919import { escapeHTML } from '@wordpress/escape-html';
    2020import { sprintf, __ } from '@wordpress/i18n';
    21 import { Warning as CssWarning } from 'lightningcss-wasm';
     21import { Warning as CssWarning } from 'lightningcss-wasm';
    2222import { CodeEditor } from './CodeEditor';
    2323import { focusAtEndOfLine2 } from '../lib/dom';
     
    7272                errorRecovery: true,
    7373                visitor: {
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
    7489                    Selector(selector) {
    7590                        const { name, type } = selector[0] as {
  • pattern-css/trunk/build/index.asset.php

    r3073927 r3084117  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => '681d2c8596360c5ea470');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => '');
  • pattern-css/trunk/build/index.js

    r3073927 r3084117  
    1 (()=>{var e,t,n,a,s={69:function(e,t,n){"use strict";var a,s=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(609)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),h="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),d="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(d,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(d," {\n    color: transparent !important;\n  }\n\n  .").concat(d,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,a=e.selectionStart,s=e.selectionEnd;t._recordChange({value:n,selectionStart:a,selectionEnd:s})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var a,s,o;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(a=t._getLines(d.value,d.selectionStart).pop())||void 0===a?void 0:a.match(m),f=null===(s=t._getLines(e.value,e.selectionStart).pop())||void 0===s?void 0:s.match(m);if((null==g?void 0:g[1])&&(null===(o=null==f?void 0:f[1])||void 0===o?void 0:o.startsWith(g[1])))return void(t._history.stack[t._history.offset]=r(r({},e),{timestamp:h}))}}t._history.stack.push(r(r({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,a=t._history.stack[t._history.offset];a&&n&&(t._history.stack[t._history.offset]=r(r({},a),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a-1];s&&(t._updateInput(s),t._history.offset=Math.max(a-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a+1];s&&(t._updateInput(s),t._history.offset=Math.min(a+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,a=n.tabSize,s=n.insertSpaces,r=n.ignoreTabKey,o=n.onKeyDown;if(!o||(o(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,d=(s?" ":"\t").repeat(a);if(9===e.keyCode&&!r&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(_=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(l!==f){var y=_[m];t._applyEdits({value:f,selectionStart:(null==y?void 0:y.startsWith(d))?c-d.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var _,b=(_=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;y=_[b],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=b&&t<=v?d+e:e})).join("\n"),selectionStart:y&&/\S/.test(y)?c+d.length:c,selectionEnd:u+d.length*(v-b+1)})}else{var w=c+d.length;t._applyEdits({value:l.substring(0,c)+d+l.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=c!==u;l.substring(0,c).endsWith(d)&&!k&&(e.preventDefault(),w=c-d.length,t._applyEdits({value:l.substring(0,c-d.length)+l.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var N=t._getLines(l,c).pop(),S=null==N?void 0:N.match(/^\s+/);if(null==S?void 0:S[0]){e.preventDefault();var L="\n"+S[0];w=c+L.length,t._applyEdits({value:l.substring(0,c)+L+l.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),c!==u&&P&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+P[0]+l.substring(c,u)+P[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(h?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(h?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||h&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,a=n.value,s=n.selectionStart,r=n.selectionEnd;t._recordChange({value:a,selectionStart:s,selectionEnd:r},!0),t.props.onValueChange(a)},t._history={stack:[],offset:-1},t._input=null,t}return s(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.style,s=t.padding,o=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,h=t.disabled,g=t.form,y=t.maxLength,_=t.minLength,b=t.name,v=t.placeholder,w=t.readOnly,k=t.required,N=t.onClick,S=t.onFocus,L=t.onBlur,P=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),j=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),x={paddingTop:"object"==typeof s?s.top:s,paddingRight:"object"==typeof s?s.right:s,paddingBottom:"object"==typeof s?s.bottom:s,paddingLeft:"object"==typeof s?s.left:s},A=o(n);return u.createElement("div",r({},j,{style:r(r({},f.container),a)}),u.createElement("pre",r({className:C,"aria-hidden":"true",style:r(r(r({},f.editor),f.highlight),x)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),u.createElement("textarea",{ref:function(t){return e._input=t},style:r(r(r({},f.editor),f.textarea),x),className:d+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:N,onKeyUp:P,onFocus:S,onBlur:L,disabled:h,form:g,maxLength:y,minLength:_,name:b,placeholder:v,readOnly:w,required:k,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},63:(e,t,n)=>{"use strict";var a=n(609),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=r({inst:{value:n,getSnapshot:t}}),s=a[0].inst,u=a[1];return i((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},888:(e,t,n)=>{"use strict";e.exports=n(63)},486:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const s=a(n(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const s=e.charCodeAt(n);let r=s,o=!1;if(s>=55296&&s<=56319&&n+1<a){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(s-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),a=n!==t,s=a?new Uint32Array(t+1):null;a&&(s[t]=n);const r=a?new Uint32Array(n+1):null;a&&(r[n]=t);const o=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}a&&(s[n]=l,u&&(s[n+1]=l),c<=127?r[l+0]=n:c<=2047?(r[l+0]=n,r[l+1]=n):c<=65535?(r[l+0]=n,r[l+1]=n,r[l+2]=n):(r[l+0]=n,r[l+1]=n,r[l+2]=n,r[l+3]=n)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let a=0,s=e.length;a<s;a++){const s=new i(e[a]);t[a]=s.createString(r),n[a]=s.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const s=r._omalloc(4*e.length);r.HEAPU32.set(n,s/4);const o=r._createOnigScanner(a,s,e.length);for(let n=0,a=e.length;n<a;n++)r._ofree(t[n]);r._ofree(s),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=o,s=0;if("number"==typeof n?(8&n&&(a=!0),s=n):"boolean"==typeof n&&(a=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,a,s);return e.dispose(),n}return this._findNextMatchSync(e,t,a,s)}_findNextMatchSync(e,t,n,a){const s=this._onigBinding;let r;if(r=n?s._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):s._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=s.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:n,end:a,length:a-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,n,a){(0,s.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),a),{}}}).then((e=>{r=e,n()}))}(t,n,a,o),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,n=a}));var s,r=Object.assign({},a),o=[];s=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||P(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var p,h,d,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&g)return g.decode(e.subarray(t,s));for(var r="";t<s;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=d=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var _=[],b=[],v=[];function w(e){_.unshift(e)}function k(e){v.unshift(e)}var N=0,S=null,L=null;function P(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,j;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==C&&i)return new Uint8Array(i);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){P(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function E(e){try{return l.grow(e-p.byteLength+65535>>>16),y(l.buffer),1}catch(e){}}x(C="onig.wasm")||(C=function(e){return a.locateFile?a.locateFile(e,""):""+e}(C)),j="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var I,B={emscripten_get_now:j,emscripten_memcpy_big:function(e,t,n){h.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=h.length,a=2147483648;if((e>>>=0)>a)return!1;for(var s=1;s<=4;s*=2){var r=n*(1+.2/s);if(r=Math.min(r,e+100663296),E(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,a){for(var s=0,r=0;r<n;r++){var o=d[t>>2],i=d[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,h[o+l]);s+=i}return d[a>>2]=s,0}};function M(e){function n(){I||(I=!0,a.calledRun=!0,m||(T(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());T(v)}()))}e=e||o,N>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)w(a.preRun.shift());T(_)}(),N>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:B,wasi_snapshot_preview1:B};function t(e,t){var n=e.exports;a.asm=n,y((l=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(N--,a.monitorRunDependencies&&a.monitorRunDependencies(N),0==N&&(null!==S&&(clearInterval(S),S=null),L)){var t=L;L=null,t()}}()}function s(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(C)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),P(e)}))}if(N++,a.monitorRunDependencies&&a.monitorRunDependencies(N),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(C)||"function"!=typeof fetch?r(s):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(s)}))}))).catch(n)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},L=function e(){I||M(),I||(L=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(770);var e,t},e.exports=t()},217:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return!!(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,a,s,r,o,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),h=n.getForeground(e),d=n.getBackground(e);return 0!==t&&(l=t),8!==a&&(c=a),null!==s&&(u=s?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(d=i),(l|c<<8|u<<10|p<<11|h<<15|d<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=n(878);class s{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=s;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new s(t,n)})),this._defaultAttributes=new s(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[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!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new s(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=n(350),s=n(36),r=n(736),o=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function h(e,t,n,a,s){const o=r.createMatchers(t,d),l=i.RuleFactory.getCompiledRuleId(n,a,s.repository);for(const n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:s,priority:n.priority})}function d(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let a=n;a<t.length;a++)if(m(t[a],e))return n=a+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,a,s,r,o,i){return new g(e,t,n,a,s,r,o,i)};class g{constructor(e,t,n,a,s,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s)){const t=r.createMatchers(e,d);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const a=n.injections;if(a)for(let t in a)h(e,t,a[t],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&h(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=s.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new b(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,l,r,0,t,u,!0,a);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new y(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),s=new l.ScopeStack(null,e),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(t,a,r);return new y(null,s,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let a=-1,r=0,o=0;return null!==n&&(a=n.fontStyle,r=n.foregroundId,o=n.backgroundId),s.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const e of n)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),s=e.scopePath.push(t),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class _{constructor(e,t,n,a,s,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,s,r,o){return new _(this,e,t,n,a,s,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,d).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,d).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class b{constructor(e,t,n,s){this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=s.EncodedTokenAttributes.set(n,0,s.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=s.EncodedTokenAttributes.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=b},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=n(878);class s{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=s;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof s?c({baseGrammar:o,selfGrammar:r},a):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=n.injections(e.scopeName);if(i)for(const e of i)a.add(new s(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},n);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const s={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?l(p.ruleName,s,n):c(s,n)}else 4===p.kind?n.add(new r(p.scopeName,p.ruleName)):n.add(new s(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new s(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof s){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class d{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=d;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new d(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new g(n,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=n(350),s=n(44),r=n(792),o=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,s,l,p,d,m){const g=t.content.length;let f=!1,y=-1;if(d){const o=function(e,t,n,s,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof r.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=u(p.rule,e,p.stack.endRule,n,s===l),m=c.findNextMatchSync(t,s,d);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(m.ruleId!==r.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),h(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>s&&(s=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:s,anchorPosition:l,isFirstLine:n}}(e,t,n,s,l,p);l=o.stack,s=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const _=Date.now();for(;!f;){if(0!==m&&Date.now()-_>m)return new i(l,!0);b()}return new i(l,!1);function b(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${s}: |${t.content.substr(s).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,s,r,i){const l=function(e,t,n,s,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,r.endRule,n,s===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const d=u.findNextMatchSync(t,s,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${s}, anchorPosition: ${i})`),console.log(u.toString()),d&&console.log(`matched rule id: ${d.ruleId} from ${d.captureIndices[0].start} to ${d.captureIndices[0].end}`)}return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,s,r,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,s,r,o,i){let l,u=Number.MAX_VALUE,p=null,h=0;const d=o.contentNameScopesList.getScopeNames();for(let o=0,m=e.length;o<m;o++){const m=e[o];if(!m.matcher(d))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:y}=c(g,t,null,s,r===i),_=f.findNextMatchSync(n,r,y);if(!_)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const b=_.captureIndices[0].start;if(!(b>=u)&&(u=b,p=_.captureIndices,l=_.ruleId,h=m.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,s,r,i);if(!p)return l;if(!l)return p;const h=l.captureIndices[0].start,d=p.captureIndices[0].start;return d<h||p.priorityMatch&&d===h?p:l}(e,t,n,s,l,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,d=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>s;if(d===r.endRuleId){const r=l.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),h(e,t,n,l,p,r.endCaptures,u),p.produce(l,u[0].end);const o=l;if(l=l.parent,y=o.getAnchorPos(),!m&&o.getEnterPos()===s)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,p.produce(l,g),void(f=!0)}else{const o=e.getRule(d);p.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),_=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(d,s,y,u[0].end===g,null,_,_),o instanceof r.BeginEndRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName+" - "+s.debugBeginRegExp),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.endHasBackReferences&&(l=l.withEndRule(s.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.whileHasBackReferences&&(l=l.withEndRule(s.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const s=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+s.debugName+" - "+s.debugMatchRegExp),h(e,t,n,l,p,s.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>s&&(s=u[0].end,n=!1)}}function c(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileAG(t,n,s,r),findOptions:0}}function u(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileWhileAG(t,n,s,r),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function h(e,t,n,a,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,m.start):r.produce(a,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),h=o.pushAttributed(p,e),d=a.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,h),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,d,r,!1,0),s.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new d(t,m.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class d{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=d},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),l=new s,c=0,u=null,p=[],h=[];function d(){p.push(c),h.push(u)}function m(){c=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),d(),c=1;continue}if(2===l.type){u=[],d(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||g("expected colon"),r(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,d(),c=4,u=t;continue}if(3===l.type){let n={};o&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,d(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),d(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),d(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class s{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,s=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(a=s.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===a){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(a=s.charCodeAt(r),r++,l++,92!==a){if(34===a)break}else r++,l++}t.value=s.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,l++;else if(123===a)t.type=3,r++,l++;else if(93===a)t.type=4,r++,l++;else if(125===a)t.type=5,r++,l++;else if(58===a)t.type=6,r++,l++;else if(44===a)t.type=7,r++,l++;else if(110===a){if(t.type=8,r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;r++,l++}else if(116===a){if(t.type=9,r++,l++,a=s.charCodeAt(r),114!==a)return!1;if(r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else if(102===a){if(t.type=10,r++,l++,a=s.charCodeAt(r),97!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),115!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(a=s.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=s.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=n(391),o=n(50),i=n(652),l=n(583),c=n(965);s(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new r.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,a,s){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,n,a,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,s)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],s=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}(e);let r=s.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=s.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=s.next()}return a;function o(){if("-"===r){r=s.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=s.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=s.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=s.next()),e}if(n(r)){const e=[];do{e.push(r),r=s.next()}while(n(r));return n=>t(e,n)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=n(69),s=n(350),r=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,o=t,s.DebugFlags.InDebugMode?r.parseJSON(n,o,!0):JSON.parse(n)):function(e,t){return s.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var n,o}},69:(e,t)=>{function n(e,t,n){const a=e.length;let s=0,r=1,o=0;function i(t){if(null===n)s+=t;else for(;t>0;)10===e.charCodeAt(s)?(s++,r++,o=0):(s++,o++),t--}function l(e){null===n?s=e:i(e-s)}function c(){for(;s<a;){let t=e.charCodeAt(s);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(s,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,s);l(-1!==n?n+t.length:a)}function h(t){let n=e.indexOf(t,s);if(-1!==n){let a=e.substring(s,n);return l(n+t.length),a}{let t=e.substr(s);return l(a),t}}a>0&&65279===e.charCodeAt(0)&&(s=1);let d=0,m=null,g=[],f=[],y=null;function _(e,t){g.push(d),f.push(m),d=e,m=t}function b(){if(0===g.length)return v("illegal state stack");d=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+s+": "+t+" ~~~"+e.substr(s,50)+"~~~")}const w=function(){if(null===y)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m[y]=e,y=null,_(1,e)},k=function(){if(null===y)return v("missing <key>");let e=[];m[y]=e,y=null,_(2,e)},N=function(){let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m.push(e),_(1,e)},S=function(){let e=[];m.push(e),_(2,e)};function L(){if(1!==d)return v("unexpected </dict>");b()}function P(){return 1===d||2!==d?v("unexpected </array>"):void b()}function C(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function j(e){if(isNaN(e))return v("cannot parse float");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function x(e){if(isNaN(e))return v("cannot parse integer");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function A(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function T(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function E(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function R(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;s<a&&(c(),!(s>=a));){const l=e.charCodeAt(s);if(i(1),60!==l)return v("expected <");if(s>=a)return v("unexpected end of input");const h=e.charCodeAt(s);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),L();continue}if(u("array")){p(">"),P();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===d?w():2===d?N():(m={},null!==n&&(m[n]={filename:t,line:r,char:o}),_(1,m)),g.isClosed&&L();continue;case"array":1===d?k():2===d?S():(m=[],_(2,m)),g.isClosed&&P();continue;case"key":I=O(g),1!==d?v("unexpected <key>"):null!==y?v("too many <key>"):y=I;continue;case"string":C(O(g));continue;case"real":j(parseFloat(O(g)));continue;case"integer":x(parseInt(O(g),10));continue;case"date":A(new Date(O(g)));continue;case"data":T(O(g));continue;case"true":O(g),E(!0);continue;case"false":O(g),E(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var I;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return n(e,t,a)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,s,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,n,s,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=n(878),s=n(965),r=/\\(\d+)/,o=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,s){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,a,s){super(e,t,n,null),this._match=new m(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,a,s,r,o,i,l,c){super(e,t,n,a),this._begin=new m(s,this.id),this.beginCaptures=r,this._end=new m(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,n,a,s,r,o,i,l,c){super(e,n,a,s),this._begin=new m(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class d{static createCaptureRule(e,t,n,a,s){return e.registerRule((e=>new l(t,e,n,a,s)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((s=>{if(e.id=s,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=a.mergeObjects({},n,e.repository));let s=e.patterns;return void 0===s&&e.include&&(s=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(s,t,n))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,d._compileCaptures(e.whileCaptures||e.captures,t,n),d._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,d._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,d._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let s=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>s&&(s=e)}for(let e=0;e<=s;e++)a[e]=null;for(const s in e){if("$vscodeTextmateLocation"===s)continue;const r=parseInt(s,10);let o=0;e[s].patterns&&(o=d.getCompiledRuleId(e[s],t,n)),a[r]=d.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,o)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=s.parseInclude(o.include);switch(e.kind){case 0:case 1:i=d.getCompiledRuleId(n[o.include],t,n);break;case 2:let a=n[e.ruleName];a&&(i=d.getCompiledRuleId(a,t,n));break;case 3:case 4:const s=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(s,n);if(l)if(r){let e=l.repository[r];e&&(i=d.getCompiledRuleId(e,t,l.repository))}else i=d.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=d.getCompiledRuleId(o,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=d;class m{constructor(e,t){if(e){const t=e.length;let n=0,a=[],s=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(n,r)),a.push("$(?!\\n)(?<!\\n)"),n=r+2):"A"!==t&&"G"!==t||(s=!0),r++}this.hasAnchor=s,0===n?this.source=e:(a.push(e.substring(n,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,a,s=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,r[e]=n,o[e]=n,i[e]=n,"\\"===n&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(s[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class s{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(n,l.getId(r),l.getId(o)),d=new h(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];d.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new s(l,c,d)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,a=t[n];for(;e;){if(o(e.scopeName,a)){if(n++,n===t.length)return!0;a=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=s;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new r(t,e[n]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],s=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),n[s++]=new c(o,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,a,s,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=s,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,n,a,s){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=a,this.background=s}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,a=t.parentScopes;let s=null===n?0:n.length,r=null===a?0:a.length;if(s===r)for(let e=0;e<s;e++){const t=n[e].length,s=a[e].length;if(t!==s)return s-t}return r-s}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,a=e.indexOf(".");return-1===a?(t=e,n=""):(t=e.substring(0,a),n=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,a,s,r){if(""===t)return void this._doInsertHere(e,n,a,s,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,n,a,s,r)}_doInsertHere(e,t,n,s,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,s,r)}-1===n&&(n=this._mainRule.fontStyle),0===s&&(s=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,s,r))}else this._mainRule.acceptOverwrite(e,n,s,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=n(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=n(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function s(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,((e,a,s,r)=>{let o=n[parseInt(a||s,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=s,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let a=0;a<n;a++){let n=s(e[a],t[a]);if(0!==n)return n}return 0}return n-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(787)})()},229:(e,t,n)=>{"use strict";e.exports=n.p+"c939b543261a8fcd831e.wasm"},609:e=>{"use strict";e.exports=window.React},673:()=>{},485:()=>{}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="pattern-css:",o.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+s){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",a+s),i.src=e),n[e]=[t];var h=(t,a)=>{i.onerror=i.onload=null,clearTimeout(d);var s=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(a))),t)return t(a)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={57:0};o.f.j=(t,n)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=s);var r=o.p+o.u(t),i=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",i.name="ChunkLoadError",i.type=s,i.request=r,a[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,s,[r,i,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);l&&l(o)}for(t&&t(n);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkpattern_css=globalThis.webpackChunkpattern_css||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.hooks;var t=o(609);const n=window.wp.blockEditor,a=window.wp.components,s=window.wp.element,r=window.wp.data,i=window.wp.escapeHtml,l=window.wp.i18n,c=window.wp.htmlEntities;var u=o(69),p=o.n(u),h=o(486),d=o(217),m="/";const g=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var f,y,_,b,v=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(v||{});class w{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=w.getLanguageId(e),n=w.getTokenType(e),a=w.getFontStyle(e),s=w.getForeground(e),r=w.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:s,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return!!(1024&e)}static set(e,t,n,a,s,r){let o=w.getLanguageId(e),i=w.getTokenType(e),l=w.getFontStyle(e),c=w.getForeground(e),u=w.getBackground(e);return 0!==t&&(o=t),0!==n&&(i=8===n?0:n),-1!==a&&(l=a),0!==s&&(c=s),0!==r&&(u=r),(o|i<<8|l<<11|(w.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function k(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function N(e){return e.startsWith("./")?e.slice(2):e}function S(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function L(...e){return e.map(k).map(N).join("/")}function P(e){return 32===e||9===e}function C(e){return 10===e||13===e}function j(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(f||(f={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(y||(y={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(_||(_={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(b||(b={}));const x=function(e,t=[],n=y.DEFAULT){let a=null,s=[];const r=[];function o(e){Array.isArray(s)?s.push(e):null!==a&&(s[a]=e)}return function(e,t,n=y.DEFAULT){const a=function(e,t=!1){const n=e.length;let a=0,s="",r=0,o=16,i=0,l=0,c=0,u=0,p=0;function h(t,n){let s=0,r=0;for(;s<t||!n;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,s++}return s<t&&(r=-1),r}function d(){if(s="",p=0,r=a,l=i,u=c,a>=n)return r=n,o=17;let t=e.charCodeAt(a);if(P(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(P(t));return o=15}if(C(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),i++,c=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,s=function(){let t="",s=a;for(;;){if(a>=n){t+=e.substring(s,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(s,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(C(r)){t+=e.substring(s,a),p=2;break}p=6}a++}else{if(t+=e.substring(s,a),a++,a>=n){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}s=a}}return t}(),o=10;case 47:const l=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<n&&!C(e.charCodeAt(a));)a++;return s=e.substring(l,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=n-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,C(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,c=a)}return r||(a++,p=1),s=e.substring(l,a),o=13}return s+=String.fromCharCode(t),a++,o=16;case 45:if(s+=String.fromCharCode(t),a++,a===n||!j(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&j(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&j(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&j(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&j(e.charCodeAt(a))){for(a++;a<e.length&&j(e.charCodeAt(a));)a++;n=a}else p=3;return e.substring(t,n)}(),o=11;default:for(;a<n&&m(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(s=e.substring(r,a),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(t),a++,o=16}}function m(e){if(P(e)||C(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,s="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>l,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),s=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}const c=o(t.onObjectBegin),u=l(t.onObjectProperty),p=r(t.onObjectEnd),h=o(t.onArrayBegin),d=r(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=r(t.onComment),_=i(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function w(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:b||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:b?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function N(e){const t=a.getTokenValue();return e?m(t):(u(t),s.push(t)),w(),!0}function S(){switch(a.getToken()){case 3:return function(){h(),w();let e=!0,t=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&v)break}else t&&k(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||k(4,[],[4,5]),t=!0}return d(),e||s.pop(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&v)break}else e&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),!1):(N(!1),6===a.getToken()?(g(":"),w(),S()||k(4,[],[2,5])):k(5,[],[2,5]),s.pop(),!0))||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return N(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}w(),17===a.getToken()?!!n.allowEmptyContent||k(4,[],[]):S()?17!==a.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(s),s=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(s),s=e,a=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(e,n,a)=>{t.push({error:e,offset:n,length:a})}},n),s[0]};var A;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(A||(A={}));const T="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,E="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,R="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,O=T||!E&&!R;let I="",B="";let M=null;function G(e){if(O)return`${I}${e}`;{const t=o(485);return t.isAbsolute(e)?e:t.resolve(m,"..",e)}}async function F(e){const t=[],n=await async function(e){const t=G(e);if(O)return await fetch(t).then((e=>e.text()));{const e=o(673);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(n)}catch(e){if(a=x(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function D(e){const t=$(await F(e));if(t.include){const n=await D(L(...S(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function $(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...V(e)};var a;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(a=n).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),n}const U={light:"#333333",dark:"#bbbbbb"},W={light:"#fffffe",dark:"#1e1e1e"};function V(e){let t,n,a=e.settings?e.settings:e.tokenColors;const s=a?a.find((e=>!e.name&&!e.scope)):void 0;return s?.settings?.foreground&&(t=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?U.light:U.dark),n||(n="light"===e.type?W.light:W.dark),{fg:t,bg:n}}class q{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await F(e)}(g.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function z(e,t){let n=[];for(let a=0,s=t.length;a<s;a++){let s=t.slice(0,a),r=t[a];n[a]={scopeName:r,themeMatches:J(e,r,s)}}return n}function H(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function K(e,t,n,a){if(!H(e,n))return!1;let s=t.length-1,r=a.length-1;for(;s>=0&&r>=0;)H(t[s],a[r])&&s--,r--;return-1===s}function J(e,t,n){let a=[],s=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);K(l[l.length-1],l.slice(0,l.length-1),t,n)&&(a[s++]=i,e=r)}}return a}var Q=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],X={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Y(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)X[a]&&t.push({type:"setDecoration",value:X[a]});else if(a<=29){const e=X[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-30]}});else if(38===a){const n=Z(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-40]}});else if(48===a){const n=Z(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-100+8]}})}return t}var te={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ne(e=te){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return s=e.index,function(){if(a)return a;a=[];for(let e=0;e<Q.length;e++)a.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)a.push(n([e[t],e[s],e[r]]));let s=8;for(let e=0;e<24;e++,s+=10)a.push(n([s,s,s]));return a}()[s]}var s}}}const ae={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function se(e,t={}){const n=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),s=t.elements||{};function r(e="",t={},n){const a=s[e]||ae[e];return a?(n=n.filter(Boolean),a({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",r("code",{},e.map(((n,s)=>{const o=s+1;return r("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:n,index:s},n.map(((e,a)=>{const s=[`color: ${e.color||t.fg}`];return e.fontStyle&v.Italic&&s.push("font-style: italic"),e.fontStyle&v.Bold&&s.push("font-weight: bold"),e.fontStyle&v.Underline&&s.push("text-decoration: underline"),r("token",{style:s.join("; "),tokens:n,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>re[e])))]);var o})))})))])}const re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class oe extends d.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=g.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await D(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=$(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ie(e){return"string"==typeof e?g.find((t=>t.id===e||t.aliases?.includes(e))):e}async function le(e){const{_languages:t,_themes:n,_wasmPath:a}=function(e){let t=g,n=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(ie)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:a}}(e),s=new q(async function(e){if(!M){let t;if(O)t="string"==typeof B?(0,h.loadWASM)({data:await fetch(G(L(...S(e),"onig.wasm")))}):(0,h.loadWASM)({data:B});else{const e=o(485).join(486,"../onig.wasm"),n=o(673).readFileSync(e).buffer;t=(0,h.loadWASM)(n)}M=t.then((()=>({createOnigScanner:e=>(0,h.createOnigScanner)(e),createOnigString:e=>(0,h.createOnigString)(e)})))}return M}(a),"vscode-oniguruma"),r=new oe(s);e.paths?.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(s.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await r.loadThemes(n))[0];let l;await r.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<Q.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,a=Q[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${a})`}return e}();function u(e){const t=e?r.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(r.setTheme(t),l=t);const n=r.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:s}=function(e){const t=r.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,a,s){let r=n.split(/\r\n|\r|\n/),o=d.INITIAL,i=[],l=[];for(let n=0,c=r.length;n<c;n++){let c,u,p,h=r[n];if(""===h){i=[],l.push([]);continue}s.includeExplanation&&(c=a.tokenizeLine(h,o),u=c.tokens,p=0);let d=a.tokenizeLine2(h,o),m=d.tokens.length/2;for(let n=0;n<m;n++){let a=d.tokens[2*n],r=n+1<m?d.tokens[2*n+2]:h.length;if(a===r)continue;let o=d.tokens[2*n+1],l=t[w.getForeground(o)],c=w.getFontStyle(o),g=[];if(s.includeExplanation){let t=0;for(;a+t<r;){let n=u[p],a=h.substring(n.startIndex,n.endIndex);t+=a.length,g.push({content:a,scopes:z(e,n.scopes)}),p++}}i.push({content:h.substring(a,r),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],o=d.ruleStack}return l}(o,i,e,s,a)}function m(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),a=ne(Object.fromEntries(Q.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(a){const s=[];let r=0;do{const o=Y(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const a=ee(o.sequence);for(const s of a)"resetAll"===s.type?(e=null,t=null,n.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?t=null:"resetDecoration"===s.type&&n.delete(s.value);for(const s of a)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?t=s.value:"setDecoration"===s.type&&n.add(s.value)}r=o.position}while(r<a.length);return s}}}();return n.map((t=>s.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let s=v.None;return t.decorations.has("bold")&&(s|=v.Bold),t.decorations.has("italic")&&(s|=v.Italic),t.decorations.has("underline")&&(s|=v.Underline),{content:t.value,color:n,fontStyle:s}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let a;a="object"==typeof t?t:{lang:t,theme:n};const s=p(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=u(a.theme);return se(s,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:m,ansiToHtml:function(e,t){const n=m(e,t?.theme),{_theme:a}=u(t?.theme);return se(n,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await r.loadTheme(e)},loadLanguage:async function(e){const t=ie(e);s.addLanguage(t),await r.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return r.getLoadedThemes()},getLoadedLanguages:function(){return r.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var ce=o(888);const ue=()=>{},pe=ue(),he=Object,de=e=>e===pe,me=e=>"function"==typeof e,ge=(e,t)=>({...e,...t}),fe=new WeakMap;let ye=0;const _e=e=>{const t=typeof e,n=e&&e.constructor,a=n==Date;let s,r;if(he(e)!==e||a||n==RegExp)s=a?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=fe.get(e),s)return s;if(s=++ye+"~",fe.set(e,s),n==Array){for(s="@",r=0;r<e.length;r++)s+=_e(e[r])+",";fe.set(e,s)}if(n==he){s="#";const t=he.keys(e).sort();for(;!de(r=t.pop());)de(e[r])||(s+=r+":"+_e(e[r])+",");fe.set(e,s)}}return s},be=new WeakMap,ve={},we={},ke="undefined",Ne=typeof window!=ke,Se=typeof document!=ke,Le=(e,t)=>{const n=be.get(e);return[()=>!de(t)&&e.get(t)||ve,a=>{if(!de(t)){const s=e.get(t);t in we||(we[t]=s),n[5](t,ge(s,a),s||ve)}},n[6],()=>!de(t)&&t in we?we[t]:!de(t)&&e.get(t)||ve]};let Pe=!0;const[Ce,je]=Ne&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],xe={isOnline:()=>Pe,isVisible:()=>{const e=Se&&document.visibilityState;return de(e)||"hidden"!==e}},Ae={initFocus:e=>(Se&&document.addEventListener("visibilitychange",e),Ce("focus",e),()=>{Se&&document.removeEventListener("visibilitychange",e),je("focus",e)}),initReconnect:e=>{const t=()=>{Pe=!0,e()},n=()=>{Pe=!1};return Ce("online",t),Ce("offline",n),()=>{je("online",t),je("offline",n)}}},Te=!t.useId,Ee=!Ne||"Deno"in window,Re=Ee?t.useEffect:t.useLayoutEffect,Oe="undefined"!=typeof navigator&&navigator.connection,Ie=!Ee&&Oe&&(["slow-2g","2g"].includes(Oe.effectiveType)||Oe.saveData),Be=e=>{if(me(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_e(e):"",t]};let Me=0;const Ge=()=>++Me;async function Fe(...e){const[t,n,a,s]=e,r=ge({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let o=r.populateCache;const i=r.rollbackOnError;let l=r.optimisticData;const c=r.throwOnError;if(me(n)){const e=n,a=[],s=t.keys();for(const n of s)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&a.push(n);return Promise.all(a.map(u))}return u(n);async function u(n){const[s]=Be(n);if(!s)return;const[u,p]=Le(t,s),[h,d,m,g]=be.get(t),f=()=>{const e=h[s];return(me(r.revalidate)?r.revalidate(u().data,n):!1!==r.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return f();let y,_=a;const b=Ge();d[s]=[b,0];const v=!de(l),w=u(),k=w.data,N=w._c,S=de(N)?k:N;if(v&&(l=me(l)?l(S,k):l,p({data:l,_c:S})),me(_))try{_=_(S)}catch(e){y=e}if(_&&me(_.then)){if(_=await _.catch((e=>{y=e})),b!==d[s][0]){if(y)throw y;return _}y&&v&&(e=>"function"==typeof i?i(e):!1!==i)(y)&&(o=!0,p({data:S,_c:pe}))}if(o&&!y)if(me(o)){const e=o(_,S);p({data:e,error:pe,_c:pe})}else p({data:_,error:pe,_c:pe});if(d[s][1]=Ge(),Promise.resolve(f()).then((()=>{p({_c:pe})})),!y)return _;if(c)throw y}}const De=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$e=(e,t)=>{if(!be.has(e)){const n=ge(Ae,t),a={},s=Fe.bind(pe,e);let r=ue;const o={},i=(e,t)=>{const n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,a)=>{e.set(t,n);const s=o[t];if(s)for(const e of s)e(n,a)},c=()=>{if(!be.has(e)&&(be.set(e,[a,{},{},{},s,l,i]),!Ee)){const t=n.initFocus(setTimeout.bind(pe,De.bind(pe,a,0))),s=n.initReconnect(setTimeout.bind(pe,De.bind(pe,a,1)));r=()=>{t&&t(),s&&s(),be.delete(e)}}};return c(),[e,s,c,r]}return[e,be.get(e)[4]]},[Ue,We]=$e(new Map),Ve=ge({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:(e,__,t,n,a)=>{const s=t.errorRetryCount,r=a.retryCount,o=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!de(s)&&r>s||setTimeout(n,o,a)},onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ie?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ie?5e3:3e3,compare:(e,t)=>_e(e)==_e(t),isPaused:()=>!1,cache:Ue,mutate:We,fallback:{}},xe),qe=(e,t)=>{const n=ge(e,t);if(t){const{use:a,fallback:s}=e,{use:r,fallback:o}=t;a&&r&&(n.use=a.concat(r)),s&&o&&(n.fallback=ge(s,o))}return n},ze=(0,t.createContext)({}),He=Ne&&window.__SWR_DEVTOOLS_USE__,Ke=He?window.__SWR_DEVTOOLS_USE__:[],Je=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Qe=Ke.concat((e=>(t,n,a)=>e(t,n&&((...e)=>{const[a]=Be(t),[,,,s]=be.get(Ue);if(a.startsWith("$inf$"))return n(...e);const r=s[a];return de(r)?n(...e):(delete s[a],r)}),a)));He&&(window.__SWR_DEVTOOLS_REACT__=t);const Xe=t.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ye={dedupe:!0};he.defineProperty((e=>{const{value:n}=e,a=(0,t.useContext)(ze),s=me(n),r=(0,t.useMemo)((()=>s?n(a):n),[s,a,n]),o=(0,t.useMemo)((()=>s?r:qe(a,r)),[s,a,r]),i=r&&r.provider,l=(0,t.useRef)(pe);i&&!l.current&&(l.current=$e(i(o.cache||Ue),r));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),Re((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,t.createElement)(ze.Provider,ge(e,{value:o}))}),"defaultValue",{value:Ve});const Ze=(et=(e,n,a)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:d}=a,[m,g,f,y]=be.get(s),[_,b]=Be(e),v=(0,t.useRef)(!1),w=(0,t.useRef)(!1),k=(0,t.useRef)(_),N=(0,t.useRef)(n),S=(0,t.useRef)(a),L=()=>S.current,P=()=>L().isVisible()&&L().isOnline(),[C,j,x,A]=Le(s,_),T=(0,t.useRef)({}).current,E=de(i)?a.fallback[_]:i,R=(e,t)=>{for(const n in T){const a=n;if("data"===a){if(!r(e[a],t[a])){if(!de(e[a]))return!1;if(!r(U,t[a]))return!1}}else if(t[a]!==e[a])return!1}return!0},O=(0,t.useMemo)((()=>{const e=!!_&&!!n&&(de(l)?!L().isPaused()&&!o&&(!!de(c)||c):l),t=t=>{const n=ge(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},a=C(),s=A(),r=t(a),i=a===s?r:t(s);let u=r;return[()=>{const e=t(C());return R(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[s,_]),I=(0,ce.useSyncExternalStore)((0,t.useCallback)((e=>x(_,((t,n)=>{R(n,t)||e()}))),[s,_]),O[0],O[1]),B=!v.current,M=m[_]&&m[_].length>0,G=I.data,F=de(G)?E:G,D=I.error,$=(0,t.useRef)(F),U=d?de(G)?$.current:G:F,W=!(M&&!de(D))&&(B&&!de(l)?l:!L().isPaused()&&(o?!de(F)&&c:de(F)||c)),V=!!(_&&n&&B&&W),q=de(I.isValidating)?V:I.isValidating,z=de(I.isLoading)?V:I.isLoading,H=(0,t.useCallback)((async e=>{const t=N.current;if(!_||!t||w.current||L().isPaused())return!1;let n,s,o=!0;const i=e||{},l=!f[_]||!i.dedupe,c=()=>Te?!w.current&&_===k.current&&v.current:_===k.current,u={isValidating:!1,isLoading:!1},p=()=>{j(u)},h=()=>{const e=f[_];e&&e[1]===s&&delete f[_]},d={isValidating:!0};de(C().data)&&(d.isLoading=!0);try{if(l&&(j(d),a.loadingTimeout&&de(C().data)&&setTimeout((()=>{o&&c()&&L().onLoadingSlow(_,a)}),a.loadingTimeout),f[_]=[t(b),Ge()]),[n,s]=f[_],n=await n,l&&setTimeout(h,a.dedupingInterval),!f[_]||f[_][1]!==s)return l&&c()&&L().onDiscarded(_),!1;u.error=pe;const e=g[_];if(!de(e)&&(s<=e[0]||s<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(_),!1;const i=C().data;u.data=r(i,n)?i:n,l&&c()&&L().onSuccess(n,_,a)}catch(e){h();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||me(n)&&n(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!P()||t.onErrorRetry(e,_,t,(e=>{const t=m[_];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return o=!1,p(),!0}),[_,s]),K=(0,t.useCallback)(((...e)=>Fe(s,k.current,...e)),[]);if(Re((()=>{N.current=n,S.current=a,de(G)||($.current=G)})),Re((()=>{if(!_)return;const e=H.bind(pe,Ye);let t=0;const n=((e,t,n)=>{const a=t[e]||(t[e]=[]);return a.push(n),()=>{const e=a.indexOf(n);e>=0&&(a[e]=a[a.length-1],a.pop())}})(_,m,((n,a={})=>{if(0==n){const n=Date.now();L().revalidateOnFocus&&n>t&&P()&&(t=n+L().focusThrottleInterval,e())}else if(1==n)L().revalidateOnReconnect&&P()&&e();else{if(2==n)return H();if(3==n)return H(a)}}));return w.current=!1,k.current=_,v.current=!0,j({_k:b}),W&&(de(F)||Ee?e():(a=e,Ne&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(a):setTimeout(a,1))),()=>{w.current=!0,n()};var a}),[_]),Re((()=>{let e;function t(){const t=me(u)?u(C().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){C().error||!p&&!L().isVisible()||!h&&!L().isOnline()?t():H(Ye).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,h,_]),(0,t.useDebugValue)(U),o&&de(F)&&_){if(!Te&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,S.current=a,w.current=!1;const e=y[_];if(!de(e)){const t=K(e);Xe(t)}if(!de(D))throw D;{const e=H(Ye);de(U)||(e.status="fulfilled",e.value=!0),Xe(e)}}return{mutate:K,get data(){return T.data=!0,U},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,q},get isLoading(){return T.isLoading=!0,z}}},function(...e){const n=ge(Ve,(0,t.useContext)(ze)),[a,s,r]=Je(e),o=qe(n,r);let i=et;const{use:l}=o,c=(l||[]).concat(Qe);for(let e=c.length;e--;)i=c[e](i);return i(a,s||o.fetcher||null,o)});var et;const tt=((e,t)=>(...n)=>{const[a,s,r]=Je(n),o=(r.use||[]).concat(t);return e(a,s,{...r,use:o})})(Ze,(e=>(t,n,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,n,a)))),nt=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;return le({langs:[t],theme:e})};let at=!1;const st=({theme:e,lang:t,ready:n=!0})=>{const[a,r]=(0,s.useState)(!1);var o;at||(at=!0,o=window.patternCss?.pluginUrl+"build/shiki/",I=o.endsWith("/")?o:o+"/");const{data:i,error:l}=tt({theme:e,lang:t,ready:n&&a},nt);return(0,s.useEffect)((()=>{const e=window.patternCss?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{B=e,r(!0)}))}),[]),{highlighter:i,error:l,loading:!i&&!l||!a}},rt=(0,s.forwardRef)(((e,n)=>{var a,r;const o=(0,s.useRef)(null),{value:i,onChange:l,onFocus:u,onBlur:h,lineOptions:d=[],...m}=e,{highlighter:g,error:f,loading:y}=st({theme:"light-plus",lang:"css"});return y?null:f?(0,t.createElement)("p",null,f.message):(0,t.createElement)("div",{ref:o},(0,t.createElement)(p(),{ref:n,value:(0,c.decodeEntities)(i),className:"font-jetbrains-mono border border-solid border-gray-600 wp-focus",onValueChange:l,...m,padding:{top:6,bottom:6,left:8,right:8},style:{minHeight:300,backgroundColor:null!==(a=g?.getBackgroundColor())&&void 0!==a?a:"#fff",color:null!==(r=g?.getForegroundColor())&&void 0!==r?r:"#000"},onKeyDown:e=>"Tab"===e.key&&o.current?.querySelector("textarea")?.focus(),onFocus:u,onBlur:h,highlight:e=>g?.codeToHtml((0,c.decodeEntities)(e),{lang:"css",lineOptions:d})?.replace(/<\/?[pre|code][^>]*>/g,"")}))})),ot=({handleChange:e,editorWrapperRef:n})=>(0,t.createElement)("div",{className:"flex gap-1 absolute top-px right-px"},(0,t.createElement)(a.Tooltip,{text:(0,l.__)("Clear CSS","pattern-css")},(0,t.createElement)(a.Button,{icon:"no-alt",size:"small",onClick:()=>{e(""),n.current?.querySelector("textarea")?.focus()},className:"text-gray-600 wp-focus gap-0 p-1"},(0,t.createElement)("span",{className:"sr-only"},(0,l.__)("Clear CSS","pattern-css"))))),it=window.wp.editor,lt=(e,t)=>[...new Set([...e.filter((e=>!e.startsWith("pcss-"))),t].filter(Boolean))].join(" "),ct=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],ut=[];class pt{scopes=[];referenceId=1;references=new Map;wrappedObjects=new WeakMap;externalObjects=new WeakMap;buffers=new Map;instanceData=0;pendingException=null;constructor(e){this.id=ut.length,ut.push(this),this.instance=e,this.table=e.exports.__indirect_function_table,this.exports={},this.pushScope();let t=this.scopes[this.scopes.length-1],n=t.length;t.push(this.exports);try{this.instance.exports.napi_register_module_v1(this.id,n),this.instance.exports.napi_register_wasm_v1&&this.instance.exports.napi_register_wasm_v1(this.id,n)}finally{if(this.popScope(),this.pendingException){let e=this.pendingException;throw this.pendingException=null,e}}}destroy(){ut[this.id]=void 0}getString(e,t=function(e,t){let n=0;for(;0!==e[t];)n++,t++;return n}(this.memory,e)){return ht.decode(this.memory.subarray(e,e+t))}pushScope(){let e=this.scopes.length;return this.scopes.push([void 0,null,globalThis,!0,!1]),e}popScope(){this.scopes.pop();for(let[e,t]of this.buffers)e.byteLength&&t.byteLength&&e.set(t);this.buffers.clear()}get(e){return this.scopes[this.scopes.length-1][e]}set(e,t){this.scopes[this.scopes.length-1][e]=t}pushValue(e){let t=this.scopes[this.scopes.length-1],n=t.length;return t.push(e),n}createValue(e,t){if("boolean"==typeof e)return this.setPointer(t,e?3:4),0;if(void 0===e)return this.setPointer(t,0),0;if(null===e)return this.setPointer(t,1),0;if(e===globalThis)return this.setPointer(t,2),0;let n=this.pushValue(e);return this.setPointer(t,n),0}setPointer(e,t){return this.u32[e>>2]=t,0}_u32=new Uint32Array;get u32(){return 0===this._u32.byteLength&&(this._u32=new Uint32Array(this.instance.exports.memory.buffer)),this._u32}_i32=new Int32Array;get i32(){return 0===this._i32.byteLength&&(this._i32=new Int32Array(this.instance.exports.memory.buffer)),this._i32}_u16=new Uint16Array;get u16(){return 0===this._u16.byteLength&&(this._u16=new Uint16Array(this.instance.exports.memory.buffer)),this._u16}_u64=new BigUint64Array;get u64(){return 0===this._u64.byteLength&&(this._u64=new BigUint64Array(this.instance.exports.memory.buffer)),this._u64}_i64=new BigInt64Array;get i64(){return 0===this._i64.byteLength&&(this._i64=new BigInt64Array(this.instance.exports.memory.buffer)),this._i64}_f64=new Float64Array;get f64(){return 0===this._f64.byteLength&&(this._f64=new Float64Array(this.instance.exports.memory.buffer)),this._f64}_buf=new Uint8Array;get memory(){return 0===this._buf.byteLength&&(this._buf=new Uint8Array(this.instance.exports.memory.buffer)),this._buf}getBufferInfo(e,t){if(this.buffers.has(e)){let n=this.buffers.get(e);return this.setPointer(t,n.byteOffset),n.byteLength}if(e instanceof ArrayBuffer){let n=this.copyBuffer(new Uint8Array(e));return this.setPointer(t,n.byteOffset),n.byteLength}if(e.buffer===this.instance.exports.memory.buffer)return this.setPointer(t,e.byteOffset),e.byteLength;let n=this.copyBuffer(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return this.setPointer(t,n.byteOffset),n.byteLength}copyBuffer(e){let t=this.instance.exports.napi_wasm_malloc(e.byteLength),n=this.memory;n.set(e,t);let a=n.subarray(t,t+e.byteLength);return this.buffers.set(e,a),a}createFunction(e,t){let n=this,a=n.table.get(e);return function(...e){let s=n.pushScope();try{let r=n.scopes[s],o=r.length;r.push({thisArg:this,args:e,data:t,newTarget:new.target});let i=a(n.id,o);return n.get(i)}finally{if(n.popScope(),n.pendingException){let e=n.pendingException;throw n.pendingException=null,e}}}}readPropertyDescriptor(e){let t=this.u32,n=t[e++],a=t[e++],s=t[e++],r=t[e++],o=t[e++],i=t[e++],l=t[e++],c=t[e++],u=n?this.getString(n):this.get(a),p=Boolean(1&l),h=Boolean(2&l),d=Boolean(4&l),m=Boolean(1024&l),g=r?this.createFunction(r,c):void 0,f=o?this.createFunction(o,c):void 0,y=s?this.createFunction(s,c):i?this.get(i):void 0,_={name:u,static:m,configurable:d,enumerable:h};return g||f?(_.get=g,_.set=f):y&&(_.writable=p,_.value=y),_}}const ht=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),dt=new TextDecoder("latin1"),mt=new TextDecoder("utf-16"),gt=new TextEncoder;class ft{constructor(e,t,n,a){this.env=e,this.finalize=t,this.hint=n,this.data=a}}const yt=new FinalizationRegistry((e=>{e.finalize&&e.finalize(e.env,e.data,e.hint)}));class _t{}const bt=[];class vt{constructor(e,t,n,a){this.env=e,this.fn=t,this.nativeFn=n,this.context=a,this.id=bt.length,bt.push(this)}}const wt={napi_open_handle_scope(e,t){let n=ut[e],a=n.pushScope();return n.setPointer(t,a)},napi_close_handle_scope(e,t){let n=ut[e];return t!==n.scopes.length-1?13:(n.popScope(),0)},napi_open_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_close_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_escape_handle(e,t,n,a){throw new Error("not implemented")},napi_create_object:(e,t)=>ut[e].createValue({},t),napi_set_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=s.get(a);return r[o]=i,0},napi_get_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.createValue(r[o],a)},napi_delete_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=!1;try{i=delete r[o]}catch(e){}return a&&(s.memory[a]=i?1:0),0},napi_has_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=o in r?1:0,0},napi_has_own_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r.hasOwnProperty(o)?1:0,0},napi_set_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[s.getString(n)]=o,0},napi_get_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.createValue(r[o],a)},napi_has_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.memory[a]=o in r?1:0,0},napi_get_property_names(e,t,n){let a=ut[e],s=a.get(t),r=Object.keys(s);return a.createValue(r,n)},napi_get_all_property_names(e,t,n,a,s,r){throw new Error("not implemented")},napi_define_properties(e,t,n,a){let s=ut[e],r=s.get(t),o=a>>2;for(let e=0;e<n;e++){let e=s.readPropertyDescriptor(o);Object.defineProperty(r,e.name,e),o+=8}return 0},napi_object_freeze(e,t){let n=ut[e].get(t);return Object.freeze(n),0},napi_object_seal(e,t){let n=ut[e].get(t);return Object.seal(n),0},napi_get_prototype(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Object.getPrototypeOf(s),n)},napi_define_class(e,t,n,a,s,r,o,i){let l=ut[e],c=l.createFunction(a,s);Object.defineProperty(c,"name",{value:l.getString(t,n),configurable:!0});let u=o>>2;for(let e=0;e<r;e++){let e=l.readPropertyDescriptor(u);e.static?Object.defineProperty(c,e.name,e):Object.defineProperty(c.prototype,e.name,e),u+=8}return l.createValue(c,i)},napi_create_reference(e,t,n,a){let s=ut[e],r=s.referenceId++;return s.references.set(r,{value:s.get(t),refcount:n}),s.setPointer(a,r)},napi_delete_reference:(e,t)=>(ut[e].references.delete(t),0),napi_get_reference_value(e,t,n){let a=ut[e],s=a.references.get(t);return a.createValue(s.value,n)},napi_reference_ref(e,t,n){let a=ut[e],s=a.references.get(t);return s.refcount++,a.setPointer(n,s.refcount)},napi_reference_unref(e,t,n){let a=ut[e],s=a.references.get(t);return 0===s.refcount?9:(s.refcount--,a.setPointer(n,s.refcount))},napi_add_env_cleanup_hook:()=>0,napi_remove_env_cleanup_hook:()=>0,napi_add_async_cleanup_hook:()=>0,napi_remove_async_cleanup_hook:()=>0,napi_set_instance_data:(e,t,n,a)=>(ut[e].instanceData=t,0),napi_get_instance_data(e,t){let n=ut[e];return n.setPointer(t,n.instanceData)},napi_get_boolean:(e,t,n)=>ut[e].setPointer(n,t?3:4),napi_get_value_bool(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s?1:0,0},napi_create_int32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_int32(e,t,n){let a=ut[e],s=a.get(t);return a.i32[n>>2]=s,0},napi_create_uint32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_uint32(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s)},napi_create_int64:(e,t,n)=>ut[e].createValue(Number(t),n),napi_get_value_int64(e,t,n){let a=ut[e],s=a.get(t);return a.i64[n>>3]=s,0},napi_create_double:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_double(e,t,n){let a=ut[e],s=a.get(t);return a.f64[n>>3]=s,0},napi_create_bigint_int64:(e,t,n)=>ut[e].createValue(BigInt.asIntN(64,t),n),napi_get_value_bigint_int64(e,t,n,a){let s=ut[e],r=s.get(t);return s.i64[n>>3]=r,a&&(s.memory[a]=BigInt.asIntN(64,r)===r?1:0),0},napi_create_bigint_uint64:(e,t,n)=>ut[e].createValue(BigInt.asUintN(64,t),n),napi_get_value_bigint_uint64(e,t,n,a){let s=ut[e],r=s.get(t);return s.u64[n>>3]=r,a&&(s.memory[a]=BigInt.asUintN(64,r)===r?1:0),0},napi_create_bigint_words(e,t,n,a,s){let r=ut[e],o=r.u64,i=a>>3,l=0n,c=0n;for(let e=0;e<n;e++)l+=o[i++]<<c,c+=64n;return l*=BigInt((-1)**t),r.createValue(l,s)},napi_get_value_bigint_words(e,t,n,a,s){let r=ut[e],o=r.get(t),i=r.u32[a>>2];n&&(r.i32[n]=o<0n?1:0);let l=0;if(s){let e=(1n<<64n)-1n,t=r.u64,n=s>>3;for(o<0n&&(o=-o);l<i&&0n!==o;l++)t[n++]=o&e,o>>=64n}for(;o>0n;)l++,o>>=64n;return r.setPointer(a,l)},napi_get_null:(e,t)=>ut[e].setPointer(t,1),napi_create_array:(e,t)=>ut[e].createValue([],t),napi_create_array_with_length:(e,t,n)=>ut[e].createValue(new Array(t),n),napi_set_element(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[n]=o,0},napi_get_element(e,t,n,a){let s=ut[e],r=s.get(t)[n];return s.createValue(r,a)},napi_has_element(e,t,n,a){let s=ut[e],r=s.get(t);return s.memory[a]=r.hasOwnProperty(n)?1:0,0},napi_delete_element(e,t,n,a){let s=ut[e],r=s.get(t),o=!1;try{o=delete r[n]}catch(e){}return a&&(s.memory[a]=o?1:0),0},napi_get_array_length(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s.length)},napi_get_undefined:(e,t)=>ut[e].setPointer(t,0),napi_create_function(e,t,n,a,s,r){let o=ut[e],i=o.createFunction(a,s);return Object.defineProperty(i,"name",{value:o.getString(t,n),configurable:!0}),o.createValue(i,r)},napi_call_function(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.get(n),c=new Array(a),u=o.u32;for(let e=0;e<a;e++)c[e]=o.get(u[s>>2]),s+=4;try{let e=l.apply(i,c);return o.createValue(e,r)}catch(e){return o.pendingException=e,10}},napi_new_instance(e,t,n,a,s){let r=ut[e],o=r.get(t),i=new Array(n),l=r.u32;for(let e=0;e<n;e++)i[e]=r.get(l[a>>2]),a+=4;try{let e=new o(...i);return r.createValue(e,s)}catch(e){return r.pendingException=e,10}},napi_get_cb_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);o.setPointer(n,i.args.length);for(let e=0;e<i.args.length;e++)o.createValue(i.args[e],a),a+=4;return o.createValue(i.thisArg,s),o.setPointer(r,i.data),0},napi_get_new_target(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(s.newTarget,n)},napi_create_threadsafe_function(e,t,n,a,s,r,o,i,l,c,u){let p=ut[e],h=t?p.get(t):void 0,d=c?p.table.get(c):void 0,m=new vt(p,h,d,l);if(i){let t=p.table.get(i);yt.register(m,new ft(e,t,0,m.id))}return p.setPointer(u,m.id),0},napi_ref_threadsafe_function:()=>0,napi_unref_threadsafe_function:()=>0,napi_acquire_threadsafe_function:()=>0,napi_release_threadsafe_function:(e,t)=>(bt[e]=void 0,0),napi_call_threadsafe_function(e,t,n){let a=bt[e];a.env.pushScope();try{if(a.nativeFn){let e=a.fn?a.env.pushValue(a.fn):0;a.nativeFn(a.env.id,e,a.context,t)}else a.fn&&a.fn()}finally{a.env.popScope()}},napi_get_threadsafe_function_context(e,t){let n=bt[e];return n.env.setPointer(t,n.context),0},napi_throw(e,t){let n=ut[e];return n.pendingException=n.get(t),0},napi_throw_error(e,t,n){let a=ut[e],s=new Error(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_type_error(e,t,n){let a=ut[e],s=new TypeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_range_error(e,t,n){let a=ut[e],s=new RangeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_create_error(e,t,n,a){let s=ut[e],r=new Error(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_type_error(e,t,n,a){let s=ut[e],r=new TypeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_range_error(e,t,n,a){let s=ut[e],r=new RangeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_get_and_clear_last_exception(e,t){let n=ut[e],a=n.pendingException;return n.pendingException=null,n.createValue(a,t)},napi_is_exception_pending(e,t){let n=ut[e];return n.memory[t]=n.pendingException?1:0,0},napi_fatal_exception(e,t){throw new Error("not implemented")},napi_fatal_error(e,t,n,a){throw new Error("not implemented")},napi_get_global:(e,t)=>ut[e].setPointer(t,2),napi_create_buffer(e,t,n,a){let s=ut[e],r=s.instance.exports.napi_wasm_malloc(t);n&&s.setPointer(n,r);let o=void 0!==globalThis.Buffer?globalThis.Buffer.from(s.memory.buffer,r,t):s.memory.subarray(r,r+t);return s.createValue(o,a)},napi_create_buffer_copy(e,t,n,a,s){let r=ut[e],o=r.instance.exports.napi_wasm_malloc(t);r.memory.set(r.memory.subarray(n,n+t),o),a&&r.setPointer(a,o);let i=void 0!==globalThis.Buffer?globalThis.Buffer.from(r.memory.buffer,o,t):buf;return r.createValue(i,s)},napi_create_external_buffer(e,t,n,a,s,r){let o=ut[e],i=void 0!==globalThis.Buffer?globalThis.Buffer.from(o.memory.buffer,n,t):o.memory.subarray(n,n+t);if(a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return o.createValue(i,r)},napi_get_buffer_info(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getBufferInfo(r,n);return s.setPointer(a,o)},napi_create_arraybuffer(e,t,n,a){let s=ut[e],r=new ArrayBuffer(t);return n&&s.getBufferInfo(r,ptr),s.createValue(r,a)},napi_create_external_arraybuffer:(e,t,n,a,s,r)=>22,napi_get_arraybuffer_info(e,t,n,a){let s=ut[e],r=s.getBufferInfo(s.get(t),n);return s.setPointer(a,r)},napi_detach_arraybuffer(e,t){let n=ut[e].get(t);return"function"==typeof structuredClone&&structuredClone(n,{transfer:[n]}),0},napi_is_detached_arraybuffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=0===s.byteLength?1:0,0},napi_create_typedarray(e,t,n,a,s,r){let o=ut[e],i=new(0,ct[t])(o.get(a),s,n);return o.createValue(i,r)},napi_create_dataview(e,t,n,a,s){let r=ut[e],o=r.get(n),i=new DataView(o,a,t);return r.createValue(i,s)},napi_get_typedarray_info(e,t,n,a,s,r,o){let i=ut[e],l=i.get(t);return i.setPointer(n,ct.indexOf(l.constructor)),i.setPointer(a,l.length),i.getBufferInfo(l,s),i.createValue(l.buffer,r),i.setPointer(o,l.byteOffset)},napi_get_dataview_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);return o.setPointer(n,i.byteLength),o.getBufferInfo(i,a),o.createValue(i.buffer,s),o.setPointer(r,i.byteOffset)},napi_create_string_utf8(e,t,n,a){let s=ut[e],r=ht.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_utf8(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,function(e){let t=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319&&n<e.length-1){let t=e.charCodeAt(++n);56320==(64512&t)?a=((1023&a)<<10)+(1023&t)+65536:n--}4294967168&a?4294965248&a?4294901760&a?4292870144&a||(t+=4):t+=3:t+=2:t++}return t}(o));let i=gt.encodeInto(o,r.memory.subarray(n,n+a-1));return r.memory[n+i.written]=0,r.setPointer(s,i.written)},napi_create_string_latin1(e,t,n,a){let s=ut[e],r=dt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_latin1(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.memory,l=Math.min(o.length,a-1);for(let e=0;e<l;e++){let t=o.charCodeAt(e);i[n++]=t}return i[n]=0,r.setPointer(s,l)},napi_create_string_utf16(e,t,n,a){let s=ut[e],r=mt.decode(s.memory.subarray(t,t+2*n));return s.createValue(r,a)},napi_get_value_string_utf16(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.u16,l=n>>1,c=Math.min(o.length,a-1);for(let e=0;e<c;e++){let t=o.charCodeAt(e);i[l++]=t}return i[l]=0,r.setPointer(s,c)},napi_create_date:(e,t,n)=>ut[e].createValue(new Date(t),n),napi_get_date_value(e,t,n){let a=ut[e],s=a.get(t);a.f64[n>>3]=s.valueOf()},napi_create_symbol(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Symbol(s),n)},napi_coerce_to_bool(e,t,n){let a=ut[e];return a.createValue(Boolean(a.get(t)),n)},napi_coerce_to_number(e,t,n){let a=ut[e];return a.createValue(Number(a.get(t)),n)},napi_coerce_to_object(e,t,n){let a=ut[e];return a.createValue(Object(a.get(t)),n)},napi_coerce_to_string(e,t,n){let a=ut[e];return a.createValue(String(a.get(t)),n)},napi_typeof(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,(()=>{switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"number":return 3;case"string":return 4;case"symbol":return 5;case"object":return null===s?1:s instanceof _t?8:6;case"function":return 7;case"bigint":return 9}})())},napi_instanceof(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r instanceof o?1:0,0},napi_is_array(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=Array.isArray(s)?1:0,0},napi_is_buffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=(void 0!==globalThis.Buffer?globalThis.Buffer.isBuffer(s):s instanceof Uint8Array)?1:0,0},napi_is_date(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Date?1:0,0},napi_is_error(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Error?1:0,0},napi_is_typedarray(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=!ArrayBuffer.isView(s)||s instanceof DataView?0:1,0},napi_is_dataview(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof DataView?1:0,0},napi_strict_equals(e,t,n,a){let s=ut[e];return s.memory[a]=s.get(t)===s.get(n)?1:0,0},napi_wrap(e,t,n,a,s,r){let o=ut[e],i=o.get(t);if(o.wrappedObjects.set(i,n),a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return r?wt.napi_create_reference(e,t,1,r):0},napi_unwrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return a.setPointer(n,r),0},napi_remove_wrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return yt.unregister(s),a.wrappedObjects.delete(s),a.setPointer(n,r)},napi_type_tag_object(e,t,n){throw new Error("not implemented")},napi_check_object_type_tag(e,t,n){throw new Error("not implemented")},napi_add_finalizer(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.table.get(a);return yt.register(i,new ft(e,l,s,n)),r?wt.napi_create_reference(e,t,1,r):0},napi_create_promise(e,t,n){let a=ut[e],s=new Promise(((e,n)=>{a.createValue({resolve:e,reject:n},t)}));return a.createValue(s,n)},napi_resolve_deferred(e,t,n){let a=ut[e],{resolve:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_reject_deferred(e,t,n){let a=ut[e],{reject:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_is_promise(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Promise?1:0,0},napi_run_script(e,t,n){let a=ut[e],s=a.get(t),r=(0,eval)(s);return a.createValue(r,n)},napi_create_external(e,t,n,a,s){let r=ut[e],o=new _t;if(r.externalObjects.set(o,t),n){let s=r.table.get(n);yt.register(o,new ft(e,s,a,t))}return r.createValue(o,s)},napi_get_value_external(e,t,n){let a=ut[e],s=a.get(t),r=a.externalObjects.get(s);return a.setPointer(n,r)},napi_adjust_external_memory:()=>0};let kt;function Nt(e,t,n){kt(e,t,n)}const St=0,Lt=1,Pt=2;let Ct,jt,xt;function At(e){return Ct.transform(e)}(async function(e){if(Ct)return;if(jt)return void await jt;let t;("string"==typeof(e=e??new URL(o(229),o.b))||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=async function(e){try{return(await o.e(996).then(o.t.bind(o,996,19))).readFileSync(e)}catch{return fetch(e)}}(e)),jt=e.then((e=>async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(e,{env:{...wt,await_promise_sync:Nt,__getrandom_custom:(e,n)=>{let a=t.memory.subarray(e,e+n);crypto.getRandomValues(a)}}}))).then((({instance:e})=>{e.exports.register_module(),t=new pt(e),xt=function(e){let t,n,a,{instance:s,exports:r}=e,{asyncify_get_state:o,asyncify_start_unwind:i,asyncify_stop_unwind:l,asyncify_start_rewind:c,asyncify_stop_rewind:u}=s.exports,p=s.exports.napi_wasm_malloc(4104),h=p+8,d=p+8+4096;function m(){if(o()!==St)throw new Error(`Invalid async state ${o()}, expected 0.`)}return new Int32Array(e.memory.buffer,p).set([h,d]),kt=(s,r,l)=>{if(o()===Pt)return u(),null!=n&&e.createValue(n,r),null!=a&&e.createValue(a,l),void(t=n=a=null);m(),t=e.get(s),i(p)},async function(e){m();let s=r.bundle(e);for(;o()===Lt;){l();try{n=await t}catch(e){a=e}m(),c(p),s=r.bundle(e)}return m(),s}}(t),Ct=t.exports})),await jt})().then((()=>{window.patternCss.transform=At}));const Tt=(e,t,n)=>{const a=new Set([e.className?.split(" "),n.className?.split(" ")].flat().filter(Boolean)),{pcssClassId:s}=n;return!s||a.has(s)?e:(a.add(s),{...e,className:[...a].join(" ")})},Et={pcssAdditionalCss:{type:"string"},pcssAdditionalCssCompiled:{type:"string",default:""},pcssClassId:{type:"string",default:""}};(0,e.addFilter)("blocks.registerBlockType","kevinbatdorf/pcss-block-settings",(e=>{const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n;const a=null!==(n=t?.(e))&&void 0!==n?n:{};return Tt(a,0,e)},{...e,attributes:{...e.attributes,...Et}}})),(0,e.addFilter)("editor.BlockEdit","kevinbatdorf/pcss-block-control",(e=>o=>((e,o)=>{const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,d]=(0,s.useState)([]),m=(0,r.useSelect)((e=>{const{isSavingPost:t,isAutosavingPost:n}=e(it.store);return t()||n()}),[]),{attributes:g,setAttributes:f,clientId:y}=o,{pcssClassId:_,pcssAdditionalCss:b,pcssAdditionalCssCompiled:v,className:w}=g,[k,N]=(0,s.useState)(b),[S,L]=(0,s.useState)(),[P,C]=(0,s.useState)(v||""),j="[block] {\n  \n}",x=(0,s.useCallback)((e=>{if(void 0===e)return void N(void 0);const t=(0,i.escapeHTML)(e);if(d([]),N(t),!window.patternCss?.transform)return;const n=window.patternCss.transform({filename:"raw.css",code:(new TextEncoder).encode(t),minify:!0,errorRecovery:!0,visitor:{Selector(e){const{name:t,type:n}=e[0],{name:a,type:s}=window.patternCss.selectorOverride||{};return"attribute"===n&&"block"===t||n===s&&t===a?[{...e[0],type:"class",name:_},...e.slice(1)]:"nesting"===e[0].type?e:[{type:"class",name:_},{type:"combinator",value:"descendant"},...e]}}});n.warnings.length>0?d(n.warnings):L(n.code)}),[_]);return(0,s.useEffect)((()=>{b&&x(b)}),[x,b]),(0,s.useEffect)((()=>{void 0!==S&&C((new TextDecoder).decode(S))}),[S]),(0,s.useEffect)((()=>{if(void 0===k)return;f({pcssAdditionalCss:k,pcssClassId:_||`pcss-${y?.split("-")[0]}`});const e=w?.split(" ")||[];e?.includes(_)||f({className:lt(e,_)})}),[k,f,_,y,w]),(0,s.useEffect)((()=>{if(!_||!m)return;const e=w?.split(" ")||[];if(e?.find((e=>e.startsWith(_))))return;const t=lt(e,_);f({className:t})}),[m,w,_,f]),(0,s.useEffect)((()=>{P!==v&&f({pcssAdditionalCssCompiled:P})}),[P,f,v]),(0,s.useLayoutEffect)((()=>{if(void 0===P)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow,t=e?e?.document:document.querySelector(".editor-styles-wrapper");if(!t)return;const n=`pcss-styles-block-${_}`,a=t?.querySelector(`#${n}`);if(a)return void(a.innerHTML=P);const s=e?.document?e.document.createElement("style"):document.createElement("style");s.id=n,s.innerHTML=P,e?.document?.head?e.document.head.appendChild(s):t.appendChild(s)}),[P,_]),(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(e,{...o}),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Additional CSS",initialOpen:!1,className:"pattern-css-editor"},(0,t.createElement)("div",{className:"relative",ref:c},(0,t.createElement)(rt,{value:null!=k?k:j,"data-cy":"pcss-editor-block",onChange:x,onFocus:e=>{e.target.value===j&&(e=>{const t=e.value.split("\n"),n=t[0].length+t[1].length+1;requestAnimationFrame((()=>{e.focus(),e.setSelectionRange(n,n)}))})(e.target),p(!0)},onBlur:()=>p(!1),lineOptions:h.map((({loc:e})=>({line:e.line,classes:["line-error"]})))}),u?null:(0,t.createElement)(ot,{handleChange:x,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
     1(()=>{var e,t,n,a,s={69:function(e,t,n){"use strict";var a,s=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(609)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),h="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),d="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(d,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(d," {\n    color: transparent !important;\n  }\n\n  .").concat(d,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,a=e.selectionStart,s=e.selectionEnd;t._recordChange({value:n,selectionStart:a,selectionEnd:s})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var a,s,o;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(a=t._getLines(d.value,d.selectionStart).pop())||void 0===a?void 0:a.match(m),f=null===(s=t._getLines(e.value,e.selectionStart).pop())||void 0===s?void 0:s.match(m);if((null==g?void 0:g[1])&&(null===(o=null==f?void 0:f[1])||void 0===o?void 0:o.startsWith(g[1])))return void(t._history.stack[t._history.offset]=r(r({},e),{timestamp:h}))}}t._history.stack.push(r(r({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,a=t._history.stack[t._history.offset];a&&n&&(t._history.stack[t._history.offset]=r(r({},a),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a-1];s&&(t._updateInput(s),t._history.offset=Math.max(a-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a+1];s&&(t._updateInput(s),t._history.offset=Math.min(a+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,a=n.tabSize,s=n.insertSpaces,r=n.ignoreTabKey,o=n.onKeyDown;if(!o||(o(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,d=(s?" ":"\t").repeat(a);if(9===e.keyCode&&!r&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(_=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(l!==f){var y=_[m];t._applyEdits({value:f,selectionStart:(null==y?void 0:y.startsWith(d))?c-d.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var _,b=(_=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;y=_[b],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=b&&t<=v?d+e:e})).join("\n"),selectionStart:y&&/\S/.test(y)?c+d.length:c,selectionEnd:u+d.length*(v-b+1)})}else{var w=c+d.length;t._applyEdits({value:l.substring(0,c)+d+l.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=c!==u;l.substring(0,c).endsWith(d)&&!k&&(e.preventDefault(),w=c-d.length,t._applyEdits({value:l.substring(0,c-d.length)+l.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var N=t._getLines(l,c).pop(),S=null==N?void 0:N.match(/^\s+/);if(null==S?void 0:S[0]){e.preventDefault();var L="\n"+S[0];w=c+L.length,t._applyEdits({value:l.substring(0,c)+L+l.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),c!==u&&P&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+P[0]+l.substring(c,u)+P[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(h?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(h?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||h&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,a=n.value,s=n.selectionStart,r=n.selectionEnd;t._recordChange({value:a,selectionStart:s,selectionEnd:r},!0),t.props.onValueChange(a)},t._history={stack:[],offset:-1},t._input=null,t}return s(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.style,s=t.padding,o=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,h=t.disabled,g=t.form,y=t.maxLength,_=t.minLength,b=t.name,v=t.placeholder,w=t.readOnly,k=t.required,N=t.onClick,S=t.onFocus,L=t.onBlur,P=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),j=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),x={paddingTop:"object"==typeof s?s.top:s,paddingRight:"object"==typeof s?s.right:s,paddingBottom:"object"==typeof s?s.bottom:s,paddingLeft:"object"==typeof s?s.left:s},A=o(n);return u.createElement("div",r({},j,{style:r(r({},f.container),a)}),u.createElement("pre",r({className:C,"aria-hidden":"true",style:r(r(r({},f.editor),f.highlight),x)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),u.createElement("textarea",{ref:function(t){return e._input=t},style:r(r(r({},f.editor),f.textarea),x),className:d+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:N,onKeyUp:P,onFocus:S,onBlur:L,disabled:h,form:g,maxLength:y,minLength:_,name:b,placeholder:v,readOnly:w,required:k,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},63:(e,t,n)=>{"use strict";var a=n(609),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=r({inst:{value:n,getSnapshot:t}}),s=a[0].inst,u=a[1];return i((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},888:(e,t,n)=>{"use strict";e.exports=n(63)},486:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const s=a(n(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const s=e.charCodeAt(n);let r=s,o=!1;if(s>=55296&&s<=56319&&n+1<a){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(s-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),a=n!==t,s=a?new Uint32Array(t+1):null;a&&(s[t]=n);const r=a?new Uint32Array(n+1):null;a&&(r[n]=t);const o=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}a&&(s[n]=l,u&&(s[n+1]=l),c<=127?r[l+0]=n:c<=2047?(r[l+0]=n,r[l+1]=n):c<=65535?(r[l+0]=n,r[l+1]=n,r[l+2]=n):(r[l+0]=n,r[l+1]=n,r[l+2]=n,r[l+3]=n)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let a=0,s=e.length;a<s;a++){const s=new i(e[a]);t[a]=s.createString(r),n[a]=s.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const s=r._omalloc(4*e.length);r.HEAPU32.set(n,s/4);const o=r._createOnigScanner(a,s,e.length);for(let n=0,a=e.length;n<a;n++)r._ofree(t[n]);r._ofree(s),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=o,s=0;if("number"==typeof n?(8&n&&(a=!0),s=n):"boolean"==typeof n&&(a=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,a,s);return e.dispose(),n}return this._findNextMatchSync(e,t,a,s)}_findNextMatchSync(e,t,n,a){const s=this._onigBinding;let r;if(r=n?s._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):s._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=s.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:n,end:a,length:a-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,n,a){(0,s.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),a),{}}}).then((e=>{r=e,n()}))}(t,n,a,o),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,n=a}));var s,r=Object.assign({},a),o=[];s=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||P(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var p,h,d,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&g)return g.decode(e.subarray(t,s));for(var r="";t<s;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=d=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var _=[],b=[],v=[];function w(e){_.unshift(e)}function k(e){v.unshift(e)}var N=0,S=null,L=null;function P(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,j;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==C&&i)return new Uint8Array(i);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){P(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function E(e){try{return l.grow(e-p.byteLength+65535>>>16),y(l.buffer),1}catch(e){}}x(C="onig.wasm")||(C=function(e){return a.locateFile?a.locateFile(e,""):""+e}(C)),j="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var I,B={emscripten_get_now:j,emscripten_memcpy_big:function(e,t,n){h.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=h.length,a=2147483648;if((e>>>=0)>a)return!1;for(var s=1;s<=4;s*=2){var r=n*(1+.2/s);if(r=Math.min(r,e+100663296),E(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,a){for(var s=0,r=0;r<n;r++){var o=d[t>>2],i=d[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,h[o+l]);s+=i}return d[a>>2]=s,0}};function M(e){function n(){I||(I=!0,a.calledRun=!0,m||(T(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());T(v)}()))}e=e||o,N>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)w(a.preRun.shift());T(_)}(),N>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:B,wasi_snapshot_preview1:B};function t(e,t){var n=e.exports;a.asm=n,y((l=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(N--,a.monitorRunDependencies&&a.monitorRunDependencies(N),0==N&&(null!==S&&(clearInterval(S),S=null),L)){var t=L;L=null,t()}}()}function s(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(C)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),P(e)}))}if(N++,a.monitorRunDependencies&&a.monitorRunDependencies(N),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(C)||"function"!=typeof fetch?r(s):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(s)}))}))).catch(n)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},L=function e(){I||M(),I||(L=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(770);var e,t},e.exports=t()},217:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return!!(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,a,s,r,o,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),h=n.getForeground(e),d=n.getBackground(e);return 0!==t&&(l=t),8!==a&&(c=a),null!==s&&(u=s?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(d=i),(l|c<<8|u<<10|p<<11|h<<15|d<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=n(878);class s{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=s;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new s(t,n)})),this._defaultAttributes=new s(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[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!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new s(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=n(350),s=n(36),r=n(736),o=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function h(e,t,n,a,s){const o=r.createMatchers(t,d),l=i.RuleFactory.getCompiledRuleId(n,a,s.repository);for(const n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:s,priority:n.priority})}function d(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let a=n;a<t.length;a++)if(m(t[a],e))return n=a+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,a,s,r,o,i){return new g(e,t,n,a,s,r,o,i)};class g{constructor(e,t,n,a,s,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s)){const t=r.createMatchers(e,d);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const a=n.injections;if(a)for(let t in a)h(e,t,a[t],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&h(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=s.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new b(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,l,r,0,t,u,!0,a);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new y(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),s=new l.ScopeStack(null,e),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(t,a,r);return new y(null,s,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let a=-1,r=0,o=0;return null!==n&&(a=n.fontStyle,r=n.foregroundId,o=n.backgroundId),s.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const e of n)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),s=e.scopePath.push(t),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class _{constructor(e,t,n,a,s,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,s,r,o){return new _(this,e,t,n,a,s,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,d).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,d).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class b{constructor(e,t,n,s){this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=s.EncodedTokenAttributes.set(n,0,s.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=s.EncodedTokenAttributes.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=b},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=n(878);class s{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=s;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof s?c({baseGrammar:o,selfGrammar:r},a):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=n.injections(e.scopeName);if(i)for(const e of i)a.add(new s(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},n);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const s={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?l(p.ruleName,s,n):c(s,n)}else 4===p.kind?n.add(new r(p.scopeName,p.ruleName)):n.add(new s(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new s(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof s){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class d{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=d;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new d(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new g(n,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=n(350),s=n(44),r=n(792),o=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,s,l,p,d,m){const g=t.content.length;let f=!1,y=-1;if(d){const o=function(e,t,n,s,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof r.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=u(p.rule,e,p.stack.endRule,n,s===l),m=c.findNextMatchSync(t,s,d);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(m.ruleId!==r.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),h(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>s&&(s=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:s,anchorPosition:l,isFirstLine:n}}(e,t,n,s,l,p);l=o.stack,s=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const _=Date.now();for(;!f;){if(0!==m&&Date.now()-_>m)return new i(l,!0);b()}return new i(l,!1);function b(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${s}: |${t.content.substr(s).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,s,r,i){const l=function(e,t,n,s,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,r.endRule,n,s===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const d=u.findNextMatchSync(t,s,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${s}, anchorPosition: ${i})`),console.log(u.toString()),d&&console.log(`matched rule id: ${d.ruleId} from ${d.captureIndices[0].start} to ${d.captureIndices[0].end}`)}return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,s,r,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,s,r,o,i){let l,u=Number.MAX_VALUE,p=null,h=0;const d=o.contentNameScopesList.getScopeNames();for(let o=0,m=e.length;o<m;o++){const m=e[o];if(!m.matcher(d))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:y}=c(g,t,null,s,r===i),_=f.findNextMatchSync(n,r,y);if(!_)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const b=_.captureIndices[0].start;if(!(b>=u)&&(u=b,p=_.captureIndices,l=_.ruleId,h=m.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,s,r,i);if(!p)return l;if(!l)return p;const h=l.captureIndices[0].start,d=p.captureIndices[0].start;return d<h||p.priorityMatch&&d===h?p:l}(e,t,n,s,l,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,d=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>s;if(d===r.endRuleId){const r=l.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),h(e,t,n,l,p,r.endCaptures,u),p.produce(l,u[0].end);const o=l;if(l=l.parent,y=o.getAnchorPos(),!m&&o.getEnterPos()===s)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,p.produce(l,g),void(f=!0)}else{const o=e.getRule(d);p.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),_=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(d,s,y,u[0].end===g,null,_,_),o instanceof r.BeginEndRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName+" - "+s.debugBeginRegExp),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.endHasBackReferences&&(l=l.withEndRule(s.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.whileHasBackReferences&&(l=l.withEndRule(s.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const s=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+s.debugName+" - "+s.debugMatchRegExp),h(e,t,n,l,p,s.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>s&&(s=u[0].end,n=!1)}}function c(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileAG(t,n,s,r),findOptions:0}}function u(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileWhileAG(t,n,s,r),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function h(e,t,n,a,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,m.start):r.produce(a,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),h=o.pushAttributed(p,e),d=a.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,h),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,d,r,!1,0),s.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new d(t,m.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class d{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=d},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),l=new s,c=0,u=null,p=[],h=[];function d(){p.push(c),h.push(u)}function m(){c=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),d(),c=1;continue}if(2===l.type){u=[],d(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||g("expected colon"),r(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,d(),c=4,u=t;continue}if(3===l.type){let n={};o&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,d(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),d(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),d(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class s{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,s=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(a=s.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===a){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(a=s.charCodeAt(r),r++,l++,92!==a){if(34===a)break}else r++,l++}t.value=s.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,l++;else if(123===a)t.type=3,r++,l++;else if(93===a)t.type=4,r++,l++;else if(125===a)t.type=5,r++,l++;else if(58===a)t.type=6,r++,l++;else if(44===a)t.type=7,r++,l++;else if(110===a){if(t.type=8,r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;r++,l++}else if(116===a){if(t.type=9,r++,l++,a=s.charCodeAt(r),114!==a)return!1;if(r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else if(102===a){if(t.type=10,r++,l++,a=s.charCodeAt(r),97!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),115!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(a=s.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=s.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=n(391),o=n(50),i=n(652),l=n(583),c=n(965);s(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new r.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,a,s){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,n,a,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,s)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],s=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}(e);let r=s.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=s.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=s.next()}return a;function o(){if("-"===r){r=s.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=s.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=s.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=s.next()),e}if(n(r)){const e=[];do{e.push(r),r=s.next()}while(n(r));return n=>t(e,n)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=n(69),s=n(350),r=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,o=t,s.DebugFlags.InDebugMode?r.parseJSON(n,o,!0):JSON.parse(n)):function(e,t){return s.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var n,o}},69:(e,t)=>{function n(e,t,n){const a=e.length;let s=0,r=1,o=0;function i(t){if(null===n)s+=t;else for(;t>0;)10===e.charCodeAt(s)?(s++,r++,o=0):(s++,o++),t--}function l(e){null===n?s=e:i(e-s)}function c(){for(;s<a;){let t=e.charCodeAt(s);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(s,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,s);l(-1!==n?n+t.length:a)}function h(t){let n=e.indexOf(t,s);if(-1!==n){let a=e.substring(s,n);return l(n+t.length),a}{let t=e.substr(s);return l(a),t}}a>0&&65279===e.charCodeAt(0)&&(s=1);let d=0,m=null,g=[],f=[],y=null;function _(e,t){g.push(d),f.push(m),d=e,m=t}function b(){if(0===g.length)return v("illegal state stack");d=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+s+": "+t+" ~~~"+e.substr(s,50)+"~~~")}const w=function(){if(null===y)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m[y]=e,y=null,_(1,e)},k=function(){if(null===y)return v("missing <key>");let e=[];m[y]=e,y=null,_(2,e)},N=function(){let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m.push(e),_(1,e)},S=function(){let e=[];m.push(e),_(2,e)};function L(){if(1!==d)return v("unexpected </dict>");b()}function P(){return 1===d||2!==d?v("unexpected </array>"):void b()}function C(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function j(e){if(isNaN(e))return v("cannot parse float");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function x(e){if(isNaN(e))return v("cannot parse integer");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function A(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function T(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function E(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function R(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;s<a&&(c(),!(s>=a));){const l=e.charCodeAt(s);if(i(1),60!==l)return v("expected <");if(s>=a)return v("unexpected end of input");const h=e.charCodeAt(s);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),L();continue}if(u("array")){p(">"),P();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===d?w():2===d?N():(m={},null!==n&&(m[n]={filename:t,line:r,char:o}),_(1,m)),g.isClosed&&L();continue;case"array":1===d?k():2===d?S():(m=[],_(2,m)),g.isClosed&&P();continue;case"key":I=O(g),1!==d?v("unexpected <key>"):null!==y?v("too many <key>"):y=I;continue;case"string":C(O(g));continue;case"real":j(parseFloat(O(g)));continue;case"integer":x(parseInt(O(g),10));continue;case"date":A(new Date(O(g)));continue;case"data":T(O(g));continue;case"true":O(g),E(!0);continue;case"false":O(g),E(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var I;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return n(e,t,a)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,s,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,n,s,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=n(878),s=n(965),r=/\\(\d+)/,o=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,s){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,a,s){super(e,t,n,null),this._match=new m(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,a,s,r,o,i,l,c){super(e,t,n,a),this._begin=new m(s,this.id),this.beginCaptures=r,this._end=new m(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p;class h extends i{constructor(e,n,a,s,r,o,i,l,c){super(e,n,a,s),this._begin=new m(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class d{static createCaptureRule(e,t,n,a,s){return e.registerRule((e=>new l(t,e,n,a,s)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((s=>{if(e.id=s,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=a.mergeObjects({},n,e.repository));let s=e.patterns;return void 0===s&&e.include&&(s=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(s,t,n))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,d._compileCaptures(e.whileCaptures||e.captures,t,n),d._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,d._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,d._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let s=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>s&&(s=e)}for(let e=0;e<=s;e++)a[e]=null;for(const s in e){if("$vscodeTextmateLocation"===s)continue;const r=parseInt(s,10);let o=0;e[s].patterns&&(o=d.getCompiledRuleId(e[s],t,n)),a[r]=d.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,o)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=s.parseInclude(o.include);switch(e.kind){case 0:case 1:i=d.getCompiledRuleId(n[o.include],t,n);break;case 2:let a=n[e.ruleName];a&&(i=d.getCompiledRuleId(a,t,n));break;case 3:case 4:const s=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(s,n);if(l)if(r){let e=l.repository[r];e&&(i=d.getCompiledRuleId(e,t,l.repository))}else i=d.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=d.getCompiledRuleId(o,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=d;class m{constructor(e,t){if(e){const t=e.length;let n=0,a=[],s=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(n,r)),a.push("$(?!\\n)(?<!\\n)"),n=r+2):"A"!==t&&"G"!==t||(s=!0),r++}this.hasAnchor=s,0===n?this.source=e:(a.push(e.substring(n,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,a,s=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,r[e]=n,o[e]=n,i[e]=n,"\\"===n&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(s[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class s{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(n,l.getId(r),l.getId(o)),d=new h(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];d.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new s(l,c,d)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,a=t[n];for(;e;){if(o(e.scopeName,a)){if(n++,n===t.length)return!0;a=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=s;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new r(t,e[n]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],s=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),n[s++]=new c(o,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,a,s,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=s,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class p{constructor(e,t,n,a,s){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=a,this.background=s}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,a=t.parentScopes;let s=null===n?0:n.length,r=null===a?0:a.length;if(s===r)for(let e=0;e<s;e++){const t=n[e].length,s=a[e].length;if(t!==s)return s-t}return r-s}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,a=e.indexOf(".");return-1===a?(t=e,n=""):(t=e.substring(0,a),n=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,a,s,r){if(""===t)return void this._doInsertHere(e,n,a,s,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,n,a,s,r)}_doInsertHere(e,t,n,s,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,s,r)}-1===n&&(n=this._mainRule.fontStyle),0===s&&(s=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,s,r))}else this._mainRule.acceptOverwrite(e,n,s,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=n(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=n(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function s(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,((e,a,s,r)=>{let o=n[parseInt(a||s,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=s,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let a=0;a<n;a++){let n=s(e[a],t[a]);if(0!==n)return n}return 0}return n-a},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(787)})()},229:(e,t,n)=>{"use strict";e.exports=n.p+"c939b543261a8fcd831e.wasm"},609:e=>{"use strict";e.exports=window.React},673:()=>{},485:()=>{}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="pattern-css:",o.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+s){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",a+s),i.src=e),n[e]=[t];var h=(t,a)=>{i.onerror=i.onload=null,clearTimeout(d);var s=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(a))),t)return t(a)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={57:0};o.f.j=(t,n)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=s);var r=o.p+o.u(t),i=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",i.name="ChunkLoadError",i.type=s,i.request=r,a[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,s,[r,i,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);l&&l(o)}for(t&&t(n);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkpattern_css=globalThis.webpackChunkpattern_css||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.hooks;var t=o(609);const n=window.wp.blockEditor,a=window.wp.components,s=window.wp.element,r=window.wp.data,i=window.wp.escapeHtml,l=window.wp.i18n,c=window.wp.htmlEntities;var u=o(69),p=o.n(u),h=o(486),d=o(217),m="/";const g=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var f,y,_,b,v=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(v||{});class w{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=w.getLanguageId(e),n=w.getTokenType(e),a=w.getFontStyle(e),s=w.getForeground(e),r=w.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:s,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return!!(1024&e)}static set(e,t,n,a,s,r){let o=w.getLanguageId(e),i=w.getTokenType(e),l=w.getFontStyle(e),c=w.getForeground(e),u=w.getBackground(e);return 0!==t&&(o=t),0!==n&&(i=8===n?0:n),-1!==a&&(l=a),0!==s&&(c=s),0!==r&&(u=r),(o|i<<8|l<<11|(w.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function k(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function N(e){return e.startsWith("./")?e.slice(2):e}function S(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function L(...e){return e.map(k).map(N).join("/")}function P(e){return 32===e||9===e}function C(e){return 10===e||13===e}function j(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(f||(f={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(y||(y={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(_||(_={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(b||(b={}));const x=function(e,t=[],n=y.DEFAULT){let a=null,s=[];const r=[];function o(e){Array.isArray(s)?s.push(e):null!==a&&(s[a]=e)}return function(e,t,n=y.DEFAULT){const a=function(e,t=!1){const n=e.length;let a=0,s="",r=0,o=16,i=0,l=0,c=0,u=0,p=0;function h(t,n){let s=0,r=0;for(;s<t||!n;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,s++}return s<t&&(r=-1),r}function d(){if(s="",p=0,r=a,l=i,u=c,a>=n)return r=n,o=17;let t=e.charCodeAt(a);if(P(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(P(t));return o=15}if(C(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),i++,c=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,s=function(){let t="",s=a;for(;;){if(a>=n){t+=e.substring(s,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(s,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(C(r)){t+=e.substring(s,a),p=2;break}p=6}a++}else{if(t+=e.substring(s,a),a++,a>=n){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}s=a}}return t}(),o=10;case 47:const l=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<n&&!C(e.charCodeAt(a));)a++;return s=e.substring(l,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=n-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,C(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,c=a)}return r||(a++,p=1),s=e.substring(l,a),o=13}return s+=String.fromCharCode(t),a++,o=16;case 45:if(s+=String.fromCharCode(t),a++,a===n||!j(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&j(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&j(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&j(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&j(e.charCodeAt(a))){for(a++;a<e.length&&j(e.charCodeAt(a));)a++;n=a}else p=3;return e.substring(t,n)}(),o=11;default:for(;a<n&&m(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(s=e.substring(r,a),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(t),a++,o=16}}function m(e){if(P(e)||C(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,s="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>l,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),s=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}const c=o(t.onObjectBegin),u=l(t.onObjectProperty),p=r(t.onObjectEnd),h=o(t.onArrayBegin),d=r(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=r(t.onComment),_=i(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function w(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:b||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:b?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function N(e){const t=a.getTokenValue();return e?m(t):(u(t),s.push(t)),w(),!0}function S(){switch(a.getToken()){case 3:return function(){h(),w();let e=!0,t=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&v)break}else t&&k(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||k(4,[],[4,5]),t=!0}return d(),e||s.pop(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&v)break}else e&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),!1):(N(!1),6===a.getToken()?(g(":"),w(),S()||k(4,[],[2,5])):k(5,[],[2,5]),s.pop(),!0))||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return N(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}w(),17===a.getToken()?!!n.allowEmptyContent||k(4,[],[]):S()?17!==a.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(s),s=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(s),s=e,a=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(e,n,a)=>{t.push({error:e,offset:n,length:a})}},n),s[0]};var A;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(A||(A={}));const T="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,E="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,R="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,O=T||!E&&!R;let I="",B="";let M=null;function G(e){if(O)return`${I}${e}`;{const t=o(485);return t.isAbsolute(e)?e:t.resolve(m,"..",e)}}async function F(e){const t=[],n=await async function(e){const t=G(e);if(O)return await fetch(t).then((e=>e.text()));{const e=o(673);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(n)}catch(e){if(a=x(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function D(e){const t=$(await F(e));if(t.include){const n=await D(L(...S(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function $(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...V(e)};var a;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(a=n).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),n}const U={light:"#333333",dark:"#bbbbbb"},W={light:"#fffffe",dark:"#1e1e1e"};function V(e){let t,n,a=e.settings?e.settings:e.tokenColors;const s=a?a.find((e=>!e.name&&!e.scope)):void 0;return s?.settings?.foreground&&(t=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?U.light:U.dark),n||(n="light"===e.type?W.light:W.dark),{fg:t,bg:n}}class q{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await F(e)}(g.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function z(e,t){let n=[];for(let a=0,s=t.length;a<s;a++){let s=t.slice(0,a),r=t[a];n[a]={scopeName:r,themeMatches:J(e,r,s)}}return n}function H(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function K(e,t,n,a){if(!H(e,n))return!1;let s=t.length-1,r=a.length-1;for(;s>=0&&r>=0;)H(t[s],a[r])&&s--,r--;return-1===s}function J(e,t,n){let a=[],s=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);K(l[l.length-1],l.slice(0,l.length-1),t,n)&&(a[s++]=i,e=r)}}return a}var Q=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],X={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Y(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Z(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)X[a]&&t.push({type:"setDecoration",value:X[a]});else if(a<=29){const e=X[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-30]}});else if(38===a){const n=Z(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-40]}});else if(48===a){const n=Z(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-100+8]}})}return t}var te={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ne(e=te){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return s=e.index,function(){if(a)return a;a=[];for(let e=0;e<Q.length;e++)a.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)a.push(n([e[t],e[s],e[r]]));let s=8;for(let e=0;e<24;e++,s+=10)a.push(n([s,s,s]));return a}()[s]}var s}}}const ae={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function se(e,t={}){const n=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),s=t.elements||{};function r(e="",t={},n){const a=s[e]||ae[e];return a?(n=n.filter(Boolean),a({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",r("code",{},e.map(((n,s)=>{const o=s+1;return r("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:n,index:s},n.map(((e,a)=>{const s=[`color: ${e.color||t.fg}`];return e.fontStyle&v.Italic&&s.push("font-style: italic"),e.fontStyle&v.Bold&&s.push("font-weight: bold"),e.fontStyle&v.Underline&&s.push("text-decoration: underline"),r("token",{style:s.join("; "),tokens:n,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>re[e])))]);var o})))})))])}const re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class oe extends d.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=g.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await D(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=$(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ie(e){return"string"==typeof e?g.find((t=>t.id===e||t.aliases?.includes(e))):e}async function le(e){const{_languages:t,_themes:n,_wasmPath:a}=function(e){let t=g,n=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(ie)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:a}}(e),s=new q(async function(e){if(!M){let t;if(O)t="string"==typeof B?(0,h.loadWASM)({data:await fetch(G(L(...S(e),"onig.wasm")))}):(0,h.loadWASM)({data:B});else{const e=o(485).join(486,"../onig.wasm"),n=o(673).readFileSync(e).buffer;t=(0,h.loadWASM)(n)}M=t.then((()=>({createOnigScanner:e=>(0,h.createOnigScanner)(e),createOnigString:e=>(0,h.createOnigString)(e)})))}return M}(a),"vscode-oniguruma"),r=new oe(s);e.paths?.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(s.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await r.loadThemes(n))[0];let l;await r.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<Q.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,a=Q[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${a})`}return e}();function u(e){const t=e?r.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(r.setTheme(t),l=t);const n=r.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:s}=function(e){const t=r.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,a,s){let r=n.split(/\r\n|\r|\n/),o=d.INITIAL,i=[],l=[];for(let n=0,c=r.length;n<c;n++){let c,u,p,h=r[n];if(""===h){i=[],l.push([]);continue}s.includeExplanation&&(c=a.tokenizeLine(h,o),u=c.tokens,p=0);let d=a.tokenizeLine2(h,o),m=d.tokens.length/2;for(let n=0;n<m;n++){let a=d.tokens[2*n],r=n+1<m?d.tokens[2*n+2]:h.length;if(a===r)continue;let o=d.tokens[2*n+1],l=t[w.getForeground(o)],c=w.getFontStyle(o),g=[];if(s.includeExplanation){let t=0;for(;a+t<r;){let n=u[p],a=h.substring(n.startIndex,n.endIndex);t+=a.length,g.push({content:a,scopes:z(e,n.scopes)}),p++}}i.push({content:h.substring(a,r),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],o=d.ruleStack}return l}(o,i,e,s,a)}function m(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),a=ne(Object.fromEntries(Q.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(a){const s=[];let r=0;do{const o=Y(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const a=ee(o.sequence);for(const s of a)"resetAll"===s.type?(e=null,t=null,n.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?t=null:"resetDecoration"===s.type&&n.delete(s.value);for(const s of a)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?t=s.value:"setDecoration"===s.type&&n.add(s.value)}r=o.position}while(r<a.length);return s}}}();return n.map((t=>s.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let s=v.None;return t.decorations.has("bold")&&(s|=v.Bold),t.decorations.has("italic")&&(s|=v.Italic),t.decorations.has("underline")&&(s|=v.Underline),{content:t.value,color:n,fontStyle:s}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let a;a="object"==typeof t?t:{lang:t,theme:n};const s=p(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=u(a.theme);return se(s,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:m,ansiToHtml:function(e,t){const n=m(e,t?.theme),{_theme:a}=u(t?.theme);return se(n,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await r.loadTheme(e)},loadLanguage:async function(e){const t=ie(e);s.addLanguage(t),await r.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return r.getLoadedThemes()},getLoadedLanguages:function(){return r.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var ce=o(888);const ue=()=>{},pe=ue(),he=Object,de=e=>e===pe,me=e=>"function"==typeof e,ge=(e,t)=>({...e,...t}),fe=new WeakMap;let ye=0;const _e=e=>{const t=typeof e,n=e&&e.constructor,a=n==Date;let s,r;if(he(e)!==e||a||n==RegExp)s=a?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=fe.get(e),s)return s;if(s=++ye+"~",fe.set(e,s),n==Array){for(s="@",r=0;r<e.length;r++)s+=_e(e[r])+",";fe.set(e,s)}if(n==he){s="#";const t=he.keys(e).sort();for(;!de(r=t.pop());)de(e[r])||(s+=r+":"+_e(e[r])+",");fe.set(e,s)}}return s},be=new WeakMap,ve={},we={},ke="undefined",Ne=typeof window!=ke,Se=typeof document!=ke,Le=(e,t)=>{const n=be.get(e);return[()=>!de(t)&&e.get(t)||ve,a=>{if(!de(t)){const s=e.get(t);t in we||(we[t]=s),n[5](t,ge(s,a),s||ve)}},n[6],()=>!de(t)&&t in we?we[t]:!de(t)&&e.get(t)||ve]};let Pe=!0;const[Ce,je]=Ne&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],xe={isOnline:()=>Pe,isVisible:()=>{const e=Se&&document.visibilityState;return de(e)||"hidden"!==e}},Ae={initFocus:e=>(Se&&document.addEventListener("visibilitychange",e),Ce("focus",e),()=>{Se&&document.removeEventListener("visibilitychange",e),je("focus",e)}),initReconnect:e=>{const t=()=>{Pe=!0,e()},n=()=>{Pe=!1};return Ce("online",t),Ce("offline",n),()=>{je("online",t),je("offline",n)}}},Te=!t.useId,Ee=!Ne||"Deno"in window,Re=Ee?t.useEffect:t.useLayoutEffect,Oe="undefined"!=typeof navigator&&navigator.connection,Ie=!Ee&&Oe&&(["slow-2g","2g"].includes(Oe.effectiveType)||Oe.saveData),Be=e=>{if(me(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_e(e):"",t]};let Me=0;const Ge=()=>++Me;async function Fe(...e){const[t,n,a,s]=e,r=ge({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let o=r.populateCache;const i=r.rollbackOnError;let l=r.optimisticData;const c=r.throwOnError;if(me(n)){const e=n,a=[],s=t.keys();for(const n of s)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&a.push(n);return Promise.all(a.map(u))}return u(n);async function u(n){const[s]=Be(n);if(!s)return;const[u,p]=Le(t,s),[h,d,m,g]=be.get(t),f=()=>{const e=h[s];return(me(r.revalidate)?r.revalidate(u().data,n):!1!==r.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return f();let y,_=a;const b=Ge();d[s]=[b,0];const v=!de(l),w=u(),k=w.data,N=w._c,S=de(N)?k:N;if(v&&(l=me(l)?l(S,k):l,p({data:l,_c:S})),me(_))try{_=_(S)}catch(e){y=e}if(_&&me(_.then)){if(_=await _.catch((e=>{y=e})),b!==d[s][0]){if(y)throw y;return _}y&&v&&(e=>"function"==typeof i?i(e):!1!==i)(y)&&(o=!0,p({data:S,_c:pe}))}if(o&&!y)if(me(o)){const e=o(_,S);p({data:e,error:pe,_c:pe})}else p({data:_,error:pe,_c:pe});if(d[s][1]=Ge(),Promise.resolve(f()).then((()=>{p({_c:pe})})),!y)return _;if(c)throw y}}const De=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$e=(e,t)=>{if(!be.has(e)){const n=ge(Ae,t),a={},s=Fe.bind(pe,e);let r=ue;const o={},i=(e,t)=>{const n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,a)=>{e.set(t,n);const s=o[t];if(s)for(const e of s)e(n,a)},c=()=>{if(!be.has(e)&&(be.set(e,[a,{},{},{},s,l,i]),!Ee)){const t=n.initFocus(setTimeout.bind(pe,De.bind(pe,a,0))),s=n.initReconnect(setTimeout.bind(pe,De.bind(pe,a,1)));r=()=>{t&&t(),s&&s(),be.delete(e)}}};return c(),[e,s,c,r]}return[e,be.get(e)[4]]},[Ue,We]=$e(new Map),Ve=ge({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:(e,__,t,n,a)=>{const s=t.errorRetryCount,r=a.retryCount,o=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!de(s)&&r>s||setTimeout(n,o,a)},onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ie?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ie?5e3:3e3,compare:(e,t)=>_e(e)==_e(t),isPaused:()=>!1,cache:Ue,mutate:We,fallback:{}},xe),qe=(e,t)=>{const n=ge(e,t);if(t){const{use:a,fallback:s}=e,{use:r,fallback:o}=t;a&&r&&(n.use=a.concat(r)),s&&o&&(n.fallback=ge(s,o))}return n},ze=(0,t.createContext)({}),He=Ne&&window.__SWR_DEVTOOLS_USE__,Ke=He?window.__SWR_DEVTOOLS_USE__:[],Je=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Qe=Ke.concat((e=>(t,n,a)=>e(t,n&&((...e)=>{const[a]=Be(t),[,,,s]=be.get(Ue);if(a.startsWith("$inf$"))return n(...e);const r=s[a];return de(r)?n(...e):(delete s[a],r)}),a)));He&&(window.__SWR_DEVTOOLS_REACT__=t);const Xe=t.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ye={dedupe:!0};he.defineProperty((e=>{const{value:n}=e,a=(0,t.useContext)(ze),s=me(n),r=(0,t.useMemo)((()=>s?n(a):n),[s,a,n]),o=(0,t.useMemo)((()=>s?r:qe(a,r)),[s,a,r]),i=r&&r.provider,l=(0,t.useRef)(pe);i&&!l.current&&(l.current=$e(i(o.cache||Ue),r));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),Re((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,t.createElement)(ze.Provider,ge(e,{value:o}))}),"defaultValue",{value:Ve});const Ze=(et=(e,n,a)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:d}=a,[m,g,f,y]=be.get(s),[_,b]=Be(e),v=(0,t.useRef)(!1),w=(0,t.useRef)(!1),k=(0,t.useRef)(_),N=(0,t.useRef)(n),S=(0,t.useRef)(a),L=()=>S.current,P=()=>L().isVisible()&&L().isOnline(),[C,j,x,A]=Le(s,_),T=(0,t.useRef)({}).current,E=de(i)?a.fallback[_]:i,R=(e,t)=>{for(const n in T){const a=n;if("data"===a){if(!r(e[a],t[a])){if(!de(e[a]))return!1;if(!r(U,t[a]))return!1}}else if(t[a]!==e[a])return!1}return!0},O=(0,t.useMemo)((()=>{const e=!!_&&!!n&&(de(l)?!L().isPaused()&&!o&&(!!de(c)||c):l),t=t=>{const n=ge(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},a=C(),s=A(),r=t(a),i=a===s?r:t(s);let u=r;return[()=>{const e=t(C());return R(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[s,_]),I=(0,ce.useSyncExternalStore)((0,t.useCallback)((e=>x(_,((t,n)=>{R(n,t)||e()}))),[s,_]),O[0],O[1]),B=!v.current,M=m[_]&&m[_].length>0,G=I.data,F=de(G)?E:G,D=I.error,$=(0,t.useRef)(F),U=d?de(G)?$.current:G:F,W=!(M&&!de(D))&&(B&&!de(l)?l:!L().isPaused()&&(o?!de(F)&&c:de(F)||c)),V=!!(_&&n&&B&&W),q=de(I.isValidating)?V:I.isValidating,z=de(I.isLoading)?V:I.isLoading,H=(0,t.useCallback)((async e=>{const t=N.current;if(!_||!t||w.current||L().isPaused())return!1;let n,s,o=!0;const i=e||{},l=!f[_]||!i.dedupe,c=()=>Te?!w.current&&_===k.current&&v.current:_===k.current,u={isValidating:!1,isLoading:!1},p=()=>{j(u)},h=()=>{const e=f[_];e&&e[1]===s&&delete f[_]},d={isValidating:!0};de(C().data)&&(d.isLoading=!0);try{if(l&&(j(d),a.loadingTimeout&&de(C().data)&&setTimeout((()=>{o&&c()&&L().onLoadingSlow(_,a)}),a.loadingTimeout),f[_]=[t(b),Ge()]),[n,s]=f[_],n=await n,l&&setTimeout(h,a.dedupingInterval),!f[_]||f[_][1]!==s)return l&&c()&&L().onDiscarded(_),!1;u.error=pe;const e=g[_];if(!de(e)&&(s<=e[0]||s<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(_),!1;const i=C().data;u.data=r(i,n)?i:n,l&&c()&&L().onSuccess(n,_,a)}catch(e){h();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||me(n)&&n(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!P()||t.onErrorRetry(e,_,t,(e=>{const t=m[_];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return o=!1,p(),!0}),[_,s]),K=(0,t.useCallback)(((...e)=>Fe(s,k.current,...e)),[]);if(Re((()=>{N.current=n,S.current=a,de(G)||($.current=G)})),Re((()=>{if(!_)return;const e=H.bind(pe,Ye);let t=0;const n=((e,t,n)=>{const a=t[e]||(t[e]=[]);return a.push(n),()=>{const e=a.indexOf(n);e>=0&&(a[e]=a[a.length-1],a.pop())}})(_,m,((n,a={})=>{if(0==n){const n=Date.now();L().revalidateOnFocus&&n>t&&P()&&(t=n+L().focusThrottleInterval,e())}else if(1==n)L().revalidateOnReconnect&&P()&&e();else{if(2==n)return H();if(3==n)return H(a)}}));return w.current=!1,k.current=_,v.current=!0,j({_k:b}),W&&(de(F)||Ee?e():(a=e,Ne&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(a):setTimeout(a,1))),()=>{w.current=!0,n()};var a}),[_]),Re((()=>{let e;function t(){const t=me(u)?u(C().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){C().error||!p&&!L().isVisible()||!h&&!L().isOnline()?t():H(Ye).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,h,_]),(0,t.useDebugValue)(U),o&&de(F)&&_){if(!Te&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,S.current=a,w.current=!1;const e=y[_];if(!de(e)){const t=K(e);Xe(t)}if(!de(D))throw D;{const e=H(Ye);de(U)||(e.status="fulfilled",e.value=!0),Xe(e)}}return{mutate:K,get data(){return T.data=!0,U},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,q},get isLoading(){return T.isLoading=!0,z}}},function(...e){const n=ge(Ve,(0,t.useContext)(ze)),[a,s,r]=Je(e),o=qe(n,r);let i=et;const{use:l}=o,c=(l||[]).concat(Qe);for(let e=c.length;e--;)i=c[e](i);return i(a,s||o.fetcher||null,o)});var et;const tt=((e,t)=>(...n)=>{const[a,s,r]=Je(n),o=(r.use||[]).concat(t);return e(a,s,{...r,use:o})})(Ze,(e=>(t,n,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,n,a)))),nt=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;return le({langs:[t],theme:e})};let at=!1;const st=({theme:e,lang:t,ready:n=!0})=>{const[a,r]=(0,s.useState)(!1);var o;at||(at=!0,o=window.patternCss?.pluginUrl+"build/shiki/",I=o.endsWith("/")?o:o+"/");const{data:i,error:l}=tt({theme:e,lang:t,ready:n&&a},nt);return(0,s.useEffect)((()=>{const e=window.patternCss?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{B=e,r(!0)}))}),[]),{highlighter:i,error:l,loading:!i&&!l||!a}},rt=(0,s.forwardRef)(((e,n)=>{var a,r;const o=(0,s.useRef)(null),{value:i,onChange:l,onFocus:u,onBlur:h,lineOptions:d=[],...m}=e,{highlighter:g,error:f,loading:y}=st({theme:"light-plus",lang:"css"});return y?null:f?(0,t.createElement)("p",null,f.message):(0,t.createElement)("div",{ref:o},(0,t.createElement)(p(),{ref:n,value:(0,c.decodeEntities)(i),className:"font-jetbrains-mono border border-solid border-gray-600 wp-focus",onValueChange:l,...m,padding:{top:6,bottom:6,left:8,right:8},style:{minHeight:300,backgroundColor:null!==(a=g?.getBackgroundColor())&&void 0!==a?a:"#fff",color:null!==(r=g?.getForegroundColor())&&void 0!==r?r:"#000"},onKeyDown:e=>"Tab"===e.key&&o.current?.querySelector("textarea")?.focus(),onFocus:u,onBlur:h,highlight:e=>g?.codeToHtml((0,c.decodeEntities)(e),{lang:"css",lineOptions:d})?.replace(/<\/?[pre|code][^>]*>/g,"")}))})),ot=({handleChange:e,editorWrapperRef:n})=>(0,t.createElement)("div",{className:"flex gap-1 absolute top-px right-px"},(0,t.createElement)(a.Tooltip,{text:(0,l.__)("Clear CSS","pattern-css")},(0,t.createElement)(a.Button,{icon:"no-alt",size:"small",onClick:()=>{e(""),n.current?.querySelector("textarea")?.focus()},className:"text-gray-600 wp-focus gap-0 p-1"},(0,t.createElement)("span",{className:"sr-only"},(0,l.__)("Clear CSS","pattern-css"))))),it=window.wp.editor,lt=(e,t)=>[...new Set([...e.filter((e=>!e.startsWith("pcss-"))),t].filter(Boolean))].join(" "),ct=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],ut=[];class pt{scopes=[];referenceId=1;references=new Map;wrappedObjects=new WeakMap;externalObjects=new WeakMap;buffers=new Map;instanceData=0;pendingException=null;constructor(e){this.id=ut.length,ut.push(this),this.instance=e,this.table=e.exports.__indirect_function_table,this.exports={},this.pushScope();let t=this.scopes[this.scopes.length-1],n=t.length;t.push(this.exports);try{this.instance.exports.napi_register_module_v1(this.id,n),this.instance.exports.napi_register_wasm_v1&&this.instance.exports.napi_register_wasm_v1(this.id,n)}finally{if(this.popScope(),this.pendingException){let e=this.pendingException;throw this.pendingException=null,e}}}destroy(){ut[this.id]=void 0}getString(e,t=function(e,t){let n=0;for(;0!==e[t];)n++,t++;return n}(this.memory,e)){return ht.decode(this.memory.subarray(e,e+t))}pushScope(){let e=this.scopes.length;return this.scopes.push([void 0,null,globalThis,!0,!1]),e}popScope(){this.scopes.pop();for(let[e,t]of this.buffers)e.byteLength&&t.byteLength&&e.set(t);this.buffers.clear()}get(e){return this.scopes[this.scopes.length-1][e]}set(e,t){this.scopes[this.scopes.length-1][e]=t}pushValue(e){let t=this.scopes[this.scopes.length-1],n=t.length;return t.push(e),n}createValue(e,t){if("boolean"==typeof e)return this.setPointer(t,e?3:4),0;if(void 0===e)return this.setPointer(t,0),0;if(null===e)return this.setPointer(t,1),0;if(e===globalThis)return this.setPointer(t,2),0;let n=this.pushValue(e);return this.setPointer(t,n),0}setPointer(e,t){return this.u32[e>>2]=t,0}_u32=new Uint32Array;get u32(){return 0===this._u32.byteLength&&(this._u32=new Uint32Array(this.instance.exports.memory.buffer)),this._u32}_i32=new Int32Array;get i32(){return 0===this._i32.byteLength&&(this._i32=new Int32Array(this.instance.exports.memory.buffer)),this._i32}_u16=new Uint16Array;get u16(){return 0===this._u16.byteLength&&(this._u16=new Uint16Array(this.instance.exports.memory.buffer)),this._u16}_u64=new BigUint64Array;get u64(){return 0===this._u64.byteLength&&(this._u64=new BigUint64Array(this.instance.exports.memory.buffer)),this._u64}_i64=new BigInt64Array;get i64(){return 0===this._i64.byteLength&&(this._i64=new BigInt64Array(this.instance.exports.memory.buffer)),this._i64}_f64=new Float64Array;get f64(){return 0===this._f64.byteLength&&(this._f64=new Float64Array(this.instance.exports.memory.buffer)),this._f64}_buf=new Uint8Array;get memory(){return 0===this._buf.byteLength&&(this._buf=new Uint8Array(this.instance.exports.memory.buffer)),this._buf}getBufferInfo(e,t){if(this.buffers.has(e)){let n=this.buffers.get(e);return this.setPointer(t,n.byteOffset),n.byteLength}if(e instanceof ArrayBuffer){let n=this.copyBuffer(new Uint8Array(e));return this.setPointer(t,n.byteOffset),n.byteLength}if(e.buffer===this.instance.exports.memory.buffer)return this.setPointer(t,e.byteOffset),e.byteLength;let n=this.copyBuffer(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return this.setPointer(t,n.byteOffset),n.byteLength}copyBuffer(e){let t=this.instance.exports.napi_wasm_malloc(e.byteLength),n=this.memory;n.set(e,t);let a=n.subarray(t,t+e.byteLength);return this.buffers.set(e,a),a}createFunction(e,t){let n=this,a=n.table.get(e);return function(...e){let s=n.pushScope();try{let r=n.scopes[s],o=r.length;r.push({thisArg:this,args:e,data:t,newTarget:new.target});let i=a(n.id,o);return n.get(i)}finally{if(n.popScope(),n.pendingException){let e=n.pendingException;throw n.pendingException=null,e}}}}readPropertyDescriptor(e){let t=this.u32,n=t[e++],a=t[e++],s=t[e++],r=t[e++],o=t[e++],i=t[e++],l=t[e++],c=t[e++],u=n?this.getString(n):this.get(a),p=Boolean(1&l),h=Boolean(2&l),d=Boolean(4&l),m=Boolean(1024&l),g=r?this.createFunction(r,c):void 0,f=o?this.createFunction(o,c):void 0,y=s?this.createFunction(s,c):i?this.get(i):void 0,_={name:u,static:m,configurable:d,enumerable:h};return g||f?(_.get=g,_.set=f):y&&(_.writable=p,_.value=y),_}}const ht=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),dt=new TextDecoder("latin1"),mt=new TextDecoder("utf-16"),gt=new TextEncoder;class ft{constructor(e,t,n,a){this.env=e,this.finalize=t,this.hint=n,this.data=a}}const yt=new FinalizationRegistry((e=>{e.finalize&&e.finalize(e.env,e.data,e.hint)}));class _t{}const bt=[];class vt{constructor(e,t,n,a){this.env=e,this.fn=t,this.nativeFn=n,this.context=a,this.id=bt.length,bt.push(this)}}const wt={napi_open_handle_scope(e,t){let n=ut[e],a=n.pushScope();return n.setPointer(t,a)},napi_close_handle_scope(e,t){let n=ut[e];return t!==n.scopes.length-1?13:(n.popScope(),0)},napi_open_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_close_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_escape_handle(e,t,n,a){throw new Error("not implemented")},napi_create_object:(e,t)=>ut[e].createValue({},t),napi_set_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=s.get(a);return r[o]=i,0},napi_get_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.createValue(r[o],a)},napi_delete_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n),i=!1;try{i=delete r[o]}catch(e){}return a&&(s.memory[a]=i?1:0),0},napi_has_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=o in r?1:0,0},napi_has_own_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r.hasOwnProperty(o)?1:0,0},napi_set_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[s.getString(n)]=o,0},napi_get_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.createValue(r[o],a)},napi_has_named_property(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getString(n);return s.memory[a]=o in r?1:0,0},napi_get_property_names(e,t,n){let a=ut[e],s=a.get(t),r=Object.keys(s);return a.createValue(r,n)},napi_get_all_property_names(e,t,n,a,s,r){throw new Error("not implemented")},napi_define_properties(e,t,n,a){let s=ut[e],r=s.get(t),o=a>>2;for(let e=0;e<n;e++){let e=s.readPropertyDescriptor(o);Object.defineProperty(r,e.name,e),o+=8}return 0},napi_object_freeze(e,t){let n=ut[e].get(t);return Object.freeze(n),0},napi_object_seal(e,t){let n=ut[e].get(t);return Object.seal(n),0},napi_get_prototype(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Object.getPrototypeOf(s),n)},napi_define_class(e,t,n,a,s,r,o,i){let l=ut[e],c=l.createFunction(a,s);Object.defineProperty(c,"name",{value:l.getString(t,n),configurable:!0});let u=o>>2;for(let e=0;e<r;e++){let e=l.readPropertyDescriptor(u);e.static?Object.defineProperty(c,e.name,e):Object.defineProperty(c.prototype,e.name,e),u+=8}return l.createValue(c,i)},napi_create_reference(e,t,n,a){let s=ut[e],r=s.referenceId++;return s.references.set(r,{value:s.get(t),refcount:n}),s.setPointer(a,r)},napi_delete_reference:(e,t)=>(ut[e].references.delete(t),0),napi_get_reference_value(e,t,n){let a=ut[e],s=a.references.get(t);return a.createValue(s.value,n)},napi_reference_ref(e,t,n){let a=ut[e],s=a.references.get(t);return s.refcount++,a.setPointer(n,s.refcount)},napi_reference_unref(e,t,n){let a=ut[e],s=a.references.get(t);return 0===s.refcount?9:(s.refcount--,a.setPointer(n,s.refcount))},napi_add_env_cleanup_hook:()=>0,napi_remove_env_cleanup_hook:()=>0,napi_add_async_cleanup_hook:()=>0,napi_remove_async_cleanup_hook:()=>0,napi_set_instance_data:(e,t,n,a)=>(ut[e].instanceData=t,0),napi_get_instance_data(e,t){let n=ut[e];return n.setPointer(t,n.instanceData)},napi_get_boolean:(e,t,n)=>ut[e].setPointer(n,t?3:4),napi_get_value_bool(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s?1:0,0},napi_create_int32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_int32(e,t,n){let a=ut[e],s=a.get(t);return a.i32[n>>2]=s,0},napi_create_uint32:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_uint32(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s)},napi_create_int64:(e,t,n)=>ut[e].createValue(Number(t),n),napi_get_value_int64(e,t,n){let a=ut[e],s=a.get(t);return a.i64[n>>3]=s,0},napi_create_double:(e,t,n)=>ut[e].createValue(t,n),napi_get_value_double(e,t,n){let a=ut[e],s=a.get(t);return a.f64[n>>3]=s,0},napi_create_bigint_int64:(e,t,n)=>ut[e].createValue(BigInt.asIntN(64,t),n),napi_get_value_bigint_int64(e,t,n,a){let s=ut[e],r=s.get(t);return s.i64[n>>3]=r,a&&(s.memory[a]=BigInt.asIntN(64,r)===r?1:0),0},napi_create_bigint_uint64:(e,t,n)=>ut[e].createValue(BigInt.asUintN(64,t),n),napi_get_value_bigint_uint64(e,t,n,a){let s=ut[e],r=s.get(t);return s.u64[n>>3]=r,a&&(s.memory[a]=BigInt.asUintN(64,r)===r?1:0),0},napi_create_bigint_words(e,t,n,a,s){let r=ut[e],o=r.u64,i=a>>3,l=0n,c=0n;for(let e=0;e<n;e++)l+=o[i++]<<c,c+=64n;return l*=BigInt((-1)**t),r.createValue(l,s)},napi_get_value_bigint_words(e,t,n,a,s){let r=ut[e],o=r.get(t),i=r.u32[a>>2];n&&(r.i32[n]=o<0n?1:0);let l=0;if(s){let e=(1n<<64n)-1n,t=r.u64,n=s>>3;for(o<0n&&(o=-o);l<i&&0n!==o;l++)t[n++]=o&e,o>>=64n}for(;o>0n;)l++,o>>=64n;return r.setPointer(a,l)},napi_get_null:(e,t)=>ut[e].setPointer(t,1),napi_create_array:(e,t)=>ut[e].createValue([],t),napi_create_array_with_length:(e,t,n)=>ut[e].createValue(new Array(t),n),napi_set_element(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(a);return r[n]=o,0},napi_get_element(e,t,n,a){let s=ut[e],r=s.get(t)[n];return s.createValue(r,a)},napi_has_element(e,t,n,a){let s=ut[e],r=s.get(t);return s.memory[a]=r.hasOwnProperty(n)?1:0,0},napi_delete_element(e,t,n,a){let s=ut[e],r=s.get(t),o=!1;try{o=delete r[n]}catch(e){}return a&&(s.memory[a]=o?1:0),0},napi_get_array_length(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,s.length)},napi_get_undefined:(e,t)=>ut[e].setPointer(t,0),napi_create_function(e,t,n,a,s,r){let o=ut[e],i=o.createFunction(a,s);return Object.defineProperty(i,"name",{value:o.getString(t,n),configurable:!0}),o.createValue(i,r)},napi_call_function(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.get(n),c=new Array(a),u=o.u32;for(let e=0;e<a;e++)c[e]=o.get(u[s>>2]),s+=4;try{let e=l.apply(i,c);return o.createValue(e,r)}catch(e){return o.pendingException=e,10}},napi_new_instance(e,t,n,a,s){let r=ut[e],o=r.get(t),i=new Array(n),l=r.u32;for(let e=0;e<n;e++)i[e]=r.get(l[a>>2]),a+=4;try{let e=new o(...i);return r.createValue(e,s)}catch(e){return r.pendingException=e,10}},napi_get_cb_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);o.setPointer(n,i.args.length);for(let e=0;e<i.args.length;e++)o.createValue(i.args[e],a),a+=4;return o.createValue(i.thisArg,s),o.setPointer(r,i.data),0},napi_get_new_target(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(s.newTarget,n)},napi_create_threadsafe_function(e,t,n,a,s,r,o,i,l,c,u){let p=ut[e],h=t?p.get(t):void 0,d=c?p.table.get(c):void 0,m=new vt(p,h,d,l);if(i){let t=p.table.get(i);yt.register(m,new ft(e,t,0,m.id))}return p.setPointer(u,m.id),0},napi_ref_threadsafe_function:()=>0,napi_unref_threadsafe_function:()=>0,napi_acquire_threadsafe_function:()=>0,napi_release_threadsafe_function:(e,t)=>(bt[e]=void 0,0),napi_call_threadsafe_function(e,t,n){let a=bt[e];a.env.pushScope();try{if(a.nativeFn){let e=a.fn?a.env.pushValue(a.fn):0;a.nativeFn(a.env.id,e,a.context,t)}else a.fn&&a.fn()}finally{a.env.popScope()}},napi_get_threadsafe_function_context(e,t){let n=bt[e];return n.env.setPointer(t,n.context),0},napi_throw(e,t){let n=ut[e];return n.pendingException=n.get(t),0},napi_throw_error(e,t,n){let a=ut[e],s=new Error(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_type_error(e,t,n){let a=ut[e],s=new TypeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_range_error(e,t,n){let a=ut[e],s=new RangeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_create_error(e,t,n,a){let s=ut[e],r=new Error(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_type_error(e,t,n,a){let s=ut[e],r=new TypeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_range_error(e,t,n,a){let s=ut[e],r=new RangeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_get_and_clear_last_exception(e,t){let n=ut[e],a=n.pendingException;return n.pendingException=null,n.createValue(a,t)},napi_is_exception_pending(e,t){let n=ut[e];return n.memory[t]=n.pendingException?1:0,0},napi_fatal_exception(e,t){throw new Error("not implemented")},napi_fatal_error(e,t,n,a){throw new Error("not implemented")},napi_get_global:(e,t)=>ut[e].setPointer(t,2),napi_create_buffer(e,t,n,a){let s=ut[e],r=s.instance.exports.napi_wasm_malloc(t);n&&s.setPointer(n,r);let o=void 0!==globalThis.Buffer?globalThis.Buffer.from(s.memory.buffer,r,t):s.memory.subarray(r,r+t);return s.createValue(o,a)},napi_create_buffer_copy(e,t,n,a,s){let r=ut[e],o=r.instance.exports.napi_wasm_malloc(t);r.memory.set(r.memory.subarray(n,n+t),o),a&&r.setPointer(a,o);let i=void 0!==globalThis.Buffer?globalThis.Buffer.from(r.memory.buffer,o,t):buf;return r.createValue(i,s)},napi_create_external_buffer(e,t,n,a,s,r){let o=ut[e],i=void 0!==globalThis.Buffer?globalThis.Buffer.from(o.memory.buffer,n,t):o.memory.subarray(n,n+t);if(a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return o.createValue(i,r)},napi_get_buffer_info(e,t,n,a){let s=ut[e],r=s.get(t),o=s.getBufferInfo(r,n);return s.setPointer(a,o)},napi_create_arraybuffer(e,t,n,a){let s=ut[e],r=new ArrayBuffer(t);return n&&s.getBufferInfo(r,ptr),s.createValue(r,a)},napi_create_external_arraybuffer:(e,t,n,a,s,r)=>22,napi_get_arraybuffer_info(e,t,n,a){let s=ut[e],r=s.getBufferInfo(s.get(t),n);return s.setPointer(a,r)},napi_detach_arraybuffer(e,t){let n=ut[e].get(t);return"function"==typeof structuredClone&&structuredClone(n,{transfer:[n]}),0},napi_is_detached_arraybuffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=0===s.byteLength?1:0,0},napi_create_typedarray(e,t,n,a,s,r){let o=ut[e],i=new(0,ct[t])(o.get(a),s,n);return o.createValue(i,r)},napi_create_dataview(e,t,n,a,s){let r=ut[e],o=r.get(n),i=new DataView(o,a,t);return r.createValue(i,s)},napi_get_typedarray_info(e,t,n,a,s,r,o){let i=ut[e],l=i.get(t);return i.setPointer(n,ct.indexOf(l.constructor)),i.setPointer(a,l.length),i.getBufferInfo(l,s),i.createValue(l.buffer,r),i.setPointer(o,l.byteOffset)},napi_get_dataview_info(e,t,n,a,s,r){let o=ut[e],i=o.get(t);return o.setPointer(n,i.byteLength),o.getBufferInfo(i,a),o.createValue(i.buffer,s),o.setPointer(r,i.byteOffset)},napi_create_string_utf8(e,t,n,a){let s=ut[e],r=ht.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_utf8(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,function(e){let t=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319&&n<e.length-1){let t=e.charCodeAt(++n);56320==(64512&t)?a=((1023&a)<<10)+(1023&t)+65536:n--}4294967168&a?4294965248&a?4294901760&a?4292870144&a||(t+=4):t+=3:t+=2:t++}return t}(o));let i=gt.encodeInto(o,r.memory.subarray(n,n+a-1));return r.memory[n+i.written]=0,r.setPointer(s,i.written)},napi_create_string_latin1(e,t,n,a){let s=ut[e],r=dt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_latin1(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.memory,l=Math.min(o.length,a-1);for(let e=0;e<l;e++){let t=o.charCodeAt(e);i[n++]=t}return i[n]=0,r.setPointer(s,l)},napi_create_string_utf16(e,t,n,a){let s=ut[e],r=mt.decode(s.memory.subarray(t,t+2*n));return s.createValue(r,a)},napi_get_value_string_utf16(e,t,n,a,s){let r=ut[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.u16,l=n>>1,c=Math.min(o.length,a-1);for(let e=0;e<c;e++){let t=o.charCodeAt(e);i[l++]=t}return i[l]=0,r.setPointer(s,c)},napi_create_date:(e,t,n)=>ut[e].createValue(new Date(t),n),napi_get_date_value(e,t,n){let a=ut[e],s=a.get(t);a.f64[n>>3]=s.valueOf()},napi_create_symbol(e,t,n){let a=ut[e],s=a.get(t);return a.createValue(Symbol(s),n)},napi_coerce_to_bool(e,t,n){let a=ut[e];return a.createValue(Boolean(a.get(t)),n)},napi_coerce_to_number(e,t,n){let a=ut[e];return a.createValue(Number(a.get(t)),n)},napi_coerce_to_object(e,t,n){let a=ut[e];return a.createValue(Object(a.get(t)),n)},napi_coerce_to_string(e,t,n){let a=ut[e];return a.createValue(String(a.get(t)),n)},napi_typeof(e,t,n){let a=ut[e],s=a.get(t);return a.setPointer(n,(()=>{switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"number":return 3;case"string":return 4;case"symbol":return 5;case"object":return null===s?1:s instanceof _t?8:6;case"function":return 7;case"bigint":return 9}})())},napi_instanceof(e,t,n,a){let s=ut[e],r=s.get(t),o=s.get(n);return s.memory[a]=r instanceof o?1:0,0},napi_is_array(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=Array.isArray(s)?1:0,0},napi_is_buffer(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=(void 0!==globalThis.Buffer?globalThis.Buffer.isBuffer(s):s instanceof Uint8Array)?1:0,0},napi_is_date(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Date?1:0,0},napi_is_error(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Error?1:0,0},napi_is_typedarray(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=!ArrayBuffer.isView(s)||s instanceof DataView?0:1,0},napi_is_dataview(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof DataView?1:0,0},napi_strict_equals(e,t,n,a){let s=ut[e];return s.memory[a]=s.get(t)===s.get(n)?1:0,0},napi_wrap(e,t,n,a,s,r){let o=ut[e],i=o.get(t);if(o.wrappedObjects.set(i,n),a){let t=o.table.get(a);yt.register(i,new ft(e,t,s,n))}return r?wt.napi_create_reference(e,t,1,r):0},napi_unwrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return a.setPointer(n,r),0},napi_remove_wrap(e,t,n){let a=ut[e],s=a.get(t),r=a.wrappedObjects.get(s);return yt.unregister(s),a.wrappedObjects.delete(s),a.setPointer(n,r)},napi_type_tag_object(e,t,n){throw new Error("not implemented")},napi_check_object_type_tag(e,t,n){throw new Error("not implemented")},napi_add_finalizer(e,t,n,a,s,r){let o=ut[e],i=o.get(t),l=o.table.get(a);return yt.register(i,new ft(e,l,s,n)),r?wt.napi_create_reference(e,t,1,r):0},napi_create_promise(e,t,n){let a=ut[e],s=new Promise(((e,n)=>{a.createValue({resolve:e,reject:n},t)}));return a.createValue(s,n)},napi_resolve_deferred(e,t,n){let a=ut[e],{resolve:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_reject_deferred(e,t,n){let a=ut[e],{reject:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_is_promise(e,t,n){let a=ut[e],s=a.get(t);return a.memory[n]=s instanceof Promise?1:0,0},napi_run_script(e,t,n){let a=ut[e],s=a.get(t),r=(0,eval)(s);return a.createValue(r,n)},napi_create_external(e,t,n,a,s){let r=ut[e],o=new _t;if(r.externalObjects.set(o,t),n){let s=r.table.get(n);yt.register(o,new ft(e,s,a,t))}return r.createValue(o,s)},napi_get_value_external(e,t,n){let a=ut[e],s=a.get(t),r=a.externalObjects.get(s);return a.setPointer(n,r)},napi_adjust_external_memory:()=>0};let kt;function Nt(e,t,n){kt(e,t,n)}const St=0,Lt=1,Pt=2;let Ct,jt,xt;function At(e){return Ct.transform(e)}(async function(e){if(Ct)return;if(jt)return void await jt;let t;("string"==typeof(e=e??new URL(o(229),o.b))||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=async function(e){try{return(await o.e(996).then(o.t.bind(o,996,19))).readFileSync(e)}catch{return fetch(e)}}(e)),jt=e.then((e=>async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(e,{env:{...wt,await_promise_sync:Nt,__getrandom_custom:(e,n)=>{let a=t.memory.subarray(e,e+n);crypto.getRandomValues(a)}}}))).then((({instance:e})=>{e.exports.register_module(),t=new pt(e),xt=function(e){let t,n,a,{instance:s,exports:r}=e,{asyncify_get_state:o,asyncify_start_unwind:i,asyncify_stop_unwind:l,asyncify_start_rewind:c,asyncify_stop_rewind:u}=s.exports,p=s.exports.napi_wasm_malloc(4104),h=p+8,d=p+8+4096;function m(){if(o()!==St)throw new Error(`Invalid async state ${o()}, expected 0.`)}return new Int32Array(e.memory.buffer,p).set([h,d]),kt=(s,r,l)=>{if(o()===Pt)return u(),null!=n&&e.createValue(n,r),null!=a&&e.createValue(a,l),void(t=n=a=null);m(),t=e.get(s),i(p)},async function(e){m();let s=r.bundle(e);for(;o()===Lt;){l();try{n=await t}catch(e){a=e}m(),c(p),s=r.bundle(e)}return m(),s}}(t),Ct=t.exports})),await jt})().then((()=>{window.patternCss.transform=At}));const Tt=(e,t,n)=>{const a=new Set([e.className?.split(" "),n.className?.split(" ")].flat().filter(Boolean)),{pcssClassId:s}=n;return!s||a.has(s)?e:(a.add(s),{...e,className:[...a].join(" ")})},Et={pcssAdditionalCss:{type:"string"},pcssAdditionalCssCompiled:{type:"string",default:""},pcssClassId:{type:"string",default:""}};(0,e.addFilter)("blocks.registerBlockType","kevinbatdorf/pcss-block-settings",(e=>{const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n;const a=null!==(n=t?.(e))&&void 0!==n?n:{};return Tt(a,0,e)},{...e,attributes:{...e.attributes,...Et}}})),(0,e.addFilter)("editor.BlockEdit","kevinbatdorf/pcss-block-control",(e=>o=>((e,o)=>{const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,d]=(0,s.useState)([]),m=(0,r.useSelect)((e=>{const{isSavingPost:t,isAutosavingPost:n}=e(it.store);return t()||n()}),[]),{attributes:g,setAttributes:f,clientId:y}=o,{pcssClassId:_,pcssAdditionalCss:b,pcssAdditionalCssCompiled:v,className:w}=g,[k,N]=(0,s.useState)(b),[S,L]=(0,s.useState)(),[P,C]=(0,s.useState)(v||""),j="[block] {\n  \n}",x=(0,s.useCallback)((e=>{if(void 0===e)return void N(void 0);const t=(0,i.escapeHTML)(e);if(d([]),N(t),!window.patternCss?.transform)return;const n=window.patternCss.transform({filename:"raw.css",code:(new TextEncoder).encode(t),minify:!0,errorRecovery:!0,visitor:{Selector(e){const{name:t,type:n}=e[0],{name:a,type:s}=window.patternCss.selectorOverride||{};return"attribute"===n&&"block"===t||n===s&&t===a?[{...e[0],type:"class",name:_},...e.slice(1)]:"nesting"===e[0].type?e:[{type:"class",name:_},{type:"combinator",value:"descendant"},...e]}}});n.warnings.length>0?d(n.warnings):L(n.code)}),[_]);return(0,s.useEffect)((()=>{b&&x(b)}),[x,b]),(0,s.useEffect)((()=>{void 0!==S&&C((new TextDecoder).decode(S))}),[S]),(0,s.useEffect)((()=>{if(void 0===k)return;f({pcssAdditionalCss:k,pcssClassId:_||`pcss-${y?.split("-")[0]}`});const e=w?.split(" ")||[];e?.includes(_)||f({className:lt(e,_)})}),[k,f,_,y,w]),(0,s.useEffect)((()=>{if(!_||!m)return;const e=w?.split(" ")||[];if(e?.find((e=>e.startsWith(_))))return;const t=lt(e,_);f({className:t})}),[m,w,_,f]),(0,s.useEffect)((()=>{P!==v&&f({pcssAdditionalCssCompiled:P})}),[P,f,v]),(0,s.useLayoutEffect)((()=>{if(void 0===P)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow,t=e?e?.document:document.querySelector(".editor-styles-wrapper");if(!t)return;const n=`pcss-styles-block-${_}`,a=t?.querySelector(`#${n}`);if(a)return void(a.innerHTML=P);const s=e?.document?e.document.createElement("style"):document.createElement("style");s.id=n,s.innerHTML=P,e?.document?.head?e.document.head.appendChild(s):t.appendChild(s)}),[P,_]),(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(e,{...o}),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Additional CSS",initialOpen:!1,className:"pattern-css-editor"},(0,t.createElement)("div",{className:"relative",ref:c},(0,t.createElement)(rt,{value:null!=k?k:j,"data-cy":"pcss-editor-block",onChange:x,onFocus:e=>{e.target.value===j&&(e=>{const t=e.value.split("\n"),n=t[0].length+t[1].length+1;requestAnimationFrame((()=>{e.focus(),e.setSelectionRange(n,n)}))})(e.target),p(!0)},onBlur:()=>p(!1),lineOptions:h.map((({loc:e})=>({line:e.line,classes:["line-error"]})))}),u?null:(0,t.createElement)(ot,{handleChange:x,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
    22// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
    33// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
  • pattern-css/trunk/package.json

    r3073927 r3084117  
    2424        "@types/wordpress__editor": "^13.6.8",
    2525        "@types/wordpress__plugins": "^3.0.3",
    26         "@typescript-eslint/eslint-plugin": "^7.7.0",
    27         "@typescript-eslint/parser": "^7.7.0",
    28         "@wordpress/block-editor": "^12.23.0",
    29         "@wordpress/env": "^9.7.0",
    30         "@wordpress/scripts": "^27.6.0",
    31         "@wordpress/url": "^3.56.0",
     26        "@typescript-eslint/eslint-plugin": "^7..0",
     27        "@typescript-eslint/parser": "^7..0",
     28        "@wordpress/block-editor": "^12.2.0",
     29        "@wordpress/env": "^9..0",
     30        "@wordpress/scripts": "^27..0",
     31        "@wordpress/url": "^3.5.0",
    3232        "autoprefixer": "^10.4.19",
    33         "cypress": "^13.8.0",
     33        "cypress": "^13..0",
    3434        "cypress-wait-until": "^3.0.1",
    35         "eslint": "^8.0.0",
     35        "eslint": "^8..0",
    3636        "eslint-config-prettier": "^9.1.0",
    3737        "eslint-plugin-cypress": "^2.15.2",
     
    3939        "eslint-plugin-prettier": "^5.1.3",
    4040        "eslint-plugin-react": "^7.34.1",
    41         "eslint-plugin-react-hooks": "^4.6.0",
     41        "eslint-plugin-react-hooks": "^4.6.",
    4242        "fast-glob": "^3.3.2",
    4343        "glob": "^10.3.12",
     
    5050    },
    5151    "dependencies": {
    52         "@wordpress/block-editor": "^12.23.0",
    53         "@wordpress/blocks": "^12.32.0",
    54         "@wordpress/edit-post": "^7.32.0",
    55         "@wordpress/editor": "^13.32.0",
    56         "@wordpress/element": "^5.32.0",
    57         "@wordpress/i18n": "^4.55.0",
    58         "@wordpress/plugins": "^6.23.0",
     52        "@wordpress/block-editor": "^12.2.0",
     53        "@wordpress/blocks": "^12.3.0",
     54        "@wordpress/edit-post": "^7.3.0",
     55        "@wordpress/editor": "^13.3.0",
     56        "@wordpress/element": "^5.3.0",
     57        "@wordpress/i18n": "^4.5.0",
     58        "@wordpress/plugins": "^6.2.0",
    5959        "browserlist": "^1.0.1",
    6060        "lightningcss": "1.24.1",
  • pattern-css/trunk/pattern-css.php

    r3073927 r3084117  
    55 * Requires at least: 6.0
    66 * Requires PHP:      7.0
    7  * Version:           1.2.2
     7 * Version:           1.2.
    88 * Author:            Kevin Batdorf
    99 * Author URI:        https://twitter.com/kevinbatdorf
  • pattern-css/trunk/readme.txt

    r3073927 r3084117  
    33Tags:              css, styles, inline, pattern, sync
    44Tested up to:      6.5
    5 Stable tag:        1.2.2
     5Stable tag:        1.2.
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    132132== Changelog ==
    133133
     134
     135
     136
    134137= 1.2.2 - 2024-04-19 =
    135138- Fixed an issue where CSS media queries using <= were stripped out
  • pattern-css/trunk/src/components/BlockControl.tsx

    r3073927 r3084117  
    1919import { escapeHTML } from '@wordpress/escape-html';
    2020import { sprintf, __ } from '@wordpress/i18n';
    21 import { Warning as CssWarning } from 'lightningcss-wasm';
     21import { Warning as CssWarning } from 'lightningcss-wasm';
    2222import { CodeEditor } from './CodeEditor';
    2323import { focusAtEndOfLine2 } from '../lib/dom';
     
    7272                errorRecovery: true,
    7373                visitor: {
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
    7489                    Selector(selector) {
    7590                        const { name, type } = selector[0] as {
Note: See TracChangeset for help on using the changeset viewer.