All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.primefaces-extensions.monacoeditor.461.js Maven / Gradle / Ivy

There is a newer version: 15.0.0
Show newest version
(this.webpackChunkprimefaces_extensions_resources_monacoeditor=this.webpackChunkprimefaces_extensions_resources_monacoeditor||[]).push([[461],{72895:function(e,t,r){"use strict";r.r(t),r.d(t,{VSBuffer:function(){return s},readUInt16LE:function(){return a},readUInt32BE:function(){return u},readUInt8:function(){return h},writeUInt16LE:function(){return c},writeUInt32BE:function(){return l},writeUInt8:function(){return d}});var n=r(90707);const i="undefined"!=typeof Buffer;new n.Lazy((()=>new Uint8Array(256)));let o;class s{static wrap(e){return i&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new s(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return i?this.buffer.toString():(o||(o=new TextDecoder),o.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function c(e,t,r){e[r+0]=255&t,t>>>=8,e[r+1]=255&t}function u(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function l(e,t,r){e[r+3]=t,t>>>=8,e[r+2]=t,t>>>=8,e[r+1]=t,t>>>=8,e[r]=t}function h(e,t){return e[t]}function d(e,t,r){e[r]=t}},47956:function(e,t,r){"use strict";function n(e,t){const r=[],n=[];for(const n of e)t.has(n)||r.push(n);for(const r of t)e.has(r)||n.push(r);return{removed:r,added:n}}function i(e,t){const r=new Set;for(const n of t)e.has(n)&&r.add(n);return r}r.r(t),r.d(t,{diffSets:function(){return n},intersection:function(){return i}})},3656:function(e,t,r){"use strict";r.r(t),r.d(t,{equalsIfDefined:function(){return a},itemEquals:function(){return s},itemsEquals:function(){return o},strictEquals:function(){return i},structuralEquals:function(){return c}});var n=r(13355);const i=(e,t)=>e===t;function o(e=i){return(t,r)=>n.equals(t,r,e)}function s(){return(e,t)=>e.equals(t)}function a(e,t,r){if(void 0!==r){const n=e;return null==n||null==t?t===n:r(n,t)}{const t=e;return(e,r)=>null==e||null==r?r===e:t(e,r)}}function c(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;re.length)return!1;if(r){if(!(0,o.startsWithIgnoreCase)(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}function d(e,t=i.isWindows){return!!t&&(h(e.charCodeAt(0))&&58===e.charCodeAt(1))}},69131:function(e,t,r){"use strict";r.r(t),r.d(t,{GLOBSTAR:function(){return u},GLOB_SPLIT:function(){return l},isRelativePattern:function(){return D},match:function(){return x},parse:function(){return F},splitGlobAware:function(){return m}});var n=r(4717),i=r(86017),o=r(37727),s=r(97574),a=r(606),c=r(41011);const u="**",l="/",h="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${h}|${d}+${h}${t?`|${h}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const r=[];let n=!1,i=!1,o="";for(const s of e){switch(s){case t:if(!n&&!i){r.push(o),o="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":i=!0;break;case"]":i=!1}o+=s}return o&&r.push(o),r}function p(e){if(!e)return"";let t="";const r=m(e,l);if(r.every((e=>e===u)))t=".*";else{let e=!1;r.forEach(((n,i)=>{if(n===u){if(e)return;t+=f(2,i===r.length-1)}else{let e=!1,o="",s=!1,a="";for(const r of n)if("}"!==r&&e)o+=r;else if(!s||"]"===r&&a)switch(r){case"{":e=!0;continue;case"[":s=!0;continue;case"}":{const r=`(?:${m(o,",").map((e=>p(e))).join("|")})`;t+=r,e=!1,o="";break}case"]":t+="["+a+"]",s=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,c.escapeRegExpCharacters)(r)}else{let e;e="-"===r?r:"^"!==r&&"!"!==r||a?r===l?"":(0,c.escapeRegExpCharacters)(r):"^",a+=e}iT(e,t))).filter((e=>e!==S)),e),n=r.length;if(!n)return S;if(1===n)return r[0];const i=function(t,n){for(let i=0,o=r.length;i!!e.allBasenames));o&&(i.allBasenames=o.allBasenames);const s=r.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);s.length&&(i.allPaths=s);return i}(r,t):(i=b.exec(w(r,t)))?E(i[1].substr(1),r,!0):(i=L.exec(w(r,t)))?E(i[1],r,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(r){return t.lastIndex=0,"string"==typeof r&&t.test(r)?e:null}}catch(e){return S}}(r),I.set(n,o)),y(o,e)}function y(e,t){if("string"==typeof t)return e;const r=function(r,n){return(0,i.isEqualOrParent)(r,t.base,!a.isLinux)?e((0,c.ltrim)(r.substr(t.base.length),s.sep),n):null};return r.allBasenames=e.allBasenames,r.allPaths=e.allPaths,r.basenames=e.basenames,r.patterns=e.patterns,r}function w(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function E(e,t,r){const n=s.sep===s.posix.sep,i=n?e:e.replace(g,s.sep),o=s.sep+i,a=s.posix.sep+e;let c;return c=r?function(r,s){return"string"!=typeof r||r!==i&&!r.endsWith(o)&&(n||r!==e&&!r.endsWith(a))?null:t}:function(r,o){return"string"!=typeof r||r!==i&&(n||r!==e)?null:t},c.allPaths=[(r?"*/":"./")+e],c}function x(e,t,r){return!(!e||"string"!=typeof t)&&F(e)(t,void 0,r)}function F(e,t={}){if(!e)return B;if("string"==typeof e||D(e)){const r=T(e,t);if(r===S)return B;const n=function(e,t){return!!r(e,t)};return r.allBasenames&&(n.allBasenames=r.allBasenames),r.allPaths&&(n.allPaths=r.allPaths),n}return function(e,t){const r=O(Object.getOwnPropertyNames(e).map((r=>function(e,t,r){if(!1===t)return S;const i=T(e,r);if(i===S)return S;if("boolean"==typeof t)return i;if(t){const r=t.when;if("string"==typeof r){const t=(t,o,s,a)=>{if(!a||!i(t,o))return null;const c=a(r.replace("$(basename)",(()=>s)));return(0,n.isThenable)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return i}(r,e[r],t))).filter((e=>e!==S))),i=r.length;if(!i)return S;if(!r.some((e=>!!e.requiresSiblings))){if(1===i)return r[0];const e=function(e,t){let i;for(let o=0,s=r.length;o{for(const e of i){const t=await e;if("string"==typeof t)return t}return null})():null},t=r.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const o=r.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,i){let o,a;for(let c=0,u=r.length;c{for(const e of a){const t=await e;if("string"==typeof t)return t}return null})():null},a=r.find((e=>!!e.allBasenames));a&&(o.allBasenames=a.allBasenames);const c=r.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);c.length&&(o.allPaths=c);return o}(e,t)}function D(e){const t=e;return!!t&&("string"==typeof t.base&&"string"==typeof t.pattern)}function O(e,t){const r=e.filter((e=>!!e.basenames));if(r.length<2)return e;const n=r.reduce(((e,t)=>{const r=t.basenames;return r?e.concat(r):e}),[]);let i;if(t){i=[];for(let e=0,r=n.length;e{const r=t.patterns;return r?e.concat(r):e}),[]);const o=function(e,t){if("string"!=typeof e)return null;if(!t){let r;for(r=e.length;r>0;r--){const t=e.charCodeAt(r-1);if(47===t||92===t)break}t=e.substr(r)}const r=n.indexOf(t);return-1!==r?i[r]:null};o.basenames=n,o.patterns=i,o.allBasenames=n;const s=e.filter((e=>!e.basenames));return s.push(o),s}},83233:function(e,t,r){"use strict";r.r(t),r.d(t,{Mimes:function(){return n}});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},14407:function(e,t,r){"use strict";function n(e,t,r){return Math.min(Math.max(e,t),r)}r.r(t),r.d(t,{MovingAverage:function(){return i},SlidingWindowAverage:function(){return o},clamp:function(){return n}});class i{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class o{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n{r.clear(),t(e,n,r)}));return(0,i.toDisposable)((()=>{n.dispose(),r.dispose()}))}function h(e){const t=new i.DisposableStore,r=c({owner:void 0,debugName:void 0,debugReferenceFn:e},(r=>{t.clear(),e(r,t)}));return(0,i.toDisposable)((()=>{r.dispose(),t.dispose()}))}class d{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,r,n){this._debugNameData=e,this._runFn=t,this.createChangeSummary=r,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),(0,s.getLogger)()?.handleAutorunCreated(this),this._runIfNeeded(),(0,i.trackDisposable)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,i.markAsDisposed)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){(0,s.getLogger)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,s.getLogger)()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,n.assertFn)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=d}(a||(a={}))},78353:function(e,t,r){"use strict";r.r(t),r.d(t,{BaseObservable:function(){return g},ConvenientObservable:function(){return d},DisposableObservableValue:function(){return I},ObservableValue:function(){return b},TransactionImpl:function(){return _},_setDerivedOpts:function(){return h},_setKeepObserved:function(){return l},_setRecomputeInitiallyAndOnChange:function(){return u},asyncTransaction:function(){return k},disposableObservableValue:function(){return L},globalTransaction:function(){return p},observableValue:function(){return v},subtransaction:function(){return C},transaction:function(){return f}});var n=r(3656),i=r(89386),o=r(42123);let s,a,c;function u(e){s=e}function l(e){a=e}function h(e){c=e}class d{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const r=void 0===t?void 0:e,n=void 0===t?e:t;return c({owner:r,debugName:()=>{const e=(0,i.getFunctionName)(n);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(n.toString());return t?`${this.debugName}.${t[2]}`:r?void 0:`${this.debugName} (mapped)`},debugReferenceFn:n},(e=>n(this.read(e),e)))}flatten(){return c({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(s(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class g extends d{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function f(e,t){const r=new _(e,t);try{e(r)}finally{r.finish()}}let m=8==r.j?void 0:null;function p(e){if(m)e(m);else{const t=new _(e,void 0);m=t;try{e(t)}finally{t.finish(),m=void 0}}}async function k(e,t){const r=new _(e,t);try{await e(r)}finally{r.finish()}}function C(e,t,r){e?t(e):f(t,r)}class _{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],(0,o.getLogger)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,i.getFunctionName)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t{}),(()=>`Setting ${this.debugName}`)));try{const n=this._value;this._setValue(e),(0,o.getLogger)()?.handleObservableChanged(this,{oldValue:n,newValue:e,change:r,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,r)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function L(e,t){let r;return r="string"==typeof e?new i.DebugNameData(void 0,e,void 0):new i.DebugNameData(e,void 0,void 0),new I(r,t,n.strictEquals)}class I extends(8==r.j?b:null){_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},89386:function(e,t,r){"use strict";r.r(t),r.d(t,{DebugNameData:function(){return n},getDebugName:function(){return s},getFunctionName:function(){return u}});class n{constructor(e,t,r){this.owner=e,this.debugNameSource=t,this.referenceFn=r}getDebugName(e){return s(e,this)}}const i=new Map,o=new WeakMap;function s(e,t){const r=o.get(e);if(r)return r;const n=function(e,t){const r=o.get(e);if(r)return r;const n=t.owner?function(e){const t=c.get(e);if(t)return t;const r=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let n=a.get(r)??0;n++,a.set(r,n);const i=1===n?r:`${r}#${n}`;return c.set(e,i),i}(t.owner)+".":"";let i;const s=t.debugNameSource;if(void 0!==s){if("function"!=typeof s)return n+s;if(i=s(),void 0!==i)return n+i}const l=t.referenceFn;if(void 0!==l&&(i=u(l),void 0!==i))return n+i;if(void 0!==t.owner){const r=function(e,t){for(const r in e)if(e[r]===t)return r;return}(t.owner,e);if(void 0!==r)return n+r}return}(e,t);if(n){let t=i.get(n)??0;t++,i.set(n,t);const r=1===t?n:`${n}#${t}`;return o.set(e,r),r}}const a=new Map,c=new WeakMap;function u(e){const t=e.toString(),r=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=r?r[1]:void 0;return n?.trim()}},96359:function(e,t,r){"use strict";r.r(t),r.d(t,{Derived:function(){return m},DerivedWithSetter:function(){return p},derived:function(){return u},derivedDisposable:function(){return f},derivedHandleChanges:function(){return d},derivedOpts:function(){return h},derivedWithSetter:function(){return l},derivedWithStore:function(){return g}});var n=r(63587),i=r(3656),o=r(22845),s=r(78353),a=r(89386),c=r(42123);function u(e,t){return void 0!==t?new m(new a.DebugNameData(e,void 0,t),t,void 0,void 0,void 0,i.strictEquals):new m(new a.DebugNameData(void 0,void 0,e),e,void 0,void 0,void 0,i.strictEquals)}function l(e,t,r){return new p(new a.DebugNameData(e,void 0,t),t,void 0,void 0,void 0,i.strictEquals,r)}function h(e,t){return new m(new a.DebugNameData(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??i.strictEquals)}function d(e,t){return new m(new a.DebugNameData(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??i.strictEquals)}function g(e,t){let r,n;void 0===t?(r=e,n=void 0):(n=e,r=t);const s=new o.DisposableStore;return new m(new a.DebugNameData(n,void 0,r),(e=>(s.clear(),r(e,s))),void 0,void 0,(()=>s.dispose()),i.strictEquals)}function f(e,t){let r,n,s;return void 0===t?(r=e,n=void 0):(n=e,r=t),new m(new a.DebugNameData(n,void 0,r),(e=>{s?s.clear():s=new o.DisposableStore;const t=r(e);return t&&s.add(t),t}),void 0,void 0,(()=>{s&&(s.dispose(),s=void 0)}),i.strictEquals)}(0,s._setDerivedOpts)(h);class m extends s.BaseObservable{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,r,n,i=void 0,o){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=r,this._handleChange=n,this._handleLastObserverRemoved=i,this._equalityComparator=o,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),(0,c.getLogger)()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,r=this.value;this.state=3;const n=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,n)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const i=t&&!this._equalityComparator(r,this.value);if((0,c.getLogger)()?.handleDerivedRecomputed(this,{oldValue:r,newValue:this.value,change:void 0,didChange:i,hadValue:t}),i)for(const e of this.observers)e.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const e of this.observers)e.handlePossibleChange(this);if(t)for(const e of this.observers)e.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.assertFn)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const r=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(r&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class p extends m{constructor(e,t,r,n,i=void 0,o,s){super(e,t,r,n,i,o),this.set=s}}},61158:function(e,t,r){"use strict";r.r(t),r.d(t,{LazyObservableValue:function(){return i}});var n=r(78353);class i extends n.BaseObservable{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,r){super(),this._debugNameData=e,this._equalityComparator=r,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,r){if(void 0===r&&this._equalityComparator(this._value,e))return;let i;t||(t=i=new n.TransactionImpl((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==r&&this._deltas.push(r),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{i&&i.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}},42123:function(e,t,r){"use strict";let n;function i(e){n=e}function o(){return n}r.r(t),r.d(t,{ConsoleObservableLogger:function(){return s},getLogger:function(){return o},setLogger:function(){return i}});class s{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,r=[];let n="";function i(e){if("length"in e)for(const t of e)t&&i(t);else"text"in e?(n+=`%c${e.text}`,t.push(e.style),e.data&&r.push(...e.data)):"data"in e&&r.push(...e.data)}i(e);const o=[n,...t];return o.push(...r),o}([a(h("|  ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),u(l(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),u(l(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),u(l(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),u(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return u(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(r,n)=>(this.changedObservablesSets.get(e).add(r),t.apply(e,[r,n]))}handleDerivedRecomputed(e,t){const r=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),u(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(r),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),r.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),u(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(r,n)=>(this.changedObservablesSets.get(e).add(r),t.apply(e,[r,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),u(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),u(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return u(e,{color:"black"})}function c(e){return u(function(e,t){for(;e.length`${e}${t}:${r};`),""))};var n}function l(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let r="[ ",n=!0;for(const i of e){if(n||(r+=", "),r.length-5>t){r+="...";break}n=!1,r+=`${l(i,t-r.length)}`}return r+=" ]",r}(e,t):function(e,t){let r="{ ",n=!0;for(const[i,o]of Object.entries(e)){if(n||(r+=", "),r.length-5>t){r+="...";break}n=!1,r+=`${i}: ${l(o,t-r.length)}`}return r+=" }",r}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function h(e,t){let r="";for(let n=1;n<=t;n++)r+=e;return r}},47535:function(e,t,r){"use strict";r.r(t),r.d(t,{ObservablePromise:function(){return s},PromiseResult:function(){return a},waitForState:function(){return c}});var n=r(95918),i=r(78353),o=r(42050);class s{static fromFn(e){return new s(e())}constructor(e){this._value=(0,i.observableValue)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,i.transaction)((t=>{this._value.set(new a(e,void 0),t)})),e)),(e=>{throw(0,i.transaction)((t=>{this._value.set(new a(void 0,e),t)})),e}))}}class a{constructor(e,t){this.data=e,this.error=t}}function c(e,t,r,i){return t||(t=e=>null!=e),new Promise(((s,a)=>{let c=!0,u=!1;const l=e.map((e=>({isFinished:t(e),error:!!r&&r(e),state:e}))),h=(0,n.autorun)((e=>{const{isFinished:t,error:r,state:n}=l.read(e);(t||r)&&(c?u=!0:h.dispose(),r?a(!0===r?n:r):s(n))}));if(i){const e=i.onCancellationRequested((()=>{h.dispose(),e.dispose(),a(new o.CancellationError)}));if(i.isCancellationRequested)return h.dispose(),e.dispose(),void a(new o.CancellationError)}c=!1,u&&h.dispose()}))}},50995:function(e,t,r){"use strict";r.r(t),r.d(t,{FromEventObservable:function(){return f},KeepAliveObserver:function(){return b},ValueWithChangeEventFromObservable:function(){return T},constObservable:function(){return l},derivedConstOnceDefined:function(){return w},derivedObservableWithCache:function(){return L},derivedObservableWithWritableCache:function(){return I},keepObserved:function(){return _},mapObservableArrayCached:function(){return B},observableFromEvent:function(){return d},observableFromEventOpts:function(){return g},observableFromValueWithChangeEvent:function(){return y},observableSignal:function(){return k},observableSignalFromEvent:function(){return m},recomputeInitiallyAndOnChange:function(){return v}});var n=r(1077),i=r(22845),o=r(78353),s=r(89386),a=r(96359),c=r(42123),u=r(3656);function l(e){return new h(e)}class h extends o.ConvenientObservable{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(...e){let t,r,n;return 3===e.length?[t,r,n]=e:[r,n]=e,new f(new s.DebugNameData(t,void 0,n),r,n,(()=>f.globalTransaction),u.strictEquals)}function g(e,t,r){return new f(new s.DebugNameData(e.owner,e.debugName,e.debugReferenceFn??r),t,r,(()=>f.globalTransaction),e.equalsFn??u.strictEquals)}class f extends o.BaseObservable{constructor(e,t,r,n,i){super(),this._debugNameData=e,this.event=t,this._getValue=r,this._getTransaction=n,this._equalityComparator=i,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),r=this.value,n=!this.hasValue||!this._equalityComparator(r,t);let i=!1;n&&(this.value=t,this.hasValue&&(i=!0,(0,o.subtransaction)(this._getTransaction(),(e=>{(0,c.getLogger)()?.handleFromEventObservableTriggered(this,{oldValue:r,newValue:t,change:void 0,didChange:n,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),i||(0,c.getLogger)()?.handleFromEventObservableTriggered(this,{oldValue:r,newValue:t,change:void 0,didChange:n,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}function m(e,t){return new p(e,t)}!function(e){e.Observer=f,e.batchEventsGlobally=function(e,t){let r=!1;void 0===f.globalTransaction&&(f.globalTransaction=e,r=!0);try{t()}finally{r&&(f.globalTransaction=void 0)}}}(d||(d={}));class p extends o.BaseObservable{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,o.transaction)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function k(e){return"string"==typeof e?new C(e):new C(void 0,e)}class C extends o.BaseObservable{get debugName(){return new s.DebugNameData(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const r of this.observers)e.updateObserver(r,this),r.handleChange(this,t);else(0,o.transaction)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function _(e){const t=new b(!1,void 0);return e.addObserver(t),(0,i.toDisposable)((()=>{e.removeObserver(t)}))}function v(e,t){const r=new b(!0,t);return e.addObserver(r),t?t(e.get()):e.reportChanges(),(0,i.toDisposable)((()=>{e.removeObserver(r)}))}(0,o._setKeepObserved)(_),(0,o._setRecomputeInitiallyAndOnChange)(v);class b{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function L(e,t){let r;return(0,a.derivedOpts)({owner:e,debugReferenceFn:t},(e=>(r=t(e,r),r)))}function I(e,t){let r;const n=k("derivedObservableWithWritableCache"),i=(0,a.derived)(e,(e=>(n.read(e),r=t(e,r),r)));return Object.assign(i,{clearCache:e=>{r=void 0,n.trigger(e)},setCache:(e,t)=>{r=e,n.trigger(t)}})}function B(e,t,r,n){let i=new S(r,n);return(0,a.derivedOpts)({debugReferenceFn:r,owner:e,onLastObserverRemoved:()=>{i.dispose(),i=new S(r)}},(e=>(i.setItems(t.read(e)),i.getItems())))}class S{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],r=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let o=this._cache.get(e);if(o)r.delete(e);else{const t=new i.DisposableStore;o={out:this._map(n,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(const e of r){this._cache.get(e).store.dispose(),this._cache.delete(e)}this._items=t}getItems(){return this._items}}class T{constructor(e){this.observable=e}get onDidChange(){return n.Event.fromObservableLight(this.observable)}get value(){return this.observable.get()}}function y(e,t){return t instanceof T?t.observable:d(e,t.onDidChange,(()=>t.value))}function w(e,t){return L(e,((e,r)=>r??t(e)))}},64380:function(e,t,r){"use strict";r.r(t),r.d(t,{DataUri:function(){return x},ExtUri:function(){return l},addTrailingPathSeparator:function(){return E},basename:function(){return C},basenameOrAuthority:function(){return k},dirname:function(){return v},extUri:function(){return h},extUriBiasedIgnorePathCase:function(){return d},extUriIgnorePathCase:function(){return g},extname:function(){return _},getComparisonKey:function(){return p},hasTrailingPathSeparator:function(){return y},isAbsolutePath:function(){return S},isEqual:function(){return f},isEqualAuthority:function(){return T},isEqualOrParent:function(){return m},joinPath:function(){return b},normalizePath:function(){return L},originalFSPath:function(){return u},relativePath:function(){return I},removeTrailingPathSeparator:function(){return w},resolvePath:function(){return B}});var n=r(86017),i=r(61115),o=r(97574),s=r(606),a=r(41011),c=r(20599);function u(e){return(0,c.uriToFsPath)(e,!0)}class l{constructor(e){this._ignorePathCasing=e}compare(e,t,r=!1){return e===t?0:(0,a.compare)(this.getComparisonKey(e,r),this.getComparisonKey(t,r))}isEqual(e,t,r=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,r)===this.getComparisonKey(t,r)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,r=!1){if(e.scheme===t.scheme){if(e.scheme===i.Schemas.file)return n.isEqualOrParent(u(e),u(t),this._ignorePathCasing(e))&&e.query===t.query&&(r||e.fragment===t.fragment);if(T(e.authority,t.authority))return n.isEqualOrParent(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(r||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.URI.joinPath(e,...t)}basenameOrAuthority(e){return C(e)||e.authority}basename(e){return o.posix.basename(e.path)}extname(e){return o.posix.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===i.Schemas.file?t=c.URI.file(o.dirname(u(e))).path:(t=o.posix.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===i.Schemas.file?c.URI.file(o.normalize(u(e))).path:o.posix.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!T(e.authority,t.authority))return;if(e.scheme===i.Schemas.file){const r=o.relative(u(e),u(t));return s.isWindows?n.toSlashes(r):r}let r=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(r.length,a.length);en.getRoot(r).length&&r[r.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=o.sep){return y(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=o.sep){let r=!1;if(e.scheme===i.Schemas.file){const i=u(e);r=void 0!==i&&i.length===n.getRoot(i).length&&i[i.length-1]===t}else{t="/";const n=e.path;r=1===n.length&&47===n.charCodeAt(n.length-1)}return r||y(e,t)?e:e.with({path:e.path+"/"})}}const h=new l((()=>!1)),d=new l((e=>e.scheme!==i.Schemas.file||!s.isLinux)),g=new l((e=>!0)),f=h.isEqual.bind(h),m=h.isEqualOrParent.bind(h),p=h.getComparisonKey.bind(h),k=h.basenameOrAuthority.bind(h),C=h.basename.bind(h),_=h.extname.bind(h),v=h.dirname.bind(h),b=h.joinPath.bind(h),L=h.normalizePath.bind(h),I=h.relativePath.bind(h),B=h.resolvePath.bind(h),S=h.isAbsolutePath.bind(h),T=h.isEqualAuthority.bind(h),y=h.hasTrailingPathSeparator.bind(h),w=h.removeTrailingPathSeparator.bind(h),E=h.addTrailingPathSeparator.bind(h);var x;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const r=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&r.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&r.set(e.META_DATA_MIME,n),r}}(x||(x={}))},67706:function(e,t,r){"use strict";r.r(t);var n,i=r(41011);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",r="warning",n="info";e.fromValue=function(o){return o?i.equalsIgnoreCase(t,o)?e.Error:i.equalsIgnoreCase(r,o)||i.equalsIgnoreCase("warn",o)?e.Warning:i.equalsIgnoreCase(n,o)?e.Info:e.Ignore:e.Ignore},e.toString=function(i){switch(i){case e.Error:return t;case e.Warning:return r;case e.Info:return n;default:return"ignore"}}}(n||(n={})),t.default=n},8938:function(e,t,r){"use strict";r.r(t),r.d(t,{ThemeColor:function(){return n},ThemeIcon:function(){return i}});var n,i,o=r(66781);!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(e){const n=t.exec(e.id);if(!n)return r(o.Codicon.error);const[,i,s]=n,a=["codicon","codicon-"+i];return s&&a.push("codicon-modifier-"+s.substring(1)),a}e.asClassNameArray=r,e.asClassName=function(e){return r(e).join(" ")},e.asCSSSelector=function(e){return"."+r(e).join(".")},e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||n.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,r]=t;return{id:r}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let r=e.id;const n=r.lastIndexOf("~");return-1!==n&&(r=r.substring(0,n)),t&&(r=`${r}~${t}`),{id:r}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(i||(i={}))},81012:function(e,t,r){"use strict";r.r(t),r.d(t,{CursorColumns:function(){return i}});var n=r(41011);class i{static _nextVisibleColumn(e,t,r){return 9===e?i.nextRenderTabStop(t,r):n.isFullWidthCharacter(e)||n.isEmojiImprecise(e)?t+2:t+1}static visibleColumnFromColumn(e,t,r){const i=Math.min(t-1,e.length),o=e.substring(0,i),s=new n.GraphemeIterator(o);let a=0;for(;!s.eol();){const e=n.getNextCodePoint(o,i,s.offset);s.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,r)}return a}static columnFromVisibleColumn(e,t,r){if(t<=0)return 1;const i=e.length,o=new n.GraphemeIterator(e);let s=0,a=1;for(;!o.eol();){const c=n.getNextCodePoint(e,i,o.offset);o.nextGraphemeLength();const u=this._nextVisibleColumn(c,s,r),l=o.offset+1;if(u>=t){return u-t{const r=e.getColor(o.editorBackground),n=e.getColor(a),i=n&&!n.isTransparent()?n:r;i&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${i}; }`)}))},14981:function(e,t,r){"use strict";function n(e){let t=0,r=0,n=0,i=0;for(let o=0,s=e.length;o0&&(65279===n[0]||65534===n[0])?function(e,t,r){const n=[];let i=0;for(let s=0;s=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let r=0;r>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const r=this.getFontStyle(e);return 1&r&&(t+=" mtki"),2&r&&(t+=" mtkb"),4&r&&(t+=" mtku"),8&r&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const r=this.getForeground(e),n=this.getFontStyle(e);let i=`color: ${t[r]};`;1&n&&(i+="font-style: italic;"),2&n&&(i+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(i+=`text-decoration:${o};`),i}static getPresentationFromMetadata(e){const t=this.getForeground(e),r=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&r),bold:Boolean(2&r),underline:Boolean(4&r),strikethrough:Boolean(8&r)}}}},1526:function(e,t,r){"use strict";r.r(t),r.d(t,{LanguageFeatureRegistry:function(){return u}});var n=r(1077),i=r(22845),o=r(92188),s=r(55214);function a(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,r,n,i){this.uri=e,this.languageId=t,this.notebookUri=r,this.notebookType=n,this.recursive=i}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event}register(e,t){let r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)((()=>{if(r){const e=this._entries.indexOf(r);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),r=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e,t=!1){const r=[];return this._orderedForEach(e,t,(e=>r.push(e.provider))),r}orderedGroups(e){const t=[];let r,n;return this._orderedForEach(e,!1,(e=>{r&&n===e._score?r.push(e.provider):(n=e._score,r=[e.provider],t.push(r))})),t}_orderedForEach(e,t,r){this._updateScores(e,t);for(const e of this._entries)e._score>0&&r(e)}_updateScores(e,t){const r=this._notebookInfoResolver?.(e.uri),n=r?new c(e.uri,e.getLanguageId(),r.uri,r.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(n)){this._lastCandidate=n;for(const r of this._entries)if(r._score=(0,s.score)(r.selector,n.uri,n.languageId,(0,o.shouldSynchronizeModel)(e),n.notebookUri,n.notebookType),a(r.selector)&&r._score>0){if(!t){for(const e of this._entries)e._score=0;r._score=1e3;break}r._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:l(e.selector)&&!l(t.selector)?1:!l(e.selector)&&l(t.selector)?-1:e._timet._time?-1:0}}function l(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(l):Boolean(e.isBuiltin))}},55214:function(e,t,r){"use strict";r.r(t),r.d(t,{score:function(){return o}});var n=r(69131),i=r(97574);function o(e,t,r,s,a,c){if(Array.isArray(e)){let n=0;for(const i of e){const e=o(i,t,r,s,a,c);if(10===e)return e;e>n&&(n=e)}return n}if("string"==typeof e)return s?"*"===e?5:e===r?10:0:0;if(e){const{language:o,pattern:u,scheme:l,hasAccessToAllModels:h,notebookType:d}=e;if(!s&&!h)return 0;d&&a&&(t=a);let g=0;if(l)if(l===t.scheme)g=10;else{if("*"!==l)return 0;g=5}if(o)if(o===r)g=10;else{if("*"!==o)return 0;g=Math.max(g,5)}if(d)if(d===c)g=10;else{if("*"!==d||void 0===c)return 0;g=Math.max(g,5)}if(u){let e;if(e="string"==typeof u?u:{...u,base:(0,i.normalize)(u.base)},e!==t.fsPath&&!(0,n.match)(e,t.fsPath))return 0;g=10}return g}return 0}},22711:function(e,t,r){"use strict";r.r(t),r.d(t,{ILanguageService:function(){return n}});const n=(0,r(8936).createDecorator)("languageService")},62533:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{AutoClosingPairs:function(){return o},IndentAction:function(){return n},StandardAutoClosingPairConditional:function(){return i}}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class i{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,r=e.notIn.length;t=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},v=function(e,t){return function(r,n){t(r,n,e)}};class b{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const L=(0,g.createDecorator)("languageConfigurationService");let I=class extends i.Disposable{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new F),this.onDidChangeEmitter=this._register(new n.Emitter),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const r=new Set(Object.values(B));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>r.has(e))),n=e.change.overrides.filter((([e,t])=>t.some((e=>r.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new b(void 0));else for(const e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new b(e)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new b(e.languageId))})))}register(e,t,r){return this._registry.register(e,t,r)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,r,n){let i=t.getLanguageConfiguration(e);if(!i){if(!n.isRegisteredLanguageId(e))return new D(e,{});i=new D(e,{})}const o=function(e,t){const r=t.getValue(B.brackets,{overrideIdentifier:e}),n=t.getValue(B.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:S(r),colorizedBracketPairs:S(n)}}(i.languageId,r),s=w([i.underlyingConfig,o]);return new D(i.languageId,s)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=_([v(0,f.IConfigurationService),v(1,m.ILanguageService)],I);const B={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function S(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function T(e,t,r){const n=e.getLineContent(t);let i=o.getLeadingWhitespace(n);return i.length>r-1&&(i=i.substring(0,r-1)),i}class y{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const r=new E(e,t,++this._order);return this._entries.push(r),this._resolved=null,(0,i.toDisposable)((()=>{for(let e=0;ee.configuration))))}}function w(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const r of e)t={comments:r.comments||t.comments,brackets:r.brackets||t.brackets,wordPattern:r.wordPattern||t.wordPattern,indentationRules:r.indentationRules||t.indentationRules,onEnterRules:r.onEnterRules||t.onEnterRules,autoClosingPairs:r.autoClosingPairs||t.autoClosingPairs,surroundingPairs:r.surroundingPairs||t.surroundingPairs,autoCloseBefore:r.autoCloseBefore||t.autoCloseBefore,folding:r.folding||t.folding,colorizedBracketPairs:r.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:r.__electricCharacterSupport||t.__electricCharacterSupport};return t}class E{constructor(e,t,r){this.configuration=e,this.priority=t,this.order=r}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class x{constructor(e){this.languageId=e}}class F extends i.Disposable{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new n.Emitter),this.onDidChange=this._onDidChange.event,this._register(this.register(k.PLAINTEXT_LANGUAGE_ID,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,r=0){let n=this._entries.get(e);n||(n=new y(e),this._entries.set(e,n));const o=n.register(t,r);return this._onDidChange.fire(new x(e)),(0,i.toDisposable)((()=>{o.dispose(),this._onDidChange.fire(new x(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class D{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new h.OnEnterSupport(this.underlyingConfig):null,this.comments=D._handleComments(this.underlyingConfig),this.characterPair=new c.CharacterPairSupport(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||s.DEFAULT_WORD_REGEXP,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new l.IndentRulesSupport(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new C.LanguageBracketsConfiguration(e,this.underlyingConfig)}getWordDefinition(){return(0,s.ensureValidWordDefinition)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.RichEditBrackets(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u.BracketElectricCharacterSupport(this.brackets)),this._electricCharacter}onEnter(e,t,r,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,r,n):null}getAutoClosingPairs(){return new a.AutoClosingPairs(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const r={};if(t.lineComment&&(r.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;r.blockCommentStartToken=e,r.blockCommentEndToken=n}return r}}(0,p.registerSingleton)(L,I,1)},57366:function(e,t,r){"use strict";r.r(t),r.d(t,{EditorModesRegistry:function(){return u},Extensions:function(){return c},ModesRegistry:function(){return l},PLAINTEXT_EXTENSION:function(){return d},PLAINTEXT_LANGUAGE_ID:function(){return h}});var n=r(34106),i=r(1077),o=r(93592),s=r(83233),a=r(92517);const c={ModesRegistry:"editor.modesRegistry"};class u{constructor(){this._onDidChangeLanguages=new i.Emitter,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,r=this._languages.length;t>>0,new n.EncodedTokenizationResult(r,null===t?i:t)}},26209:function(e,t,r){"use strict";function n(e,t){const r=e.getCount(),n=e.findTokenIndexAtOffset(t),o=e.getLanguageId(n);let s=n;for(;s+10&&e.getLanguageId(a-1)===o;)a--;return new i(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}r.r(t),r.d(t,{ScopedLineTokens:function(){return i},createScopedLineTokens:function(){return n},ignoreBracketsInToken:function(){return o}});class i{constructor(e,t,r,n,i,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=r,this._lastTokenIndex=n,this.firstCharOffset=i,this._lastCharOffset=o,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function o(e){return!!(3&e)}},22773:function(e,t,r){"use strict";r.r(t),r.d(t,{CharacterPairSupport:function(){return i}});var n=r(62533);class i{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new n.StandardAutoClosingPairConditional(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new n.StandardAutoClosingPairConditional({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new n.StandardAutoClosingPairConditional({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:i.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:i.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}},97212:function(e,t,r){"use strict";r.r(t),r.d(t,{BracketElectricCharacterSupport:function(){return s}});var n=r(13355),i=r(26209),o=r(67835);class s{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const r of t.close){const t=r.charAt(r.length-1);e.push(t)}return(0,n.distinct)(e)}onElectricCharacter(e,t,r){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(r-1);if((0,i.ignoreBracketsInToken)(t.getStandardTokenType(n)))return null;const s=this._richEditBrackets.reversedRegex,a=t.getLineContent().substring(0,r-1)+e,c=o.BracketsUtils.findPrevBracketInRange(s,1,a,0,a.length);if(!c)return null;const u=a.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[u])return null;const l=t.getActualLineContentBefore(c.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:u}:null}}},16515:function(e,t,r){"use strict";function n(e){return e.global&&(e.lastIndex=0),!0}r.r(t),r.d(t,{IndentRulesSupport:function(){return i}});class i{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&n(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&n(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&n(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&n(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}},17541:function(e,t,r){"use strict";r.r(t),r.d(t,{BracketKindBase:function(){return a},ClosingBracketKind:function(){return u},LanguageBracketsConfiguration:function(){return o},OpeningBracketKind:function(){return c}});var n=r(67675),i=r(67835);class o{constructor(e,t){this.languageId=e;const r=t.brackets?s(t.brackets):[],i=new n.CachedFunction((e=>{const t=new Set;return{info:new c(this,e,t),closing:t}})),o=new n.CachedFunction((e=>{const t=new Set,r=new Set;return{info:new u(this,e,t,r),opening:t,openingColorized:r}}));for(const[e,t]of r){const r=i.get(e),n=o.get(t);r.closing.add(n.info),n.opening.add(r.info)}const a=t.colorizedBracketPairs?s(t.colorizedBracketPairs):r.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[e,t]of a){const r=i.get(e),n=o.get(t);r.closing.add(n.info),n.openingColorized.add(r.info),n.opening.add(r.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,i.createBracketOrRegExp)(t,e)}}function s(e){return e.filter((([e,t])=>""!==e&&""!==t))}class a{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class c extends a{constructor(e,t,r){super(e,t),this.openedBrackets=r,this.isOpeningBracket=!0}}class u extends a{constructor(e,t,r,n){super(e,t),this.openingBrackets=r,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}},69607:function(e,t,r){"use strict";r.r(t),r.d(t,{OnEnterSupport:function(){return s}});var n=r(42050),i=r(41011),o=r(62533);class s{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=s._createOpenBracketRegExp(e[0]),r=s._createCloseBracketRegExp(e[1]);t&&r&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:r})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,r,n){if(e>=3)for(let e=0,i=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return i.action}if(e>=2&&r.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&r.length>0)for(let e=0,t=this._brackets.length;e[e[0].toLowerCase(),e[1].toLowerCase()]));const r=[];for(let e=0;e{const[r,n]=e,[i,o]=t;return r===i||r===o||n===i||n===o},i=(e,n)=>{const i=Math.min(e,n),o=Math.max(e,n);for(let e=0;e0&&o.push({open:i,close:s})}return o}(t);this.brackets=r.map(((t,n)=>new s(e,n,t.open,t.close,function(e,t,r,n){let i=[];i=i.concat(e),i=i.concat(t);for(let e=0,t=i.length;e=0&&n.push(t);for(const t of o.close)t.indexOf(e)>=0&&n.push(t)}}function u(e,t){return e.length-t.length}function l(e){if(e.length<=1)return e;const t=[],r=new Set;for(const n of e)r.has(n)||(t.push(n),r.add(n));return t}function h(e){const t=/^[\w ]+$/.test(e);return e=n.escapeRegExpCharacters(e),t?`\\b${e}\\b`:e}function d(e,t){const r=`(${e.map(h).join(")|(")})`;return n.createRegExp(r,!0,t)}const g=function(){let e=null,t=null;return function(r){return e!==r&&(e=r,t=function(e){const t=new Uint16Array(e.length);let r=0;for(let n=e.length-1;n>=0;n--)t[r++]=e.charCodeAt(n);return i.getPlatformTextDecoder().decode(t)}(e)),t}}();class f{static _findPrevBracketInText(e,t,r,n){const i=r.match(e);if(!i)return null;const s=r.length-(i.index||0),a=i[0].length,c=n+s;return new o.Range(t,c-a+1,t,c+1)}static findPrevBracketInRange(e,t,r,n,i){const o=g(r).substring(r.length-i,r.length-n);return this._findPrevBracketInText(e,t,o,n)}static findNextBracketInText(e,t,r,n){const i=r.match(e);if(!i)return null;const s=i.index||0,a=i[0].length;if(0===a)return null;const c=n+s;return new o.Range(t,c+1,t,c+1+a)}static findNextBracketInRange(e,t,r,n,i){const o=r.substring(n,i);return this.findNextBracketInText(e,t,o,n)}}},85879:function(e,t,r){"use strict";r.r(t),r.d(t,{BracketPairsTextModelPart:function(){return l}});var n=r(13355),i=r(1077),o=r(22845),s=r(74032),a=r(26209),c=r(67835),u=r(8429);class l extends o.Disposable{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new o.MutableDisposable),this.onDidChangeEmitter=new i.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const r=new o.DisposableStore;this.bracketPairsTree.value=(e=r.add(new u.BracketPairsTree(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=r,{object:e,dispose:()=>t?.dispose()}),r.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||n.CallbackIterable.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||n.CallbackIterable.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||n.CallbackIterable.empty}findMatchingBracketUp(e,t,r){const n=this.textModel.validatePosition(t),i=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const r=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew.getClosingBracketInfo(e);if(!r)return null;const n=this.getBracketPairsInRange(s.Range.fromPositions(t,t)).findLast((e=>r.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),o=this.languageConfigurationService.getLanguageConfiguration(i).brackets;if(!o)return null;const s=o.textIsBracket[t];return s?g(this._findMatchingBracketUp(s,n,h(r))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(s.Range.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,n.compareBy)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),s.Range.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const r=h(t);return this._matchBracket(this.textModel.validatePosition(e),r)}}_establishBracketSearchOffsets(e,t,r,n){const i=t.getCount(),o=t.getLanguageId(n);let s=Math.max(0,e.column-1-r.maxBracketLength);for(let e=n-1;e>=0;e--){const r=t.getEndOffset(e);if(r<=s)break;if((0,a.ignoreBracketsInToken)(t.getStandardTokenType(e))||t.getLanguageId(e)!==o){s=r;break}}let c=Math.min(t.getLineContent().length,e.column-1+r.maxBracketLength);for(let e=n+1;e=c)break;if((0,a.ignoreBracketsInToken)(t.getStandardTokenType(e))||t.getLanguageId(e)!==o){c=r;break}}return{searchStartOffset:s,searchEndOffset:c}}_matchBracket(e,t){const r=e.lineNumber,n=this.textModel.tokenization.getLineTokens(r),i=this.textModel.getLineContent(r),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const s=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(o)).brackets;if(s&&!(0,a.ignoreBracketsInToken)(n.getStandardTokenType(o))){let{searchStartOffset:a,searchEndOffset:u}=this._establishBracketSearchOffsets(e,n,s,o),l=null;for(;;){const n=c.BracketsUtils.findNextBracketInRange(s.forwardRegex,r,i,a,u);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=i.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),r=this._matchFoundBracket(n,s.textIsBracket[e],s.textIsOpenBracket[e],t);if(r){if(r instanceof d)return null;l=r}}a=n.endColumn-1}if(l)return l}if(o>0&&n.getStartOffset(o)===e.column-1){const s=o-1,u=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(s)).brackets;if(u&&!(0,a.ignoreBracketsInToken)(n.getStandardTokenType(s))){const{searchStartOffset:o,searchEndOffset:a}=this._establishBracketSearchOffsets(e,n,u,s),l=c.BracketsUtils.findPrevBracketInRange(u.reversedRegex,r,i,o,a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=i.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),r=this._matchFoundBracket(l,u.textIsBracket[e],u.textIsOpenBracket[e],t);if(r)return r instanceof d?null:r}}}return null}_matchFoundBracket(e,t,r,n){if(!t)return null;const i=r?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return i?i instanceof d?i:[e,i]:null}_findMatchingBracketUp(e,t,r){const n=e.languageId,i=e.reversedRegex;let o=-1,s=0;const u=(t,n,a,u)=>{for(;;){if(r&&++s%100==0&&!r())return d.INSTANCE;const l=c.BracketsUtils.findPrevBracketInRange(i,t,n,a,u);if(!l)break;const h=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return l;u=l.startColumn-1}return null};for(let e=t.lineNumber;e>=1;e--){const r=this.textModel.tokenization.getLineTokens(e),i=r.getCount(),o=this.textModel.getLineContent(e);let s=i-1,c=o.length,l=o.length;e===t.lineNumber&&(s=r.findTokenIndexAtOffset(t.column-1),c=t.column-1,l=t.column-1);let h=!0;for(;s>=0;s--){const t=r.getLanguageId(s)===n&&!(0,a.ignoreBracketsInToken)(r.getStandardTokenType(s));if(t)h?c=r.getStartOffset(s):(c=r.getStartOffset(s),l=r.getEndOffset(s));else if(h&&c!==l){const t=u(e,o,c,l);if(t)return t}h=t}if(h&&c!==l){const t=u(e,o,c,l);if(t)return t}}return null}_findMatchingBracketDown(e,t,r){const n=e.languageId,i=e.forwardRegex;let o=1,s=0;const u=(t,n,a,u)=>{for(;;){if(r&&++s%100==0&&!r())return d.INSTANCE;const l=c.BracketsUtils.findNextBracketInRange(i,t,n,a,u);if(!l)break;const h=n.substring(l.startColumn-1,l.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return l;a=l.endColumn-1}return null},l=this.textModel.getLineCount();for(let e=t.lineNumber;e<=l;e++){const r=this.textModel.tokenization.getLineTokens(e),i=r.getCount(),o=this.textModel.getLineContent(e);let s=0,c=0,l=0;e===t.lineNumber&&(s=r.findTokenIndexAtOffset(t.column-1),c=t.column-1,l=t.column-1);let h=!0;for(;s=1;e--){const o=this.textModel.tokenization.getLineTokens(e),s=o.getCount(),u=this.textModel.getLineContent(e);let l=s-1,h=u.length,d=u.length;if(e===t.lineNumber){l=o.findTokenIndexAtOffset(t.column-1),h=t.column-1,d=t.column-1;const e=o.getLanguageId(l);r!==e&&(r=e,n=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let g=!0;for(;l>=0;l--){const t=o.getLanguageId(l);if(r!==t){if(n&&i&&g&&h!==d){const t=c.BracketsUtils.findPrevBracketInRange(n.reversedRegex,e,u,h,d);if(t)return this._toFoundBracket(i,t);g=!1}r=t,n=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const s=!!n&&!(0,a.ignoreBracketsInToken)(o.getStandardTokenType(l));if(s)g?h=o.getStartOffset(l):(h=o.getStartOffset(l),d=o.getEndOffset(l));else if(i&&n&&g&&h!==d){const t=c.BracketsUtils.findPrevBracketInRange(n.reversedRegex,e,u,h,d);if(t)return this._toFoundBracket(i,t)}g=s}if(i&&n&&g&&h!==d){const t=c.BracketsUtils.findPrevBracketInRange(n.reversedRegex,e,u,h,d);if(t)return this._toFoundBracket(i,t)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const r=this.textModel.getLineCount();let n=null,i=null,o=null;for(let e=t.lineNumber;e<=r;e++){const r=this.textModel.tokenization.getLineTokens(e),s=r.getCount(),u=this.textModel.getLineContent(e);let l=0,h=0,d=0;if(e===t.lineNumber){l=r.findTokenIndexAtOffset(t.column-1),h=t.column-1,d=t.column-1;const e=r.getLanguageId(l);n!==e&&(n=e,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let g=!0;for(;lvoid 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=h(t),i=this.textModel.getLineCount(),o=new Map;let u=[];const l=(e,t)=>{if(!o.has(e)){const r=[];for(let e=0,n=t?t.brackets.length:0;e{for(;;){if(n&&++f%100==0&&!n())return d.INSTANCE;const s=c.BracketsUtils.findNextBracketInRange(e.forwardRegex,t,r,i,o);if(!s)break;const a=r.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),l=e.textIsBracket[a];if(l&&(l.isOpen(a)?u[l.index]++:l.isClose(a)&&u[l.index]--,-1===u[l.index]))return this._matchFoundBracket(s,l,!1,n);i=s.endColumn-1}return null};let p=null,k=null;for(let e=r.lineNumber;e<=i;e++){const t=this.textModel.tokenization.getLineTokens(e),n=t.getCount(),i=this.textModel.getLineContent(e);let o=0,s=0,c=0;if(e===r.lineNumber){o=t.findTokenIndexAtOffset(r.column-1),s=r.column-1,c=r.column-1;const e=t.getLanguageId(o);p!==e&&(p=e,k=this.languageConfigurationService.getLanguageConfiguration(p).brackets,l(p,k))}let u=!0;for(;o!0;{const t=Date.now();return()=>Date.now()-t<=e}}class d{static{this.INSTANCE=new d}constructor(){this._searchCanceledBrand=void 0}}function g(e){return e instanceof d?null:e}},36314:function(e,t,r){"use strict";r.r(t),r.d(t,{BracketAstNode:function(){return k},InvalidBracketAstNode:function(){return C},ListAstNode:function(){return u},PairAstNode:function(){return c},TextAstNode:function(){return p}});var n=r(42050),i=r(81012),o=r(85880),s=r(36769);class a{get length(){return this._length}constructor(e){this._length=e}}class c extends a{static create(e,t,r){let n=e.length;return t&&(n=(0,o.lengthAdd)(n,t.length)),r&&(n=(0,o.lengthAdd)(n,r.length)),new c(n,e,t,r,t?t.missingOpeningBracketIds:s.SmallImmutableSet.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,r,n,i){super(e),this.openingBracket=t,this.child=r,this.closingBracket=n,this.missingOpeningBracketIds=i}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new c(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,o.lengthAdd)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class u extends a{static create23(e,t,r,n=!1){let i=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(i=(0,o.lengthAdd)(i,t.length),s=s.merge(t.missingOpeningBracketIds),r){if(e.listHeight!==r.listHeight)throw new Error("Invalid list heights");i=(0,o.lengthAdd)(i,r.length),s=s.merge(r.missingOpeningBracketIds)}return n?new h(i,e.listHeight+1,e,t,r,s):new l(i,e.listHeight+1,e,t,r,s)}static getEmpty(){return new g(o.lengthZero,0,[],s.SmallImmutableSet.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,r){super(e),this.listHeight=t,this._missingOpeningBracketIds=r,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),r=4===t.kind?t.toMutable():t;return t!==r&&this.setChild(e-1,r),r}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new n.BugIndicatingError;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,r=this.getChild(0).missingOpeningBracketIds;for(let n=1;n{const t=n.Range.lift(e.range);return new o((0,i.positionToLength)(t.getStartPosition()),(0,i.positionToLength)(t.getEndPosition()),(0,i.lengthOfString)(e.text))})).reverse()}constructor(e,t,r){this.startOffset=e,this.endOffset=t,this.newLength=r}toString(){return`[${(0,i.lengthToObj)(this.startOffset)}...${(0,i.lengthToObj)(this.endOffset)}) -> ${(0,i.lengthToObj)(this.newLength)}`}}class s{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],r=t?this.translateOldToCur(t.offsetObj):null;return null===r?null:(0,i.lengthDiffNonNegative)(e,r)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,i.toLength)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,i.toLength)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,i.lengthToObj)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,i.toLength)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,i.toLength)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdxnew s.TextEditInfo((0,c.toLength)(e.fromLineNumber-1,0),(0,c.toLength)(e.toLineNumber,0),(0,c.toLength)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=s.TextEditInfo.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const r=(0,g.combineTextEditInfos)(this.queuedTextEdits,e);this.queuedTextEdits=r,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,g.combineTextEditInfos)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,r){const n=t,i=new h.TextBufferTokenizer(this.textModel,this.brackets);return(0,u.parseDocument)(i,e,n,r)}getBracketsInRange(e,t){this.flushQueue();const r=(0,c.toLength)(e.startLineNumber-1,e.startColumn-1),n=(0,c.toLength)(e.endLineNumber-1,e.endColumn-1);return new d.CallbackIterable((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens;k(i,c.lengthZero,i.length,r,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const r=(0,c.positionToLength)(e.getStartPosition()),n=(0,c.positionToLength)(e.getEndPosition());return new d.CallbackIterable((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens,o=new C(e,t,this.textModel);_(i,c.lengthZero,i.length,r,n,o,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return p(t,c.lengthZero,t.length,(0,c.positionToLength)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return m(t,c.lengthZero,t.length,(0,c.positionToLength)(e))}}function m(e,t,r,n){if(4===e.kind||2===e.kind){const i=[];for(const n of e.children)r=(0,c.lengthAdd)(t,n.length),i.push({nodeOffsetStart:t,nodeOffsetEnd:r}),t=r;for(let t=i.length-1;t>=0;t--){const{nodeOffsetStart:r,nodeOffsetEnd:o}=i[t];if((0,c.lengthLessThan)(r,n)){const i=m(e.children[t],r,o,n);if(i)return i}}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,c.lengthsToRange)(t,r);return{bracketInfo:e.bracketInfo,range:n}}return null}function p(e,t,r,n){if(4===e.kind||2===e.kind){for(const i of e.children){if(r=(0,c.lengthAdd)(t,i.length),(0,c.lengthLessThan)(n,r)){const e=p(i,t,r,n);if(e)return e}t=r}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,c.lengthsToRange)(t,r);return{bracketInfo:e.bracketInfo,range:n}}return null}function k(e,t,r,n,i,s,a,u,l,h,d=!1){if(a>200)return!0;e:for(;;)switch(e.kind){case 4:{const o=e.childrenLength;for(let u=0;u200)return!0;let l=!0;if(2===e.kind){let h=0;if(u){let t=u.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,u.set(e.openingBracket.text,t)}const d=(0,c.lengthAdd)(t,e.openingBracket.length);let g=-1;if(s.includeMinIndentation&&(g=e.computeMinIndentation(t,s.textModel)),l=s.push(new o.BracketPairWithMinIndentationInfo((0,c.lengthsToRange)(t,r),(0,c.lengthsToRange)(t,d),e.closingBracket?(0,c.lengthsToRange)((0,c.lengthAdd)(d,e.child?.length||c.lengthZero),r):void 0,a,h,e,g)),t=d,l&&e.child){const o=e.child;if(r=(0,c.lengthAdd)(t,o.length),(0,c.lengthLessThanEqual)(t,i)&&(0,c.lengthGreaterThanEqual)(r,n)&&(l=_(o,t,r,n,i,s,a+1,u),!l))return!1}u?.set(e.openingBracket.text,h)}else{let r=t;for(const t of e.children){const e=r;if(r=(0,c.lengthAdd)(r,t.length),(0,c.lengthLessThanEqual)(e,i)&&(0,c.lengthLessThanEqual)(n,r)&&(l=_(t,e,r,n,i,s,a,u),!l))return!1}}return l}},65917:function(e,t,r){"use strict";r.r(t),r.d(t,{BracketTokens:function(){return c},LanguageAgnosticBracketTokens:function(){return u}});var n=r(41011),i=r(36314),o=r(85880),s=r(36769),a=r(11759);class c{static createFromLanguage(e,t){function r(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const n=new Map;for(const t of e.bracketsNew.openingBrackets){const e=(0,o.toLength)(0,t.bracketText.length),c=r(t),u=s.SmallImmutableSet.getEmpty().add(c,s.identityKeyProvider);n.set(t.bracketText,new a.Token(e,1,c,u,i.BracketAstNode.create(e,t,u)))}for(const t of e.bracketsNew.closingBrackets){const e=(0,o.toLength)(0,t.bracketText.length);let c=s.SmallImmutableSet.getEmpty();const u=t.getOpeningBrackets();for(const e of u)c=c.add(r(e),s.identityKeyProvider);n.set(t.bracketText,new a.Token(e,2,r(u[0]),c,i.BracketAstNode.create(e,t,c)))}return new c(n)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,n.escapeRegExpCharacters)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,r]of this.map)if(2===r.kind&&r.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class u{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=c.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},32543:function(e,t,r){"use strict";r.r(t),r.d(t,{combineTextEditInfos:function(){return s}});var n=r(13355),i=r(22021),o=r(85880);function s(e,t){if(0===e.length)return t;if(0===t.length)return e;const r=new n.ArrayQueue(c(e)),s=c(t);s.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let u=r.dequeue();function l(e){if(void 0===e){const e=r.takeWhile((e=>!0))||[];return u&&e.unshift(u),e}const t=[];for(;u&&!(0,o.lengthIsZero)(e);){const[n,i]=u.splitAt(e);t.push(n),e=(0,o.lengthDiffNonNegative)(n.lengthAfter,e),u=i??r.dequeue()}return(0,o.lengthIsZero)(e)||t.push(new a(!1,e,e)),t}const h=[];function d(e,t,r){if(h.length>0&&(0,o.lengthEquals)(h[h.length-1].endOffset,e)){const e=h[h.length-1];h[h.length-1]=new i.TextEditInfo(e.startOffset,t,(0,o.lengthAdd)(e.newLength,r))}else h.push({startOffset:e,endOffset:t,newLength:r})}let g=o.lengthZero;for(const e of s){const t=l(e.lengthBefore);if(e.modified){const r=(0,o.sumLengths)(t,(e=>e.lengthBefore)),n=(0,o.lengthAdd)(g,r);d(g,n,e.lengthAfter),g=n}else for(const e of t){const t=g;g=(0,o.lengthAdd)(g,e.lengthBefore),e.modified&&d(t,g,e.lengthAfter)}}return h}class a{constructor(e,t,r){this.modified=e,this.lengthBefore=t,this.lengthAfter=r}splitAt(e){const t=(0,o.lengthDiffNonNegative)(e,this.lengthAfter);return(0,o.lengthEquals)(t,o.lengthZero)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,o.lengthZero,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,o.lengthToObj)(this.lengthBefore)} -> ${(0,o.lengthToObj)(this.lengthAfter)}`}}function c(e){const t=[];let r=o.lengthZero;for(const n of e){const e=(0,o.lengthDiffNonNegative)(r,n.startOffset);(0,o.lengthIsZero)(e)||t.push(new a(!1,e,e));const i=(0,o.lengthDiffNonNegative)(n.startOffset,n.endOffset);t.push(new a(!0,i,n.newLength)),r=n.endOffset}return t}},86522:function(e,t,r){"use strict";r.r(t),r.d(t,{concat23Trees:function(){return i},concat23TreesOfSameHeight:function(){return o}});var n=r(36314);function i(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function r(){if(t>=e.length)return null;const r=t,n=e[r].listHeight;for(t++;t=2?o(0===r&&t===e.length?e:e.slice(r,t),!1):e[r]}let n=r(),i=r();if(!i)return n;for(let e=r();e;e=r())s(n,i)<=s(i,e)?(n=a(n,i),i=e):i=a(i,e);return a(n,i)}function o(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let r=e.length;for(;r>3;){const i=r>>1;for(let o=0;o=3?e[2]:null,t)}function s(e,t){return Math.abs(e.listHeight-t.listHeight)}function a(e,t){return e.listHeight===t.listHeight?n.ListAstNode.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let r=e=e.toMutable();const i=[];let o;for(;;){if(t.listHeight===r.listHeight){o=t;break}if(4!==r.kind)throw new Error("unexpected");i.push(r),r=r.makeLastElementMutable()}for(let e=i.length-1;e>=0;e--){const t=i[e];o?t.childrenLength>=3?o=n.ListAstNode.create23(t.unappendChild(),o,null,!1):(t.appendChildOfSameHeight(o),o=void 0):t.handleChildrenChanged()}return o?n.ListAstNode.create23(e,o,null,!1):e}(e,t):function(e,t){let r=e=e.toMutable();const i=[];for(;t.listHeight!==r.listHeight;){if(4!==r.kind)throw new Error("unexpected");i.push(r),r=r.makeFirstElementMutable()}let o=t;for(let e=i.length-1;e>=0;e--){const t=i[e];o?t.childrenLength>=3?o=n.ListAstNode.create23(o,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(o),o=void 0):t.handleChildrenChanged()}return o?n.ListAstNode.create23(o,e,null,!1):e}(t,e)}},85880:function(e,t,r){"use strict";r.r(t),r.d(t,{lengthAdd:function(){return f},lengthDiff:function(){return s},lengthDiffNonNegative:function(){return k},lengthEquals:function(){return p},lengthGetColumnCountIfZeroLineCount:function(){return g},lengthGetLineCount:function(){return d},lengthGreaterThanEqual:function(){return v},lengthIsZero:function(){return c},lengthLessThan:function(){return C},lengthLessThanEqual:function(){return _},lengthOfString:function(){return I},lengthToObj:function(){return h},lengthZero:function(){return a},lengthsToRange:function(){return L},positionToLength:function(){return b},sumLengths:function(){return m},toLength:function(){return l}});var n=r(41011),i=r(74032),o=r(67854);function s(e,t,r,n){return e!==r?l(r-e,n):l(0,n-t)}const a=0;function c(e){return 0===e}const u=2**26;function l(e,t){return e*u+t}function h(e){const t=e,r=Math.floor(t/u),n=t-r*u;return new o.TextLength(r,n)}function d(e){return Math.floor(e/u)}function g(e){return e}function f(e,t){let r=e+t;return t>=u&&(r-=e%u),r}function m(e,t){return e.reduce(((e,r)=>f(e,t(r))),a)}function p(e,t){return e===t}function k(e,t){const r=e,n=t;if(n-r<=0)return a;const i=Math.floor(r/u),o=Math.floor(n/u),s=n-o*u;if(i===o){return l(0,s-(r-i*u))}return l(o-i,s)}function C(e,t){return e=t}function b(e){return l(e.lineNumber-1,e.column-1)}function L(e,t){const r=e,n=Math.floor(r/u),o=r-n*u,s=t,a=Math.floor(s/u),c=s-a*u;return new i.Range(n+1,o+1,a+1,c+1)}function I(e){const t=(0,n.splitLines)(e);return l(t.length-1,t[t.length-1].length)}},8635:function(e,t,r){"use strict";r.r(t),r.d(t,{NodeReader:function(){return i}});var n=r(85880);class i{constructor(e){this.lastOffset=n.lengthZero,this.nextNodes=[e],this.offsets=[n.lengthZero],this.idxs=[]}readLongestNodeAt(e,t){if((0,n.lengthLessThan)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const r=s(this.nextNodes);if(!r)return;const i=s(this.offsets);if((0,n.lengthLessThan)(e,i))return;if((0,n.lengthLessThan)(i,e))if((0,n.lengthAdd)(i,r.length)<=e)this.nextNodeAfterCurrent();else{const e=o(r);-1!==e?(this.nextNodes.push(r.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(r))return this.nextNodeAfterCurrent(),r;{const e=o(r);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(r.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=s(this.offsets),t=s(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const r=s(this.nextNodes),i=o(r,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(r.getChild(i)),this.offsets.push((0,n.lengthAdd)(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function o(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function s(e){return e.length>0?e[e.length-1]:void 0}},28843:function(e,t,r){"use strict";r.r(t),r.d(t,{parseDocument:function(){return u}});var n=r(36314),i=r(22021),o=r(36769),s=r(85880),a=r(86522),c=r(8635);function u(e,t,r,n){return new l(e,t,r,n).parseDocument()}class l{constructor(e,t,r,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,r&&n)throw new Error("Not supported");this.oldNodeReader=r?new c.NodeReader(r):void 0,this.positionMapper=new i.BeforeEditPositionMapper(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(o.SmallImmutableSet.getEmpty(),0);return e||(e=n.ListAstNode.getEmpty()),e}parseList(e,t){const r=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){const r=this.tokenizer.peek();if(!r||2===r.kind&&r.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}4===n.kind&&0===n.childrenLength||r.push(n)}return this.oldNodeReader?(0,a.concat23Trees)(r):(0,a.concat23TreesOfSameHeight)(r,this.createImmutableLists)}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,s.lengthIsZero)(t)){const r=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(r=>{if(null!==t&&!(0,s.lengthLessThan)(r.length,t))return!1;return r.canBeReused(e)}));if(r)return this._itemsFromCache++,this.tokenizer.skip(r.length),r}}}parseChild(e,t){this._itemsConstructed++;const r=this.tokenizer.read();switch(r.kind){case 2:return new n.InvalidBracketAstNode(r.bracketIds,r.length);case 0:return r.astNode;case 1:{if(t>300)return new n.TextAstNode(r.length);const i=e.merge(r.bracketIds),o=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===r.bracketId||s.bracketIds.intersects(r.bracketIds))?(this.tokenizer.read(),n.PairAstNode.create(r.astNode,o,s.astNode)):n.PairAstNode.create(r.astNode,o,null)}default:throw new Error("unexpected")}}}},36769:function(e,t,r){"use strict";r.r(t),r.d(t,{DenseKeyProvider:function(){return s},SmallImmutableSet:function(){return i},identityKeyProvider:function(){return o}});const n=[];class i{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let r=i.cache[e];return r||(r=new i(e,t),i.cache[e]=r),r}return new i(e,t)}static{this.empty=i.create(0,n)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const r=t.getKey(e);let n=r>>5;if(0===n){const e=1<this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let r=0;for(;;){const n=this.lineTokens,o=n.getCount();let a=null;if(this.lineTokenOffset1e3)break}if(r>1500)break}const n=(0,s.lengthDiff)(e,t,this.lineIdx,this.lineCharOffset);return new c(n,0,-1,a.SmallImmutableSet.getEmpty(),new o.TextAstNode(n))}}class h{constructor(e,t){this.text=e,this._offset=s.lengthZero,this.idx=0;const r=t.getRegExpStr(),n=r?new RegExp(r+"|\n","gi"):null,i=[];let u,l=0,h=0,d=0,g=0;const f=[];for(let e=0;e<60;e++)f.push(new c((0,s.toLength)(0,e),0,-1,a.SmallImmutableSet.getEmpty(),new o.TextAstNode((0,s.toLength)(0,e))));const m=[];for(let e=0;e<60;e++)m.push(new c((0,s.toLength)(1,e),0,-1,a.SmallImmutableSet.getEmpty(),new o.TextAstNode((0,s.toLength)(1,e))));if(n)for(n.lastIndex=0;null!==(u=n.exec(e));){const e=u.index,r=u[0];if("\n"===r)l++,h=e+1;else{if(d!==e){let t;if(g===l){const r=e-d;if(r{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,r,n){if(n)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new o.Range(1,1,this.textModel.getLineCount(),1),e,t):[]}}class u{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,a.registerThemingParticipant)(((e,t)=>{const r=[s.editorBracketHighlightingForeground1,s.editorBracketHighlightingForeground2,s.editorBracketHighlightingForeground3,s.editorBracketHighlightingForeground4,s.editorBracketHighlightingForeground5,s.editorBracketHighlightingForeground6],n=new u;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(s.editorBracketHighlightingUnexpectedBracketForeground)}; }`);const i=r.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let e=0;e<30;e++){const r=i[e%i.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e)} { color: ${r}; }`)}}))},53211:function(e,t,r){"use strict";r.r(t),r.d(t,{EditStack:function(){return p},MultiModelEditStackElement:function(){return g},SingleModelEditStackData:function(){return h},SingleModelEditStackElement:function(){return d},isEditStackElement:function(){return m}});var n=r(34106),i=r(42050),o=r(5679),s=r(20599),a=r(45846),c=r(72895),u=r(64380);function l(e){return e.toString()}class h{static create(e,t){const r=e.getAlternativeVersionId(),n=f(e);return new h(r,r,n,n,t,t,[])}constructor(e,t,r,n,i,o,s){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=r,this.afterEOL=n,this.beforeCursorState=i,this.afterCursorState=o,this.changes=s}append(e,t,r,n,i){t.length>0&&(this.changes=(0,a.compressConsecutiveTextChanges)(this.changes,t)),this.afterEOL=r,this.afterVersionId=n,this.afterCursorState=i}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,r){if(c.writeUInt32BE(e,t?t.length:0,r),r+=4,t)for(const n of t)c.writeUInt32BE(e,n.selectionStartLineNumber,r),r+=4,c.writeUInt32BE(e,n.selectionStartColumn,r),r+=4,c.writeUInt32BE(e,n.positionLineNumber,r),r+=4,c.writeUInt32BE(e,n.positionColumn,r),r+=4;return r}static _readSelections(e,t,r){const n=c.readUInt32BE(e,t);t+=4;for(let i=0;ie.toString())).join(", ")}matchesResource(e){return(s.URI.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof h}append(e,t,r,n,i){this._data instanceof h&&this._data.append(e,t,r,n,i)}close(){this._data instanceof h&&(this._data=this._data.serialize())}open(){this._data instanceof h||(this._data=h.deserialize(this._data))}undo(){if(s.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof h&&(this._data=this._data.serialize());const e=h.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(s.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof h&&(this._data=this._data.serialize());const e=h.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof h&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,r){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=r.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=l(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=l(e);return this._editStackElementsMap.has(t)}setModel(e){const t=l(s.URI.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=l(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,r,n,i){const o=l(e.uri);this._editStackElementsMap.get(o).append(e,t,r,n,i)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=l(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,u.basename)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function f(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof d||e instanceof g)}class p{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const r=this._undoRedoService.getLastElement(this._model.uri);if(m(r)&&r.canAppend(this._model))return r;const i=new d(n.localize("vs/editor/common/model/editStack","edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],f(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,r,n){const i=this._getOrCreateEditStackElement(e,n),o=this._model.applyEdits(t,!0),s=p._computeCursorState(r,o),a=o.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),i.append(this._model,a.map((e=>e.textChange)),f(this._model),this._model.getAlternativeVersionId(),s),s}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return(0,i.onUnexpectedError)(e),null}}}},69048:function(e,t,r){"use strict";r.r(t),r.d(t,{FixedArray:function(){return i}});var n=r(13355);class i{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,r){if(e>=this._store.length)return;if(0===t)return void this.insert(e,r);if(0===r)return void this.delete(e,t);const n=this._store.slice(0,e),i=this._store.slice(e+t),o=function(e,t){const r=[];for(let n=0;n=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const r=[];for(let e=0;en)throw new l.BugIndicatingError("Illegal value for lineNumber");const i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(i&&i.offSide);let s=-2,a=-1,c=-2,u=-1;const h=e=>{if(-1!==s&&(-2===s||s>e-1)){s=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){s=t,a=e;break}}}if(-2===c){c=-1,u=-1;for(let t=e;t=0){c=t,u=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f=0){f=t,m=e;break}}}};let k=0,C=!0,_=0,v=!0,b=0,L=0;for(let i=0;C||v;i++){const s=e-i,l=e+i;i>1&&(s<1||s1&&(l>n||l>r)&&(v=!1),i>5e4&&(C=!1,v=!1);let f=-1;if(C&&s>=1){const e=this._computeIndentLevel(s-1);e>=0?(c=s-1,u=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(s),f=this._getIndentLevelForWhitespaceLine(o,a,u))}let I=-1;if(v&&l<=n){const e=this._computeIndentLevel(l-1);e>=0?(d=l-1,g=e,I=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(l),I=this._getIndentLevelForWhitespaceLine(o,g,m))}if(0!==i){if(1===i){if(l<=n&&I>=0&&L+1===I){C=!1,k=l,_=l,b=I;continue}if(s>=1&&f>=0&&f-1===L){v=!1,k=s,_=s,b=f;continue}if(k=e,_=e,b=L,0===b)return{startLineNumber:k,endLineNumber:_,indent:b}}C&&(f>=b?k=s:C=!1),v&&(I>=b?_=l:v=!1)}else L=f}return{startLineNumber:k,endLineNumber:_,indent:b}}getLinesBracketGuides(e,t,r,o){const a=[];for(let r=e;r<=t;r++)a.push([]);const c=!0,l=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new s.Range(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let h;if(r&&l.length>0){const i=(e<=r.lineNumber&&r.lineNumber<=t?l:this.textModel.bracketPairs.getBracketPairsInRange(s.Range.fromPositions(r)).toArray()).filter((e=>s.Range.strictContainsPosition(e.range,r)));h=(0,n.findLast)(i,(e=>c))?.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,f=new d;for(const r of l){if(!r.closingBracketRange)continue;const n=h&&r.range.equalsRange(h);if(!n&&!o.includeInactive)continue;const s=f.getInlineClassName(r.nestingLevel,r.nestingLevelOfEqualBracketType,g)+(o.highlightActive&&n?" "+f.activeClassName:""),c=r.openingBracketRange.getStartPosition(),l=r.closingBracketRange.getStartPosition(),d=o.horizontalGuides===u.HorizontalGuidesState.Enabled||o.horizontalGuides===u.HorizontalGuidesState.EnabledForActive&&n;if(r.range.startLineNumber===r.range.endLineNumber){d&&a[r.range.startLineNumber-e].push(new u.IndentGuide(-1,r.openingBracketRange.getEndPosition().column,s,new u.IndentGuideHorizontalLine(!1,l.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(l),p=this.getVisibleColumnFromPosition(r.openingBracketRange.getStartPosition()),k=Math.min(p,m,r.minVisibleColumnIndentation+1);let C=!1;i.firstNonWhitespaceIndex(this.textModel.getLineContent(r.closingBracketRange.startLineNumber))=e&&p>k&&a[c.lineNumber-e].push(new u.IndentGuide(k,-1,s,new u.IndentGuideHorizontalLine(!1,c.column),-1,-1)),l.lineNumber<=t&&m>k&&a[l.lineNumber-e].push(new u.IndentGuide(k,-1,s,new u.IndentGuideHorizontalLine(!C,l.column),-1,-1)))}for(const e of a)e.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return a}getVisibleColumnFromPosition(e){return o.CursorColumns.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new Error("Illegal value for startLineNumber");if(t<1||t>r)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(i&&i.offSide),s=new Array(t-e+1);let a=-2,c=-1,u=-2,l=-1;for(let i=e;i<=t;i++){const t=i-e,h=this._computeIndentLevel(i-1);if(h>=0)a=i-1,c=h,s[t]=Math.ceil(h/n.indentSize);else{if(-2===a){a=-1,c=-1;for(let e=i-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,c=t;break}}}if(-1!==u&&(-2===u||u=0){u=e,l=t;break}}}s[t]=this._getIndentLevelForWhitespaceLine(o,c,l)}}return s}_getIndentLevelForWhitespaceLine(e,t,r){const n=this.textModel.getOptions();return-1===t||-1===r?0:t0&&a>0)return;if(c>0&&u>0)return;const l=Math.abs(a-u),h=Math.abs(s-c);if(0===l)return i.spacesDiff=h,void(h>0&&0<=c-1&&c-10?s++:p>1&&a++,i(c,u,l,m,d),d.looksLikeAlignment&&(!r||t!==d.spacesDiff))continue;const C=d.spacesDiff;C<=8&&h[C]++,c=l,u=m}let g=r;s!==a&&(g=s{const r=h[t];r>e&&(e=r,f=t)})),4===f&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(f=2)}return{insertSpaces:g,tabSize:f}}},99562:function(e,t,r){"use strict";function n(e){return(1&e.metadata)>>>0}function i(e,t){e.metadata=254&e.metadata|t}function o(e){return(2&e.metadata)>>>1==1}function s(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function a(e){return(4&e.metadata)>>>2==1}function c(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function u(e){return(64&e.metadata)>>>6==1}function l(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function h(e,t){e.metadata=231&e.metadata|t<<3}function d(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}r.r(t),r.d(t,{IntervalNode:function(){return g},IntervalTree:function(){return m},SENTINEL:function(){return f},getNodeColor:function(){return n},intervalCompare:function(){return T},nodeAcceptEdit:function(){return k},recomputeMaxEnd:function(){return B}});class g{constructor(e,t,r){this.metadata=0,this.parent=this,this.left=this,this.right=this,i(this,1),this.start=t,this.end=r,this.delta=0,this.maxEnd=r,this.id=e,this.ownerId=0,this.options=null,c(this,!1),l(this,!1),h(this,1),d(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=r,this.range=null,s(this,!1)}reset(e,t,r,n){this.start=t,this.end=r,this.maxEnd=r,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=r,this.range=n}setOptions(e){this.options=e;const t=this.options.className;c(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),l(this,null!==this.options.glyphMarginClassName),h(this,this.options.stickiness),d(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,r){this.cachedVersionId!==r&&(this.range=null),this.cachedVersionId=r,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const f=new g(null,0,0);f.parent=f,f.left=f,f.right=f,i(f,0);class m{constructor(){this.root=f,this.requestNormalizeDelta=!1}intervalSearch(e,t,r,n,i,c){return this.root===f?[]:function(e,t,r,n,i,c,l){let h=e.root,d=0,g=0,m=0,p=0;const k=[];let C=0;for(;h!==f;)if(o(h))s(h.left,!1),s(h.right,!1),h===h.parent.right&&(d-=h.parent.delta),h=h.parent;else{if(!o(h.left)){if(g=d+h.maxEnd,gr)s(h,!0);else{if(p=d+h.end,p>=t){h.setCachedOffsets(m,p,c);let e=!0;n&&h.ownerId&&h.ownerId!==n&&(e=!1),i&&a(h)&&(e=!1),l&&!u(h)&&(e=!1),e&&(k[C++]=h)}s(h,!0),h.right===f||o(h.right)||(d+=h.delta,h=h.right)}}return s(e.root,!1),k}(this,e,t,r,n,i,c)}search(e,t,r,n){return this.root===f?[]:function(e,t,r,n,i){let c=e.root,l=0,h=0,d=0;const g=[];let m=0;for(;c!==f;){if(o(c)){s(c.left,!1),s(c.right,!1),c===c.parent.right&&(l-=c.parent.delta),c=c.parent;continue}if(c.left!==f&&!o(c.left)){c=c.left;continue}h=l+c.start,d=l+c.end,c.setCachedOffsets(h,d,n);let e=!0;t&&c.ownerId&&c.ownerId!==t&&(e=!1),r&&a(c)&&(e=!1),i&&!u(c)&&(e=!1),e&&(g[m++]=c),s(c,!0),c.right===f||o(c.right)||(l+=c.delta,c=c.right)}return s(e.root,!1),g}(this,e,t,r,n)}collectNodesFromOwner(e){return function(e,t){let r=e.root;const n=[];let i=0;for(;r!==f;)o(r)?(s(r.left,!1),s(r.right,!1),r=r.parent):r.left===f||o(r.left)?(r.ownerId===t&&(n[i++]=r),s(r,!0),r.right===f||o(r.right)||(r=r.right)):r=r.left;return s(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const r=[];let n=0;for(;t!==f;)o(t)?(s(t.left,!1),s(t.right,!1),t=t.parent):t.left===f||o(t.left)?t.right===f||o(t.right)?(r[n++]=t,s(t,!0)):t=t.right:t=t.left;return s(e.root,!1),r}(this)}insert(e){C(this,e),this._normalizeDeltaIfNecessary()}delete(e){_(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const r=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const i=r.start+n,o=r.end+n;r.setCachedOffsets(i,o,t)}acceptReplace(e,t,r,n){const i=function(e,t,r){let n=e.root,i=0,a=0,c=0,u=0;const l=[];let h=0;for(;n!==f;)if(o(n))s(n.left,!1),s(n.right,!1),n===n.parent.right&&(i-=n.parent.delta),n=n.parent;else{if(!o(n.left)){if(a=i+n.maxEnd,ar?s(n,!0):(u=i+n.end,u>=t&&(n.setCachedOffsets(c,u,0),l[h++]=n),s(n,!0),n.right===f||o(n.right)||(i+=n.delta,n=n.right))}return s(e.root,!1),l}(this,e,e+t);for(let e=0,t=i.length;er?(i.start+=l,i.end+=l,i.delta+=l,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),s(i,!0)):(s(i,!0),i.right===f||o(i.right)||(a+=i.delta,i=i.right))}s(e.root,!1)}(this,e,e+t,r),this._normalizeDeltaIfNecessary();for(let o=0,s=i.length;or)&&(1!==n&&(2===n||t))}function k(e,t,r,n,i){const o=function(e){return(24&e.metadata)>>>3}(e),s=0===o||2===o,a=1===o||2===o,c=r-t,u=n,l=Math.min(c,u),h=e.start;let d=!1;const g=e.end;let f=!1;t<=h&&g<=r&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=i?1:c>0?2:0;!d&&p(h,s,t,e)&&(d=!0),!f&&p(g,a,t,e)&&(f=!0)}if(l>0&&!i){const e=c>u?2:0;!d&&p(h,s,t+l,e)&&(d=!0),!f&&p(g,a,t+l,e)&&(f=!0)}{const n=i?1:0;!d&&p(h,s,r,n)&&(e.start=t+u,d=!0),!f&&p(g,a,r,n)&&(e.end=t+u,f=!0)}const m=u-c;d||(e.start=Math.max(0,h+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function C(e,t){if(e.root===f)return t.parent=f,t.left=f,t.right=f,i(t,0),e.root=t,e.root;!function(e,t){let r=0,n=e.root;const o=t.start,s=t.end;for(;;){if(T(o,s,n.start+r,n.end+r)<0){if(n.left===f){t.start-=r,t.end-=r,t.maxEnd-=r,n.left=t;break}n=n.left}else{if(n.right===f){t.start-=r+n.delta,t.end-=r+n.delta,t.maxEnd-=r+n.delta,n.right=t;break}r+=n.delta,n=n.right}}t.parent=n,t.left=f,t.right=f,i(t,1)}(e,t),S(t.parent);let r=t;for(;r!==e.root&&1===n(r.parent);)if(r.parent===r.parent.parent.left){const t=r.parent.parent.right;1===n(t)?(i(r.parent,0),i(t,0),i(r.parent.parent,1),r=r.parent.parent):(r===r.parent.right&&(r=r.parent,b(e,r)),i(r.parent,0),i(r.parent.parent,1),L(e,r.parent.parent))}else{const t=r.parent.parent.left;1===n(t)?(i(r.parent,0),i(t,0),i(r.parent.parent,1),r=r.parent.parent):(r===r.parent.left&&(r=r.parent,L(e,r)),i(r.parent,0),i(r.parent.parent,1),b(e,r.parent.parent))}return i(e.root,0),t}function _(e,t){let r,o;if(t.left===f?(r=t.right,o=t,r.delta+=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta):t.right===f?(r=t.left,o=t):(o=function(e){for(;e.left!==f;)e=e.left;return e}(t.right),r=o.right,r.start+=o.delta,r.end+=o.delta,r.delta+=o.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),o.start+=t.delta,o.end+=t.delta,o.delta=t.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0)),o===e.root)return e.root=r,i(r,0),t.detach(),v(),B(r),void(e.root.parent=f);const s=1===n(o);if(o===o.parent.left?o.parent.left=r:o.parent.right=r,o===t?r.parent=o.parent:(o.parent===t?r.parent=o:r.parent=o.parent,o.left=t.left,o.right=t.right,o.parent=t.parent,i(o,n(t)),t===e.root?e.root=o:t===t.parent.left?t.parent.left=o:t.parent.right=o,o.left!==f&&(o.left.parent=o),o.right!==f&&(o.right.parent=o)),t.detach(),s)return S(r.parent),o!==t&&(S(o),S(o.parent)),void v();let a;for(S(r),S(r.parent),o!==t&&(S(o),S(o.parent));r!==e.root&&0===n(r);)r===r.parent.left?(a=r.parent.right,1===n(a)&&(i(a,0),i(r.parent,1),b(e,r.parent),a=r.parent.right),0===n(a.left)&&0===n(a.right)?(i(a,1),r=r.parent):(0===n(a.right)&&(i(a.left,0),i(a,1),L(e,a),a=r.parent.right),i(a,n(r.parent)),i(r.parent,0),i(a.right,0),b(e,r.parent),r=e.root)):(a=r.parent.left,1===n(a)&&(i(a,0),i(r.parent,1),L(e,r.parent),a=r.parent.left),0===n(a.left)&&0===n(a.right)?(i(a,1),r=r.parent):(0===n(a.left)&&(i(a.right,0),i(a,1),b(e,a),a=r.parent.left),i(a,n(r.parent)),i(r.parent,0),i(a.left,0),L(e,r.parent),r=e.root));i(r,0),v()}function v(){f.parent=f,f.delta=0,f.start=0,f.end=0}function b(e,t){const r=t.right;r.delta+=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,t.right=r.left,r.left!==f&&(r.left.parent=t),r.parent=t.parent,t.parent===f?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left=t,t.parent=r,B(t),B(r)}function L(e,t){const r=t.left;t.delta-=r.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=r.delta,t.end-=r.delta,t.left=r.right,r.right!==f&&(r.right.parent=t),r.parent=t.parent,t.parent===f?e.root=r:t===t.parent.right?t.parent.right=r:t.parent.left=r,r.right=t,t.parent=r,B(t),B(r)}function I(e){let t=e.end;if(e.left!==f){const r=e.left.maxEnd;r>t&&(t=r)}if(e.right!==f){const r=e.right.maxEnd+e.delta;r>t&&(t=r)}return t}function B(e){e.maxEnd=I(e)}function S(e){for(;e!==f;){const t=I(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function T(e,t,r,n){return e===r?t-n:e-r}},86252:function(e,t,r){"use strict";r.r(t),r.d(t,{Piece:function(){return g},PieceTreeBase:function(){return k},StringBuffer:function(){return f},createLineStarts:function(){return d},createLineStartsFast:function(){return h}});var n=r(64946),i=r(74032),o=r(92188),s=r(22094),a=r(22007);const c=65535;function u(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class l{constructor(e,t,r,n,i){this.lineStarts=e,this.cr=t,this.lf=r,this.crlf=n,this.isBasicASCII=i}}function h(e,t=!0){const r=[0];let n=1;for(let t=0,i=e.length;t126)&&(s=!1)}const a=new l(u(e),n,i,o,s);return e.length=0,a}class g{constructor(e,t,r,n,i){this.bufferIndex=e,this.start=t,this.end=r,this.lineFeedCnt=n,this.length=i}}class f{constructor(e,t){this.buffer=e,this.lineStarts=t}}class m{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==s.SENTINEL&&e.iterate(e.root,(e=>(e!==s.SENTINEL&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class p{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const r=this._cache[t];if(r.nodeStartOffset<=e&&r.nodeStartOffset+r.node.piece.length>=e)return r}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const r=this._cache[t];if(r.nodeStartLineNumber&&r.nodeStartLineNumber=e)return r}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const r=this._cache;for(let n=0;n=e)&&(r[n]=null,t=!0)}if(t){const e=[];for(const t of r)null!==t&&e.push(t);this._cache=e}}}class k{constructor(e,t,r){this.create(e,t,r)}create(e,t,r){this._buffers=[new f("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=s.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=r;let n=null;for(let t=0,r=e.length;t0){e[t].lineStarts||(e[t].lineStarts=h(e[t].buffer));const r=new g(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,r)}this._searchCache=new p(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=c,r=t-Math.floor(21845),n=2*r;let i="",o=0;const s=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),c=a.length;if(o<=r||o+c0){const t=i.replace(/\r\n|\r|\n/g,e);s.push(new f(t,h(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new m(this,e)}getOffsetAt(e,t){let r=0,n=this.root;for(;n!==s.SENTINEL;)if(n.left!==s.SENTINEL&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e){r+=n.size_left;return r+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1)}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}return r}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,r=0;const i=e;for(;t!==s.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(r+=t.lf_left+o.index,0===o.index){const e=i-this.getOffsetAt(r+1,1);return new n.Position(r+1,e+1)}return new n.Position(r+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,r+=t.lf_left+t.piece.lineFeedCnt,t.right===s.SENTINEL){const t=i-e-this.getOffsetAt(r+1,1);return new n.Position(r+1,t+1)}t=t.right}return new n.Position(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const r=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(r,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i}getValueInRange2(e,t){if(e.node===t.node){const r=e.node,n=this._buffers[r.piece.bufferIndex].buffer,i=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return n.substring(i+e.remainder,i+t.remainder)}let r=e.node;const n=this._buffers[r.piece.bufferIndex].buffer,i=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);let o=n.substring(i+e.remainder,i+r.piece.length);for(r=r.next();r!==s.SENTINEL;){const e=this._buffers[r.piece.bufferIndex].buffer,n=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){o+=e.substring(n,n+t.remainder);break}o+=e.substr(n,r.piece.length),r=r.next()}return o}getLinesContent(){const e=[];let t=0,r="",n=!1;return this.iterate(this.root,(i=>{if(i===s.SENTINEL)return!0;const o=i.piece;let a=o.length;if(0===a)return!0;const c=this._buffers[o.bufferIndex].buffer,u=this._buffers[o.bufferIndex].lineStarts,l=o.start.line,h=o.end.line;let d=u[l]+o.start.column;if(n&&(10===c.charCodeAt(d)&&(d++,a--),e[t++]=r,r="",n=!1,0===a))return!0;if(l===h)return this._EOLNormalized||13!==c.charCodeAt(d+a-1)?r+=c.substr(d,a):(n=!0,r+=c.substr(d,a-1)),!0;r+=this._EOLNormalized?c.substring(d,Math.max(d,u[l+1]-this._EOLLength)):c.substring(d,u[l+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=r;for(let n=l+1;ne+m,t.reset(0)):(_=g.buffer,v=e=>e,t.reset(m));do{if(k=t.next(_),k){if(v(k.index)>=p)return h;this.positionInBuffer(e,v(k.index)-f,C);const t=this.getLineFeedCnt(e.piece.bufferIndex,o,C),s=C.line===o.line?C.column-o.column+n:C.column+1,c=s+k[0].length;if(d[h++]=(0,a.createFindMatch)(new i.Range(r+t,s,r+t,c),k,u),v(k.index)+k[0].length>=p)return h;if(h>=l)return h}}while(k);return h}findMatchesLineByLine(e,t,r,n){const i=[];let o=0;const s=new a.Searcher(t.wordSeparators,t.regex);let c=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===c)return[];const u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];let l=this.positionInBuffer(c.node,c.remainder);const h=this.positionInBuffer(u.node,u.remainder);if(c.node===u.node)return this.findMatchesInNode(c.node,s,e.startLineNumber,e.startColumn,l,h,t,r,n,o,i),i;let d=e.startLineNumber,g=c.node;for(;g!==u.node;){const a=this.getLineFeedCnt(g.piece.bufferIndex,l,g.piece.end);if(a>=1){const c=this._buffers[g.piece.bufferIndex].lineStarts,u=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),h=c[l.line+a],f=d===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(g,s,d,f,l,this.positionInBuffer(g,h-u),t,r,n,o,i),o>=n)return i;d+=a}const u=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(u,e.endColumn-1);return o=this._findMatchesInLine(t,s,a,e.endLineNumber,u,o,i,r,n),i}if(o=this._findMatchesInLine(t,s,this.getLineContent(d).substr(u),d,u,o,i,r,n),o>=n)return i;d++,c=this.nodeAt2(d,1),g=c.node,l=this.positionInBuffer(c.node,c.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,c=this.getLineContent(d).substring(a,e.endColumn-1);return o=this._findMatchesInLine(t,s,c,e.endLineNumber,a,o,i,r,n),i}const f=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(u.node,s,d,f,l,h,t,r,n,o,i),i}_findMatchesInLine(e,t,r,n,s,c,u,l,h){const d=e.wordSeparators;if(!l&&e.simpleSearch){const t=e.simpleSearch,l=t.length,g=r.length;let f=-l;for(;-1!==(f=r.indexOf(t,f+l));)if((!d||(0,a.isValidMatch)(d,r,g,f,l))&&(u[c++]=new o.FindMatch(new i.Range(n,f+1+s,n,f+1+l+s),null),c>=h))return c;return c}let g;t.reset(0);do{if(g=t.next(r),g&&(u[c++]=(0,a.createFindMatch)(new i.Range(n,g.index+1+s,n,g.index+1+g[0].length+s),g,l),c>=h))return c}while(g);return c}insert(e,t,r=!1){if(this._EOLNormalized=this._EOLNormalized&&r,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==s.SENTINEL){const{node:r,remainder:n,nodeStartOffset:i}=this.nodeAt(e),o=r.piece,s=o.bufferIndex,a=this.positionInBuffer(r,n);if(0===r.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&i+o.length===e&&t.lengthe){const e=[];let i=new g(o.bufferIndex,a,o.end,this.getLineFeedCnt(o.bufferIndex,a,o.end),this.offsetInBuffer(s,o.end)-this.offsetInBuffer(s,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(r,n)){const e={line:i.start.line+1,column:0};i=new g(i.bufferIndex,e,i.end,this.getLineFeedCnt(i.bufferIndex,e,i.end),i.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(r,n-1)){const i=this.positionInBuffer(r,n-1);this.deleteNodeTail(r,i),t="\r"+t,0===r.piece.length&&e.push(r)}else this.deleteNodeTail(r,a)}else this.deleteNodeTail(r,a);const c=this.createNewPieces(t);i.length>0&&this.rbInsertRight(r,i);let u=r;for(let e=0;e=0;e--)i=this.rbInsertLeft(i,n[e]);this.validateCRLFWithPrevNode(i),this.deleteNodes(r)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const r=this.createNewPieces(e),n=this.rbInsertRight(t,r[0]);let i=n;for(let e=1;e=l))break;a=u+1}return r?(r.line=u,r.column=s-h,null):{line:u,column:s-h}}getLineFeedCnt(e,t,r){if(0===r.column)return r.line-t.line;const n=this._buffers[e].lineStarts;if(r.line===n.length-1)return r.line-t.line;const i=n[r.line+1],o=n[r.line]+r.column;if(i>o+1)return r.line-t.line;const s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?r.line-t.line+1:r.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tc){const t=[];for(;e.length>c;){const r=e.charCodeAt(65534);let n;13===r||r>=55296&&r<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,c),e=e.substring(c));const i=h(n);t.push(new g(this._buffers.length,{line:0,column:0},{line:i.length-1,column:n.length-i[i.length-1]},i.length-1,n.length)),this._buffers.push(new f(n,i))}const r=h(e);return t.push(new g(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new f(e,r)),t}let t=this._buffers[0].buffer.length;const r=h(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e=e-1)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(r,e-r.lf_left-2),s=this.getAccumulatedValue(r,e-r.lf_left-1),a=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i+=r.size_left,this._searchCache.set({node:r,nodeStartOffset:i,nodeStartLineNumber:o-(e-1-r.lf_left)}),a.substring(c+n,c+s-t)}if(r.lf_left+r.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(r,e-r.lf_left-2),i=this._buffers[r.piece.bufferIndex].buffer,o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);n=i.substring(o+t,o+r.piece.length);break}e-=r.lf_left+r.piece.lineFeedCnt,i+=r.size_left+r.piece.length,r=r.right}}for(r=r.next();r!==s.SENTINEL;){const e=this._buffers[r.piece.bufferIndex].buffer;if(r.piece.lineFeedCnt>0){const i=this.getAccumulatedValue(r,0),o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return n+=e.substring(o,o+i-t),n}{const t=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);n+=e.substr(t,r.piece.length)}r=r.next()}return n}computeBufferMetadata(){let e=this.root,t=1,r=0;for(;e!==s.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,r+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=r,this._searchCache.validate(this._length)}getIndexOf(e,t){const r=e.piece,n=this.positionInBuffer(e,t),i=n.line-r.start.line;if(this.offsetInBuffer(r.bufferIndex,r.end)-this.offsetInBuffer(r.bufferIndex,r.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,r.start,n);if(t!==i)return{index:t,remainder:0}}return{index:i,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const r=e.piece,n=this._buffers[r.bufferIndex].lineStarts,i=r.start.line+t+1;return i>r.end.line?n[r.end.line]+r.end.column-n[r.start.line]-r.start.column:n[i]-n[r.start.line]-r.start.column}deleteNodeTail(e,t){const r=e.piece,n=r.lineFeedCnt,i=this.offsetInBuffer(r.bufferIndex,r.end),o=t,a=this.offsetInBuffer(r.bufferIndex,o),c=this.getLineFeedCnt(r.bufferIndex,r.start,o),u=c-n,l=a-i,h=r.length+l;e.piece=new g(r.bufferIndex,r.start,o,c,h),(0,s.updateTreeMetadata)(this,e,l,u)}deleteNodeHead(e,t){const r=e.piece,n=r.lineFeedCnt,i=this.offsetInBuffer(r.bufferIndex,r.start),o=t,a=this.getLineFeedCnt(r.bufferIndex,o,r.end),c=a-n,u=i-this.offsetInBuffer(r.bufferIndex,o),l=r.length+u;e.piece=new g(r.bufferIndex,o,r.end,a,l),(0,s.updateTreeMetadata)(this,e,u,c)}shrinkNode(e,t,r){const n=e.piece,i=n.start,o=n.end,a=n.length,c=n.lineFeedCnt,u=t,l=this.getLineFeedCnt(n.bufferIndex,n.start,u),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,i);e.piece=new g(n.bufferIndex,n.start,u,l,h),(0,s.updateTreeMetadata)(this,e,h-a,l-c);const d=new g(n.bufferIndex,r,o,this.getLineFeedCnt(n.bufferIndex,r,o),this.offsetInBuffer(n.bufferIndex,o)-this.offsetInBuffer(n.bufferIndex,r)),f=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(f)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const r=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const i=h(t,!1);for(let e=0;ee)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const r={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let r=this.root,n=0;for(;r!==s.SENTINEL;)if(r.left!==s.SENTINEL&&r.lf_left>=e-1)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(r,e-r.lf_left-2),o=this.getAccumulatedValue(r,e-r.lf_left-1);return n+=r.size_left,{node:r,remainder:Math.min(i+t-1,o),nodeStartOffset:n}}if(r.lf_left+r.piece.lineFeedCnt===e-1){const i=this.getAccumulatedValue(r,e-r.lf_left-2);if(i+t-1<=r.piece.length)return{node:r,remainder:i+t-1,nodeStartOffset:n};t-=r.piece.length-i;break}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}for(r=r.next();r!==s.SENTINEL;){if(r.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(r,0),n=this.offsetOfNode(r);return{node:r,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(r.piece.length>=t-1){return{node:r,remainder:t-1,nodeStartOffset:this.offsetOfNode(r)}}t-=r.piece.length,r=r.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const r=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return r.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===s.SENTINEL||0===e.piece.lineFeedCnt)return!1;const t=e.piece,r=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,i=r[n]+t.start.column;if(n===r.length-1)return!1;return!(r[n+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==s.SENTINEL&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const r=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let i;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new g(e.piece.bufferIndex,e.piece.start,i,a,o),(0,s.updateTreeMetadata)(this,e,-1,-1),0===e.piece.length&&r.push(e);const c={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,c,t.piece.end);t.piece=new g(t.piece.bufferIndex,c,t.piece.end,l,u),(0,s.updateTreeMetadata)(this,t,-1,-1),0===t.piece.length&&r.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let e=0;ee.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=a;const k=this._doApplyEdits(d);let C=null;if(t&&m.length>0){m.sort(((e,t)=>t.lineNumber-e.lineNumber)),C=[];for(let e=0,t=m.length;e0&&m[e-1].lineNumber===t)continue;const r=m[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==r&&-1===i.firstNonWhitespaceIndex(n)&&C.push(t)}}return this._onDidChangeContent.fire(),new s.ApplyEditsResult(p,k,C)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const r=e[0].range,n=e[e.length-1].range,i=new o.Range(r.startLineNumber,r.startColumn,n.endLineNumber,n.endColumn);let s=r.startLineNumber,a=r.startColumn;const u=[];for(let r=0,n=e.length;r0&&u.push(n.text),s=i.endLineNumber,a=i.endColumn}const l=u.join(""),[h,d,g]=(0,c.countEOL)(l);return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),text:l,eolCount:h,firstLineLength:d,lastLineLength:g,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(h._sortOpsDescending);const t=[];for(let r=0;r0){const e=a.eolCount+1;l=1===e?new o.Range(c,u,c,u+a.firstLineLength):new o.Range(c,u,c+e-1,a.lastLineLength+1)}else l=new o.Range(c,u,c,u);r=l.endLineNumber,n=l.endColumn,t.push(l),i=a}return t}static _sortOpsAscending(e,t){const r=o.Range.compareRangesUsingEnds(e.range,t.range);return 0===r?e.sortIndex-t.sortIndex:r}static _sortOpsDescending(e,t){const r=o.Range.compareRangesUsingEnds(e.range,t.range);return 0===r?t.sortIndex-e.sortIndex:-r}}},57385:function(e,t,r){"use strict";r.r(t),r.d(t,{PieceTreeTextBufferBuilder:function(){return a}});var n=r(41011),i=r(86252),o=r(45068);class s{constructor(e,t,r,n,i,o,s,a,c){this._chunks=e,this._bom=t,this._cr=r,this._lf=n,this._crlf=i,this._containsRTL=o,this._containsUnusualLineTerminators=s,this._isBasicASCII=a,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,r=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":r>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),r=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,n=r.length;e=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=(0,i.createLineStarts)(this._tmpLineStarts,e);this.chunks.push(new i.StringBuffer(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=n.containsRTL(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=n.containsUnusualLineTerminators(e)))}finish(e=!0){return this._finish(),new s(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=(0,i.createLineStartsFast)(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}},22094:function(e,t,r){"use strict";r.r(t),r.d(t,{SENTINEL:function(){return i},TreeNode:function(){return n},fixInsert:function(){return g},leftRotate:function(){return l},leftest:function(){return o},rbDelete:function(){return d},recomputeTreeMetadata:function(){return m},rightRotate:function(){return h},righttest:function(){return s},updateTreeMetadata:function(){return f}});class n{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==i)return o(this.right);let e=this;for(;e.parent!==i&&e.parent.left!==e;)e=e.parent;return e.parent===i?i:e.parent}prev(){if(this.left!==i)return s(this.left);let e=this;for(;e.parent!==i&&e.parent.right!==e;)e=e.parent;return e.parent===i?i:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const i=new n(null,0);function o(e){for(;e.left!==i;)e=e.left;return e}function s(e){for(;e.right!==i;)e=e.right;return e}function a(e){return e===i?0:e.size_left+e.piece.length+a(e.right)}function c(e){return e===i?0:e.lf_left+e.piece.lineFeedCnt+c(e.right)}function u(){i.parent=i}function l(e,t){const r=t.right;r.size_left+=t.size_left+(t.piece?t.piece.length:0),r.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=r.left,r.left!==i&&(r.left.parent=t),r.parent=t.parent,t.parent===i?e.root=r:t.parent.left===t?t.parent.left=r:t.parent.right=r,r.left=t,t.parent=r}function h(e,t){const r=t.left;t.left=r.right,r.right!==i&&(r.right.parent=t),r.parent=t.parent,t.size_left-=r.size_left+(r.piece?r.piece.length:0),t.lf_left-=r.lf_left+(r.piece?r.piece.lineFeedCnt:0),t.parent===i?e.root=r:t===t.parent.right?t.parent.right=r:t.parent.left=r,r.right=t,t.parent=r}function d(e,t){let r,n;if(t.left===i?(n=t,r=n.right):t.right===i?(n=t,r=n.left):(n=o(t.right),r=n.right),n===e.root)return e.root=r,r.color=0,t.detach(),u(),void(e.root.parent=i);const s=1===n.color;if(n===n.parent.left?n.parent.left=r:n.parent.right=r,n===t?(r.parent=n.parent,m(e,r)):(n.parent===t?r.parent=n:r.parent=n.parent,m(e,r),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==i&&(n.left.parent=n),n.right!==i&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,m(e,n)),t.detach(),r.parent.left===r){const t=a(r),n=c(r);if(t!==r.parent.size_left||n!==r.parent.lf_left){const i=t-r.parent.size_left,o=n-r.parent.lf_left;r.parent.size_left=t,r.parent.lf_left=n,f(e,r.parent,i,o)}}if(m(e,r.parent),s)return void u();let d;for(;r!==e.root&&0===r.color;)r===r.parent.left?(d=r.parent.right,1===d.color&&(d.color=0,r.parent.color=1,l(e,r.parent),d=r.parent.right),0===d.left.color&&0===d.right.color?(d.color=1,r=r.parent):(0===d.right.color&&(d.left.color=0,d.color=1,h(e,d),d=r.parent.right),d.color=r.parent.color,r.parent.color=0,d.right.color=0,l(e,r.parent),r=e.root)):(d=r.parent.left,1===d.color&&(d.color=0,r.parent.color=1,h(e,r.parent),d=r.parent.left),0===d.left.color&&0===d.right.color?(d.color=1,r=r.parent):(0===d.left.color&&(d.right.color=0,d.color=1,l(e,d),d=r.parent.left),d.color=r.parent.color,r.parent.color=0,d.left.color=0,h(e,r.parent),r=e.root));r.color=0,u()}function g(e,t){for(m(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const r=t.parent.parent.right;1===r.color?(t.parent.color=0,r.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&l(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,h(e,t.parent.parent))}else{const r=t.parent.parent.left;1===r.color?(t.parent.color=0,r.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&h(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,l(e,t.parent.parent))}e.root.color=0}function f(e,t,r,n){for(;t!==e.root&&t!==i;)t.parent.left===t&&(t.parent.size_left+=r,t.parent.lf_left+=n),t=t.parent}function m(e,t){let r=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(r=a((t=t.parent).left)-t.size_left,n=c(t.left)-t.lf_left,t.size_left+=r,t.lf_left+=n;t!==e.root&&(0!==r||0!==n);)t.parent.left===t&&(t.parent.size_left+=r,t.parent.lf_left+=n),t=t.parent}}i.parent=i,i.left=i,i.right=i,i.color=0},54803:function(e,t,r){"use strict";r.r(t),r.d(t,{ModelDecorationGlyphMarginOptions:function(){return Q},ModelDecorationInjectedTextOptions:function(){return Y},ModelDecorationMinimapOptions:function(){return X},ModelDecorationOptions:function(){return J},ModelDecorationOverviewRulerOptions:function(){return Z},TextModel:function(){return U},createTextBuffer:function(){return z},createTextBufferFactory:function(){return N},createTextBufferFactoryFromSnapshot:function(){return M},indentOfLine:function(){return V}});var n,i=r(13355),o=r(59746),s=r(42050),a=r(1077),c=r(22845),u=r(41011),l=r(20599),h=r(14981),d=r(44042),g=r(64946),f=r(74032),m=r(5679),p=r(79491),k=r(22711),C=r(32794),_=r(92188),v=r(85879),b=r(83229),L=r(53211),I=r(79685),B=r(10128),S=r(99562),T=r(45068),y=r(57385),w=r(22007),E=r(27623),x=r(52949),F=r(91552),D=r(8936),O=r(79752),R=function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},A=function(e,t){return function(r,n){t(r,n,e)}};function N(e){const t=new y.PieceTreeTextBufferBuilder;return t.acceptChunk(e),t.finish()}function M(e){const t=new y.PieceTreeTextBufferBuilder;let r;for(;"string"==typeof(r=e.read());)t.acceptChunk(r);return t.finish()}function z(e,t){let r;return r="string"==typeof e?N(e):_.isITextSnapshot(e)?M(e):e,r.create(t)}let P=0;class H{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,r=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,r+=n.length),r>=65536)return e.join("")}}}const W=()=>{throw new Error("Invalid change accessor")};let U=class extends c.Disposable{static{n=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:p.EDITOR_MODEL_DEFAULTS.tabSize,indentSize:p.EDITOR_MODEL_DEFAULTS.indentSize,insertSpaces:p.EDITOR_MODEL_DEFAULTS.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:p.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,largeFileOptimizations:p.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,bracketPairColorizationOptions:p.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const r=(0,B.guessIndentation)(e,t.tabSize,t.insertSpaces);return new _.TextModelResolvedOptions({tabSize:r.tabSize,indentSize:"tabSize",insertSpaces:r.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new _.TextModelResolvedOptions(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,c.combinedDisposable)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,r,i=null,o,s,h,d){super(),this._undoRedoService=o,this._languageService=s,this._languageConfigurationService=h,this.instantiationService=d,this._onWillDispose=this._register(new a.Emitter),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new re((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new a.Emitter),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new a.Emitter),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new a.Emitter),this._eventEmitter=this._register(new ne),this._languageSelectionListener=this._register(new c.MutableDisposable),this._deltaDecorationCallCnt=0,this._attachedViews=new x.AttachedViews,P++,this.id="$model"+P,this.isForSimpleWidget=r.isForSimpleWidget,this._associatedResource=null==i?l.URI.parse("inmemory://model/"+P):i,this._attachedEditorCount=0;const{textBuffer:g,disposable:m}=z(e,r.defaultEOL);this._buffer=g,this._bufferDisposable=m,this._options=n.resolveOptions(this._buffer,r);const p="string"==typeof t?t:t.languageId;"string"!=typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new v.BracketPairsTextModelPart(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new I.GuidesTextModelPart(this,this._languageConfigurationService)),this._decorationProvider=this._register(new b.ColorizedBracketPairsDecorationProvider(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(E.TokenizationTextModelPart,this,this._bracketPairs,p,this._attachedViews);const k=this._buffer.getLineCount(),C=this._buffer.getValueLengthInRange(new f.Range(1,1,k,this._buffer.getLineLength(k)+1),0);r.largeFileOptimizations?(this._isTooLargeForTokenization=C>n.LARGE_FILE_SIZE_THRESHOLD||k>n.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=C>n.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=C>n._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=u.singleLetterHash(P),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new j,this._commandManager=new L.EditStack(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(p),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new T.PieceTreeTextBuffer([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=c.Disposable.None}_assertNotDisposed(){if(this._isDisposed)throw new s.BugIndicatingError("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new F.InternalModelContentChangeEvent(e,t)))}setValue(e){if(this._assertNotDisposed(),null==e)throw(0,s.illegalArgument)();const{textBuffer:t,disposable:r}=z(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,r)}_createContentChanged2(e,t,r,n,i,o,s,a){return{changes:[{range:e,rangeOffset:t,rangeLength:r,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:i,isRedoing:o,isFlush:s}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const r=this.getFullModelRange(),n=this.getValueLengthInRange(r),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new j,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new F.ModelRawContentChangedEvent([new F.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new f.Range(1,1,i,o),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const r=this.getFullModelRange(),n=this.getValueLengthInRange(r),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new F.ModelRawContentChangedEvent([new F.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new f.Range(1,1,i,o),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let r=0,n=t.length;r0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const r=this._buffer.getLineCount();for(let n=1;n<=r;n++){const r=this._buffer.getLineLength(n);r>=1e4?t+=r:e+=r}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,r=void 0!==e.indentSize?e.indentSize:this._options.originalIndentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,s=new _.TextModelResolvedOptions({tabSize:t,indentSize:r,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i,bracketPairColorizationOptions:o});if(this._options.equals(s))return;const a=this._options.createChangeEvent(s);this._options=s,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const r=(0,B.guessIndentation)(this._buffer,t,e);this.updateOptions({insertSpaces:r.insertSpaces,tabSize:r.tabSize,indentSize:r.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.normalizeIndentation)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(u.UNUSUAL_LINE_TERMINATORS.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new s.BugIndicatingError("Operation would exceed heap memory limits");const r=this.getFullModelRange(),n=this.getValueInRange(r,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new H(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const r=this.getFullModelRange(),n=this.getValueLengthInRange(r,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new s.BugIndicatingError("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),r=e.startLineNumber,n=e.startColumn;let i=Math.floor("number"!=typeof r||isNaN(r)?1:r),o=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(i<1)i=1,o=1;else if(i>t)i=t,o=this.getLineMaxColumn(i);else if(o<=1)o=1;else{const e=this.getLineMaxColumn(i);o>=e&&(o=e)}const s=e.endLineNumber,a=e.endColumn;let c=Math.floor("number"!=typeof s||isNaN(s)?1:s),u=Math.floor("number"!=typeof a||isNaN(a)?1:a);if(c<1)c=1,u=1;else if(c>t)c=t,u=this.getLineMaxColumn(c);else if(u<=1)u=1;else{const e=this.getLineMaxColumn(c);u>=e&&(u=e)}return r===i&&n===o&&s===c&&a===u&&e instanceof f.Range&&!(e instanceof m.Selection)?e:new f.Range(i,o,c,u)}_isValidPosition(e,t,r){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===r){const r=this._buffer.getLineCharCode(e,t-2);if(u.isHighSurrogate(r))return!1}return!0}_validatePosition(e,t,r){const n=Math.floor("number"!=typeof e||isNaN(e)?1:e),i=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(n<1)return new g.Position(1,1);if(n>o)return new g.Position(o,this.getLineMaxColumn(o));if(i<=1)return new g.Position(n,1);const s=this.getLineMaxColumn(n);if(i>=s)return new g.Position(n,s);if(1===r){const e=this._buffer.getLineCharCode(n,i-2);if(u.isHighSurrogate(e))return new g.Position(n,i-1)}return new g.Position(n,i)}validatePosition(e){return this._assertNotDisposed(),e instanceof g.Position&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const r=e.startLineNumber,n=e.startColumn,i=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(r,n,0))return!1;if(!this._isValidPosition(i,o,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(r,n-2):0,t=o>1&&o<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,o-2):0,s=u.isHighSurrogate(e),a=u.isHighSurrogate(t);return!s&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof f.Range&&!(e instanceof m.Selection)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),r=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,i=t.column,o=r.lineNumber,s=r.column;{const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,r=u.isHighSurrogate(e),a=u.isHighSurrogate(t);return r||a?n===o&&i===s?new f.Range(n,i-1,o,s-1):r&&a?new f.Range(n,i-1,o,s+1):r?new f.Range(n,i-1,o,s):new f.Range(n,i,o,s+1):new f.Range(n,i,o,s)}}modifyPosition(e,t){this._assertNotDisposed();const r=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,r)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new f.Range(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,r,n){return this._buffer.findMatchesLineByLine(e,t,r,n)}findMatches(e,t,r,n,i,o,s=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>f.Range.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const c=[];let u;if(c.push(a.reduce(((e,t)=>f.Range.areIntersecting(e,t)?e.plusRange(t):(c.push(e),t)))),!r&&e.indexOf("\n")<0){const t=new w.SearchParams(e,r,n,i).parseSearchRequest();if(!t)return[];u=e=>this.findMatchesLineByLine(e,t,o,s)}else u=t=>w.TextModelSearch.findMatches(this,new w.SearchParams(e,r,n,i),t,o,s);return c.map(u).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,r,n,i,o){this._assertNotDisposed();const s=this.validatePosition(t);if(!r&&e.indexOf("\n")<0){const t=new w.SearchParams(e,r,n,i).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let c=new f.Range(s.lineNumber,s.column,a,this.getLineMaxColumn(a)),u=this.findMatchesLineByLine(c,t,o,1);return w.TextModelSearch.findNextMatch(this,new w.SearchParams(e,r,n,i),s,o),u.length>0?u[0]:(c=new f.Range(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),u=this.findMatchesLineByLine(c,t,o,1),u.length>0?u[0]:null)}return w.TextModelSearch.findNextMatch(this,new w.SearchParams(e,r,n,i),s,o)}findPreviousMatch(e,t,r,n,i,o){this._assertNotDisposed();const s=this.validatePosition(t);return w.TextModelSearch.findPreviousMatch(this,new w.SearchParams(e,r,n,i),s,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof _.ValidAnnotatedEditOperation?e:new _.ValidAnnotatedEditOperation(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let r=0,n=e.length;r({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,i=e.length;ti.endLineNumber,s=i.startLineNumber>t.endLineNumber;if(!n&&!s){o=!0;break}}if(!o){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;et.endLineNumber)&&!(n===t.startLineNumber&&t.startColumn===i&&t.isEmpty()&&s&&s.length>0&&"\n"===s.charAt(0)||n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&s&&s.length>0&&"\n"===s.charAt(s.length-1))){o=!1;break}}if(o){const e=new f.Range(n,1,n,i);t.push(new _.ValidAnnotatedEditOperation(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,r,n)}_applyUndo(e,t,r,n){const i=e.map((e=>{const t=this.getPositionAt(e.newPosition),r=this.getPositionAt(e.newEnd);return{range:new f.Range(t.lineNumber,t.column,r.lineNumber,r.column),text:e.oldText}}));this._applyUndoRedoEdits(i,t,!0,!1,r,n)}_applyRedo(e,t,r,n){const i=e.map((e=>{const t=this.getPositionAt(e.oldPosition),r=this.getPositionAt(e.oldEnd);return{range:new f.Range(t.lineNumber,t.column,r.lineNumber,r.column),text:e.newText}}));this._applyUndoRedoEdits(i,t,!1,!0,r,n)}_applyUndoRedoEdits(e,t,r,n,i,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=r,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(i)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const r=this._validateEditOperations(e);return this._doApplyEdits(r,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const r=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),s=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==s.length){for(let e=0,t=s.length;e=0;t--){const r=c+t,n=p+t;b.takeFromEndWhile((e=>e.lineNumber>n));const i=b.takeFromEndWhile((e=>e.lineNumber===n));e.push(new F.ModelRawLineChanged(r,this.getLineContent(n),i))}if(fe.lineNumbere.lineNumber===t))}e.push(new F.ModelRawLinesInserted(n+1,c+d,l,u))}t+=m}this._emitContentChangedEvent(new F.ModelRawContentChangedEvent(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new F.ModelRawLineChanged(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new F.ModelInjectedTextChangedEvent(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const r={addDecoration:(t,r)=>this._deltaDecorationsImpl(e,[],[{range:t,options:r}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,te(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,r)=>0===t.length&&0===r.length?[]:this._deltaDecorationsImpl(e,t,r)};let n=null;try{n=t(r)}catch(e){(0,s.onUnexpectedError)(e)}return r.addDecoration=W,r.changeDecoration=W,r.changeDecorationOptions=W,r.removeDecoration=W,r.deltaDecorations=W,n}deltaDecorations(e,t,r=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,s.onUnexpectedError)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(r,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,r){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:ee[r]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,s,i),n.setOptions(ee[r]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,r=t.length;ethis.getLineCount()?[]:this.getLinesDecorations(e,e,t,r)}getLinesDecorations(e,t,r=0,n=!1,o=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),c=Math.min(s,Math.max(1,t)),u=this.getLineMaxColumn(c),l=new f.Range(a,1,c,u),h=this._getDecorationsInRange(l,r,n,o);return(0,i.pushMany)(h,this._decorationProvider.getDecorationsInRange(l,r,n)),h}getDecorationsInRange(e,t=0,r=!1,n=!1,o=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,r,o);return(0,i.pushMany)(a,this._decorationProvider.getDecorationsInRange(s,t,r,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),r=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,r,0);return F.LineInjectedText.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let r=this._decorationsTree.getAll(this,e,t,!1,!1);return r=r.concat(this._decorationProvider.getAllDecorations(e,t)),r}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,r,n){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,o,t,r,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const r=this._decorations[e];if(!r)return;if(r.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(r.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(r),r.reset(this.getVersionId(),i,o,n),this._decorationsTree.insert(r),this._onDidChangeDecorations.checkAffectedAndFire(r.options),r.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),r.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const r=this._decorations[e];if(!r)return;const n=!(!r.options.overviewRuler||!r.options.overviewRuler.color),i=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(r.options),this._onDidChangeDecorations.checkAffectedAndFire(t),r.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,r);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(r.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,r);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const o=n!==i,s=function(e){return!!e.after||!!e.before}(t)!==G(r);o||s?(this._decorationsTree.delete(r),r.setOptions(t),this._decorationsTree.insert(r)):r.setOptions(t)}_deltaDecorationsImpl(e,t,r,n=!1){const i=this.getVersionId(),o=t.length;let s=0;const a=r.length;let c=0;this._onDidChangeDecorations.beginDeferredEmit();try{const u=new Array(a);for(;sthis._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return V(this.getLineContent(e))+1}};function V(e){let t=0;for(const r of e){if(" "!==r&&"\t"!==r)break;t++}return t}function q(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function G(e){return!!e.options.after||!!e.options.before}U=n=R([A(4,O.IUndoRedoService),A(5,k.ILanguageService),A(6,C.ILanguageConfigurationService),A(7,D.IInstantiationService)],U);class j{constructor(){this._decorationsTree0=new S.IntervalTree,this._decorationsTree1=new S.IntervalTree,this._injectedTextDecorationsTree=new S.IntervalTree}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const r of t)null===r.range&&(r.range=e.getRangeAt(r.cachedAbsoluteStart,r.cachedAbsoluteEnd));return t}getAllInInterval(e,t,r,n,i,o){const s=e.getVersionId(),a=this._intervalSearch(t,r,n,i,s,o);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,r,n,i,o){const s=this._decorationsTree0.intervalSearch(e,t,r,n,i,o),a=this._decorationsTree1.intervalSearch(e,t,r,n,i,o),c=this._injectedTextDecorationsTree.intervalSearch(e,t,r,n,i,o);return s.concat(a).concat(c)}getInjectedTextInInterval(e,t,r,n){const i=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,r,n,!1,i,!1);return this._ensureNodesHaveRanges(e,o).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const r=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,r,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,r,n,i){const o=e.getVersionId(),s=this._search(t,r,n,o,i);return this._ensureNodesHaveRanges(e,s)}_search(e,t,r,n,i){if(r)return this._decorationsTree1.search(e,t,n,i);{const r=this._decorationsTree0.search(e,t,n,i),o=this._decorationsTree1.search(e,t,n,i),s=this._injectedTextDecorationsTree.search(e,t,n,i);return r.concat(o).concat(s)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),r=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(r).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),r=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(r)}insert(e){G(e)?this._injectedTextDecorationsTree.insert(e):q(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){G(e)?this._injectedTextDecorationsTree.delete(e):q(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const r=e.getVersionId();return t.cachedVersionId!==r&&this._resolveNode(t,r),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){G(e)?this._injectedTextDecorationsTree.resolveNode(e,t):q(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,r,n){this._decorationsTree0.acceptReplace(e,t,r,n),this._decorationsTree1.acceptReplace(e,t,r,n),this._injectedTextDecorationsTree.acceptReplace(e,t,r,n)}}function $(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class K{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Z extends K{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:_.OverviewRulerLane.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;const r=e?t.getColor(e.id):null;return r?r.toString():""}}class Q{constructor(e){this.position=e?.position??_.GlyphMarginLane.Center,this.persistLane=e?.persistLane}}class X extends K{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?o.Color.fromHex(e):t.getColor(e.id)}}class Y{static from(e){return e instanceof Y?e:new Y(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class J{static register(e){return new J(e)}static createDynamic(e){return new J(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?$(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?$(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Z(e.overviewRuler):null,this.minimap=e.minimap?new X(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new Q(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?$(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?$(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?$(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?u.htmlAttributeEncodeValue(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?$(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?$(e.marginClassName):null,this.inlineClassName=e.inlineClassName?$(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?$(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?$(e.afterContentClassName):null,this.after=e.after?Y.from(e.after):null,this.before=e.before?Y.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}J.EMPTY=J.register({description:"empty"});const ee=[J.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),J.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),J.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),J.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function te(e){return e instanceof J?e:J.createDynamic(e)}class re extends c.Disposable{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new a.Emitter),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ne extends c.Disposable{constructor(){super(),this._fastEmitter=this._register(new a.Emitter),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new a.Emitter),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},51066:function(e,t,r){"use strict";r.r(t),r.d(t,{TextModelPart:function(){return i}});var n=r(22845);class i extends n.Disposable{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},68393:function(e,t,r){"use strict";r.r(t),r.d(t,{DefaultBackgroundTokenizer:function(){return v},RangePriorityQueueImpl:function(){return C},TokenizationStateStore:function(){return k},TokenizerWithStateStore:function(){return f},TokenizerWithStateStoreAndTextModel:function(){return m},TrackingTokenizationStateStore:function(){return p}});var n=r(4717),i=r(42050),o=r(606),s=r(33670),a=r(14981),c=r(55898),u=r(88265),l=r(20389),h=r(69048),d=r(16842),g=r(50362);class f{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new p(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class m extends f{constructor(e,t,r,n){super(e,t),this._textModel=r,this._languageIdCodec=n}updateTokensUntilLine(e,t){const r=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const i=this._textModel.getLineContent(n.lineNumber),o=_(this._languageIdCodec,r,this.tokenizationSupport,i,!0,n.startState);e.add(n.lineNumber,o.tokens),this.store.setEndState(n.lineNumber,o.endState)}}getTokenTypeIfInsertingCharacter(e,t){const r=this.getStartState(e.lineNumber);if(!r)return 0;const n=this._textModel.getLanguageId(),i=this._textModel.getLineContent(e.lineNumber),o=i.substring(0,e.column-1)+t+i.substring(e.column-1),s=_(this._languageIdCodec,n,this.tokenizationSupport,o,!0,r),a=new g.LineTokens(s.tokens,o,this._languageIdCodec);if(0===a.getCount())return 0;const c=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,r){const n=e.lineNumber,i=e.column,o=this.getStartState(n);if(!o)return null;const s=this._textModel.getLineContent(n),a=s.substring(0,i-1)+r+s.substring(i-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),u=_(this._languageIdCodec,c,this.tokenizationSupport,a,!0,o);return new g.LineTokens(u.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e1&&i>=1;i--){const e=this._textModel.getLineFirstNonWhitespaceColumn(i);if(0!==e&&(e0&&r>0&&(r--,t--),this._lineEndStates.replace(e.startLineNumber,r,t)}}class C{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const r=this._ranges[t];r.start===e?r.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new u.OffsetRange(e+1,r.endExclusive):r.endExclusive===e+1?this._ranges[t]=new u.OffsetRange(r.start,e):this._ranges.splice(t,1,new u.OffsetRange(r.start,e),new u.OffsetRange(e+1,r.endExclusive))}}addRange(e){u.OffsetRange.addRange(e,this._ranges)}addRangeAndResize(e,t){let r=0;for(;!(r>=this._ranges.length||e.start<=this._ranges[r].endExclusive);)r++;let n=r;for(;!(n>=this._ranges.length||e.endExclusivee.toString())).join(" + ")}}function _(e,t,r,n,o,s){let a=null;if(r)try{a=r.tokenizeEncoded(n,o,s.clone())}catch(e){(0,i.onUnexpectedError)(e)}return a||(a=(0,l.nullTokenizeEncoded)(e.encodeLanguageId(t),s)),g.LineTokens.convertToEndOffset(a.tokens,n.length),a}class v{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,n.runWhenGlobalIdle)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),r=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new c.LineRange(e,t))}}},27623:function(e,t,r){"use strict";r.r(t),r.d(t,{TokenizationTextModelPart:function(){return B}});var n,i=r(42050),o=r(1077),s=r(22845),a=r(14981),c=r(55898),u=r(64946),l=r(40969),h=r(89050),d=r(22711),g=r(32794),f=r(51066),m=r(68393),p=r(52949),k=r(69326),C=r(66569),_=r(16842),v=r(48095),b=r(6351),L=function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},I=function(e,t){return function(r,n){t(r,n,e)}};let B=n=class extends f.TextModelPart{constructor(e,t,r,n,i,a,c){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=r,this._attachedViews=n,this._languageService=i,this._languageConfigurationService=a,this._treeSitterService=c,this._semanticTokens=new b.SparseTokensStore(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new o.Emitter),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.Emitter),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new s.DisposableStore),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(o.Event.filter(h.TreeSitterTokenizationRegistry.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new S(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new k.TreeSitterTokens(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){h.TreeSitterTokenizationRegistry.get(this._languageId)?this._tokens instanceof k.TreeSitterTokens||this.createTokens(!0):this._tokens instanceof S||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,r,n]=(0,a.countEOL)(t.text);this._semanticTokens.acceptEdit(t.range,e,r,n,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new i.BugIndicatingError("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,r){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,r)}tokenizeLineWithEdit(e,t,r){return this._tokens.tokenizeLineWithEdit(e,t,r)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const r=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:r.startLineNumber,toLineNumber:r.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),r=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),o=i.findTokenIndexAtOffset(t.column-1),[s,a]=n._findLanguageBoundaries(i,o),c=(0,l.getWordAtText)(t.column,this.getLanguageConfiguration(i.getLanguageId(o)).getWordDefinition(),r.substring(s,a),s);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn)return c;if(o>0&&s===t.column-1){const[s,a]=n._findLanguageBoundaries(i,o-1),c=(0,l.getWordAtText)(t.column,this.getLanguageConfiguration(i.getLanguageId(o-1)).getWordDefinition(),r.substring(s,a),s);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn)return c}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const r=e.getLanguageId(t);let n=0;for(let i=t;i>=0&&e.getLanguageId(i)===r;i--)n=e.getStartOffset(i);let i=e.getLineContent().length;for(let n=t,o=e.getCount();n{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let r=this._attachedViewStates.get(e);r||(r=new p.AttachedViewHandler((()=>this.refreshRanges(r.lineRanges))),this._attachedViewStates.set(e,r)),r.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new m.TrackingTokenizationStateStore(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,r]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=h.TokenizationRegistry.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(e){return(0,i.onUnexpectedError)(e),[null,null]}return[e,t]})();if(this._tokenizer=t&&r?new m.TokenizerWithStateStoreAndTextModel(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const r=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==r&&e>=r&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new m.DefaultBackgroundTokenizer(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new v.ContiguousTokensStore(this._languageIdCodec),this._debugBackgroundStates=new m.TrackingTokenizationStateStore(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,r]=(0,a.countEOL)(t.text);this._tokens.acceptEdit(t.range,e,r),this._debugBackgroundTokens?.acceptEdit(t.range,e,r)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=c.LineRange.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const r=new _.ContiguousMultilineTokensBuilder,{heuristicTokens:n}=this._tokenizer.tokenizeHeuristically(r,e,t),i=this.setTokens(r.finalize());if(n)for(const e of i.changes)this._backgroundTokenizer.value?.requestTokens(e.fromLineNumber,e.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new _.ContiguousMultilineTokensBuilder;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),r=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const n=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!r.equals(n)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return r}getTokenTypeIfInsertingCharacter(e,t,r){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new u.Position(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,r)}tokenizeLineWithEdit(e,t,r){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,r)}get hasTokens(){return this._tokens.hasTokens}}},52949:function(e,t,r){"use strict";r.r(t),r.d(t,{AbstractTokens:function(){return h},AttachedViewHandler:function(){return l},AttachedViews:function(){return c}});var n=r(13355),i=r(4717),o=r(1077),s=r(22845),a=r(55898);class c{constructor(){this._onDidChangeVisibleRanges=new o.Emitter,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new u((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class u{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const r=e.map((e=>new a.LineRange(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:r,stabilized:t})}}class l extends s.Disposable{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new i.RunOnceScheduler((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,n.equals)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class h extends s.Disposable{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,r){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=r,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new o.Emitter),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new o.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}},69326:function(e,t,r){"use strict";r.r(t),r.d(t,{TreeSitterTokens:function(){return s}});var n=r(89050),i=r(50362),o=r(52949);class s extends o.AbstractTokens{constructor(e,t,r,n){super(t,r,n),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=n.TreeSitterTokenizationRegistry.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const r=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(r)return new i.LineTokens(r,t,this._languageIdCodec)}return i.LineTokens.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,r){return 0}tokenizeLineWithEdit(e,t,r){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}},8750:function(e,t,r){"use strict";function n(e,t){let r=0,n=0;const i=e.length;for(;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},d=function(e,t){return function(r,n){t(r,n,e)}};const g=(0,c.createDecorator)("ILanguageFeatureDebounceService");var f;!function(e){const t=new WeakMap;let r=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++r,t.set(e,n)),n}}(f||(f={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class p{constructor(e,t,r,n,o,s){this._logService=e,this._name=t,this._registry=r,this._default=n,this._min=o,this._max=s,this._cache=new i.LRUCache(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,n.doHash)(f.of(t),e)),0)}get(e){const t=this._key(e),r=this._cache.get(t);return r?(0,o.clamp)(r.value,this._min,this._max):this.default()}update(e,t){const r=this._key(e);let n=this._cache.get(r);n||(n=new o.SlidingWindowAverage(6),this._cache.set(r,n));const i=(0,o.clamp)(n.update(t),this._min,this._max);return(0,l.matchesScheme)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${i}ms`),i}_overall(){const e=new o.MovingAverage;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,o.clamp)(e,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,r){const n=r?.min??50,i=r?.max??n**2,o=r?.key??void 0,s=`${f.of(e)},${n}${o?","+o:""}`;let a=this._data.get(s);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new m(1.5*n)):a=new p(this._logService,t,e,0|this._overallAverage()||1.5*n,n,i),this._data.set(s,a)),a}_overallAverage(){const e=new o.MovingAverage;for(const t of this._data.values())e.update(t.default());return e.value}};k=h([d(0,u.ILogService),d(1,s.IEnvironmentService)],k),(0,a.registerSingleton)(g,k,1)},37549:function(e,t,r){"use strict";r.r(t),r.d(t,{ILanguageFeaturesService:function(){return n}});const n=(0,r(8936).createDecorator)("ILanguageFeaturesService")},96218:function(e,t,r){"use strict";r.r(t),r.d(t,{LanguageFeaturesService:function(){return s}});var n=r(1526),i=r(37549),o=r(45091);class s{constructor(){this.referenceProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.renameProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.newSymbolNamesProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.codeActionProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.definitionProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.typeDefinitionProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.declarationProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.implementationProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentSymbolProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.inlayHintsProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.colorProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.codeLensProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentFormattingEditProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentRangeFormattingEditProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.onTypeFormattingEditProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.signatureHelpProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.hoverProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentHighlightProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.multiDocumentHighlightProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.selectionRangeProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.foldingRangeProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.linkProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.inlineCompletionsProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.inlineEditProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.completionProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.linkedEditingRangeProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentSemanticTokensProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentDropEditProvider=new n.LanguageFeatureRegistry(this._score.bind(this)),this.documentPasteEditProvider=new n.LanguageFeatureRegistry(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,o.registerSingleton)(i.ILanguageFeaturesService,s,1)},15651:function(e,t,r){"use strict";r.r(t),r.d(t,{LanguageService:function(){return l}});var n=r(1077),i=r(22845),o=r(68458),s=r(13355),a=r(89050),c=r(57366),u=r(32732);class l extends i.Disposable{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new n.Emitter),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new n.Emitter),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new n.Emitter({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,l.instanceCount++,this._registry=this._register(new o.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){l.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const r=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,s.firstOrDefault)(r,null)}createById(e){return new h(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new h(this.onDidChange,(()=>{const r=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(r)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=c.PLAINTEXT_LANGUAGE_ID),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.TokenizationRegistry.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class h{constructor(e,t){this._value=(0,u.observableFromEvent)(this,e,(()=>t())),this.onDidChange=n.Event.fromObservable(this._value)}get languageId(){return this._value.get()}}},15781:function(e,t,r){"use strict";r.r(t),r.d(t,{clearPlatformLanguageAssociations:function(){return f},getLanguageIds:function(){return m},registerPlatformLanguageAssociation:function(){return g}});var n=r(69131),i=r(83233),o=r(61115),s=r(97574),a=r(64380),c=r(41011),u=r(57366);let l=[],h=[],d=[];function g(e,t=!1){!function(e,t,r){const i=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,n.parse)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(s.posix.sep)>=0}}(e,t);l.push(i),i.userConfigured?d.push(i):h.push(i);r&&!i.userConfigured&&l.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}(e,!1,t)}function f(){l=l.filter((e=>e.userConfigured)),h=[]}function m(e,t){return function(e,t){let r;if(e)switch(e.scheme){case o.Schemas.file:r=e.fsPath;break;case o.Schemas.data:r=a.DataUri.parseMetaData(e).get(a.DataUri.META_DATA_LABEL);break;case o.Schemas.vscodeNotebookCell:r=void 0;break;default:r=e.path}if(!r)return[{id:"unknown",mime:i.Mimes.unknown}];r=r.toLowerCase();const n=(0,s.basename)(r),g=p(r,n,d);if(g)return[g,{id:u.PLAINTEXT_LANGUAGE_ID,mime:i.Mimes.text}];const f=p(r,n,h);if(f)return[f,{id:u.PLAINTEXT_LANGUAGE_ID,mime:i.Mimes.text}];if(t){const e=function(e){(0,c.startsWithUTF8BOM)(e)&&(e=e.substr(1));if(e.length>0)for(let t=l.length-1;t>=0;t--){const r=l[t];if(!r.firstline)continue;const n=e.match(r.firstline);if(n&&n.length>0)return r}return}(t);if(e)return[e,{id:u.PLAINTEXT_LANGUAGE_ID,mime:i.Mimes.text}]}return[{id:"unknown",mime:i.Mimes.unknown}]}(e,t).map((e=>e.id))}function p(e,t,r){let n,i,o;for(let s=r.length-1;s>=0;s--){const a=r[s];if(t===a.filenameLowercase){n=a;break}if(a.filepattern&&(!i||a.filepattern.length>i.filepattern.length)){const r=a.filepatternOnPath?e:t;a.filepatternLowercase?.(r)&&(i=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&t.endsWith(a.extensionLowercase)&&(o=a)}return n||(i||(o||void 0))}},68458:function(e,t,r){"use strict";r.r(t),r.d(t,{LanguageIdCodec:function(){return d},LanguagesRegistry:function(){return g}});var n=r(1077),i=r(22845),o=r(41011),s=r(15781),a=r(57366),c=r(92517),u=r(93592);const l=Object.prototype.hasOwnProperty,h="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(h,0),this._register(a.PLAINTEXT_LANGUAGE_ID,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||h}}class g extends i.Disposable{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new n.Emitter),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.ModesRegistry.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,s.clearPlatformLanguageAssociations)();const e=[].concat(a.ModesRegistry.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),u.Registry.as(c.Extensions.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let r;l.call(this._languages,t)?r=this._languages[t]:(this.languageIdCodec.register(t),r={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=r),this._mergeLanguage(r,e)}_mergeLanguage(e,t){const r=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${r}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,s.registerPlatformLanguageAssociation)({id:r,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const i of t.filenames)(0,s.registerPlatformLanguageAssociation)({id:r,mime:n,filename:i},this._warnOnOverwrite),e.filenames.push(i);if(Array.isArray(t.filenamePatterns))for(const e of t.filenamePatterns)(0,s.registerPlatformLanguageAssociation)({id:r,mime:n,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,o.regExpLeadsToEndlessLoop)(t)||(0,s.registerPlatformLanguageAssociation)({id:r,mime:n,firstline:t},this._warnOnOverwrite)}catch(r){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,r)}}e.aliases.push(r);let i=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(i=0===t.aliases.length?[null]:t.aliases),null!==i)for(const t of i)t&&0!==t.length&&e.aliases.push(t);const a=null!==i&&i.length>0;if(a&&null===i[0]);else{const t=(a?i[0]:null)||r;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&l.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return l.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&l.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,s.getLanguageIds)(e,t):[]}}},18139:function(e,t,r){"use strict";r.r(t),r.d(t,{IMarkerDecorationsService:function(){return n}});const n=(0,r(8936).createDecorator)("markerDecorationsService")},20052:function(e,t,r){"use strict";r.r(t),r.d(t,{MarkerDecorationsService:function(){return k}});var n=r(83136),i=r(22845),o=r(92188),s=r(1129),a=r(58310),c=r(71879),u=r(74032),l=r(61115),h=r(1077),d=r(65105),g=r(37727),f=r(47956),m=function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},p=function(e,t){return function(r,n){t(r,n,e)}};let k=class extends i.Disposable{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new h.Emitter),this._markerDecorations=new g.ResourceMap,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const r=this._markerDecorations.get(e);return r&&r.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new C(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==l.Schemas.inMemory&&e.uri.scheme!==l.Schemas.internal&&e.uri.scheme!==l.Schemas.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};k=m([p(0,c.IModelService),p(1,n.IMarkerService)],k);class C extends i.Disposable{constructor(e){super(),this.model=e,this._map=new g.BidirectionalMap,this._register((0,i.toDisposable)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:r}=(0,f.diffSets)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===r.length)return!1;const n=r.map((e=>this._map.get(e))),i=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),o=this.model.deltaDecorations(n,i);for(const e of r)this._map.delete(e);for(let e=0;e=t)return r;const n=e.getWordAtPosition(r.getStartPosition());n&&(r=new u.Range(r.startLineNumber,n.startColumn,r.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&r.startLineNumber===r.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0}}},71879:function(e,t,r){"use strict";r.r(t),r.d(t,{IModelService:function(){return n}});const n=(0,r(8936).createDecorator)("modelService")},88752:function(e,t,r){"use strict";r.r(t),r.d(t,{DefaultModelSHA1Computer:function(){return S},ModelService:function(){return B}});var n,i=r(1077),o=r(22845),s=r(606),a=r(54803),c=r(79491),u=r(57366),l=r(32165),h=r(83378),d=r(79752),g=r(48621),f=r(53211),m=r(61115),p=r(46645),k=r(8936),C=function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},_=function(e,t){return function(r,n){t(r,n,e)}};function v(e){return e.toString()}class b{constructor(e,t,r){this.model=e,this._modelEventListeners=new o.DisposableStore,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>r(e,t))))}dispose(){this._modelEventListeners.dispose()}}const L=s.isLinux||s.isMacintosh?1:2;class I{constructor(e,t,r,n,i,o,s,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=r,this.sharesUndoRedoStack=n,this.heapSize=i,this.sha1=o,this.versionId=s,this.alternativeVersionId=a}}let B=class extends o.Disposable{static{n=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,r,n){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=r,this._instantiationService=n,this._onModelAdded=this._register(new i.Emitter),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.Emitter),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.Emitter),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let r=c.EDITOR_MODEL_DEFAULTS.tabSize;if(e.editor&&void 0!==e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(r=t),r<1&&(r=1)}let n="tabSize";if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(n=Math.max(t,1))}let i=c.EDITOR_MODEL_DEFAULTS.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(i="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let o=L;const s=e.eol;"\r\n"===s?o=2:"\n"===s&&(o=1);let a=c.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let u=c.EDITOR_MODEL_DEFAULTS.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(u="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let l=c.EDITOR_MODEL_DEFAULTS.largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(l="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=c.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"==typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:r,indentSize:n,insertSpaces:i,detectIndentation:u,defaultEOL:o,trimAutoWhitespace:a,largeFileOptimizations:l,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const r=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return r&&"string"==typeof r&&"auto"!==r?r:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(e,t,r){const i="string"==typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[i+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);o=n._readModelOptions({editor:e,eol:s},r),this._modelCreationOptionsByLanguageAndResource[i+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const r=Object.keys(this._models);for(let i=0,o=r.length;ie){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,r,n){const i=this.getCreationOptions(t,r,n),o=this._instantiationService.createInstance(a.TextModel,e,t,i,r);if(r&&this._disposedModels.has(v(r))){const e=this._removeDisposedModel(r),t=this._undoRedoService.getElements(r),n=this._getSHA1Computer(),i=!!n.canComputeSHA1(o)&&n.computeSHA1(o)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)(0,f.isEditStackElement)(e)&&e.matchesResource(r)&&e.setModel(o);for(const e of t.future)(0,f.isEditStackElement)(e)&&e.matchesResource(r)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(r,!0,(e=>(0,f.isEditStackElement)(e)&&e.matchesResource(r))),i&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const s=v(o.uri);if(this._models[s])throw new Error("ModelService: Cannot add model because it already exists!");const c=new b(o,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[s]=c,c}createModel(e,t,r,n=!1){let i;return i=t?this._createModelData(e,t,r,n):this._createModelData(e,u.PLAINTEXT_LANGUAGE_ID,r,n),this._onModelAdded.fire(i.model),i.model}getModels(){const e=[],t=Object.keys(this._models);for(let r=0,n=t.length;r0||t.future.length>0){for(const r of t.past)(0,f.isEditStackElement)(r)&&r.matchesResource(e.uri)&&(o=!0,s+=r.heapSize(e.uri),r.setModel(e.uri));for(const r of t.future)(0,f.isEditStackElement)(r)&&r.matchesResource(e.uri)&&(o=!0,s+=r.heapSize(e.uri),r.setModel(e.uri))}}const a=n.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,c=this._getSHA1Computer();if(o)if(i||!(s>a)&&c.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,f.isEditStackElement)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new I(e.uri,r.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,c.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=r.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=r.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],r.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const r=t.oldLanguage,i=e.getLanguageId(),o=this.getCreationOptions(r,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);n._setModelOptionsForModel(e,s,o),this._onModelModeChanged.fire({model:e,oldLanguageId:r})}_getSHA1Computer(){return new S}};B=n=C([_(0,h.IConfigurationService),_(1,l.ITextResourcePropertiesService),_(2,d.IUndoRedoService),_(3,k.IInstantiationService)],B);class S{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=S.MAX_MODEL_SIZE}computeSHA1(e){const t=new g.StringSHA1,r=e.createSnapshot();let n;for(;n=r.read();)t.update(n);return t.digest()}}},32371:function(e,t,r){"use strict";r.r(t),r.d(t,{ITextModelService:function(){return n}});const n=(0,r(8936).createDecorator)("textModelService")},65837:function(e,t,r){"use strict";r.r(t),r.d(t,{encodeSemanticTokensDto:function(){return o}});var n=r(72895),i=r(606);function o(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const r of e.deltas)r.data&&(t+=r.data.length)}return t}(e));let r=0;if(t[r++]=e.id,"full"===e.type)t[r++]=1,t[r++]=e.data.length,t.set(e.data,r),r+=e.data.length;else{t[r++]=2,t[r++]=e.deltas.length;for(const n of e.deltas)t[r++]=n.start,t[r++]=n.deleteCount,n.data?(t[r++]=n.data.length,t.set(n.data,r),r+=n.data.length):t[r++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return i.isLittleEndian()||function(e){for(let t=0,r=e.length;t=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},c=function(e,t){return function(r,n){t(r,n,e)}};const u=!1;let l=class{constructor(e,t,r,n){this._legend=e,this._themeService=t,this._languageService=r,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new g}getMetadata(e,t,r){const n=this._languageService.languageIdCodec.encodeLanguageId(r),i=this._hashTable.get(e,t,n);let o;if(i)o=i.metadata;else{let i=this._legend.tokenTypes[e];const s=[];if(i){let e=t;for(let t=0;e>0&&t>=1;u;const n=this._themeService.getColorTheme().getTokenStyleMetadata(i,s,r);if(void 0===n)o=2147483647;else{if(o=0,void 0!==n.italic){o|=1|(n.italic?1:0)<<11}if(void 0!==n.bold){o|=2|(n.bold?2:0)<<11}if(void 0!==n.underline){o|=4|(n.underline?4:0)<<11}if(void 0!==n.strikethrough){o|=8|(n.strikethrough?8:0)<<11}if(n.foreground){o|=16|n.foreground<<15}0===o&&(o=2147483647)}}else o=2147483647,i="not-in-legend";this._hashTable.add(e,t,n,o)}return o}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,r,n,i){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${r}: The provided start offset ${n} is outside the previous data (length ${i}).`))}};function h(e,t,r){const n=e.data,i=e.data.length/5|0,s=Math.max(Math.ceil(i/1024),400),a=[];let c=0,u=1,l=0;for(;ce&&0===n[5*t];)t--;if(t-1===e){let e=h;for(;e+1a)t.warnOverlappingSemanticTokens(s,a+1);else{const e=t.getMetadata(k,C,r);2147483647!==e&&(0===f&&(f=s),d[g]=s-f,d[g+1]=a,d[g+2]=h,d[g+3]=e,g+=4,m=s,p=h)}u=s,l=a,c++}g!==d.length&&(d=d.subarray(0,g));const k=o.SparseMultilineTokens.create(f,d);a.push(k)}return a}l=a([c(1,n.IThemeService),c(2,s.ILanguageService),c(3,i.ILogService)],l);class d{constructor(e,t,r,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=r,this.metadata=n,this.next=null}}class g{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=g._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=g._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},h=function(e,t){return function(r,n){t(r,n,e)}};let d=class extends n.Disposable{constructor(e,t,r){super(),this._themeService=e,this._logService=t,this._languageService=r,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=l([h(0,o.IThemeService),h(1,s.ILogService),h(2,i.ILanguageService)],d),(0,u.registerSingleton)(c.ISemanticTokensStylingService,d,1)},96843:function(e,t,r){"use strict";r.r(t)},32165:function(e,t,r){"use strict";r.r(t),r.d(t,{ITextResourceConfigurationService:function(){return i},ITextResourcePropertiesService:function(){return o}});var n=r(8936);const i=(0,n.createDecorator)("textResourceConfigurationService"),o=(0,n.createDecorator)("textResourcePropertiesService")},66569:function(e,t,r){"use strict";r.r(t),r.d(t,{ITreeSitterParserService:function(){return n}});const n=(0,r(8936).createDecorator)("treeSitterParserService")},95044:function(e,t,r){"use strict";r.r(t),r.d(t,{DraggedTreeItemsIdentifier:function(){return i},TreeViewsDnDService:function(){return n}});class n{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class i{constructor(e){this.identifier=e}}},49661:function(e,t,r){"use strict";r.r(t),r.d(t,{ITreeViewsDnDService:function(){return s}});var n=r(45091),i=r(8936),o=r(95044);const s=(0,i.createDecorator)("treeViewsDndService");(0,n.registerSingleton)(s,o.TreeViewsDnDService,1)},18461:function(e,t,r){var n={"./editorBaseApi":51338,"./editorBaseApi.js":51338,"./editorSimpleWorker":13725,"./editorSimpleWorker.js":13725,"./editorWorker":66551,"./editorWorker.js":66551,"./editorWorkerHost":98221,"./editorWorkerHost.js":98221,"./findSectionHeaders":47020,"./findSectionHeaders.js":47020,"./getIconClasses":55915,"./getIconClasses.js":55915,"./languageFeatureDebounce":42661,"./languageFeatureDebounce.js":42661,"./languageFeatures":37549,"./languageFeatures.js":37549,"./languageFeaturesService":96218,"./languageFeaturesService.js":96218,"./languageService":15651,"./languageService.js":15651,"./languagesAssociations":15781,"./languagesAssociations.js":15781,"./languagesRegistry":68458,"./languagesRegistry.js":68458,"./markerDecorations":18139,"./markerDecorations.js":18139,"./markerDecorationsService":20052,"./markerDecorationsService.js":20052,"./model":71879,"./model.js":71879,"./modelService":88752,"./modelService.js":88752,"./resolverService":32371,"./resolverService.js":32371,"./semanticTokensDto":65837,"./semanticTokensDto.js":65837,"./semanticTokensProviderStyling":59321,"./semanticTokensProviderStyling.js":59321,"./semanticTokensStyling":16270,"./semanticTokensStyling.js":16270,"./semanticTokensStylingService":12403,"./semanticTokensStylingService.js":12403,"./textModelSync/textModelSync.impl":2225,"./textModelSync/textModelSync.impl.js":2225,"./textModelSync/textModelSync.protocol":96843,"./textModelSync/textModelSync.protocol.js":96843,"./textResourceConfiguration":32165,"./textResourceConfiguration.js":32165,"./treeSitterParserService":66569,"./treeSitterParserService.js":66569,"./treeViewsDnd":95044,"./treeViewsDnd.js":95044,"./treeViewsDndService":49661,"./treeViewsDndService.js":49661,"./unicodeTextModelHighlighter":14234,"./unicodeTextModelHighlighter.js":14234};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=18461},62316:function(e,t,r){"use strict";r.r(t),r.d(t,{BracketInfo:function(){return n},BracketPairInfo:function(){return i},BracketPairWithMinIndentationInfo:function(){return o}});class n{constructor(e,t,r,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=r,this.isInvalid=n}}class i{constructor(e,t,r,n,i,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=r,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=i,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class o extends i{constructor(e,t,r,n,i,o,s){super(e,t,r,n,i,o),this.minVisibleColumnIndentation=s}}},91552:function(e,t,r){"use strict";r.r(t),r.d(t,{InternalModelContentChangeEvent:function(){return h},LineInjectedText:function(){return i},ModelInjectedTextChangedEvent:function(){return l},ModelRawContentChangedEvent:function(){return u},ModelRawEOLChanged:function(){return c},ModelRawFlush:function(){return n},ModelRawLineChanged:function(){return o},ModelRawLinesDeleted:function(){return s},ModelRawLinesInserted:function(){return a}});class n{constructor(){this.changeType=1}}class i{static applyInjectedText(e,t){if(!t||0===t.length)return e;let r="",n=0;for(const i of t)r+=e.substring(n,i.column-1),n=i.column-1,r+=i.options.content;return r+=e.substring(n),r}static fromDecorations(e){const t=[];for(const r of e)r.options.before&&r.options.before.content.length>0&&t.push(new i(r.ownerId,r.range.startLineNumber,r.range.startColumn,r.options.before,0)),r.options.after&&r.options.after.content.length>0&&t.push(new i(r.ownerId,r.range.endLineNumber,r.range.endColumn,r.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,r,n,i){this.ownerId=e,this.lineNumber=t,this.column=r,this.options=n,this.order=i}}class o{constructor(e,t,r){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=r}}class s{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,r,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=r}}class c{constructor(){this.changeType=5}}class u{constructor(e,t,r,n){this.changes=e,this.versionId=t,this.isUndoing=r,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,r=this.changes.length;t0){const r=this._tokens[this._tokens.length-1];if(r.endLineNumber+1===e)return void r.appendLineTokens(t)}this._tokens.push(new n.ContiguousMultilineTokens(e,[t]))}finalize(){return this._tokens}}},69422:function(e,t,r){"use strict";r.r(t),r.d(t,{ContiguousTokensEditing:function(){return o},EMPTY_LINE_TOKENS:function(){return i},toUint32Array:function(){return s}});var n=r(50362);const i=new Uint32Array(0).buffer;class o{static deleteBeginning(e,t){return null===e||e===i?e:o.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===i)return e;const r=s(e),n=r[r.length-2];return o.delete(e,t,n)}static delete(e,t,r){if(null===e||e===i||t===r)return e;const o=s(e),a=o.length>>>1;if(0===t&&o[o.length-2]===r)return i;const c=n.LineTokens.findIndexInTokensArray(o,t),u=c>0?o[c-1<<1]:0;if(rh&&(o[l++]=t,o[l++]=o[1+(e<<1)],h=t)}if(l===o.length)return e;const g=new Uint32Array(l);return g.set(o.subarray(0,l),0),g.buffer}static append(e,t){if(t===i)return e;if(e===i)return t;if(null===e)return e;if(null===t)return null;const r=s(e),n=s(t),o=n.length>>>1,a=new Uint32Array(r.length+n.length);a.set(r,0);let c=r.length;const u=r[r.length-2];for(let e=0;e>>1;let c=n.LineTokens.findIndexInTokensArray(o,t);if(c>0){o[c-1<<1]===t&&c--}for(let e=c;e0}getTokens(e,t,r){let n=null;if(t1&&(t=a.TokenMetadata.getLanguageId(n[1])!==e),!t)return o.EMPTY_LINE_TOKENS}if(!n||0===n.length){const r=new Uint32Array(2);return r[0]=t,r[1]=u(e),r.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const r=[];for(let e=0;e=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=o.ContiguousTokensEditing.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=o.ContiguousTokensEditing.deleteEnding(this._lineTokens[t],e.startColumn-1);const r=e.endLineNumber-1;let n=null;r=this._len||(0!==t?(this._lineTokens[n]=o.ContiguousTokensEditing.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=o.ContiguousTokensEditing.insert(this._lineTokens[n],e.column-1,r),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=o.ContiguousTokensEditing.insert(this._lineTokens[n],e.column-1,r))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const r=[];for(let n=0,i=e.length;n>>0}},50362:function(e,t,r){"use strict";r.r(t),r.d(t,{LineTokens:function(){return i},getStandardTokenTypeAtPosition:function(){return s}});var n=r(29663);class i{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const r=i.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=r,new i(n,e,t)}static createFromTextAndMetadata(e,t){let r=0,n="";const o=new Array;for(const{text:t,metadata:i}of e)o.push(r+t.length,i),r+=t.length,n+=t;return new i(new Uint32Array(o),n,t)}constructor(e,t,r){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=r}equals(e){return e instanceof i&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,r){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,i=n+(r<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],r=n.TokenMetadata.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(r)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.TokenMetadata.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.TokenMetadata.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.TokenMetadata.getClassNameFromMetadata(t)}getInlineStyle(e,t){const r=this._tokens[1+(e<<1)];return n.TokenMetadata.getInlineStyleFromMetadata(r,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return n.TokenMetadata.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return i.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,r){return new o(this,e,t,r)}static convertToEndOffset(e,t){const r=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;rt&&(n=i)}return r}withInserted(e){if(0===e.length)return this;let t=0,r=0,n="";const o=new Array;let s=0;for(;;){const i=ts){n+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];o.push(n.length,e),s=a.offset}n+=a.text,o.push(n.length,a.tokenMetadata),r++}}return new i(new Uint32Array(o),n,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),r=this.getEndOffset(e);return this._text.substring(t,r)}forEach(e){const t=this.getCount();for(let r=0;r=r)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,r=this._source.getStartOffset(t),n=this._source.getEndOffset(t);let i=this._source.getTokenText(t);return rthis._endOffset&&(i=i.substring(0,i.length-(n-this._endOffset))),i}forEach(e){for(let t=0;t0?t.charCodeAt(0):0)}acceptEdit(e,t,r,i,o){this._acceptDeleteRange(e),this._acceptInsertText(new n.Position(e.startLineNumber,e.startColumn),t,r,i,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,r=e.endLineNumber-this._startLineNumber;if(r<0){const e=r-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&r>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,r,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,r,e.endColumn-1)}}_acceptInsertText(e,t,r,n,i){if(0===t&&0===r)return;const o=e.lineNumber-this._startLineNumber;if(o<0)return void(this._startLineNumber+=t);o>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(o,e.column-1,t,r,n,i)}}class a{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let r=0;re)){let i=n;for(;i>t&&this._getDeltaLine(i-1)===e;)i--;let o=n;for(;oe||l===e&&d>=t)&&(le||a===e&&g>=t){if(ai?f-=i-r:f=r;else if(d===t&&g===r){if(!(d===n&&f>i)){u=!0;continue}f-=i-r}else if(di)){u=!0;continue}d=t,g=r,f=g+(f-i)}else if(d>n){if(0===a&&!u){c=s;break}d-=a}else{if(!(d===n&&g>=i))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=i-r,f-=i-r}const p=4*c;o[p]=d,o[p+1]=g,o[p+2]=f,o[p+3]=m,c++}this._tokenCount=c}acceptInsertText(e,t,r,n,i,o){const s=0===r&&1===n&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,c=this._tokenCount;for(let o=0;o0){const n=t[0].getRange(),i=t[t.length-1].getRange();if(!n||!i)return e;r=e.plusRange(n).plusRange(i)}let i=null;for(let e=0,t=this._pieces.length;er.endLineNumber){i=i||{index:e};break}if(n.removeTokens(r),n.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(n.endLineNumberr.endLineNumber){i=i||{index:e};continue}const[o,s]=n.split(r);o.isEmpty()?i=i||{index:e}:s.isEmpty()||(this._pieces.splice(e,1,o,s),e++,t++,i=i||{index:e})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=n.arrayInsert(this._pieces,i.index,t)),r}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const r=this._pieces;if(0===r.length)return t;const n=r[o._findFirstPieceWithLine(r,e)].getLineTokens(e);if(!n)return t;const s=t.getCount(),a=n.getCount();let c=0;const u=[];let l=0,h=0;const d=(e,t)=>{e!==h&&(h=e,u[l++]=e,u[l++]=t)};for(let e=0;e>>0,u=~a>>>0;for(;ct)){for(;i>r&&e[i-1].startLineNumber<=t&&t<=e[i-1].endLineNumber;)i--;return i}n=i-1}}return r}acceptEdit(e,t,r,n,i){for(const o of this._pieces)o.acceptEdit(e,t,r,n,i)}}},83378:function(e,t,r){"use strict";r.r(t),r.d(t,{IConfigurationService:function(){return n},addToValueTree:function(){return o},getConfigurationValue:function(){return c},getLanguageTagSettingPlainKey:function(){return u},removeFromValueTree:function(){return s},toValuesTree:function(){return i}});const n=(0,r(8936).createDecorator)("configurationService");function i(e,t){const r=Object.create(null);for(const n in e)o(r,n,e[n],t);return r}function o(e,t,r,n){const i=t.split("."),o=i.pop();let s=e;for(let e=0;e{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,r),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,r,n,i=3,s){i=o.isUndefinedOrNull(e.scope)?i:e.scope;const a=e.properties;if(a)for(const e in a){const c=a[e];t&&T(e,c)?delete a[e]:(c.source=r,c.defaultDefaultValue=a[e].default,this.updatePropertyDefaultValue(e,c),L.test(e)?c.scope=void 0:(c.scope=o.isUndefinedOrNull(c.scope)?i:c.scope,c.restricted=o.isUndefinedOrNull(c.restricted)?!!n?.includes(e):c.restricted),!a[e].hasOwnProperty("included")||a[e].included?(this.configurationProperties[e]=a[e],a[e].policy?.name&&this.policyConfigurations.set(a[e].policy.name,e),!a[e].deprecationMessage&&a[e].markdownDeprecationMessage&&(a[e].deprecationMessage=a[e].markdownDeprecationMessage),s.add(e)):(this.excludedConfigurationProperties[e]=a[e],delete a[e]))}const c=e.allOf;if(c)for(const e of c)this.validateAndRegisterProperties(e,t,r,n,i,s)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const r=e.properties;if(r)for(const e in r)this.updateSchema(e,r[e]);const n=e.allOf;n?.forEach(t)};t(e)}updateSchema(e,t){switch(h.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,r={type:"object",description:s.localize("vs/platform/configuration/common/configurationRegistry","overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.localize("vs/platform/configuration/common/configurationRegistry","overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:k};this.updatePropertyDefaultValue(t,r),h.properties[t]=r,d.properties[t]=r,g.properties[t]=r,f.properties[t]=r,m.properties[t]=r,p.properties[t]=r}}registerOverridePropertyPatternKey(){const e={type:"object",description:s.localize("vs/platform/configuration/common/configurationRegistry","overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.localize("vs/platform/configuration/common/configurationRegistry","overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:k};h.patternProperties[b]=e,d.patternProperties[b]=e,g.patternProperties[b]=e,f.patternProperties[b]=e,m.patternProperties[b]=e,p.patternProperties[b]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const r=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let n,i;!r||t.disallowConfigurationDefault&&r.source||(n=r.value,i=r.source),o.isUndefined(n)&&(n=t.defaultDefaultValue,i=void 0),o.isUndefined(n)&&(n=B(t.type)),t.default=n,t.defaultValueSource=i}};function T(e,t){return e.trim()?L.test(e)?s.localize("vs/platform/configuration/common/configurationRegistry","config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==S.getConfigurationProperties()[e]?s.localize("vs/platform/configuration/common/configurationRegistry","config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==S.getPolicyConfigurations().get(t.policy?.name)?s.localize("vs/platform/configuration/common/configurationRegistry","config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,S.getPolicyConfigurations().get(t.policy?.name)):null:s.localize("vs/platform/configuration/common/configurationRegistry","config.property.empty","Cannot register an empty property")}u.Registry.add(l.Configuration,S)},21084:function(e,t,r){"use strict";r.r(t),r.d(t,{ContextKeyAndExpr:function(){return P},ContextKeyDefinedExpr:function(){return S},ContextKeyEqualsExpr:function(){return T},ContextKeyExpr:function(){return v},ContextKeyFalseExpr:function(){return I},ContextKeyGreaterEqualsExpr:function(){return O},ContextKeyGreaterExpr:function(){return D},ContextKeyInExpr:function(){return y},ContextKeyNotEqualsExpr:function(){return E},ContextKeyNotExpr:function(){return x},ContextKeyNotInExpr:function(){return w},ContextKeyNotRegexExpr:function(){return M},ContextKeyOrExpr:function(){return H},ContextKeyRegexExpr:function(){return N},ContextKeySmallerEqualsExpr:function(){return A},ContextKeySmallerExpr:function(){return R},ContextKeyTrueExpr:function(){return B},IContextKeyService:function(){return U},Parser:function(){return _},RawContextKey:function(){return W},expressionsAreEqualWithConstantSubstitution:function(){return b},implies:function(){return G}});var n=r(606),i=r(41011),o=r(43842),s=r(8936),a=r(34106);const c=new Map;c.set("false",!1),c.set("true",!0),c.set("isMac",n.isMacintosh),c.set("isLinux",n.isLinux),c.set("isWindows",n.isWindows),c.set("isWeb",n.isWeb),c.set("isMacNative",n.isMacintosh&&!n.isWeb),c.set("isEdge",n.isEdge),c.set("isFirefox",n.isFirefox),c.set("isChrome",n.isChrome),c.set("isSafari",n.isSafari);const u=Object.prototype.hasOwnProperty,l={regexParsingWithErrorRecovery:!0},h=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.emptyString","Empty context key expression"),d=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),g=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.noInAfterNot","'in' after 'not'."),f=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),m=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedToken","Unexpected token"),p=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),k=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class _{static{this._parseError=new Error}constructor(e=l){this._config=e,this._scanner=new o.Scanner,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?p:void 0;throw this._parsingErrors.push({message:m,offset:e.offset,lexeme:o.Scanner.getLexeme(e),additionalInfo:t}),_._parseError}return e}catch(e){if(e!==_._parseError)throw e;return}}else this._parsingErrors.push({message:h,offset:0,lexeme:"",additionalInfo:d})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:v.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:v.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),I.INSTANCE;case 12:return this._advance(),B.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,f),e?.negate()}case 17:return this._advance(),x.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),v.true();case 12:return this._advance(),v.false();case 0:{this._advance();const e=this._expr();return this._consume(1,f),e}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const r=e.lexeme,n=r.lastIndexOf("/"),i=n===r.length-1?void 0:this._removeFlagsGY(r.substring(n+1));let o;try{o=new RegExp(r.substring(1,n),i)}catch(t){throw this._errExpectedButGot("REGEX",e)}return N.create(t,o)}switch(e.type){case 10:case 19:{const r=[e.lexeme];this._advance();let n=this._peek(),i=0;for(let t=0;t=0){const o=r.slice(t+1,i),s="i"===r[i+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return N.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,g);const e=this._value();return v.notIn(t,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return v.equals(t,e);switch(e){case"true":return v.has(t);case"false":return v.not(t);default:return v.equals(t,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return v.notEquals(t,e);switch(e){case"true":return v.not(t);case"false":return v.has(t);default:return v.notEquals(t,e)}}case 5:return this._advance(),R.create(t,this._value());case 6:return this._advance(),A.create(t,this._value());case 7:return this._advance(),D.create(t,this._value());case 8:return this._advance(),O.create(t,this._value());case 13:return this._advance(),v.in(t,this._value());default:return v.has(t)}}case 20:throw this._parsingErrors.push({message:k,offset:e.offset,lexeme:"",additionalInfo:C}),_._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,r){const n=(0,a.localize)("vs/platform/contextkey/common/contextkey","contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,o.Scanner.getLexeme(t)),i=t.offset,s=o.Scanner.getLexeme(t);return this._parsingErrors.push({message:n,offset:i,lexeme:s,additionalInfo:r}),_._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class v{static false(){return I.INSTANCE}static true(){return B.INSTANCE}static has(e){return S.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return E.create(e,t)}static regex(e,t){return N.create(e,t)}static in(e,t){return y.create(e,t)}static notIn(e,t){return w.create(e,t)}static not(e){return x.create(e)}static and(...e){return P.create(e,null,!0)}static or(...e){return H.create(e,null,!0)}static{this._parser=new _({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(null==e)return;return this._parser.parse(e)}}function b(e,t){const r=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!r&&!n||!(!r||!n)&&r.equals(n)}function L(e,t){return e.cmp(t)}class I{static{this.INSTANCE=new I}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return B.INSTANCE}}class B{static{this.INSTANCE=new B}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return I.INSTANCE}}class S{static create(e,t=null){const r=c.get(e);return"boolean"==typeof r?r?B.INSTANCE:I.INSTANCE:new S(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:V(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=c.get(this.key);return"boolean"==typeof e?e?B.INSTANCE:I.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this)),this.negated}}class T{static create(e,t,r=null){if("boolean"==typeof t)return t?S.create(e,r):x.create(e,r);const n=c.get(e);if("boolean"==typeof n){return t===(n?"true":"false")?B.INSTANCE:I.INSTANCE}return new T(e,t,r)}constructor(e,t,r){this.key=e,this.value=t,this.negated=r,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=c.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?B.INSTANCE:I.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class y{static create(e,t){return new y(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),r=e.getValue(this.key);return Array.isArray(t)?t.includes(r):"string"==typeof r&&"object"==typeof t&&null!==t&&u.call(t,r)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=w.create(this.key,this.valueKey)),this.negated}}class w{static create(e,t){return new w(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=y.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class E{static create(e,t,r=null){if("boolean"==typeof t)return t?x.create(e,r):S.create(e,r);const n=c.get(e);if("boolean"==typeof n){return t===(n?"true":"false")?I.INSTANCE:B.INSTANCE}return new E(e,t,r)}constructor(e,t,r){this.key=e,this.value=t,this.negated=r,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=c.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?I.INSTANCE:B.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class x{static create(e,t=null){const r=c.get(e);return"boolean"==typeof r?r?I.INSTANCE:B.INSTANCE:new x(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:V(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=c.get(this.key);return"boolean"==typeof e?e?I.INSTANCE:B.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this)),this.negated}}function F(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):I.INSTANCE}class D{static create(e,t,r=null){return F(t,(t=>new D(e,t,r)))}constructor(e,t,r){this.key=e,this.value=t,this.negated=r,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class O{static create(e,t,r=null){return F(t,(t=>new O(e,t,r)))}constructor(e,t,r){this.key=e,this.value=t,this.negated=r,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class R{static create(e,t,r=null){return F(t,(t=>new R(e,t,r)))}constructor(e,t,r){this.key=e,this.value=t,this.negated=r,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new A(e,t,r)))}constructor(e,t,r){this.key=e,this.value=t,this.negated=r,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return tr?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return this.key===e.key&&t===r}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this)),this.negated}}class M{static create(e){return new M(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let r=0,n=e.length;re.expr.length)return 1;for(let t=0,r=this.expr.length;t1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),i=0===n.length,o=H.create(e.expr.map((e=>P.create([e,t],null,r))),null,i);o&&(n.push(o),n.sort(L))}if(1===n.length)return n[0];if(r){for(let e=0;ee.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=H.create(e,this,!0)}return this.negated}}class H{static create(e,t,r){return H._normalizeArr(e,t,r)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,r=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),r=e.shift(),n=[];for(const e of $(t))for(const t of $(r))n.push(P.create([e,t],null,!1));e.unshift(H.create(n,null,!1))}this.negated=H.create(e,this,!0)}return this.negated}}class W extends S{static{this._info=[]}static all(){return W._info.values()}constructor(e,t,r){super(e,null),this._defaultValue=t,"object"==typeof r?W._info.push({...r,key:e}):!0!==r&&W._info.push({key:e,description:r,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}const U=(0,s.createDecorator)("contextKeyService");function V(e,t){return et?1:0}function q(e,t,r,n){return er?1:tn?1:0}function G(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&j(e.expr,t.expr);if(9===t.type){for(const r of t.expr)if(G(e,r))return!0;return!1}if(6===e.type){if(6===t.type)return j(t.expr,e.expr);for(const r of e.expr)if(G(r,t))return!0;return!1}return e.equals(t)}function j(e,t){let r=0,n=0;for(;r\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,n.illegalState)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,r=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:r};this._errors.push({offset:t,lexeme:r,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),r=c._keywords.get(t);r?this._addToken(r):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(s):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,r=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(a);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!r){e++;break}91===n?r=!0:92===n?t=!0:93===n&&(r=!1)}e++}for(;e=this._input.length}}},2856:function(e,t,r){"use strict";r.r(t),r.d(t,{IEnvironmentService:function(){return n}});const n=(0,r(8936).createDecorator)("environmentService")},45048:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{FileKind:function(){return n}}),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(n||(n={}))},95959:function(e,t,r){"use strict";r.r(t),r.d(t,{SyncDescriptor:function(){return n}});class n{constructor(e,t=[],r=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=r}}},45091:function(e,t,r){"use strict";r.r(t),r.d(t,{getSingletonServiceDescriptors:function(){return s},registerSingleton:function(){return o}});var n=r(95959);const i=[];function o(e,t,r){t instanceof n.SyncDescriptor||(t=new n.SyncDescriptor(t,[],Boolean(r))),i.push([e,t])}function s(){return i}},8936:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{IInstantiationService:function(){return i},_util:function(){return n},createDecorator:function(){return o}}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const i=o("instantiationService");function o(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:r}):(t[n.DI_DEPENDENCIES]=[{id:e,index:r}],t[n.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},99817:function(e,t,r){"use strict";r.r(t),r.d(t,{Extensions:function(){return o}});var n=r(1077),i=r(93592);const o={JSONContribution:"base.contributions.json"};const s=new class{constructor(){this._onDidChangeSchema=new n.Emitter,this.schemasById={}}registerSchema(e,t){var r;this.schemasById[(r=e,r.length>0&&"#"===r.charAt(r.length-1)?r.substring(0,r.length-1):r)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};i.Registry.add(o.JSONContribution,s)},58682:function(e,t,r){"use strict";r.r(t),r.d(t,{AbstractLogger:function(){return u},CONTEXT_LOG_LEVEL:function(){return g},ConsoleLogger:function(){return l},DEFAULT_LOG_LEVEL:function(){return c},ILogService:function(){return s},LogLevel:function(){return a},LogLevelToString:function(){return d},MultiplexLogger:function(){return h}});var n=r(1077),i=r(22845),o=r(21084);const s=(0,r(8936).createDecorator)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const c=a.Info;class u extends i.Disposable{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new n.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class l extends u{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c  ERR","color: #f33",e,...t):console.error(e,...t))}}class h extends u{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const r of this.loggers)r.trace(e,...t)}debug(e,...t){for(const r of this.loggers)r.debug(e,...t)}info(e,...t){for(const r of this.loggers)r.info(e,...t)}warn(e,...t){for(const r of this.loggers)r.warn(e,...t)}error(e,...t){for(const r of this.loggers)r.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}function d(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}const g=new o.RawContextKey("logLevel",d(a.Info))},83136:function(e,t,r){"use strict";r.r(t),r.d(t,{IMarkerData:function(){return i},IMarkerService:function(){return c},MarkerSeverity:function(){return n}});var n,i,o=r(67706),s=r(34106),a=r(8936);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,s.localize)("vs/platform/markers/common/markers","sev.error","Error"),t[e.Warning]=(0,s.localize)("vs/platform/markers/common/markers","sev.warning","Warning"),t[e.Info]=(0,s.localize)("vs/platform/markers/common/markers","sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case o.default.Error:return e.Error;case o.default.Warning:return e.Warning;case o.default.Info:return e.Info;case o.default.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return o.default.Error;case e.Warning:return o.default.Warning;case e.Info:return o.default.Info;case e.Hint:return o.default.Ignore}}}(n||(n={})),function(e){const t="";function r(e,r){const i=[t];return e.source?i.push(e.source.replace("¦","\\¦")):i.push(t),e.code?"string"==typeof e.code?i.push(e.code.replace("¦","\\¦")):i.push(e.code.value.replace("¦","\\¦")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(n.toString(e.severity)):i.push(t),e.message&&r?i.push(e.message.replace("¦","\\¦")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("¦")}e.makeKey=function(e){return r(e,!0)},e.makeKeyOptionalMessage=r}(i||(i={}));const c=(0,a.createDecorator)("markerService")},93592:function(e,t,r){"use strict";r.r(t),r.d(t,{Registry:function(){return o}});var n=r(63587),i=r(820);const o=new class{constructor(){this.data=new Map}add(e,t){n.ok(i.isString(e)),n.ok(i.isObject(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},65105:function(e,t,r){"use strict";r.r(t),r.d(t,{DEFAULT_COLOR_CONFIG_VALUE:function(){return n.DEFAULT_COLOR_CONFIG_VALUE},Extensions:function(){return n.Extensions},_deprecatedQuickInputListFocusBackground:function(){return d._deprecatedQuickInputListFocusBackground},activeContrastBorder:function(){return i.activeContrastBorder},asCssVariable:function(){return n.asCssVariable},asCssVariableName:function(){return n.asCssVariableName},asCssVariableWithDefault:function(){return n.asCssVariableWithDefault},badgeBackground:function(){return h.badgeBackground},badgeForeground:function(){return h.badgeForeground},breadcrumbsActiveSelectionForeground:function(){return s.breadcrumbsActiveSelectionForeground},breadcrumbsBackground:function(){return s.breadcrumbsBackground},breadcrumbsFocusForeground:function(){return s.breadcrumbsFocusForeground},breadcrumbsForeground:function(){return s.breadcrumbsForeground},breadcrumbsPickerBackground:function(){return s.breadcrumbsPickerBackground},buttonBackground:function(){return a.buttonBackground},buttonBorder:function(){return a.buttonBorder},buttonForeground:function(){return a.buttonForeground},buttonHoverBackground:function(){return a.buttonHoverBackground},buttonSecondaryBackground:function(){return a.buttonSecondaryBackground},buttonSecondaryForeground:function(){return a.buttonSecondaryForeground},buttonSecondaryHoverBackground:function(){return a.buttonSecondaryHoverBackground},buttonSeparator:function(){return a.buttonSeparator},chartsBlue:function(){return o.chartsBlue},chartsForeground:function(){return o.chartsForeground},chartsGreen:function(){return o.chartsGreen},chartsLines:function(){return o.chartsLines},chartsOrange:function(){return o.chartsOrange},chartsPurple:function(){return o.chartsPurple},chartsRed:function(){return o.chartsRed},chartsYellow:function(){return o.chartsYellow},checkboxBackground:function(){return a.checkboxBackground},checkboxBorder:function(){return a.checkboxBorder},checkboxForeground:function(){return a.checkboxForeground},checkboxSelectBackground:function(){return a.checkboxSelectBackground},checkboxSelectBorder:function(){return a.checkboxSelectBorder},contrastBorder:function(){return i.contrastBorder},darken:function(){return n.darken},defaultInsertColor:function(){return s.defaultInsertColor},defaultRemoveColor:function(){return s.defaultRemoveColor},descriptionForeground:function(){return i.descriptionForeground},diffBorder:function(){return s.diffBorder},diffDiagonalFill:function(){return s.diffDiagonalFill},diffInserted:function(){return s.diffInserted},diffInsertedLine:function(){return s.diffInsertedLine},diffInsertedLineGutter:function(){return s.diffInsertedLineGutter},diffInsertedOutline:function(){return s.diffInsertedOutline},diffOverviewRulerInserted:function(){return s.diffOverviewRulerInserted},diffOverviewRulerRemoved:function(){return s.diffOverviewRulerRemoved},diffRemoved:function(){return s.diffRemoved},diffRemovedLine:function(){return s.diffRemovedLine},diffRemovedLineGutter:function(){return s.diffRemovedLineGutter},diffRemovedOutline:function(){return s.diffRemovedOutline},diffUnchangedRegionBackground:function(){return s.diffUnchangedRegionBackground},diffUnchangedRegionForeground:function(){return s.diffUnchangedRegionForeground},diffUnchangedTextBackground:function(){return s.diffUnchangedTextBackground},disabledForeground:function(){return i.disabledForeground},editorActionListBackground:function(){return c.editorActionListBackground},editorActionListFocusBackground:function(){return c.editorActionListFocusBackground},editorActionListFocusForeground:function(){return c.editorActionListFocusForeground},editorActionListForeground:function(){return c.editorActionListForeground},editorActiveLinkForeground:function(){return s.editorActiveLinkForeground},editorBackground:function(){return s.editorBackground},editorErrorBackground:function(){return s.editorErrorBackground},editorErrorBorder:function(){return s.editorErrorBorder},editorErrorForeground:function(){return s.editorErrorForeground},editorFindMatch:function(){return s.editorFindMatch},editorFindMatchBorder:function(){return s.editorFindMatchBorder},editorFindMatchForeground:function(){return s.editorFindMatchForeground},editorFindMatchHighlight:function(){return s.editorFindMatchHighlight},editorFindMatchHighlightBorder:function(){return s.editorFindMatchHighlightBorder},editorFindMatchHighlightForeground:function(){return s.editorFindMatchHighlightForeground},editorFindRangeHighlight:function(){return s.editorFindRangeHighlight},editorFindRangeHighlightBorder:function(){return s.editorFindRangeHighlightBorder},editorForeground:function(){return s.editorForeground},editorHintBorder:function(){return s.editorHintBorder},editorHintForeground:function(){return s.editorHintForeground},editorHoverBackground:function(){return s.editorHoverBackground},editorHoverBorder:function(){return s.editorHoverBorder},editorHoverForeground:function(){return s.editorHoverForeground},editorHoverHighlight:function(){return s.editorHoverHighlight},editorHoverStatusBarBackground:function(){return s.editorHoverStatusBarBackground},editorInactiveSelection:function(){return s.editorInactiveSelection},editorInfoBackground:function(){return s.editorInfoBackground},editorInfoBorder:function(){return s.editorInfoBorder},editorInfoForeground:function(){return s.editorInfoForeground},editorInlayHintBackground:function(){return s.editorInlayHintBackground},editorInlayHintForeground:function(){return s.editorInlayHintForeground},editorInlayHintParameterBackground:function(){return s.editorInlayHintParameterBackground},editorInlayHintParameterForeground:function(){return s.editorInlayHintParameterForeground},editorInlayHintTypeBackground:function(){return s.editorInlayHintTypeBackground},editorInlayHintTypeForeground:function(){return s.editorInlayHintTypeForeground},editorLightBulbAiForeground:function(){return s.editorLightBulbAiForeground},editorLightBulbAutoFixForeground:function(){return s.editorLightBulbAutoFixForeground},editorLightBulbForeground:function(){return s.editorLightBulbForeground},editorSelectionBackground:function(){return s.editorSelectionBackground},editorSelectionForeground:function(){return s.editorSelectionForeground},editorSelectionHighlight:function(){return s.editorSelectionHighlight},editorSelectionHighlightBorder:function(){return s.editorSelectionHighlightBorder},editorStickyScrollBackground:function(){return s.editorStickyScrollBackground},editorStickyScrollBorder:function(){return s.editorStickyScrollBorder},editorStickyScrollHoverBackground:function(){return s.editorStickyScrollHoverBackground},editorStickyScrollShadow:function(){return s.editorStickyScrollShadow},editorWarningBackground:function(){return s.editorWarningBackground},editorWarningBorder:function(){return s.editorWarningBorder},editorWarningForeground:function(){return s.editorWarningForeground},editorWidgetBackground:function(){return s.editorWidgetBackground},editorWidgetBorder:function(){return s.editorWidgetBorder},editorWidgetForeground:function(){return s.editorWidgetForeground},editorWidgetResizeBorder:function(){return s.editorWidgetResizeBorder},errorForeground:function(){return i.errorForeground},executeTransform:function(){return n.executeTransform},focusBorder:function(){return i.focusBorder},foreground:function(){return i.foreground},iconForeground:function(){return i.iconForeground},ifDefinedThenElse:function(){return n.ifDefinedThenElse},inputActiveOptionBackground:function(){return a.inputActiveOptionBackground},inputActiveOptionBorder:function(){return a.inputActiveOptionBorder},inputActiveOptionForeground:function(){return a.inputActiveOptionForeground},inputActiveOptionHoverBackground:function(){return a.inputActiveOptionHoverBackground},inputBackground:function(){return a.inputBackground},inputBorder:function(){return a.inputBorder},inputForeground:function(){return a.inputForeground},inputPlaceholderForeground:function(){return a.inputPlaceholderForeground},inputValidationErrorBackground:function(){return a.inputValidationErrorBackground},inputValidationErrorBorder:function(){return a.inputValidationErrorBorder},inputValidationErrorForeground:function(){return a.inputValidationErrorForeground},inputValidationInfoBackground:function(){return a.inputValidationInfoBackground},inputValidationInfoBorder:function(){return a.inputValidationInfoBorder},inputValidationInfoForeground:function(){return a.inputValidationInfoForeground},inputValidationWarningBackground:function(){return a.inputValidationWarningBackground},inputValidationWarningBorder:function(){return a.inputValidationWarningBorder},inputValidationWarningForeground:function(){return a.inputValidationWarningForeground},isColorDefaults:function(){return n.isColorDefaults},keybindingLabelBackground:function(){return a.keybindingLabelBackground},keybindingLabelBorder:function(){return a.keybindingLabelBorder},keybindingLabelBottomBorder:function(){return a.keybindingLabelBottomBorder},keybindingLabelForeground:function(){return a.keybindingLabelForeground},lessProminent:function(){return n.lessProminent},lighten:function(){return n.lighten},listActiveSelectionBackground:function(){return c.listActiveSelectionBackground},listActiveSelectionForeground:function(){return c.listActiveSelectionForeground},listActiveSelectionIconForeground:function(){return c.listActiveSelectionIconForeground},listDeemphasizedForeground:function(){return c.listDeemphasizedForeground},listDropBetweenBackground:function(){return c.listDropBetweenBackground},listDropOverBackground:function(){return c.listDropOverBackground},listErrorForeground:function(){return c.listErrorForeground},listFilterMatchHighlight:function(){return c.listFilterMatchHighlight},listFilterMatchHighlightBorder:function(){return c.listFilterMatchHighlightBorder},listFilterWidgetBackground:function(){return c.listFilterWidgetBackground},listFilterWidgetNoMatchesOutline:function(){return c.listFilterWidgetNoMatchesOutline},listFilterWidgetOutline:function(){return c.listFilterWidgetOutline},listFilterWidgetShadow:function(){return c.listFilterWidgetShadow},listFocusAndSelectionOutline:function(){return c.listFocusAndSelectionOutline},listFocusBackground:function(){return c.listFocusBackground},listFocusForeground:function(){return c.listFocusForeground},listFocusHighlightForeground:function(){return c.listFocusHighlightForeground},listFocusOutline:function(){return c.listFocusOutline},listHighlightForeground:function(){return c.listHighlightForeground},listHoverBackground:function(){return c.listHoverBackground},listHoverForeground:function(){return c.listHoverForeground},listInactiveFocusBackground:function(){return c.listInactiveFocusBackground},listInactiveFocusOutline:function(){return c.listInactiveFocusOutline},listInactiveSelectionBackground:function(){return c.listInactiveSelectionBackground},listInactiveSelectionForeground:function(){return c.listInactiveSelectionForeground},listInactiveSelectionIconForeground:function(){return c.listInactiveSelectionIconForeground},listInvalidItemForeground:function(){return c.listInvalidItemForeground},listWarningForeground:function(){return c.listWarningForeground},menuBackground:function(){return u.menuBackground},menuBorder:function(){return u.menuBorder},menuForeground:function(){return u.menuForeground},menuSelectionBackground:function(){return u.menuSelectionBackground},menuSelectionBorder:function(){return u.menuSelectionBorder},menuSelectionForeground:function(){return u.menuSelectionForeground},menuSeparatorBackground:function(){return u.menuSeparatorBackground},mergeBorder:function(){return s.mergeBorder},mergeCommonContentBackground:function(){return s.mergeCommonContentBackground},mergeCommonHeaderBackground:function(){return s.mergeCommonHeaderBackground},mergeCurrentContentBackground:function(){return s.mergeCurrentContentBackground},mergeCurrentHeaderBackground:function(){return s.mergeCurrentHeaderBackground},mergeIncomingContentBackground:function(){return s.mergeIncomingContentBackground},mergeIncomingHeaderBackground:function(){return s.mergeIncomingHeaderBackground},minimapBackground:function(){return l.minimapBackground},minimapError:function(){return l.minimapError},minimapFindMatch:function(){return l.minimapFindMatch},minimapForegroundOpacity:function(){return l.minimapForegroundOpacity},minimapInfo:function(){return l.minimapInfo},minimapSelection:function(){return l.minimapSelection},minimapSelectionOccurrenceHighlight:function(){return l.minimapSelectionOccurrenceHighlight},minimapSliderActiveBackground:function(){return l.minimapSliderActiveBackground},minimapSliderBackground:function(){return l.minimapSliderBackground},minimapSliderHoverBackground:function(){return l.minimapSliderHoverBackground},minimapWarning:function(){return l.minimapWarning},oneOf:function(){return n.oneOf},overviewRulerCommonContentForeground:function(){return s.overviewRulerCommonContentForeground},overviewRulerCurrentContentForeground:function(){return s.overviewRulerCurrentContentForeground},overviewRulerFindMatchForeground:function(){return s.overviewRulerFindMatchForeground},overviewRulerIncomingContentForeground:function(){return s.overviewRulerIncomingContentForeground},overviewRulerSelectionHighlightForeground:function(){return s.overviewRulerSelectionHighlightForeground},pickerGroupBorder:function(){return d.pickerGroupBorder},pickerGroupForeground:function(){return d.pickerGroupForeground},problemsErrorIconForeground:function(){return s.problemsErrorIconForeground},problemsInfoIconForeground:function(){return s.problemsInfoIconForeground},problemsWarningIconForeground:function(){return s.problemsWarningIconForeground},progressBarBackground:function(){return h.progressBarBackground},quickInputBackground:function(){return d.quickInputBackground},quickInputForeground:function(){return d.quickInputForeground},quickInputListFocusBackground:function(){return d.quickInputListFocusBackground},quickInputListFocusForeground:function(){return d.quickInputListFocusForeground},quickInputListFocusIconForeground:function(){return d.quickInputListFocusIconForeground},quickInputTitleBackground:function(){return d.quickInputTitleBackground},radioActiveBackground:function(){return a.radioActiveBackground},radioActiveBorder:function(){return a.radioActiveBorder},radioActiveForeground:function(){return a.radioActiveForeground},radioInactiveBackground:function(){return a.radioInactiveBackground},radioInactiveBorder:function(){return a.radioInactiveBorder},radioInactiveForeground:function(){return a.radioInactiveForeground},radioInactiveHoverBackground:function(){return a.radioInactiveHoverBackground},registerColor:function(){return n.registerColor},resolveColorValue:function(){return n.resolveColorValue},sashHoverBorder:function(){return h.sashHoverBorder},scrollbarShadow:function(){return h.scrollbarShadow},scrollbarSliderActiveBackground:function(){return h.scrollbarSliderActiveBackground},scrollbarSliderBackground:function(){return h.scrollbarSliderBackground},scrollbarSliderHoverBackground:function(){return h.scrollbarSliderHoverBackground},searchEditorFindMatch:function(){return g.searchEditorFindMatch},searchEditorFindMatchBorder:function(){return g.searchEditorFindMatchBorder},searchResultsInfoForeground:function(){return g.searchResultsInfoForeground},selectBackground:function(){return a.selectBackground},selectBorder:function(){return a.selectBorder},selectForeground:function(){return a.selectForeground},selectListBackground:function(){return a.selectListBackground},selectionBackground:function(){return i.selectionBackground},snippetFinalTabstopHighlightBackground:function(){return s.snippetFinalTabstopHighlightBackground},snippetFinalTabstopHighlightBorder:function(){return s.snippetFinalTabstopHighlightBorder},snippetTabstopHighlightBackground:function(){return s.snippetTabstopHighlightBackground},snippetTabstopHighlightBorder:function(){return s.snippetTabstopHighlightBorder},tableColumnsBorder:function(){return c.tableColumnsBorder},tableOddRowsBackgroundColor:function(){return c.tableOddRowsBackgroundColor},textBlockQuoteBackground:function(){return i.textBlockQuoteBackground},textBlockQuoteBorder:function(){return i.textBlockQuoteBorder},textCodeBlockBackground:function(){return i.textCodeBlockBackground},textLinkActiveForeground:function(){return i.textLinkActiveForeground},textLinkForeground:function(){return i.textLinkForeground},textPreformatBackground:function(){return i.textPreformatBackground},textPreformatForeground:function(){return i.textPreformatForeground},textSeparatorForeground:function(){return i.textSeparatorForeground},toolbarActiveBackground:function(){return s.toolbarActiveBackground},toolbarHoverBackground:function(){return s.toolbarHoverBackground},toolbarHoverOutline:function(){return s.toolbarHoverOutline},transparent:function(){return n.transparent},treeInactiveIndentGuidesStroke:function(){return c.treeInactiveIndentGuidesStroke},treeIndentGuidesStroke:function(){return c.treeIndentGuidesStroke},widgetBorder:function(){return s.widgetBorder},widgetShadow:function(){return s.widgetShadow},workbenchColorsSchemaId:function(){return n.workbenchColorsSchemaId}});var n=r(97033),i=r(60565),o=r(88145),s=r(89725),a=r(45802),c=r(61428),u=r(34347),l=r(22305),h=r(57152),d=r(81776),g=r(94868)},97033:function(e,t,r){"use strict";r.r(t),r.d(t,{DEFAULT_COLOR_CONFIG_VALUE:function(){return m},Extensions:function(){return f},asCssVariable:function(){return h},asCssVariableName:function(){return l},asCssVariableWithDefault:function(){return d},darken:function(){return _},executeTransform:function(){return C},ifDefinedThenElse:function(){return I},isColorDefaults:function(){return g},lessProminent:function(){return B},lighten:function(){return v},oneOf:function(){return L},registerColor:function(){return k},resolveColorValue:function(){return S},transparent:function(){return b},workbenchColorsSchemaId:function(){return T}});var n=r(63587),i=r(4717),o=r(59746),s=r(1077),a=r(99817),c=r(93592),u=r(34106);function l(e){return`--vscode-${e.replace(/\./g,"-")}`}function h(e){return`var(${l(e)})`}function d(e,t){return`var(${l(e)}, ${t})`}function g(e){return null!==e&&"object"==typeof e&&"light"in e&&"dark"in e}const f={ColorContribution:"base.contributions.colors"},m="default";const p=new class{constructor(){this._onDidChangeSchema=new s.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,r,n=!1,i){const o={id:e,description:r,defaults:t,needsTransparency:n,deprecationMessage:i};this.colorsById[e]=o;const s={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return i&&(s.deprecationMessage=i),n&&(s.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",s.patternErrorMessage=u.localize("vs/platform/theme/common/colorUtils","transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:r,oneOf:[s,{type:"string",const:m,description:u.localize("vs/platform/theme/common/colorUtils","useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(r),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const r=this.colorsById[e];if(r?.defaults){return S(g(r.defaults)?r.defaults[t.type]:r.defaults,t)}}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const r=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return r!==n?r-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function k(e,t,r,n,i){return p.registerColor(e,t,r,n,i)}function C(e,t){switch(e.op){case 0:return S(e.value,t)?.darken(e.factor);case 1:return S(e.value,t)?.lighten(e.factor);case 2:return S(e.value,t)?.transparent(e.factor);case 3:{const r=S(e.background,t);return r?S(e.value,t)?.makeOpaque(r):S(e.value,t)}case 4:for(const r of e.values){const e=S(r,t);if(e)return e}return;case 6:return S(t.defines(e.if)?e.then:e.else,t);case 5:{const r=S(e.value,t);if(!r)return;const n=S(e.background,t);return n?r.isDarkerThan(n)?o.Color.getLighterColor(r,n,e.factor).transparent(e.transparency):o.Color.getDarkerColor(r,n,e.factor).transparent(e.transparency):r.transparent(e.factor*e.transparency)}default:throw(0,n.assertNever)(e)}}function _(e,t){return{op:0,value:e,factor:t}}function v(e,t){return{op:1,value:e,factor:t}}function b(e,t){return{op:2,value:e,factor:t}}function L(...e){return{op:4,values:e}}function I(e,t,r){return{op:6,if:e,then:t,else:r}}function B(e,t,r,n){return{op:5,value:e,background:t,factor:r,transparency:n}}function S(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?o.Color.fromHex(e):t.getColor(e):e instanceof o.Color?e:"object"==typeof e?C(e,t):void 0}c.Registry.add(f.ColorContribution,p);const T="vscode://schemas/workbench-colors",y=c.Registry.as(a.Extensions.JSONContribution);y.registerSchema(T,p.getColorSchema());const w=new i.RunOnceScheduler((()=>y.notifySchemaChanged(T)),200);p.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}))},60565:function(e,t,r){"use strict";r.r(t),r.d(t,{activeContrastBorder:function(){return g},contrastBorder:function(){return d},descriptionForeground:function(){return u},disabledForeground:function(){return a},errorForeground:function(){return c},focusBorder:function(){return h},foreground:function(){return s},iconForeground:function(){return l},selectionBackground:function(){return f},textBlockQuoteBackground:function(){return v},textBlockQuoteBorder:function(){return b},textCodeBlockBackground:function(){return L},textLinkActiveForeground:function(){return p},textLinkForeground:function(){return m},textPreformatBackground:function(){return _},textPreformatForeground:function(){return C},textSeparatorForeground:function(){return k}});var n=r(34106),i=r(59746),o=r(97033);const s=(0,o.registerColor)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/baseColors","foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=(0,o.registerColor)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.localize("vs/platform/theme/common/colors/baseColors","disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),c=(0,o.registerColor)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.localize("vs/platform/theme/common/colors/baseColors","errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u=(0,o.registerColor)("descriptionForeground",{light:"#717171",dark:(0,o.transparent)(s,.7),hcDark:(0,o.transparent)(s,.7),hcLight:(0,o.transparent)(s,.7)},n.localize("vs/platform/theme/common/colors/baseColors","descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),l=(0,o.registerColor)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/baseColors","iconForeground","The default color for icons in the workbench.")),h=(0,o.registerColor)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.localize("vs/platform/theme/common/colors/baseColors","focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),d=(0,o.registerColor)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/baseColors","contrastBorder","An extra border around elements to separate them from others for greater contrast.")),g=(0,o.registerColor)("contrastActiveBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.localize("vs/platform/theme/common/colors/baseColors","activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),f=(0,o.registerColor)("selection.background",null,n.localize("vs/platform/theme/common/colors/baseColors","selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),m=(0,o.registerColor)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/baseColors","textLinkForeground","Foreground color for links in text.")),p=(0,o.registerColor)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/baseColors","textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),k=(0,o.registerColor)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:i.Color.black,hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/baseColors","textSeparatorForeground","Color for text separators.")),C=(0,o.registerColor)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.localize("vs/platform/theme/common/colors/baseColors","textPreformatForeground","Foreground color for preformatted text segments.")),_=(0,o.registerColor)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.localize("vs/platform/theme/common/colors/baseColors","textPreformatBackground","Background color for preformatted text segments.")),v=(0,o.registerColor)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.localize("vs/platform/theme/common/colors/baseColors","textBlockQuoteBackground","Background color for block quotes in text.")),b=(0,o.registerColor)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:i.Color.white,hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/baseColors","textBlockQuoteBorder","Border color for block quotes in text.")),L=(0,o.registerColor)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:i.Color.black,hcLight:"#F2F2F2"},n.localize("vs/platform/theme/common/colors/baseColors","textCodeBlockBackground","Background color for code blocks in text."))},88145:function(e,t,r){"use strict";r.r(t),r.d(t,{chartsBlue:function(){return h},chartsForeground:function(){return c},chartsGreen:function(){return f},chartsLines:function(){return u},chartsOrange:function(){return g},chartsPurple:function(){return m},chartsRed:function(){return l},chartsYellow:function(){return d}});var n=r(34106),i=r(97033),o=r(60565),s=r(89725),a=r(22305);const c=(0,i.registerColor)("charts.foreground",o.foreground,n.localize("vs/platform/theme/common/colors/chartsColors","chartsForeground","The foreground color used in charts.")),u=(0,i.registerColor)("charts.lines",(0,i.transparent)(o.foreground,.5),n.localize("vs/platform/theme/common/colors/chartsColors","chartsLines","The color used for horizontal lines in charts.")),l=(0,i.registerColor)("charts.red",s.editorErrorForeground,n.localize("vs/platform/theme/common/colors/chartsColors","chartsRed","The red color used in chart visualizations.")),h=(0,i.registerColor)("charts.blue",s.editorInfoForeground,n.localize("vs/platform/theme/common/colors/chartsColors","chartsBlue","The blue color used in chart visualizations.")),d=(0,i.registerColor)("charts.yellow",s.editorWarningForeground,n.localize("vs/platform/theme/common/colors/chartsColors","chartsYellow","The yellow color used in chart visualizations.")),g=(0,i.registerColor)("charts.orange",a.minimapFindMatch,n.localize("vs/platform/theme/common/colors/chartsColors","chartsOrange","The orange color used in chart visualizations.")),f=(0,i.registerColor)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.localize("vs/platform/theme/common/colors/chartsColors","chartsGreen","The green color used in chart visualizations.")),m=(0,i.registerColor)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.localize("vs/platform/theme/common/colors/chartsColors","chartsPurple","The purple color used in chart visualizations."))},89725:function(e,t,r){"use strict";r.r(t),r.d(t,{breadcrumbsActiveSelectionForeground:function(){return De},breadcrumbsBackground:function(){return xe},breadcrumbsFocusForeground:function(){return Fe},breadcrumbsForeground:function(){return Ee},breadcrumbsPickerBackground:function(){return Oe},defaultInsertColor:function(){return ae},defaultRemoveColor:function(){return ce},diffBorder:function(){return _e},diffDiagonalFill:function(){return ve},diffInserted:function(){return ue},diffInsertedLine:function(){return he},diffInsertedLineGutter:function(){return ge},diffInsertedOutline:function(){return ke},diffOverviewRulerInserted:function(){return me},diffOverviewRulerRemoved:function(){return pe},diffRemoved:function(){return le},diffRemovedLine:function(){return de},diffRemovedLineGutter:function(){return fe},diffRemovedOutline:function(){return Ce},diffUnchangedRegionBackground:function(){return be},diffUnchangedRegionForeground:function(){return Le},diffUnchangedTextBackground:function(){return Ie},editorActiveLinkForeground:function(){return E},editorBackground:function(){return c},editorErrorBackground:function(){return C},editorErrorBorder:function(){return v},editorErrorForeground:function(){return _},editorFindMatch:function(){return A},editorFindMatchBorder:function(){return H},editorFindMatchForeground:function(){return N},editorFindMatchHighlight:function(){return M},editorFindMatchHighlightBorder:function(){return W},editorFindMatchHighlightForeground:function(){return z},editorFindRangeHighlight:function(){return P},editorFindRangeHighlightBorder:function(){return U},editorForeground:function(){return u},editorHintBorder:function(){return w},editorHintForeground:function(){return y},editorHoverBackground:function(){return q},editorHoverBorder:function(){return j},editorHoverForeground:function(){return G},editorHoverHighlight:function(){return V},editorHoverStatusBarBackground:function(){return $},editorInactiveSelection:function(){return D},editorInfoBackground:function(){return B},editorInfoBorder:function(){return T},editorInfoForeground:function(){return S},editorInlayHintBackground:function(){return Z},editorInlayHintForeground:function(){return K},editorInlayHintParameterBackground:function(){return J},editorInlayHintParameterForeground:function(){return Y},editorInlayHintTypeBackground:function(){return X},editorInlayHintTypeForeground:function(){return Q},editorLightBulbAiForeground:function(){return re},editorLightBulbAutoFixForeground:function(){return te},editorLightBulbForeground:function(){return ee},editorSelectionBackground:function(){return x},editorSelectionForeground:function(){return F},editorSelectionHighlight:function(){return O},editorSelectionHighlightBorder:function(){return R},editorStickyScrollBackground:function(){return l},editorStickyScrollBorder:function(){return d},editorStickyScrollHoverBackground:function(){return h},editorStickyScrollShadow:function(){return g},editorWarningBackground:function(){return b},editorWarningBorder:function(){return I},editorWarningForeground:function(){return L},editorWidgetBackground:function(){return f},editorWidgetBorder:function(){return p},editorWidgetForeground:function(){return m},editorWidgetResizeBorder:function(){return k},mergeBorder:function(){return Ve},mergeCommonContentBackground:function(){return Ue},mergeCommonHeaderBackground:function(){return We},mergeCurrentContentBackground:function(){return ze},mergeCurrentHeaderBackground:function(){return Me},mergeIncomingContentBackground:function(){return He},mergeIncomingHeaderBackground:function(){return Pe},overviewRulerCommonContentForeground:function(){return je},overviewRulerCurrentContentForeground:function(){return qe},overviewRulerFindMatchForeground:function(){return $e},overviewRulerIncomingContentForeground:function(){return Ge},overviewRulerSelectionHighlightForeground:function(){return Ke},problemsErrorIconForeground:function(){return Ze},problemsInfoIconForeground:function(){return Xe},problemsWarningIconForeground:function(){return Qe},snippetFinalTabstopHighlightBackground:function(){return oe},snippetFinalTabstopHighlightBorder:function(){return se},snippetTabstopHighlightBackground:function(){return ne},snippetTabstopHighlightBorder:function(){return ie},toolbarActiveBackground:function(){return we},toolbarHoverBackground:function(){return Te},toolbarHoverOutline:function(){return ye},widgetBorder:function(){return Se},widgetShadow:function(){return Be}});var n=r(34106),i=r(59746),o=r(97033),s=r(60565),a=r(57152);const c=(0,o.registerColor)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/editorColors","editorBackground","Editor background color.")),u=(0,o.registerColor)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:i.Color.white,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/editorColors","editorForeground","Editor default foreground color.")),l=(0,o.registerColor)("editorStickyScroll.background",c,n.localize("vs/platform/theme/common/colors/editorColors","editorStickyScrollBackground","Background color of sticky scroll in the editor")),h=(0,o.registerColor)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:i.Color.fromHex("#0F4A85").transparent(.1)},n.localize("vs/platform/theme/common/colors/editorColors","editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d=(0,o.registerColor)("editorStickyScroll.border",{dark:null,light:null,hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","editorStickyScrollBorder","Border color of sticky scroll in the editor")),g=(0,o.registerColor)("editorStickyScroll.shadow",a.scrollbarShadow,n.localize("vs/platform/theme/common/colors/editorColors","editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),f=(0,o.registerColor)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/editorColors","editorWidgetBackground","Background color of editor widgets, such as find/replace.")),m=(0,o.registerColor)("editorWidget.foreground",s.foreground,n.localize("vs/platform/theme/common/colors/editorColors","editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),p=(0,o.registerColor)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),k=(0,o.registerColor)("editorWidget.resizeBorder",null,n.localize("vs/platform/theme/common/colors/editorColors","editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),C=(0,o.registerColor)("editorError.background",null,n.localize("vs/platform/theme/common/colors/editorColors","editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),_=(0,o.registerColor)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.localize("vs/platform/theme/common/colors/editorColors","editorError.foreground","Foreground color of error squigglies in the editor.")),v=(0,o.registerColor)("editorError.border",{dark:null,light:null,hcDark:i.Color.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.localize("vs/platform/theme/common/colors/editorColors","errorBorder","If set, color of double underlines for errors in the editor.")),b=(0,o.registerColor)("editorWarning.background",null,n.localize("vs/platform/theme/common/colors/editorColors","editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),L=(0,o.registerColor)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.localize("vs/platform/theme/common/colors/editorColors","editorWarning.foreground","Foreground color of warning squigglies in the editor.")),I=(0,o.registerColor)("editorWarning.border",{dark:null,light:null,hcDark:i.Color.fromHex("#FFCC00").transparent(.8),hcLight:i.Color.fromHex("#FFCC00").transparent(.8)},n.localize("vs/platform/theme/common/colors/editorColors","warningBorder","If set, color of double underlines for warnings in the editor.")),B=(0,o.registerColor)("editorInfo.background",null,n.localize("vs/platform/theme/common/colors/editorColors","editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),S=(0,o.registerColor)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.localize("vs/platform/theme/common/colors/editorColors","editorInfo.foreground","Foreground color of info squigglies in the editor.")),T=(0,o.registerColor)("editorInfo.border",{dark:null,light:null,hcDark:i.Color.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/editorColors","infoBorder","If set, color of double underlines for infos in the editor.")),y=(0,o.registerColor)("editorHint.foreground",{dark:i.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","editorHint.foreground","Foreground color of hint squigglies in the editor.")),w=(0,o.registerColor)("editorHint.border",{dark:null,light:null,hcDark:i.Color.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/editorColors","hintBorder","If set, color of double underlines for hints in the editor.")),E=(0,o.registerColor)("editorLink.activeForeground",{dark:"#4E94CE",light:i.Color.blue,hcDark:i.Color.cyan,hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/editorColors","activeLinkForeground","Color of active links.")),x=(0,o.registerColor)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/editorColors","editorSelectionBackground","Color of the editor selection.")),F=(0,o.registerColor)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/editorColors","editorSelectionForeground","Color of the selected text for high contrast.")),D=(0,o.registerColor)("editor.inactiveSelectionBackground",{light:(0,o.transparent)(x,.5),dark:(0,o.transparent)(x,.5),hcDark:(0,o.transparent)(x,.7),hcLight:(0,o.transparent)(x,.5)},n.localize("vs/platform/theme/common/colors/editorColors","editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),O=(0,o.registerColor)("editor.selectionHighlightBackground",{light:(0,o.lessProminent)(x,c,.3,.6),dark:(0,o.lessProminent)(x,c,.3,.6),hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),R=(0,o.registerColor)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),A=(0,o.registerColor)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","editorFindMatch","Color of the current search match.")),N=(0,o.registerColor)("editor.findMatchForeground",null,n.localize("vs/platform/theme/common/colors/editorColors","editorFindMatchForeground","Text color of the current search match.")),M=(0,o.registerColor)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),z=(0,o.registerColor)("editor.findMatchHighlightForeground",null,n.localize("vs/platform/theme/common/colors/editorColors","findMatchHighlightForeground","Foreground color of the other search matches."),!0),P=(0,o.registerColor)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,o.registerColor)("editor.findMatchBorder",{light:null,dark:null,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","editorFindMatchBorder","Border color of the current search match.")),W=(0,o.registerColor)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","findMatchHighlightBorder","Border color of the other search matches.")),U=(0,o.registerColor)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,o.transparent)(s.activeContrastBorder,.4),hcLight:(0,o.transparent)(s.activeContrastBorder,.4)},n.localize("vs/platform/theme/common/colors/editorColors","findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),V=(0,o.registerColor)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),q=(0,o.registerColor)("editorHoverWidget.background",f,n.localize("vs/platform/theme/common/colors/editorColors","hoverBackground","Background color of the editor hover.")),G=(0,o.registerColor)("editorHoverWidget.foreground",m,n.localize("vs/platform/theme/common/colors/editorColors","hoverForeground","Foreground color of the editor hover.")),j=(0,o.registerColor)("editorHoverWidget.border",p,n.localize("vs/platform/theme/common/colors/editorColors","hoverBorder","Border color of the editor hover.")),$=(0,o.registerColor)("editorHoverWidget.statusBarBackground",{dark:(0,o.lighten)(q,.2),light:(0,o.darken)(q,.05),hcDark:f,hcLight:f},n.localize("vs/platform/theme/common/colors/editorColors","statusBarBackground","Background color of the editor hover status bar.")),K=(0,o.registerColor)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:i.Color.white,hcLight:i.Color.black},n.localize("vs/platform/theme/common/colors/editorColors","editorInlayHintForeground","Foreground color of inline hints")),Z=(0,o.registerColor)("editorInlayHint.background",{dark:(0,o.transparent)(a.badgeBackground,.1),light:(0,o.transparent)(a.badgeBackground,.1),hcDark:(0,o.transparent)(i.Color.white,.1),hcLight:(0,o.transparent)(a.badgeBackground,.1)},n.localize("vs/platform/theme/common/colors/editorColors","editorInlayHintBackground","Background color of inline hints")),Q=(0,o.registerColor)("editorInlayHint.typeForeground",K,n.localize("vs/platform/theme/common/colors/editorColors","editorInlayHintForegroundTypes","Foreground color of inline hints for types")),X=(0,o.registerColor)("editorInlayHint.typeBackground",Z,n.localize("vs/platform/theme/common/colors/editorColors","editorInlayHintBackgroundTypes","Background color of inline hints for types")),Y=(0,o.registerColor)("editorInlayHint.parameterForeground",K,n.localize("vs/platform/theme/common/colors/editorColors","editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),J=(0,o.registerColor)("editorInlayHint.parameterBackground",Z,n.localize("vs/platform/theme/common/colors/editorColors","editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),ee=(0,o.registerColor)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.localize("vs/platform/theme/common/colors/editorColors","editorLightBulbForeground","The color used for the lightbulb actions icon.")),te=(0,o.registerColor)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.localize("vs/platform/theme/common/colors/editorColors","editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),re=(0,o.registerColor)("editorLightBulbAi.foreground",ee,n.localize("vs/platform/theme/common/colors/editorColors","editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),ne=(0,o.registerColor)("editor.snippetTabstopHighlightBackground",{dark:new i.Color(new i.RGBA(124,124,124,.3)),light:new i.Color(new i.RGBA(10,50,100,.2)),hcDark:new i.Color(new i.RGBA(124,124,124,.3)),hcLight:new i.Color(new i.RGBA(10,50,100,.2))},n.localize("vs/platform/theme/common/colors/editorColors","snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),ie=(0,o.registerColor)("editor.snippetTabstopHighlightBorder",null,n.localize("vs/platform/theme/common/colors/editorColors","snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),oe=(0,o.registerColor)("editor.snippetFinalTabstopHighlightBackground",null,n.localize("vs/platform/theme/common/colors/editorColors","snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),se=(0,o.registerColor)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new i.Color(new i.RGBA(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.localize("vs/platform/theme/common/colors/editorColors","snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),ae=new i.Color(new i.RGBA(155,185,85,.2)),ce=new i.Color(new i.RGBA(255,0,0,.2)),ue=(0,o.registerColor)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),le=(0,o.registerColor)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),he=(0,o.registerColor)("diffEditor.insertedLineBackground",{dark:ae,light:ae,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),de=(0,o.registerColor)("diffEditor.removedLineBackground",{dark:ce,light:ce,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ge=(0,o.registerColor)("diffEditorGutter.insertedLineBackground",null,n.localize("vs/platform/theme/common/colors/editorColors","diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),fe=(0,o.registerColor)("diffEditorGutter.removedLineBackground",null,n.localize("vs/platform/theme/common/colors/editorColors","diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),me=(0,o.registerColor)("diffEditorOverview.insertedForeground",null,n.localize("vs/platform/theme/common/colors/editorColors","diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),pe=(0,o.registerColor)("diffEditorOverview.removedForeground",null,n.localize("vs/platform/theme/common/colors/editorColors","diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),ke=(0,o.registerColor)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ce=(0,o.registerColor)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorRemovedOutline","Outline color for text that got removed.")),_e=(0,o.registerColor)("diffEditor.border",{dark:null,light:null,hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","diffEditorBorder","Border color between the two text editors.")),ve=(0,o.registerColor)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),be=(0,o.registerColor)("diffEditor.unchangedRegionBackground","sideBar.background",n.localize("vs/platform/theme/common/colors/editorColors","diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),Le=(0,o.registerColor)("diffEditor.unchangedRegionForeground","foreground",n.localize("vs/platform/theme/common/colors/editorColors","diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),Ie=(0,o.registerColor)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),Be=(0,o.registerColor)("widget.shadow",{dark:(0,o.transparent)(i.Color.black,.36),light:(0,o.transparent)(i.Color.black,.16),hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),Se=(0,o.registerColor)("widget.border",{dark:null,light:null,hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","widgetBorder","Border color of widgets such as find/replace inside the editor.")),Te=(0,o.registerColor)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),ye=(0,o.registerColor)("toolbar.hoverOutline",{dark:null,light:null,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},n.localize("vs/platform/theme/common/colors/editorColors","toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),we=(0,o.registerColor)("toolbar.activeBackground",{dark:(0,o.lighten)(Te,.1),light:(0,o.darken)(Te,.1),hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","toolbarActiveBackground","Toolbar background when holding the mouse over actions")),Ee=(0,o.registerColor)("breadcrumb.foreground",(0,o.transparent)(s.foreground,.8),n.localize("vs/platform/theme/common/colors/editorColors","breadcrumbsFocusForeground","Color of focused breadcrumb items.")),xe=(0,o.registerColor)("breadcrumb.background",c,n.localize("vs/platform/theme/common/colors/editorColors","breadcrumbsBackground","Background color of breadcrumb items.")),Fe=(0,o.registerColor)("breadcrumb.focusForeground",{light:(0,o.darken)(s.foreground,.2),dark:(0,o.lighten)(s.foreground,.1),hcDark:(0,o.lighten)(s.foreground,.1),hcLight:(0,o.lighten)(s.foreground,.1)},n.localize("vs/platform/theme/common/colors/editorColors","breadcrumbsFocusForeground","Color of focused breadcrumb items.")),De=(0,o.registerColor)("breadcrumb.activeSelectionForeground",{light:(0,o.darken)(s.foreground,.2),dark:(0,o.lighten)(s.foreground,.1),hcDark:(0,o.lighten)(s.foreground,.1),hcLight:(0,o.lighten)(s.foreground,.1)},n.localize("vs/platform/theme/common/colors/editorColors","breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),Oe=(0,o.registerColor)("breadcrumbPicker.background",f,n.localize("vs/platform/theme/common/colors/editorColors","breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),Re=i.Color.fromHex("#40C8AE").transparent(.5),Ae=i.Color.fromHex("#40A6FF").transparent(.5),Ne=i.Color.fromHex("#606060").transparent(.4),Me=(0,o.registerColor)("merge.currentHeaderBackground",{dark:Re,light:Re,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ze=(0,o.registerColor)("merge.currentContentBackground",(0,o.transparent)(Me,.4),n.localize("vs/platform/theme/common/colors/editorColors","mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Pe=(0,o.registerColor)("merge.incomingHeaderBackground",{dark:Ae,light:Ae,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),He=(0,o.registerColor)("merge.incomingContentBackground",(0,o.transparent)(Pe,.4),n.localize("vs/platform/theme/common/colors/editorColors","mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),We=(0,o.registerColor)("merge.commonHeaderBackground",{dark:Ne,light:Ne,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/editorColors","mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Ue=(0,o.registerColor)("merge.commonContentBackground",(0,o.transparent)(We,.4),n.localize("vs/platform/theme/common/colors/editorColors","mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Ve=(0,o.registerColor)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.localize("vs/platform/theme/common/colors/editorColors","mergeBorder","Border color on headers and the splitter in inline merge-conflicts.")),qe=(0,o.registerColor)("editorOverviewRuler.currentContentForeground",{dark:(0,o.transparent)(Me,1),light:(0,o.transparent)(Me,1),hcDark:Ve,hcLight:Ve},n.localize("vs/platform/theme/common/colors/editorColors","overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),Ge=(0,o.registerColor)("editorOverviewRuler.incomingContentForeground",{dark:(0,o.transparent)(Pe,1),light:(0,o.transparent)(Pe,1),hcDark:Ve,hcLight:Ve},n.localize("vs/platform/theme/common/colors/editorColors","overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),je=(0,o.registerColor)("editorOverviewRuler.commonContentForeground",{dark:(0,o.transparent)(We,1),light:(0,o.transparent)(We,1),hcDark:Ve,hcLight:Ve},n.localize("vs/platform/theme/common/colors/editorColors","overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),$e=(0,o.registerColor)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},n.localize("vs/platform/theme/common/colors/editorColors","overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ke=(0,o.registerColor)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",n.localize("vs/platform/theme/common/colors/editorColors","overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ze=(0,o.registerColor)("problemsErrorIcon.foreground",_,n.localize("vs/platform/theme/common/colors/editorColors","problemsErrorIconForeground","The color used for the problems error icon.")),Qe=(0,o.registerColor)("problemsWarningIcon.foreground",L,n.localize("vs/platform/theme/common/colors/editorColors","problemsWarningIconForeground","The color used for the problems warning icon.")),Xe=(0,o.registerColor)("problemsInfoIcon.foreground",S,n.localize("vs/platform/theme/common/colors/editorColors","problemsInfoIconForeground","The color used for the problems info icon."))},45802:function(e,t,r){"use strict";r.r(t),r.d(t,{buttonBackground:function(){return F},buttonBorder:function(){return O},buttonForeground:function(){return E},buttonHoverBackground:function(){return D},buttonSecondaryBackground:function(){return A},buttonSecondaryForeground:function(){return R},buttonSecondaryHoverBackground:function(){return N},buttonSeparator:function(){return x},checkboxBackground:function(){return q},checkboxBorder:function(){return $},checkboxForeground:function(){return j},checkboxSelectBackground:function(){return G},checkboxSelectBorder:function(){return K},inputActiveOptionBackground:function(){return g},inputActiveOptionBorder:function(){return h},inputActiveOptionForeground:function(){return f},inputActiveOptionHoverBackground:function(){return d},inputBackground:function(){return c},inputBorder:function(){return l},inputForeground:function(){return u},inputPlaceholderForeground:function(){return m},inputValidationErrorBackground:function(){return L},inputValidationErrorBorder:function(){return B},inputValidationErrorForeground:function(){return I},inputValidationInfoBackground:function(){return p},inputValidationInfoBorder:function(){return C},inputValidationInfoForeground:function(){return k},inputValidationWarningBackground:function(){return _},inputValidationWarningBorder:function(){return b},inputValidationWarningForeground:function(){return v},keybindingLabelBackground:function(){return Z},keybindingLabelBorder:function(){return X},keybindingLabelBottomBorder:function(){return Y},keybindingLabelForeground:function(){return Q},radioActiveBackground:function(){return z},radioActiveBorder:function(){return P},radioActiveForeground:function(){return M},radioInactiveBackground:function(){return W},radioInactiveBorder:function(){return U},radioInactiveForeground:function(){return H},radioInactiveHoverBackground:function(){return V},selectBackground:function(){return S},selectBorder:function(){return w},selectForeground:function(){return y},selectListBackground:function(){return T}});var n=r(34106),i=r(59746),o=r(97033),s=r(60565),a=r(89725);const c=(0,o.registerColor)("input.background",{dark:"#3C3C3C",light:i.Color.white,hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","inputBoxBackground","Input box background.")),u=(0,o.registerColor)("input.foreground",s.foreground,n.localize("vs/platform/theme/common/colors/inputColors","inputBoxForeground","Input box foreground.")),l=(0,o.registerColor)("input.border",{dark:null,light:null,hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","inputBoxBorder","Input box border.")),h=(0,o.registerColor)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","inputBoxActiveOptionBorder","Border color of activated options in input fields.")),d=(0,o.registerColor)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/inputColors","inputOption.hoverBackground","Background color of activated options in input fields.")),g=(0,o.registerColor)("inputOption.activeBackground",{dark:(0,o.transparent)(s.focusBorder,.4),light:(0,o.transparent)(s.focusBorder,.2),hcDark:i.Color.transparent,hcLight:i.Color.transparent},n.localize("vs/platform/theme/common/colors/inputColors","inputOption.activeBackground","Background hover color of options in input fields.")),f=(0,o.registerColor)("inputOption.activeForeground",{dark:i.Color.white,light:i.Color.black,hcDark:s.foreground,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","inputOption.activeForeground","Foreground color of activated options in input fields.")),m=(0,o.registerColor)("input.placeholderForeground",{light:(0,o.transparent)(s.foreground,.5),dark:(0,o.transparent)(s.foreground,.5),hcDark:(0,o.transparent)(s.foreground,.7),hcLight:(0,o.transparent)(s.foreground,.7)},n.localize("vs/platform/theme/common/colors/inputColors","inputPlaceholderForeground","Input box foreground color for placeholder text.")),p=(0,o.registerColor)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationInfoBackground","Input validation background color for information severity.")),k=(0,o.registerColor)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationInfoForeground","Input validation foreground color for information severity.")),C=(0,o.registerColor)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationInfoBorder","Input validation border color for information severity.")),_=(0,o.registerColor)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationWarningBackground","Input validation background color for warning severity.")),v=(0,o.registerColor)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationWarningForeground","Input validation foreground color for warning severity.")),b=(0,o.registerColor)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationWarningBorder","Input validation border color for warning severity.")),L=(0,o.registerColor)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationErrorBackground","Input validation background color for error severity.")),I=(0,o.registerColor)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationErrorForeground","Input validation foreground color for error severity.")),B=(0,o.registerColor)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","inputValidationErrorBorder","Input validation border color for error severity.")),S=(0,o.registerColor)("dropdown.background",{dark:"#3C3C3C",light:i.Color.white,hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","dropdownBackground","Dropdown background.")),T=(0,o.registerColor)("dropdown.listBackground",{dark:null,light:null,hcDark:i.Color.black,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","dropdownListBackground","Dropdown list background.")),y=(0,o.registerColor)("dropdown.foreground",{dark:"#F0F0F0",light:s.foreground,hcDark:i.Color.white,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","dropdownForeground","Dropdown foreground.")),w=(0,o.registerColor)("dropdown.border",{dark:S,light:"#CECECE",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","dropdownBorder","Dropdown border.")),E=(0,o.registerColor)("button.foreground",i.Color.white,n.localize("vs/platform/theme/common/colors/inputColors","buttonForeground","Button foreground color.")),x=(0,o.registerColor)("button.separator",(0,o.transparent)(E,.4),n.localize("vs/platform/theme/common/colors/inputColors","buttonSeparator","Button separator color.")),F=(0,o.registerColor)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/inputColors","buttonBackground","Button background color.")),D=(0,o.registerColor)("button.hoverBackground",{dark:(0,o.lighten)(F,.2),light:(0,o.darken)(F,.2),hcDark:F,hcLight:F},n.localize("vs/platform/theme/common/colors/inputColors","buttonHoverBackground","Button background color when hovering.")),O=(0,o.registerColor)("button.border",s.contrastBorder,n.localize("vs/platform/theme/common/colors/inputColors","buttonBorder","Button border color.")),R=(0,o.registerColor)("button.secondaryForeground",{dark:i.Color.white,light:i.Color.white,hcDark:i.Color.white,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","buttonSecondaryForeground","Secondary button foreground color.")),A=(0,o.registerColor)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/inputColors","buttonSecondaryBackground","Secondary button background color.")),N=(0,o.registerColor)("button.secondaryHoverBackground",{dark:(0,o.lighten)(A,.2),light:(0,o.darken)(A,.2),hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/inputColors","buttonSecondaryHoverBackground","Secondary button background color when hovering.")),M=(0,o.registerColor)("radio.activeForeground",f,n.localize("vs/platform/theme/common/colors/inputColors","radioActiveForeground","Foreground color of active radio option.")),z=(0,o.registerColor)("radio.activeBackground",g,n.localize("vs/platform/theme/common/colors/inputColors","radioBackground","Background color of active radio option.")),P=(0,o.registerColor)("radio.activeBorder",h,n.localize("vs/platform/theme/common/colors/inputColors","radioActiveBorder","Border color of the active radio option.")),H=(0,o.registerColor)("radio.inactiveForeground",null,n.localize("vs/platform/theme/common/colors/inputColors","radioInactiveForeground","Foreground color of inactive radio option.")),W=(0,o.registerColor)("radio.inactiveBackground",null,n.localize("vs/platform/theme/common/colors/inputColors","radioInactiveBackground","Background color of inactive radio option.")),U=(0,o.registerColor)("radio.inactiveBorder",{light:(0,o.transparent)(M,.2),dark:(0,o.transparent)(M,.2),hcDark:(0,o.transparent)(M,.4),hcLight:(0,o.transparent)(M,.2)},n.localize("vs/platform/theme/common/colors/inputColors","radioInactiveBorder","Border color of the inactive radio option.")),V=(0,o.registerColor)("radio.inactiveHoverBackground",d,n.localize("vs/platform/theme/common/colors/inputColors","radioHoverBackground","Background color of inactive active radio option when hovering.")),q=(0,o.registerColor)("checkbox.background",S,n.localize("vs/platform/theme/common/colors/inputColors","checkbox.background","Background color of checkbox widget.")),G=(0,o.registerColor)("checkbox.selectBackground",a.editorWidgetBackground,n.localize("vs/platform/theme/common/colors/inputColors","checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),j=(0,o.registerColor)("checkbox.foreground",y,n.localize("vs/platform/theme/common/colors/inputColors","checkbox.foreground","Foreground color of checkbox widget.")),$=(0,o.registerColor)("checkbox.border",w,n.localize("vs/platform/theme/common/colors/inputColors","checkbox.border","Border color of checkbox widget.")),K=(0,o.registerColor)("checkbox.selectBorder",s.iconForeground,n.localize("vs/platform/theme/common/colors/inputColors","checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),Z=(0,o.registerColor)("keybindingLabel.background",{dark:new i.Color(new i.RGBA(128,128,128,.17)),light:new i.Color(new i.RGBA(221,221,221,.4)),hcDark:i.Color.transparent,hcLight:i.Color.transparent},n.localize("vs/platform/theme/common/colors/inputColors","keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),Q=(0,o.registerColor)("keybindingLabel.foreground",{dark:i.Color.fromHex("#CCCCCC"),light:i.Color.fromHex("#555555"),hcDark:i.Color.white,hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),X=(0,o.registerColor)("keybindingLabel.border",{dark:new i.Color(new i.RGBA(51,51,51,.6)),light:new i.Color(new i.RGBA(204,204,204,.4)),hcDark:new i.Color(new i.RGBA(111,195,223)),hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/inputColors","keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Y=(0,o.registerColor)("keybindingLabel.bottomBorder",{dark:new i.Color(new i.RGBA(68,68,68,.6)),light:new i.Color(new i.RGBA(187,187,187,.4)),hcDark:new i.Color(new i.RGBA(111,195,223)),hcLight:s.foreground},n.localize("vs/platform/theme/common/colors/inputColors","keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut."))},61428:function(e,t,r){"use strict";r.r(t),r.d(t,{editorActionListBackground:function(){return H},editorActionListFocusBackground:function(){return V},editorActionListFocusForeground:function(){return U},editorActionListForeground:function(){return W},listActiveSelectionBackground:function(){return d},listActiveSelectionForeground:function(){return g},listActiveSelectionIconForeground:function(){return f},listDeemphasizedForeground:function(){return A},listDropBetweenBackground:function(){return I},listDropOverBackground:function(){return L},listErrorForeground:function(){return y},listFilterMatchHighlight:function(){return O},listFilterMatchHighlightBorder:function(){return R},listFilterWidgetBackground:function(){return E},listFilterWidgetNoMatchesOutline:function(){return F},listFilterWidgetOutline:function(){return x},listFilterWidgetShadow:function(){return D},listFocusAndSelectionOutline:function(){return h},listFocusBackground:function(){return c},listFocusForeground:function(){return u},listFocusHighlightForeground:function(){return S},listFocusOutline:function(){return l},listHighlightForeground:function(){return B},listHoverBackground:function(){return v},listHoverForeground:function(){return b},listInactiveFocusBackground:function(){return C},listInactiveFocusOutline:function(){return _},listInactiveSelectionBackground:function(){return m},listInactiveSelectionForeground:function(){return p},listInactiveSelectionIconForeground:function(){return k},listInvalidItemForeground:function(){return T},listWarningForeground:function(){return w},tableColumnsBorder:function(){return z},tableOddRowsBackgroundColor:function(){return P},treeInactiveIndentGuidesStroke:function(){return M},treeIndentGuidesStroke:function(){return N}});var n=r(34106),i=r(59746),o=r(97033),s=r(60565),a=r(89725);const c=(0,o.registerColor)("list.focusBackground",null,n.localize("vs/platform/theme/common/colors/listColors","listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u=(0,o.registerColor)("list.focusForeground",null,n.localize("vs/platform/theme/common/colors/listColors","listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),l=(0,o.registerColor)("list.focusOutline",{dark:s.focusBorder,light:s.focusBorder,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},n.localize("vs/platform/theme/common/colors/listColors","listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),h=(0,o.registerColor)("list.focusAndSelectionOutline",null,n.localize("vs/platform/theme/common/colors/listColors","listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d=(0,o.registerColor)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:i.Color.fromHex("#0F4A85").transparent(.1)},n.localize("vs/platform/theme/common/colors/listColors","listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),g=(0,o.registerColor)("list.activeSelectionForeground",{dark:i.Color.white,light:i.Color.white,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),f=(0,o.registerColor)("list.activeSelectionIconForeground",null,n.localize("vs/platform/theme/common/colors/listColors","listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),m=(0,o.registerColor)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:i.Color.fromHex("#0F4A85").transparent(.1)},n.localize("vs/platform/theme/common/colors/listColors","listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),p=(0,o.registerColor)("list.inactiveSelectionForeground",null,n.localize("vs/platform/theme/common/colors/listColors","listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),k=(0,o.registerColor)("list.inactiveSelectionIconForeground",null,n.localize("vs/platform/theme/common/colors/listColors","listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),C=(0,o.registerColor)("list.inactiveFocusBackground",null,n.localize("vs/platform/theme/common/colors/listColors","listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_=(0,o.registerColor)("list.inactiveFocusOutline",null,n.localize("vs/platform/theme/common/colors/listColors","listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),v=(0,o.registerColor)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:i.Color.white.transparent(.1),hcLight:i.Color.fromHex("#0F4A85").transparent(.1)},n.localize("vs/platform/theme/common/colors/listColors","listHoverBackground","List/Tree background when hovering over items using the mouse.")),b=(0,o.registerColor)("list.hoverForeground",null,n.localize("vs/platform/theme/common/colors/listColors","listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),L=(0,o.registerColor)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),I=(0,o.registerColor)("list.dropBetweenBackground",{dark:s.iconForeground,light:s.iconForeground,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),B=(0,o.registerColor)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:s.focusBorder,hcLight:s.focusBorder},n.localize("vs/platform/theme/common/colors/listColors","highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),S=(0,o.registerColor)("list.focusHighlightForeground",{dark:B,light:(0,o.ifDefinedThenElse)(d,B,"#BBE7FF"),hcDark:B,hcLight:B},n.localize("vs/platform/theme/common/colors/listColors","listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),T=(0,o.registerColor)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.localize("vs/platform/theme/common/colors/listColors","invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),y=(0,o.registerColor)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","listErrorForeground","Foreground color of list items containing errors.")),w=(0,o.registerColor)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","listWarningForeground","Foreground color of list items containing warnings.")),E=(0,o.registerColor)("listFilterWidget.background",{light:(0,o.darken)(a.editorWidgetBackground,0),dark:(0,o.lighten)(a.editorWidgetBackground,0),hcDark:a.editorWidgetBackground,hcLight:a.editorWidgetBackground},n.localize("vs/platform/theme/common/colors/listColors","listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),x=(0,o.registerColor)("listFilterWidget.outline",{dark:i.Color.transparent,light:i.Color.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.localize("vs/platform/theme/common/colors/listColors","listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),F=(0,o.registerColor)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/listColors","listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),D=(0,o.registerColor)("listFilterWidget.shadow",a.widgetShadow,n.localize("vs/platform/theme/common/colors/listColors","listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),O=(0,o.registerColor)("list.filterMatchBackground",{dark:a.editorFindMatchHighlight,light:a.editorFindMatchHighlight,hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","listFilterMatchHighlight","Background color of the filtered match.")),R=(0,o.registerColor)("list.filterMatchBorder",{dark:a.editorFindMatchHighlightBorder,light:a.editorFindMatchHighlightBorder,hcDark:s.contrastBorder,hcLight:s.activeContrastBorder},n.localize("vs/platform/theme/common/colors/listColors","listFilterMatchHighlightBorder","Border color of the filtered match.")),A=(0,o.registerColor)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.localize("vs/platform/theme/common/colors/listColors","listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),N=(0,o.registerColor)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.localize("vs/platform/theme/common/colors/listColors","treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),M=(0,o.registerColor)("tree.inactiveIndentGuidesStroke",(0,o.transparent)(N,.4),n.localize("vs/platform/theme/common/colors/listColors","treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),z=(0,o.registerColor)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","tableColumnsBorder","Table border color between columns.")),P=(0,o.registerColor)("tree.tableOddRowsBackground",{dark:(0,o.transparent)(s.foreground,.04),light:(0,o.transparent)(s.foreground,.04),hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/listColors","tableOddRowsBackgroundColor","Background color for odd table rows.")),H=(0,o.registerColor)("editorActionList.background",a.editorWidgetBackground,n.localize("vs/platform/theme/common/colors/listColors","editorActionListBackground","Action List background color.")),W=(0,o.registerColor)("editorActionList.foreground",a.editorWidgetForeground,n.localize("vs/platform/theme/common/colors/listColors","editorActionListForeground","Action List foreground color.")),U=(0,o.registerColor)("editorActionList.focusForeground",g,n.localize("vs/platform/theme/common/colors/listColors","editorActionListFocusForeground","Action List foreground color for the focused item.")),V=(0,o.registerColor)("editorActionList.focusBackground",d,n.localize("vs/platform/theme/common/colors/listColors","editorActionListFocusBackground","Action List background color for the focused item."))},34347:function(e,t,r){"use strict";r.r(t),r.d(t,{menuBackground:function(){return l},menuBorder:function(){return c},menuForeground:function(){return u},menuSelectionBackground:function(){return d},menuSelectionBorder:function(){return g},menuSelectionForeground:function(){return h},menuSeparatorBackground:function(){return f}});var n=r(34106),i=r(97033),o=r(60565),s=r(45802),a=r(61428);const c=(0,i.registerColor)("menu.border",{dark:null,light:null,hcDark:o.contrastBorder,hcLight:o.contrastBorder},n.localize("vs/platform/theme/common/colors/menuColors","menuBorder","Border color of menus.")),u=(0,i.registerColor)("menu.foreground",s.selectForeground,n.localize("vs/platform/theme/common/colors/menuColors","menuForeground","Foreground color of menu items.")),l=(0,i.registerColor)("menu.background",s.selectBackground,n.localize("vs/platform/theme/common/colors/menuColors","menuBackground","Background color of menu items.")),h=(0,i.registerColor)("menu.selectionForeground",a.listActiveSelectionForeground,n.localize("vs/platform/theme/common/colors/menuColors","menuSelectionForeground","Foreground color of the selected menu item in menus.")),d=(0,i.registerColor)("menu.selectionBackground",a.listActiveSelectionBackground,n.localize("vs/platform/theme/common/colors/menuColors","menuSelectionBackground","Background color of the selected menu item in menus.")),g=(0,i.registerColor)("menu.selectionBorder",{dark:null,light:null,hcDark:o.activeContrastBorder,hcLight:o.activeContrastBorder},n.localize("vs/platform/theme/common/colors/menuColors","menuSelectionBorder","Border color of the selected menu item in menus.")),f=(0,i.registerColor)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:o.contrastBorder,hcLight:o.contrastBorder},n.localize("vs/platform/theme/common/colors/menuColors","menuSeparatorBackground","Color of a separator menu item in menus."))},22305:function(e,t,r){"use strict";r.r(t),r.d(t,{minimapBackground:function(){return f},minimapError:function(){return g},minimapFindMatch:function(){return c},minimapForegroundOpacity:function(){return m},minimapInfo:function(){return h},minimapSelection:function(){return l},minimapSelectionOccurrenceHighlight:function(){return u},minimapSliderActiveBackground:function(){return C},minimapSliderBackground:function(){return p},minimapSliderHoverBackground:function(){return k},minimapWarning:function(){return d}});var n=r(34106),i=r(59746),o=r(97033),s=r(89725),a=r(57152);const c=(0,o.registerColor)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/minimapColors","minimapFindMatchHighlight","Minimap marker color for find matches."),!0),u=(0,o.registerColor)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/minimapColors","minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),l=(0,o.registerColor)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/minimapColors","minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),h=(0,o.registerColor)("minimap.infoHighlight",{dark:s.editorInfoForeground,light:s.editorInfoForeground,hcDark:s.editorInfoBorder,hcLight:s.editorInfoBorder},n.localize("vs/platform/theme/common/colors/minimapColors","minimapInfo","Minimap marker color for infos.")),d=(0,o.registerColor)("minimap.warningHighlight",{dark:s.editorWarningForeground,light:s.editorWarningForeground,hcDark:s.editorWarningBorder,hcLight:s.editorWarningBorder},n.localize("vs/platform/theme/common/colors/minimapColors","overviewRuleWarning","Minimap marker color for warnings.")),g=(0,o.registerColor)("minimap.errorHighlight",{dark:new i.Color(new i.RGBA(255,18,18,.7)),light:new i.Color(new i.RGBA(255,18,18,.7)),hcDark:new i.Color(new i.RGBA(255,50,50,1)),hcLight:"#B5200D"},n.localize("vs/platform/theme/common/colors/minimapColors","minimapError","Minimap marker color for errors.")),f=(0,o.registerColor)("minimap.background",null,n.localize("vs/platform/theme/common/colors/minimapColors","minimapBackground","Minimap background color.")),m=(0,o.registerColor)("minimap.foregroundOpacity",i.Color.fromHex("#000f"),n.localize("vs/platform/theme/common/colors/minimapColors","minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),p=(0,o.registerColor)("minimapSlider.background",(0,o.transparent)(a.scrollbarSliderBackground,.5),n.localize("vs/platform/theme/common/colors/minimapColors","minimapSliderBackground","Minimap slider background color.")),k=(0,o.registerColor)("minimapSlider.hoverBackground",(0,o.transparent)(a.scrollbarSliderHoverBackground,.5),n.localize("vs/platform/theme/common/colors/minimapColors","minimapSliderHoverBackground","Minimap slider background color when hovering.")),C=(0,o.registerColor)("minimapSlider.activeBackground",(0,o.transparent)(a.scrollbarSliderActiveBackground,.5),n.localize("vs/platform/theme/common/colors/minimapColors","minimapSliderActiveBackground","Minimap slider background color when clicked on."))},57152:function(e,t,r){"use strict";r.r(t),r.d(t,{badgeBackground:function(){return c},badgeForeground:function(){return u},progressBarBackground:function(){return f},sashHoverBorder:function(){return a},scrollbarShadow:function(){return l},scrollbarSliderActiveBackground:function(){return g},scrollbarSliderBackground:function(){return h},scrollbarSliderHoverBackground:function(){return d}});var n=r(34106),i=r(59746),o=r(97033),s=r(60565);const a=(0,o.registerColor)("sash.hoverBorder",s.focusBorder,n.localize("vs/platform/theme/common/colors/miscColors","sashActiveBorder","Border color of active sashes.")),c=(0,o.registerColor)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:i.Color.black,hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/miscColors","badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),u=(0,o.registerColor)("badge.foreground",{dark:i.Color.white,light:"#333",hcDark:i.Color.white,hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/miscColors","badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),l=(0,o.registerColor)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/miscColors","scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),h=(0,o.registerColor)("scrollbarSlider.background",{dark:i.Color.fromHex("#797979").transparent(.4),light:i.Color.fromHex("#646464").transparent(.4),hcDark:(0,o.transparent)(s.contrastBorder,.6),hcLight:(0,o.transparent)(s.contrastBorder,.4)},n.localize("vs/platform/theme/common/colors/miscColors","scrollbarSliderBackground","Scrollbar slider background color.")),d=(0,o.registerColor)("scrollbarSlider.hoverBackground",{dark:i.Color.fromHex("#646464").transparent(.7),light:i.Color.fromHex("#646464").transparent(.7),hcDark:(0,o.transparent)(s.contrastBorder,.8),hcLight:(0,o.transparent)(s.contrastBorder,.8)},n.localize("vs/platform/theme/common/colors/miscColors","scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),g=(0,o.registerColor)("scrollbarSlider.activeBackground",{dark:i.Color.fromHex("#BFBFBF").transparent(.4),light:i.Color.fromHex("#000000").transparent(.6),hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/miscColors","scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),f=(0,o.registerColor)("progressBar.background",{dark:i.Color.fromHex("#0E70C0"),light:i.Color.fromHex("#0E70C0"),hcDark:s.contrastBorder,hcLight:s.contrastBorder},n.localize("vs/platform/theme/common/colors/miscColors","progressBarBackground","Background color of the progress bar that can show for long running operations."))},81776:function(e,t,r){"use strict";r.r(t),r.d(t,{_deprecatedQuickInputListFocusBackground:function(){return g},pickerGroupBorder:function(){return d},pickerGroupForeground:function(){return h},quickInputBackground:function(){return c},quickInputForeground:function(){return u},quickInputListFocusBackground:function(){return p},quickInputListFocusForeground:function(){return f},quickInputListFocusIconForeground:function(){return m},quickInputTitleBackground:function(){return l}});var n=r(34106),i=r(59746),o=r(97033),s=r(89725),a=r(61428);const c=(0,o.registerColor)("quickInput.background",s.editorWidgetBackground,n.localize("vs/platform/theme/common/colors/quickpickColors","pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u=(0,o.registerColor)("quickInput.foreground",s.editorWidgetForeground,n.localize("vs/platform/theme/common/colors/quickpickColors","pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),l=(0,o.registerColor)("quickInputTitle.background",{dark:new i.Color(new i.RGBA(255,255,255,.105)),light:new i.Color(new i.RGBA(0,0,0,.06)),hcDark:"#000000",hcLight:i.Color.white},n.localize("vs/platform/theme/common/colors/quickpickColors","pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),h=(0,o.registerColor)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:i.Color.white,hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/quickpickColors","pickerGroupForeground","Quick picker color for grouping labels.")),d=(0,o.registerColor)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:i.Color.white,hcLight:"#0F4A85"},n.localize("vs/platform/theme/common/colors/quickpickColors","pickerGroupBorder","Quick picker color for grouping borders.")),g=(0,o.registerColor)("quickInput.list.focusBackground",null,"",void 0,n.localize("vs/platform/theme/common/colors/quickpickColors","quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),f=(0,o.registerColor)("quickInputList.focusForeground",a.listActiveSelectionForeground,n.localize("vs/platform/theme/common/colors/quickpickColors","quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),m=(0,o.registerColor)("quickInputList.focusIconForeground",a.listActiveSelectionIconForeground,n.localize("vs/platform/theme/common/colors/quickpickColors","quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),p=(0,o.registerColor)("quickInputList.focusBackground",{dark:(0,o.oneOf)(g,a.listActiveSelectionBackground),light:(0,o.oneOf)(g,a.listActiveSelectionBackground),hcDark:null,hcLight:null},n.localize("vs/platform/theme/common/colors/quickpickColors","quickInput.listFocusBackground","Quick picker background color for the focused item."))},94868:function(e,t,r){"use strict";r.r(t),r.d(t,{searchEditorFindMatch:function(){return c},searchEditorFindMatchBorder:function(){return u},searchResultsInfoForeground:function(){return a}});var n=r(34106),i=r(97033),o=r(60565),s=r(89725);const a=(0,i.registerColor)("search.resultsInfoForeground",{light:o.foreground,dark:(0,i.transparent)(o.foreground,.65),hcDark:o.foreground,hcLight:o.foreground},n.localize("vs/platform/theme/common/colors/searchColors","search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),c=(0,i.registerColor)("searchEditor.findMatchBackground",{light:(0,i.transparent)(s.editorFindMatchHighlight,.66),dark:(0,i.transparent)(s.editorFindMatchHighlight,.66),hcDark:s.editorFindMatchHighlight,hcLight:s.editorFindMatchHighlight},n.localize("vs/platform/theme/common/colors/searchColors","searchEditor.queryMatch","Color of the Search Editor query matches.")),u=(0,i.registerColor)("searchEditor.findMatchBorder",{light:(0,i.transparent)(s.editorFindMatchHighlightBorder,.66),dark:(0,i.transparent)(s.editorFindMatchHighlightBorder,.66),hcDark:s.editorFindMatchHighlightBorder,hcLight:s.editorFindMatchHighlightBorder},n.localize("vs/platform/theme/common/colors/searchColors","searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},63040:function(e,t,r){"use strict";var n;function i(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function o(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}r.r(t),r.d(t,{ColorScheme:function(){return n},isDark:function(){return o},isHighContrast:function(){return i}}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(n||(n={}))},1129:function(e,t,r){"use strict";r.r(t),r.d(t,{Extensions:function(){return h},IThemeService:function(){return c},Themable:function(){return f},getThemeTypeSelector:function(){return l},registerThemingParticipant:function(){return g},themeColorFromId:function(){return u}});var n=r(1077),i=r(22845),o=r(8936),s=r(93592),a=r(63040);const c=(0,o.createDecorator)("themeService");function u(e){return{id:e}}function l(e){switch(e){case a.ColorScheme.DARK:return"vs-dark";case a.ColorScheme.HIGH_CONTRAST_DARK:return"hc-black";case a.ColorScheme.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const h={ThemingContribution:"base.contributions.theming"};const d=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Emitter}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,i.toDisposable)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return d.onColorThemeChange(e)}s.Registry.add(h.ThemingContribution,d);class f extends i.Disposable{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},79752:function(e,t,r){"use strict";r.r(t),r.d(t,{IUndoRedoService:function(){return n},ResourceEditStackSnapshot:function(){return i},UndoRedoGroup:function(){return o},UndoRedoSource:function(){return s}});const n=(0,r(8936).createDecorator)("undoRedoService");class i{constructor(e,t){this.resource=e,this.elements=t}}class o{static{this._ID=0}constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new o}}class s{static{this._ID=0}constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new s}}}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy