code-server
Version:
Run VS Code on a remote server.
8 lines (7 loc) • 267 kB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/(function(){var Z=["require","exports","vs/base/common/platform","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/path","vs/base/common/uri","vs/base/common/async","vs/base/common/errors","vs/base/common/types","vs/base/common/strings","vs/platform/log/common/log","vs/base/common/decorators","vs/base/common/cancellation","vs/base/node/pfs","child_process","vs/platform/terminal/common/terminal","vs/base/common/arrays","vs/base/common/process","vs/base/common/buffer","vs/base/common/extpath","vs/base/common/objects","vs/base/common/network","os","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/base/common/functional","vs/base/common/resources","vs/base/parts/ipc/common/ipc","vs/base/node/processes","vs/platform/instantiation/common/instantiation","vs/platform/terminal/node/childProcessMonitor","vs/platform/terminal/node/terminalEnvironment","vs/base/common/iterator","vs/base/common/linkedList","vs/base/common/processes","vs/base/common/stopwatch","vs/base/common/stream","vs/base/common/map","vs/base/common/normalization","vs/base/common/console","vs/base/common/marshalling","vs/base/common/uuid","vs/base/node/decoder","vs/base/node/powershell","vs/base/node/ps","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/node/processes","vs/base/node/shell","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/platform/terminal/node/ptyService","vs/nls!vs/platform/terminal/node/terminalProcess","vs/platform/log/common/logIpc","vs/platform/terminal/common/requestStore","vs/platform/terminal/common/terminalDataBuffering","vs/platform/terminal/common/terminalEnvironment","vs/platform/terminal/node/heartbeatService","vs/platform/terminal/node/windowsShellHelper","vs/platform/terminal/node/terminalProcess","vs/platform/terminal/node/ptyService","string_decoder","fs","util","xterm-headless","vs/platform/terminal/node/ptyHostMain"],ee=function(G){for(var e=[],C=0,k=G.length;C<k;C++)e[C]=Z[G[C]];return e};define(Z[12],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function C(O){return(T,g,w)=>{let P=null,D=null;if(typeof w.value=="function"?(P="value",D=w.value):typeof w.get=="function"&&(P="get",D=w.get),!D)throw new Error("not supported");w[P]=O(D,g)}}e.createDecorator=C;function k(O,T,g){let w=null,P=null;if(typeof g.value=="function"?(w="value",P=g.value,P.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof g.get=="function"&&(w="get",P=g.get),!P)throw new Error("not supported");const D=`$memoize$${T}`;g[w]=function(...R){return this.hasOwnProperty(D)||Object.defineProperty(this,D,{configurable:!1,enumerable:!1,writable:!1,value:P.apply(this,R)}),this[D]}}e.memoize=k;function p(O,T,g){return C((w,P)=>{const D=`$debounce$${P}`,R=`$debounce$result$${P}`;return function(...S){this[R]||(this[R]=g?g():void 0),clearTimeout(this[D]),T&&(this[R]=T(this[R],...S),S=[this[R]]),this[D]=setTimeout(()=>{w.apply(this,S),this[R]=g?g():void 0},O)}})}e.debounce=p;function A(O,T,g){return C((w,P)=>{const D=`$throttle$timer$${P}`,R=`$throttle$result$${P}`,S=`$throttle$lastRun$${P}`,m=`$throttle$pending$${P}`;return function(...E){if(this[R]||(this[R]=g?g():void 0),(this[S]===null||this[S]===void 0)&&(this[S]=-Number.MAX_VALUE),T&&(this[R]=T(this[R],...E)),this[m])return;const f=this[S]+O;f<=Date.now()?(this[S]=Date.now(),w.apply(this,[this[R]]),this[R]=g?g():void 0):(this[m]=!0,this[D]=setTimeout(()=>{this[m]=!1,this[S]=Date.now(),w.apply(this,[this[R]]),this[R]=g?g():void 0},f-Date.now()))}})}e.throttle=A}),define(Z[8],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isPromiseCanceledError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class C{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(h){setTimeout(()=>{throw h.stack?new Error(h.message+`
`+h.stack):h},0)}}addListener(h){return this.listeners.push(h),()=>{this._removeListener(h)}}emit(h){this.listeners.forEach(c=>{c(h)})}_removeListener(h){this.listeners.splice(this.listeners.indexOf(h),1)}setUnexpectedErrorHandler(h){this.unexpectedErrorHandler=h}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(h){this.unexpectedErrorHandler(h),this.emit(h)}onUnexpectedExternalError(h){this.unexpectedErrorHandler(h)}}e.ErrorHandler=C,e.errorHandler=new C;function k(r){e.errorHandler.setUnexpectedErrorHandler(r)}e.setUnexpectedErrorHandler=k;function p(r){g(r)||e.errorHandler.onUnexpectedError(r)}e.onUnexpectedError=p;function A(r){g(r)||e.errorHandler.onUnexpectedExternalError(r)}e.onUnexpectedExternalError=A;function O(r){if(r instanceof Error){let{name:h,message:c}=r;const i=r.stacktrace||r.stack;return{$isError:!0,name:h,message:c,stack:i}}return r}e.transformErrorForSerialization=O;const T="Canceled";function g(r){return r instanceof Error&&r.name===T&&r.message===T}e.isPromiseCanceledError=g;class w extends Error{constructor(){super(T);this.name=this.message}}e.CancellationError=w;function P(){const r=new Error(T);return r.name=r.message,r}e.canceled=P;function D(r){return r?new Error(`Illegal argument: ${r}`):new Error("Illegal argument")}e.illegalArgument=D;function R(r){return r?new Error(`Illegal state: ${r}`):new Error("Illegal state")}e.illegalState=R;function S(r){return r?new Error(`readonly property '${r} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=S;function m(r){const h=new Error(`${r} has been disposed`);return h.name="DISPOSED",h}e.disposed=m;function E(r){return r?r.message?r.message:r.stack?r.stack.split(`
`)[0]:String(r):"Error"}e.getErrorMessage=E;class f extends Error{constructor(h){super("NotImplemented");h&&(this.message=h)}}e.NotImplementedError=f;class M extends Error{constructor(h){super("NotSupported");h&&(this.message=h)}}e.NotSupportedError=M;class q extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=q;function l(r){const h=r;return h instanceof Error&&Array.isArray(h.actions)}e.isErrorWithActions=l;function s(r,h=Object.create(null)){const c=new Error(r);return h.actions&&(c.actions=h.actions),c}e.createErrorWithActions=s}),define(Z[17],ee([0,1,8]),function(G,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayQueue=e.maxIndex=e.minIndex=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.firstOrDefault=e.lastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch=e.equals=e.tail2=e.tail=void 0;function k(d,u=0){return d[d.length-(1+u)]}e.tail=k;function p(d){if(d.length===0)throw new Error("Invalid tail call");return[d.slice(0,d.length-1),d[d.length-1]]}e.tail2=p;function A(d,u,v=(I,F)=>I===F){if(d===u)return!0;if(!d||!u||d.length!==u.length)return!1;for(let I=0,F=d.length;I<F;I++)if(!v(d[I],u[I]))return!1;return!0}e.equals=A;function O(d,u,v){let I=0,F=d.length-1;for(;I<=F;){const V=(I+F)/2|0,K=v(d[V],u);if(K<0)I=V+1;else if(K>0)F=V-1;else return V}return-(I+1)}e.binarySearch=O;function T(d,u){let v=0,I=d.length;if(I===0)return 0;for(;v<I;){const F=Math.floor((v+I)/2);u(d[F])?I=F:v=F+1}return v}e.findFirstInSorted=T;function g(d,u,v){if(d=d|0,d>=u.length)throw new TypeError("invalid index");let I=u[Math.floor(u.length*Math.random())],F=[],V=[],K=[];for(let te of u){const ne=v(te,I);ne<0?F.push(te):ne>0?V.push(te):K.push(te)}return d<F.length?g(d,F,v):d<F.length+K.length?K[0]:g(d-(F.length+K.length),V,v)}e.quickSelect=g;function w(d,u){const v=[];let I;for(const F of d.slice(0).sort(u))!I||u(I[0],F)!==0?(I=[F],v.push(I)):I.push(F);return v}e.groupBy=w;function P(d,u,v){const I=[];function F(te,ne,se){if(ne===0&&se.length===0)return;const le=I[I.length-1];le&&le.start+le.deleteCount===te?(le.deleteCount+=ne,le.toInsert.push(...se)):I.push({start:te,deleteCount:ne,toInsert:se})}let V=0,K=0;for(;;){if(V===d.length){F(V,0,u.slice(K));break}if(K===u.length){F(V,d.length-V,[]);break}const te=d[V],ne=u[K],se=v(te,ne);se===0?(V+=1,K+=1):se<0?(F(V,1,[]),V+=1):se>0&&(F(V,0,[ne]),K+=1)}return I}e.sortedDiff=P;function D(d,u,v){const I=P(d,u,v),F=[],V=[];for(const K of I)F.push(...d.slice(K.start,K.start+K.deleteCount)),V.push(...K.toInsert);return{removed:F,added:V}}e.delta=D;function R(d,u,v){if(v===0)return[];const I=d.slice(0,v).sort(u);return m(d,u,I,v,d.length),I}e.top=R;function S(d,u,v,I,F){return v===0?Promise.resolve([]):new Promise((V,K)=>{(async()=>{const te=d.length,ne=d.slice(0,v).sort(u);for(let se=v,le=Math.min(v+I,te);se<te;se=le,le=Math.min(le+I,te)){if(se>v&&await new Promise(de=>setTimeout(de)),F&&F.isCancellationRequested)throw(0,C.canceled)();m(d,u,ne,se,le)}return ne})().then(V,K)})}e.topAsync=S;function m(d,u,v,I,F){for(const V=v.length;I<F;I++){const K=d[I];if(u(K,v[V-1])<0){v.pop();const te=T(v,ne=>u(K,ne)<0);v.splice(te,0,K)}}}function E(d){return d.filter(u=>!!u)}e.coalesce=E;function f(d){let u=0;for(let v=0;v<d.length;v++)d[v]&&(d[u]=d[v],u+=1);d.length=u}e.coalesceInPlace=f;function M(d,u,v){d.splice(v,0,d.splice(u,1)[0])}e.move=M;function q(d){return!Array.isArray(d)||d.length===0}e.isFalsyOrEmpty=q;function l(d){return Array.isArray(d)&&d.length>0}e.isNonEmptyArray=l;function s(d,u=v=>v){const v=new Set;return d.filter(I=>{const F=u(I);return v.has(F)?!1:(v.add(F),!0)})}e.distinct=s;function r(d){const u=Object.create(null);return v=>{const I=d(v);return u[I]?!1:(u[I]=!0,!0)}}e.uniqueFilter=r;function h(d,u){const v=c(d,u);if(v!==-1)return d[v]}e.findLast=h;function c(d,u){for(let v=d.length-1;v>=0;v--){const I=d[v];if(u(I))return v}return-1}e.lastIndex=c;function i(d,u){return d.length>0?d[0]:u}e.firstOrDefault=i;function t(d,u,v=(I,F)=>I===F){let I=0;for(let F=0,V=Math.min(d.length,u.length);F<V&&v(d[F],u[F]);F++)I++;return I}e.commonPrefixLength=t;function n(d){return[].concat(...d)}e.flatten=n;function o(d,u){let v=typeof u=="number"?d:0;typeof u=="number"?v=d:(v=0,u=d);const I=[];if(v<=u)for(let F=v;F<u;F++)I.push(F);else for(let F=v;F>u;F--)I.push(F);return I}e.range=o;function a(d,u,v){return d.reduce((I,F)=>(I[u(F)]=v?v(F):F,I),Object.create(null))}e.index=a;function y(d,u){return d.push(u),()=>L(d,u)}e.insert=y;function L(d,u){const v=d.indexOf(u);if(v>-1)return d.splice(v,1),u}e.remove=L;function W(d,u,v){const I=d.slice(0,u),F=d.slice(u);return I.concat(v,F)}e.arrayInsert=W;function Y(d,u){let v;if(typeof u=="number"){let I=u;v=()=>{const F=Math.sin(I++)*179426549;return F-Math.floor(F)}}else v=Math.random;for(let I=d.length-1;I>0;I-=1){const F=Math.floor(v()*(I+1)),V=d[I];d[I]=d[F],d[F]=V}}e.shuffle=Y;function X(d,u){const v=d.indexOf(u);v>-1&&(d.splice(v,1),d.unshift(u))}e.pushToStart=X;function ie(d,u){const v=d.indexOf(u);v>-1&&(d.splice(v,1),d.push(u))}e.pushToEnd=ie;function re(d,u){return Array.isArray(d)?d.map(u):u(d)}e.mapArrayOrNot=re;function oe(d){return Array.isArray(d)?d:[d]}e.asArray=oe;function he(d){return d[Math.floor(Math.random()*d.length)]}e.getRandomElement=he;function B(d,u){for(const v of d){const I=u(v);if(I!==void 0)return I}}e.mapFind=B;function z(d,u,v){const I=Q(d,u),F=d.length,V=v.length;d.length=F+V;for(let K=F-1;K>=I;K--)d[K+V]=d[K];for(let K=0;K<V;K++)d[K+I]=v[K]}e.insertInto=z;function H(d,u,v,I){const F=Q(d,u),V=d.splice(F,v);return z(d,F,I),V}e.splice=H;function Q(d,u){return u<0?Math.max(u+d.length,0):Math.min(u,d.length)}function N(d,u){let v=Number.MAX_SAFE_INTEGER,I=0;return d.forEach((F,V)=>{const K=u(F);K<v&&(v=K,I=V)}),I}e.minIndex=N;function b(d,u){let v=Number.MIN_SAFE_INTEGER,I=0;return d.forEach((F,V)=>{const K=u(F);K>v&&(v=K,I=V)}),I}e.maxIndex=b;class ${constructor(u){this.items=u,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(u){let v=this.firstIdx;for(;v<this.items.length&&u(this.items[v]);)v++;const I=v===this.firstIdx?null:this.items.slice(this.firstIdx,v);return this.firstIdx=v,I}takeFromEndWhile(u){let v=this.lastIdx;for(;v>=0&&u(this.items[v]);)v--;const I=v===this.lastIdx?null:this.items.slice(v+1,this.lastIdx+1);return this.lastIdx=v,I}peek(){return this.items[this.firstIdx]}dequeue(){const u=this.items[this.firstIdx];return this.firstIdx++,u}takeCount(u){const v=this.items.slice(this.firstIdx,this.firstIdx+u);return this.firstIdx+=u,v}}e.ArrayQueue=$}),define(Z[26],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function C(k){const p=this;let A=!1,O;return function(){return A||(A=!0,O=k.apply(p,arguments)),O}}e.once=C}),define(Z[33],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var C;(function(k){function p(r){return r&&typeof r=="object"&&typeof r[Symbol.iterator]=="function"}k.is=p;const A=Object.freeze([]);function O(){return A}k.empty=O;function*T(r){yield r}k.single=T;function g(r){return r||A}k.from=g;function w(r){return!r||r[Symbol.iterator]().next().done===!0}k.isEmpty=w;function P(r){return r[Symbol.iterator]().next().value}k.first=P;function D(r,h){for(const c of r)if(h(c))return!0;return!1}k.some=D;function R(r,h){for(const c of r)if(h(c))return c}k.find=R;function*S(r,h){for(const c of r)h(c)&&(yield c)}k.filter=S;function*m(r,h){let c=0;for(const i of r)yield h(i,c++)}k.map=m;function*E(...r){for(const h of r)for(const c of h)yield c}k.concat=E;function*f(r){for(const h of r)for(const c of h)yield c}k.concatNested=f;function M(r,h,c){let i=c;for(const t of r)i=h(i,t);return i}k.reduce=M;function*q(r,h,c=r.length){for(h<0&&(h+=r.length),c<0?c+=r.length:c>r.length&&(c=r.length);h<c;h++)yield r[h]}k.slice=q;function l(r,h=Number.POSITIVE_INFINITY){const c=[];if(h===0)return[c,r];const i=r[Symbol.iterator]();for(let t=0;t<h;t++){const n=i.next();if(n.done)return[c,k.empty()];c.push(n.value)}return[c,{[Symbol.iterator](){return i}}]}k.consume=l;function s(r,h,c=(i,t)=>i===t){const i=r[Symbol.iterator](),t=h[Symbol.iterator]();for(;;){const n=i.next(),o=t.next();if(n.done!==o.done)return!1;if(n.done)return!0;if(!c(n.value,o.value))return!1}}k.equals=s})(C=e.Iterable||(e.Iterable={}))}),define(Z[3],ee([0,1,26,33]),function(G,e,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const p=!1;let A=null;function O(t){A=t}if(e.setDisposableTracker=O,p){const t="__is_disposable_tracked__";O(new class{trackDisposable(n){const o=new Error("Potentially leaked disposable").stack;setTimeout(()=>{n[t]||console.log(o)},3e3)}setParent(n,o){if(n&&n!==q.None)try{n[t]=!0}catch{}}markAsDisposed(n){if(n&&n!==q.None)try{n[t]=!0}catch{}}markAsSingleton(n){}})}function T(t){return A?.trackDisposable(t),t}function g(t){A?.markAsDisposed(t)}function w(t,n){A?.setParent(t,n)}function P(t,n){if(!!A)for(const o of t)A.setParent(o,n)}function D(t){return A?.markAsSingleton(t),t}e.markAsSingleton=D;class R extends Error{constructor(n){super(`Encountered errors while disposing of store. Errors: [${n.join(", ")}]`);this.errors=n}}e.MultiDisposeError=R;function S(t){return typeof t.dispose=="function"&&t.dispose.length===0}e.isDisposable=S;function m(t){if(k.Iterable.is(t)){let n=[];for(const o of t)if(o)try{o.dispose()}catch(a){n.push(a)}if(n.length===1)throw n[0];if(n.length>1)throw new R(n);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}e.dispose=m;function E(...t){const n=f(()=>m(t));return P(t,n),n}e.combinedDisposable=E;function f(t){const n=T({dispose:(0,C.once)(()=>{g(n),t()})});return n}e.toDisposable=f;class M{constructor(){this._toDispose=new Set,this._isDisposed=!1,T(this)}dispose(){this._isDisposed||(g(this),this._isDisposed=!0,this.clear())}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return w(n,this),this._isDisposed?M.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(n),n}}e.DisposableStore=M,M.DISABLE_DISPOSED_WARNING=!1;class q{constructor(){this._store=new M,T(this),w(this._store,this)}dispose(){g(this),this._store.dispose()}_register(n){if(n===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(n)}}e.Disposable=q,q.None=Object.freeze({dispose(){}});class l{constructor(){this._isDisposed=!1,T(this)}get value(){return this._isDisposed?void 0:this._value}set value(n){this._isDisposed||n===this._value||(this._value?.dispose(),n&&w(n,this),this._value=n)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,g(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const n=this._value;return this._value=void 0,n&&w(n,null),n}}e.MutableDisposable=l;class s{constructor(n){this._disposable=n,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=s;class r{constructor(){this.references=new Map}acquire(n,...o){let a=this.references.get(n);a||(a={counter:0,object:this.createReferencedObject(n,...o)},this.references.set(n,a));const{object:y}=a,L=(0,C.once)(()=>{--a.counter==0&&(this.destroyReferencedObject(n,a.object),this.references.delete(n))});return a.counter++,{object:y,dispose:L}}}e.ReferenceCollection=r;class h{constructor(n){this.referenceCollection=n}async acquire(n,...o){const a=this.referenceCollection.acquire(n,...o);try{return{object:await a.object,dispose:()=>a.dispose()}}catch(y){throw a.dispose(),y}}}e.AsyncReferenceCollection=h;class c{constructor(n){this.object=n}dispose(){}}e.ImmortalReference=c;function i(t){const n=new M;try{t(n)}finally{n.dispose()}}e.disposeOnReturn=i}),define(Z[34],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class C{constructor(A){this.element=A,this.next=C.Undefined,this.prev=C.Undefined}}C.Undefined=new C(void 0);class k{constructor(){this._first=C.Undefined,this._last=C.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===C.Undefined}clear(){let A=this._first;for(;A!==C.Undefined;){const O=A.next;A.prev=C.Undefined,A.next=C.Undefined,A=O}this._first=C.Undefined,this._last=C.Undefined,this._size=0}unshift(A){return this._insert(A,!1)}push(A){return this._insert(A,!0)}_insert(A,O){const T=new C(A);if(this._first===C.Undefined)this._first=T,this._last=T;else if(O){const w=this._last;this._last=T,T.prev=w,w.next=T}else{const w=this._first;this._first=T,T.next=w,w.prev=T}this._size+=1;let g=!1;return()=>{g||(g=!0,this._remove(T))}}shift(){if(this._first!==C.Undefined){const A=this._first.element;return this._remove(this._first),A}}pop(){if(this._last!==C.Undefined){const A=this._last.element;return this._remove(this._last),A}}_remove(A){if(A.prev!==C.Undefined&&A.next!==C.Undefined){const O=A.prev;O.next=A.next,A.next.prev=O}else A.prev===C.Undefined&&A.next===C.Undefined?(this._first=C.Undefined,this._last=C.Undefined):A.next===C.Undefined?(this._last=this._last.prev,this._last.next=C.Undefined):A.prev===C.Undefined&&(this._first=this._first.next,this._first.prev=C.Undefined);this._size-=1}*[Symbol.iterator](){let A=this._first;for(;A!==C.Undefined;)yield A.element,A=A.next}}e.LinkedList=k}),define(Z[2],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isIOS=e.isWeb=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.isElectronSandboxed=e.globals=void 0;const C="en";let k=!1,p=!1,A=!1,O=!1,T=!1,g=!1,w=!1,P,D=C,R,S;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let m;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?m=e.globals.vscode.process:typeof process!="undefined"&&(m=process);const E=typeof m?.versions?.electron=="string"&&m.type==="renderer";if(e.isElectronSandboxed=E&&m?.sandboxed,typeof navigator=="object"&&!E){S=navigator.userAgent,k=S.indexOf("Windows")>=0,p=S.indexOf("Macintosh")>=0,w=(S.indexOf("Macintosh")>=0||S.indexOf("iPad")>=0||S.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,A=S.indexOf("Linux")>=0,g=!0,P=navigator.language,D=P;const i=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),t=i&&i.getAttribute("data-settings");if(t)try{const n=JSON.parse(t);P=n.locale,R=n._translationsConfigFile,D=n.availableLanguages["*"]||C}catch(n){}}else if(typeof m=="object"){k=m.platform==="win32",p=m.platform==="darwin",A=m.platform==="linux",O=A&&!!m.env.SNAP&&!!m.env.SNAP_REVISION,P=C,D=C;const i=m.env.VSCODE_NLS_CONFIG;if(i)try{const t=JSON.parse(i),n=t.availableLanguages["*"];P=t.locale,D=n||C,R=t._translationsConfigFile}catch(t){}T=!0}else console.error("Unable to resolve platform.");var f;(function(i){i[i.Web=0]="Web",i[i.Mac=1]="Mac",i[i.Linux=2]="Linux",i[i.Windows=3]="Windows"})(f=e.Platform||(e.Platform={}));function M(i){switch(i){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=M;let q=0;p?q=1:k?q=3:A&&(q=2),e.isWindows=k,e.isMacintosh=p,e.isLinux=A,e.isLinuxSnap=O,e.isNative=T,e.isWeb=g,e.isIOS=w,e.platform=q,e.userAgent=S,e.language=D;var l;(function(i){function t(){return e.language}i.value=t;function n(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}i.isDefaultVariant=n;function o(){return e.language==="en"}i.isDefault=o})(l=e.Language||(e.Language={})),e.locale=P,e.translationsConfigFile=R,e.setTimeout0=(()=>{if(typeof e.globals.postMessage=="function"&&!e.globals.importScripts){let i=[];e.globals.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let o=0,a=i.length;o<a;o++){const y=i[o];if(y.id===n.data.vscodeScheduleAsyncWork){i.splice(o,1),y.callback();return}}});let t=0;return n=>{const o=++t;i.push({id:o,callback:n}),e.globals.postMessage({vscodeScheduleAsyncWork:o},"*")}}return i=>setTimeout(i)})();var s;(function(i){i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux"})(s=e.OperatingSystem||(e.OperatingSystem={})),e.OS=p||w?2:k?1:3;let r=!0,h=!1;function c(){if(!h){h=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,r=new Uint16Array(i.buffer)[0]===(2<<8)+1}return r}e.isLittleEndian=c}),define(Z[18],ee([0,1,2]),function(G,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let k;if(typeof C.globals.vscode!="undefined"&&typeof C.globals.vscode.process!="undefined"){const p=C.globals.vscode.process;k={get platform(){return p.platform},get arch(){return p.arch},get env(){return p.env},cwd(){return p.cwd()}}}else typeof process!="undefined"?k={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:k={get platform(){return C.isWindows?"win32":C.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=k.cwd,e.env=k.env,e.platform=k.platform,e.arch=k.arch}),define(Z[5],ee([0,1,18]),function(G,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiter=e.sep=e.toNamespacedPath=e.parse=e.format=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.join=e.isAbsolute=e.normalize=e.posix=e.win32=void 0;const k=65,p=97,A=90,O=122,T=46,g=47,w=92,P=58,D=63;class R extends Error{constructor(s,r,h){let c;typeof r=="string"&&r.indexOf("not ")===0?(c="must not be",r=r.replace(/^not /,"")):c="must be";const i=s.indexOf(".")!==-1?"property":"argument";let t=`The "${s}" ${i} ${c} of type ${r}`;t+=`. Received type ${typeof h}`,super(t),this.code="ERR_INVALID_ARG_TYPE"}}function S(l,s){if(typeof l!="string")throw new R(s,"string",l)}function m(l){return l===g||l===w}function E(l){return l===g}function f(l){return l>=k&&l<=A||l>=p&&l<=O}function M(l,s,r,h){let c="",i=0,t=-1,n=0,o=0;for(let a=0;a<=l.length;++a){if(a<l.length)o=l.charCodeAt(a);else{if(h(o))break;o=g}if(h(o)){if(!(t===a-1||n===1))if(n===2){if(c.length<2||i!==2||c.charCodeAt(c.length-1)!==T||c.charCodeAt(c.length-2)!==T){if(c.length>2){const y=c.lastIndexOf(r);y===-1?(c="",i=0):(c=c.slice(0,y),i=c.length-1-c.lastIndexOf(r)),t=a,n=0;continue}else if(c.length!==0){c="",i=0,t=a,n=0;continue}}s&&(c+=c.length>0?`${r}..`:"..",i=2)}else c.length>0?c+=`${r}${l.slice(t+1,a)}`:c=l.slice(t+1,a),i=a-t-1;t=a,n=0}else o===T&&n!==-1?++n:n=-1}return c}function q(l,s){if(s===null||typeof s!="object")throw new R("pathObject","Object",s);const r=s.dir||s.root,h=s.base||`${s.name||""}${s.ext||""}`;return r?r===s.root?`${r}${h}`:`${r}${l}${h}`:h}e.win32={resolve(...l){let s="",r="",h=!1;for(let c=l.length-1;c>=-1;c--){let i;if(c>=0){if(i=l[c],S(i,"path"),i.length===0)continue}else s.length===0?i=C.cwd():(i=C.env[`=${s}`]||C.cwd(),(i===void 0||i.slice(0,2).toLowerCase()!==s.toLowerCase()&&i.charCodeAt(2)===w)&&(i=`${s}\\`));const t=i.length;let n=0,o="",a=!1;const y=i.charCodeAt(0);if(t===1)m(y)&&(n=1,a=!0);else if(m(y))if(a=!0,m(i.charCodeAt(1))){let L=2,W=L;for(;L<t&&!m(i.charCodeAt(L));)L++;if(L<t&&L!==W){const Y=i.slice(W,L);for(W=L;L<t&&m(i.charCodeAt(L));)L++;if(L<t&&L!==W){for(W=L;L<t&&!m(i.charCodeAt(L));)L++;(L===t||L!==W)&&(o=`\\\\${Y}\\${i.slice(W,L)}`,n=L)}}}else n=1;else f(y)&&i.charCodeAt(1)===P&&(o=i.slice(0,2),n=2,t>2&&m(i.charCodeAt(2))&&(a=!0,n=3));if(o.length>0)if(s.length>0){if(o.toLowerCase()!==s.toLowerCase())continue}else s=o;if(h){if(s.length>0)break}else if(r=`${i.slice(n)}\\${r}`,h=a,a&&s.length>0)break}return r=M(r,!h,"\\",m),h?`${s}\\${r}`:`${s}${r}`||"."},normalize(l){S(l,"path");const s=l.length;if(s===0)return".";let r=0,h,c=!1;const i=l.charCodeAt(0);if(s===1)return E(i)?"\\":l;if(m(i))if(c=!0,m(l.charCodeAt(1))){let n=2,o=n;for(;n<s&&!m(l.charCodeAt(n));)n++;if(n<s&&n!==o){const a=l.slice(o,n);for(o=n;n<s&&m(l.charCodeAt(n));)n++;if(n<s&&n!==o){for(o=n;n<s&&!m(l.charCodeAt(n));)n++;if(n===s)return`\\\\${a}\\${l.slice(o)}\\`;n!==o&&(h=`\\\\${a}\\${l.slice(o,n)}`,r=n)}}}else r=1;else f(i)&&l.charCodeAt(1)===P&&(h=l.slice(0,2),r=2,s>2&&m(l.charCodeAt(2))&&(c=!0,r=3));let t=r<s?M(l.slice(r),!c,"\\",m):"";return t.length===0&&!c&&(t="."),t.length>0&&m(l.charCodeAt(s-1))&&(t+="\\"),h===void 0?c?`\\${t}`:t:c?`${h}\\${t}`:`${h}${t}`},isAbsolute(l){S(l,"path");const s=l.length;if(s===0)return!1;const r=l.charCodeAt(0);return m(r)||s>2&&f(r)&&l.charCodeAt(1)===P&&m(l.charCodeAt(2))},join(...l){if(l.length===0)return".";let s,r;for(let i=0;i<l.length;++i){const t=l[i];S(t,"path"),t.length>0&&(s===void 0?s=r=t:s+=`\\${t}`)}if(s===void 0)return".";let h=!0,c=0;if(typeof r=="string"&&m(r.charCodeAt(0))){++c;const i=r.length;i>1&&m(r.charCodeAt(1))&&(++c,i>2&&(m(r.charCodeAt(2))?++c:h=!1))}if(h){for(;c<s.length&&m(s.charCodeAt(c));)c++;c>=2&&(s=`\\${s.slice(c)}`)}return e.win32.normalize(s)},relative(l,s){if(S(l,"from"),S(s,"to"),l===s)return"";const r=e.win32.resolve(l),h=e.win32.resolve(s);if(r===h||(l=r.toLowerCase(),s=h.toLowerCase(),l===s))return"";let c=0;for(;c<l.length&&l.charCodeAt(c)===w;)c++;let i=l.length;for(;i-1>c&&l.charCodeAt(i-1)===w;)i--;const t=i-c;let n=0;for(;n<s.length&&s.charCodeAt(n)===w;)n++;let o=s.length;for(;o-1>n&&s.charCodeAt(o-1)===w;)o--;const a=o-n,y=t<a?t:a;let L=-1,W=0;for(;W<y;W++){const X=l.charCodeAt(c+W);if(X!==s.charCodeAt(n+W))break;X===w&&(L=W)}if(W!==y){if(L===-1)return h}else{if(a>y){if(s.charCodeAt(n+W)===w)return h.slice(n+W+1);if(W===2)return h.slice(n+W)}t>y&&(l.charCodeAt(c+W)===w?L=W:W===2&&(L=3)),L===-1&&(L=0)}let Y="";for(W=c+L+1;W<=i;++W)(W===i||l.charCodeAt(W)===w)&&(Y+=Y.length===0?"..":"\\..");return n+=L,Y.length>0?`${Y}${h.slice(n,o)}`:(h.charCodeAt(n)===w&&++n,h.slice(n,o))},toNamespacedPath(l){if(typeof l!="string")return l;if(l.length===0)return"";const s=e.win32.resolve(l);if(s.length<=2)return l;if(s.charCodeAt(0)===w){if(s.charCodeAt(1)===w){const r=s.charCodeAt(2);if(r!==D&&r!==T)return`\\\\?\\UNC\\${s.slice(2)}`}}else if(f(s.charCodeAt(0))&&s.charCodeAt(1)===P&&s.charCodeAt(2)===w)return`\\\\?\\${s}`;return l},dirname(l){S(l,"path");const s=l.length;if(s===0)return".";let r=-1,h=0;const c=l.charCodeAt(0);if(s===1)return m(c)?l:".";if(m(c)){if(r=h=1,m(l.charCodeAt(1))){let n=2,o=n;for(;n<s&&!m(l.charCodeAt(n));)n++;if(n<s&&n!==o){for(o=n;n<s&&m(l.charCodeAt(n));)n++;if(n<s&&n!==o){for(o=n;n<s&&!m(l.charCodeAt(n));)n++;if(n===s)return l;n!==o&&(r=h=n+1)}}}}else f(c)&&l.charCodeAt(1)===P&&(r=s>2&&m(l.charCodeAt(2))?3:2,h=r);let i=-1,t=!0;for(let n=s-1;n>=h;--n)if(m(l.charCodeAt(n))){if(!t){i=n;break}}else t=!1;if(i===-1){if(r===-1)return".";i=r}return l.slice(0,i)},basename(l,s){s!==void 0&&S(s,"ext"),S(l,"path");let r=0,h=-1,c=!0,i;if(l.length>=2&&f(l.charCodeAt(0))&&l.charCodeAt(1)===P&&(r=2),s!==void 0&&s.length>0&&s.length<=l.length){if(s===l)return"";let t=s.length-1,n=-1;for(i=l.length-1;i>=r;--i){const o=l.charCodeAt(i);if(m(o)){if(!c){r=i+1;break}}else n===-1&&(c=!1,n=i+1),t>=0&&(o===s.charCodeAt(t)?--t==-1&&(h=i):(t=-1,h=n))}return r===h?h=n:h===-1&&(h=l.length),l.slice(r,h)}for(i=l.length-1;i>=r;--i)if(m(l.charCodeAt(i))){if(!c){r=i+1;break}}else h===-1&&(c=!1,h=i+1);return h===-1?"":l.slice(r,h)},extname(l){S(l,"path");let s=0,r=-1,h=0,c=-1,i=!0,t=0;l.length>=2&&l.charCodeAt(1)===P&&f(l.charCodeAt(0))&&(s=h=2);for(let n=l.length-1;n>=s;--n){const o=l.charCodeAt(n);if(m(o)){if(!i){h=n+1;break}continue}c===-1&&(i=!1,c=n+1),o===T?r===-1?r=n:t!==1&&(t=1):r!==-1&&(t=-1)}return r===-1||c===-1||t===0||t===1&&r===c-1&&r===h+1?"":l.slice(r,c)},format:q.bind(null,"\\"),parse(l){S(l,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return s;const r=l.length;let h=0,c=l.charCodeAt(0);if(r===1)return m(c)?(s.root=s.dir=l,s):(s.base=s.name=l,s);if(m(c)){if(h=1,m(l.charCodeAt(1))){let L=2,W=L;for(;L<r&&!m(l.charCodeAt(L));)L++;if(L<r&&L!==W){for(W=L;L<r&&m(l.charCodeAt(L));)L++;if(L<r&&L!==W){for(W=L;L<r&&!m(l.charCodeAt(L));)L++;L===r?h=L:L!==W&&(h=L+1)}}}}else if(f(c)&&l.charCodeAt(1)===P){if(r<=2)return s.root=s.dir=l,s;if(h=2,m(l.charCodeAt(2))){if(r===3)return s.root=s.dir=l,s;h=3}}h>0&&(s.root=l.slice(0,h));let i=-1,t=h,n=-1,o=!0,a=l.length-1,y=0;for(;a>=h;--a){if(c=l.charCodeAt(a),m(c)){if(!o){t=a+1;break}continue}n===-1&&(o=!1,n=a+1),c===T?i===-1?i=a:y!==1&&(y=1):i!==-1&&(y=-1)}return n!==-1&&(i===-1||y===0||y===1&&i===n-1&&i===t+1?s.base=s.name=l.slice(t,n):(s.name=l.slice(t,i),s.base=l.slice(t,n),s.ext=l.slice(i,n))),t>0&&t!==h?s.dir=l.slice(0,t-1):s.dir=s.root,s},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...l){let s="",r=!1;for(let h=l.length-1;h>=-1&&!r;h--){const c=h>=0?l[h]:C.cwd();S(c,"path"),c.length!==0&&(s=`${c}/${s}`,r=c.charCodeAt(0)===g)}return s=M(s,!r,"/",E),r?`/${s}`:s.length>0?s:"."},normalize(l){if(S(l,"path"),l.length===0)return".";const s=l.charCodeAt(0)===g,r=l.charCodeAt(l.length-1)===g;return l=M(l,!s,"/",E),l.length===0?s?"/":r?"./":".":(r&&(l+="/"),s?`/${l}`:l)},isAbsolute(l){return S(l,"path"),l.length>0&&l.charCodeAt(0)===g},join(...l){if(l.length===0)return".";let s;for(let r=0;r<l.length;++r){const h=l[r];S(h,"path"),h.length>0&&(s===void 0?s=h:s+=`/${h}`)}return s===void 0?".":e.posix.normalize(s)},relative(l,s){if(S(l,"from"),S(s,"to"),l===s||(l=e.posix.resolve(l),s=e.posix.resolve(s),l===s))return"";const r=1,h=l.length,c=h-r,i=1,t=s.length-i,n=c<t?c:t;let o=-1,a=0;for(;a<n;a++){const L=l.charCodeAt(r+a);if(L!==s.charCodeAt(i+a))break;L===g&&(o=a)}if(a===n)if(t>n){if(s.charCodeAt(i+a)===g)return s.slice(i+a+1);if(a===0)return s.slice(i+a)}else c>n&&(l.charCodeAt(r+a)===g?o=a:a===0&&(o=0));let y="";for(a=r+o+1;a<=h;++a)(a===h||l.charCodeAt(a)===g)&&(y+=y.length===0?"..":"/..");return`${y}${s.slice(i+o)}`},toNamespacedPath(l){return l},dirname(l){if(S(l,"path"),l.length===0)return".";const s=l.charCodeAt(0)===g;let r=-1,h=!0;for(let c=l.length-1;c>=1;--c)if(l.charCodeAt(c)===g){if(!h){r=c;break}}else h=!1;return r===-1?s?"/":".":s&&r===1?"//":l.slice(0,r)},basename(l,s){s!==void 0&&S(s,"ext"),S(l,"path");let r=0,h=-1,c=!0,i;if(s!==void 0&&s.length>0&&s.length<=l.length){if(s===l)return"";let t=s.length-1,n=-1;for(i=l.length-1;i>=0;--i){const o=l.charCodeAt(i);if(o===g){if(!c){r=i+1;break}}else n===-1&&(c=!1,n=i+1),t>=0&&(o===s.charCodeAt(t)?--t==-1&&(h=i):(t=-1,h=n))}return r===h?h=n:h===-1&&(h=l.length),l.slice(r,h)}for(i=l.length-1;i>=0;--i)if(l.charCodeAt(i)===g){if(!c){r=i+1;break}}else h===-1&&(c=!1,h=i+1);return h===-1?"":l.slice(r,h)},extname(l){S(l,"path");let s=-1,r=0,h=-1,c=!0,i=0;for(let t=l.length-1;t>=0;--t){const n=l.charCodeAt(t);if(n===g){if(!c){r=t+1;break}continue}h===-1&&(c=!1,h=t+1),n===T?s===-1?s=t:i!==1&&(i=1):s!==-1&&(i=-1)}return s===-1||h===-1||i===0||i===1&&s===h-1&&s===r+1?"":l.slice(s,h)},format:q.bind(null,"/"),parse(l){S(l,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return s;const r=l.charCodeAt(0)===g;let h;r?(s.root="/",h=1):h=0;let c=-1,i=0,t=-1,n=!0,o=l.length-1,a=0;for(;o>=h;--o){const y=l.charCodeAt(o);if(y===g){if(!n){i=o+1;break}continue}t===-1&&(n=!1,t=o+1),y===T?c===-1?c=o:a!==1&&(a=1):c!==-1&&(a=-1)}if(t!==-1){const y=i===0&&r?1:i;c===-1||a===0||a===1&&c===t-1&&c===i+1?s.base=s.name=l.slice(y,t):(s.name=l.slice(y,c),s.base=l.slice(y,t),s.ext=l.slice(c,t))}return i>0?s.dir=l.slice(0,i-1):r&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=C.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=C.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=C.platform==="win32"?e.win32.join:e.posix.join,e.resolve=C.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=C.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=C.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=C.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=C.platform==="win32"?e.win32.extname:e.posix.extname,e.format=C.platform==="win32"?e.win32.format:e.posix.format,e.parse=C.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=C.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=C.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=C.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(Z[35],ee([0,1]),function(G,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var C;(function(A){A[A.stdout=0]="stdout",A[A.stderr=1]="stderr"})(C=e.Source||(e.Source={}));var k;(function(A){A[A.Success=0]="Success",A[A.Unknown=1]="Unknown",A[A.AccessDenied=2]="AccessDenied",A[A.ProcessNotFound=3]="ProcessNotFound"})(k=e.TerminateResponseCode||(e.TerminateResponseCode={}));function p(A,...O){const T=O.reduce((P,D)=>(P[D]=!0,P),{}),g=[/^ELECTRON_.+$/,/^VSCODE_.+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/,/^CODE_SERVER_.+$/,/^CS_.+$/];Object.keys(A).filter(P=>!T[P]).forEach(P=>{for(let D=0;D<g.length;D++)if(P.search(g[D])!==-1){delete A[P];break}})}e.sanitizeProcessEnvironment=p}),define(Z[36],ee([0,1,2]),function(G,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const k=C.globals.performance&&typeof C.globals.performance.now=="function";class p{constructor(O){this._highResolution=k&&O,this._startTime=this._now(),this._stopTime=-1}static create(O=!0){return new p(O)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?C.globals.performance.now():Date.now()}}e.StopWatch=p}),define(Z[4],ee([0,1,8,26,3,34,36]),function(G,e,C,k,p,A,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;var T;(function(s){s.None=()=>p.Disposable.None;function r(B){return(z,H=null,Q)=>{let N=!1,b;return b=B($=>{if(!N)return b?b.dispose():N=!0,z.call(H,$)},null,Q),N&&b.dispose(),b}}s.once=r;function h(B,z){return a((H,Q=null,N)=>B(b=>H.call(Q,z(b)),null,N))}s.map=h;function c(B,z){return a((H,Q=null,N)=>B(b=>{z(b),H.call(Q,b)},null,N))}s.forEach=c;function i(B,z){return a((H,Q=null,N)=>B(b=>z(b)&&H.call(Q,b),null,N))}s.filter=i;function t(B){return B}s.signal=t;function n(...B){return(z,H=null,Q)=>(0,p.combinedDisposable)(...B.map(N=>N(b=>z.call(H,b),null,Q)))}s.any=n;function o(B,z,H){let Q=H;return h(B,N=>(Q=z(Q,N),Q))}s.reduce=o;function a(B){let z;const H=new R({onFirstListenerAdd(){z=B(H.fire,H)},onLastListenerRemove(){z.dispose()}});return H.event}function y(B,z,H=100,Q=!1,N){let b,$,d,u=0;const v=new R({leakWarningThreshold:N,onFirstListenerAdd(){b=B(I=>{u++,$=z($,I),Q&&!d&&(v.fire($),$=void 0),clearTimeout(d),d=setTimeout(()=>{const F=$;$=void 0,d=void 0,(!Q||u>1)&&v.fire(F),u=0},H)})},onLastListenerRemove(){b.dispose()}});return v.event}s.debounce=y;function L(B,z=(H,Q)=>H===Q){let H=!0,Q;return i(B,N=>{const b=H||!z(N,Q);return H=!1,Q=N,b})}s.latch=L;function W(B,z){return[s.filter(B,z),s.filter(B,H=>!z(H))]}s.split=W;function Y(B,z=!1,H=[]){let Q=H.slice(),N=B(d=>{Q?Q.push(d):$.fire(d)});const b=()=>{Q&&Q.forEach(d=>$.fire(d)),Q=null},$=new R({onFirstListenerAdd(){N||(N=B(d=>$.fire(d)))},onFirstListenerDidAdd(){Q&&(z?setTimeout(b):b())},onLastListenerRemove(){N&&N.dispose(),N=null}});return $.event}s.buffer=Y;class X{constructor(z){this.event=z}map(z){return new X(h(this.event,z))}forEach(z){return new X(c(this.event,z))}filter(z){return new X(i(this.event,z))}reduce(z,H){return new X(o(this.event,z,H))}latch(){return new X(L(this.event))}debounce(z,H=100,Q=!1,N){return new X(y(this.event,z,H,Q,N))}on(z,H,Q){return this.event(z,H,Q)}once(z,H,Q){return r(this.event)(z,H,Q)}}function ie(B){return new X(B)}s.chain=ie;function re(B,z,H=Q=>Q){const Q=(...d)=>$.fire(H(...d)),N=()=>B.on(z,Q),b=()=>B.removeListener(z,Q),$=new R({onFirstListenerAdd:N,onLastListenerRemove:b});return $.event}s.fromNodeEventEmitter=re;function oe(B,z,H=Q=>Q){const Q=(...d)=>$.fire(H(...d)),N=()=>B.addEventListener(z,Q),b=()=>B.removeEventListener(z,Q),$=new R({onFirstListenerAdd:N,onLastListenerRemove:b});return $.event}s.fromDOMEventEmitter=oe;function he(B){return new Promise(z=>r(B)(z))}s.toPromise=he})(T=e.Event||(e.Event={}));class g{constructor(r){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${r}_${g._idPool++}`}start(r){this._stopWatch=new O.StopWatch(!0),this._listenerCount=r}stop(){if(this._stopWatch){const r=this._stopWatch.elapsed();this._elapsedOverall+=r,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${r.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let w=-1;function P(s){const r=w;return w=s,{dispose(){w=r}}}e.setGlobalLeakWarningThreshold=P;class D{constructor(r,h=Math.random().toString(18).slice(2,5)){this.customThreshold=r,this.name=h,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(r){let h=w;if(typeof this.customThreshold=="number"&&(h=this.customThreshold),h<=0||r<h)return;this._stacks||(this._stacks=new Map);const c=new Error().stack.split(`
`).slice(3).join(`
`),i=this._stacks.get(c)||0;if(this._stacks.set(c,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=h*.5;let t,n=0;for(const[o,a]of this._stacks)(!t||n<a)&&(t=o,n=a);console.warn(`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${n}):`),console.warn(t)}return()=>{const t=this._stacks.get(c)||0;this._stacks.set(c,t-1)}}}class R{constructor(r){this._disposed=!1,this._options=r,this._leakageMon=w>0?new D(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new g(this._options._profName):void 0}get event(){return this._event||(this._event=(r,h,c)=>{this._listeners||(this._listeners=new A.LinkedList);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const t=this._listeners.push(h?[r,h]:r);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,r,h);const n=this._leakageMon?.check(this._listeners.size),o=(0,p.toDisposable)(()=>{n&&n(),this._disposed||(t(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return c instanceof p.DisposableStore?c.add(o):Array.isArray(c)&&c.push(o),o}),this._event}fire(r){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new A.LinkedList);for(let h of this._listeners)this._deliveryQueue.push([h,r]);for(this._perfMon?.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[h,c]=this._deliveryQueue.shift();try{typeof h=="function"?h.call(void 0,c):h[0].call(h[1],c)}catch(i){(0,C.onUnexpectedError)(i)}}this._perfMon?.stop()}}dispose(){this._disposed||(this._disposed=!0,this._listeners?.clear(),this._deliveryQueue?.clear(),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose())}}e.Emitter=R;class S extends R{async fireAsync(r,h,c){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new A.LinkedList);for(const i of this._listeners)this._asyncDeliveryQueue.push([i,r]);for(;this._asyncDeliveryQueue.size>0&&!h.isCancellationRequested;){const[i,t]=this._asyncDeliveryQueue.shift(),n=[],o={...t,waitUntil:a=>{if(Object.isFrozen(n))throw new Error("waitUntil can NOT be called asynchronous");c&&(a=c(a,typeof i=="function"?i:i[0])),n.push(a)}};try{typeof i=="function"?i.call(void 0,o):i[0].call(i[1],o)}catch(a){(0,C.onUnexpectedError)(a);continue}Object.freeze(n),await Promise.allSettled(n).then(a=>{for(const y of a)y.status==="rejected"&&(0,C.onUnexpectedError)(y.reason)})}}}}e.AsyncEmitter=S;class m extends R{constructor(r){super(r);this._isPaused=0,this._eventQueue=new A.LinkedList,this._mergeFn=r?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const r=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(r))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(r){this._listeners&&(this._isPaused!==0?this._eventQueue.push(r):super.fire(r))}}e.PauseableEmitter=m;class E extends m{constructor(r){super(r);this._delay=r.delay??100}fire(r){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(r)}}e.DebounceEmitter=E;class f extends R{constructor(r){super(r);this._queuedEvents=[],this._mergeFn=r?.merge}fire(r){this._queuedEvents.push(r),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(h=>super.fire(h)),this._queuedEvents=[]})}}e.MicrotaskEmitter=f;class M{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new R({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(r){const h={event:r,listener:null};this.events.push(h),this.hasListeners&&this.hook(h);const c=()=>{this.hasListeners&&this.unhook(h);const i=this.events.indexOf(h);this.events.splice(i,1)};return(0,p.toDisposable)((0,k.once)(c))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(r=>this.hook(r))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(r=>this.unhook(r))}hook(r){r.listener=r.event(h=>this.emitter.fire(h))}unhook(r){r.listener&&r.listener.dispose(),r.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=M;class q{constructor(){this.buffers=[]}wrapEvent(r){return(h,c,i)=>r(t=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>h.call(c,t)):h.call(c,t)},void 0,i)}bufferEvents(r){const h=[];this.buffers.push(h);const c=r();return this.buffers.pop(),h.forEach(i=>i()),c}}e.EventBufferer=q;class l{constructor(){this.listening=!1,this.inputEvent=T.None,this.inputEventListener=p.Disposable.None,this.emitter=new R({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(r){this.inputEvent=r,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=r(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=l}),define(Z[13],ee([0,1,4]),function(G,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const k=Object.freeze(function(T,g){const w=setTimeout(T.bind(g),0);return{dispose(){clearTimeout(w)}}});var p;(function(T){function g(w){return w===T.None||w===T.Cancelled||w instanceof A?!0:!w||typeof w!="object"?!1:typeof w.isCancellationRequested=="boolean"&&typeof w.onCancellationRequested=="function"}T.isCancellationToken=g,T.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:C.Event.None}),T.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:k})})(p=e.CancellationToken||(e.CancellationToken={}));class A{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?k:(this._emitter||(this._emitter=new C.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class O{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new A),this._token}cancel(){this._token?this._token instanceof A&&this._token.cancel():this._token=p.Cancelled}dispose(g=!1){g&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof A&&this._token.dispose():this._token=p.None}}e.CancellationTokenSource=O}),define(Z[37],ee([0,1,8,3]),function(G,e,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=void 0;function p(l){const s=l;return s?[s.on,s.pause,s.resume,s.destroy].every(r=>typeof r=="function"):!1}e.isReadableStream=p;function A(l){const s=l;return s?p(s.stream)&&Array.isArray(s.buffer)&&typeof s.ended=="boolean":!1}e.isReadableBufferedStream=A;function O(l,s){return new T(l,s)}e.newWriteableStream=O;class T{constructor(s,r){this.reducer=s,this.options=r,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(s){if(!this.state.destroyed){if(this.state.flowing)this.emitData(s);else if(this.buffer.data.push(s),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(r=>this.pendingWritePromises.push(r))}}error(s){this.state.destroyed||(this.state.flowing?this.emitError(s):this.buffer.error.push(s))}end(s){this.state.destroyed||(typeof s!="undefined"&&this.write(s),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(s){this.listeners.data.slice(0).forEach(r=>r(s))}emitError(s){this.listeners.error.length===0?(0,C.onUnexpectedError)(s):this.listeners.error.slice(0).forEach(r=>r(s))}emitEnd(){this.listeners.end.slice(0).forEach(s=>s())}on(s,r){if(!this.state.destroyed)switch(s){case"data":this.listeners.data.push(r),this.resume();break;case"end":this.listeners.end.push(r),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(r),this.state.flowing&&this.flowErrors();break}}removeListener(s,r){if(this.state.destroyed)return;let h;switch(s){case"data":h=this.listeners.data;break;case"end":h=this.listeners.end;break;case"error":h=this.listeners.error;break}if(h){const c=h.indexOf(r);c>=0&&h.splice(c,1)}}flowData(){if(this.buffer.data.length>0){const s=this.reducer(this.buffer.data);this.emitData(s),this.buffer.data.length=0;const r=[...this.pendingWritePromises];this.pendingWritePromises.length=0,r.forEach(h=>h())}}flowErrors(){if(this.listeners.error.length>0){for(const s of this.buffer.error