cloudstudio
Version:
Run VS Code on a remote server.
3 lines • 57.6 kB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/(function(){var ie=["require","exports","vs/base/common/platform","vs/base/common/strings","vs/base/common/path","vs/base/common/extpath","vs/base/common/uri","vs/base/common/resources","vs/base/common/async","vs/base/common/glob","vs/base/common/map","vs/base/common/arrays","vs/base/common/network","vs/base/common/cancellation","vs/workbench/services/search/common/getFileResults","vs/workbench/services/search/common/ignoreFile","vs/base/common/types","vs/base/common/errors","vs/base/common/event","vs/base/common/lifecycle","vs/editor/common/core/range","vs/workbench/services/search/worker/localFileSearch"],ne=function(te){for(var e=[],S=0,L=te.length;S<L;S++)e[S]=ie[te[S]];return e};define(ie[5],ne([0,1,4,2,3,16]),function(te,e,S,L,C,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPath=e.parseLineAndColumnAware=e.indexOfPath=e.getDriveLetter=e.hasDriveLetter=e.isRootOrDriveLetter=e.sanitizeFilePath=e.isWindowsDriveLetter=e.isEqualOrParent=e.isEqual=e.isValidBasename=e.isUNC=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function k(n){return n===47||n===92}e.isPathSeparator=k;function O(n){return n.replace(/[\\/]/g,S.posix.sep)}e.toSlashes=O;function P(n){return n.indexOf("/")===-1&&(n=O(n)),/^[a-zA-Z]:(\/|$)/.test(n)&&(n="/"+n),n}e.toPosixPath=P;function E(n,s=S.posix.sep){if(!n)return"";const a=n.length,c=n.charCodeAt(0);if(k(c)){if(k(n.charCodeAt(1))&&!k(n.charCodeAt(2))){let v=3;const W=v;for(;v<a&&!k(n.charCodeAt(v));v++);if(W!==v&&!k(n.charCodeAt(v+1))){for(v+=1;v<a;v++)if(k(n.charCodeAt(v)))return n.slice(0,v+1).replace(/[\\/]/g,s)}}return s}else if(q(c)&&n.charCodeAt(1)===58)return k(n.charCodeAt(2))?n.slice(0,2)+s:n.slice(0,2);let p=n.indexOf("://");if(p!==-1){for(p+=3;p<a;p++)if(k(n.charCodeAt(p)))return n.slice(0,p+1)}return""}e.getRoot=E;function D(n){if(!L.isWindows||!n||n.length<5)return!1;let s=n.charCodeAt(0);if(s!==92||(s=n.charCodeAt(1),s!==92))return!1;let a=2;const c=a;for(;a<n.length&&(s=n.charCodeAt(a),s!==92);a++);return!(c===a||(s=n.charCodeAt(a+1),isNaN(s)||s===92))}e.isUNC=D;const M=/[\\/:\*\?"<>\|]/g,H=/[\\/]/g,U=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function o(n,s=L.isWindows){const a=s?M:H;return!(!n||n.length===0||/^\s+$/.test(n)||(a.lastIndex=0,a.test(n))||s&&U.test(n)||n==="."||n===".."||s&&n[n.length-1]==="."||s&&n.length!==n.trim().length||n.length>255)}e.isValidBasename=o;function m(n,s,a){const c=n===s;return!a||c?c:!n||!s?!1:(0,C.equalsIgnoreCase)(n,s)}e.isEqual=m;function w(n,s,a,c=S.sep){if(n===s)return!0;if(!n||!s||s.length>n.length)return!1;if(a){if(!(0,C.startsWithIgnoreCase)(n,s))return!1;if(s.length===n.length)return!0;let v=s.length;return s.charAt(s.length-1)===c&&v--,n.charAt(v)===c}return s.charAt(s.length-1)!==c&&(s+=c),n.indexOf(s)===0}e.isEqualOrParent=w;function q(n){return n>=65&&n<=90||n>=97&&n<=122}e.isWindowsDriveLetter=q;function $(n,s){return L.isWindows&&n.endsWith(":")&&(n+=S.sep),(0,S.isAbsolute)(n)||(n=(0,S.join)(s,n)),n=(0,S.normalize)(n),L.isWindows?(n=(0,C.rtrim)(n,S.sep),n.endsWith(":")&&(n+=S.sep)):(n=(0,C.rtrim)(n,S.sep),n||(n=S.sep)),n}e.sanitizeFilePath=$;function T(n){const s=(0,S.normalize)(n);return L.isWindows?n.length>3?!1:z(s)&&(n.length===2||s.charCodeAt(2)===92):s===S.posix.sep}e.isRootOrDriveLetter=T;function z(n,s=L.isWindows){return s?q(n.charCodeAt(0))&&n.charCodeAt(1)===58:!1}e.hasDriveLetter=z;function J(n){return z(n)?n[0]:void 0}e.getDriveLetter=J;function R(n,s,a){return s.length>n.length?-1:n===s?0:(a&&(n=n.toLowerCase(),s=s.toLowerCase()),n.indexOf(s))}e.indexOfPath=R;function B(n){const s=n.split(":");let a,c,p;for(const v of s){const W=Number(v);(0,A.isNumber)(W)?c===void 0?c=W:p===void 0&&(p=W):a=a?[a,v].join(":"):v}if(!a)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:a,line:c!==void 0?c:void 0,column:p!==void 0?p:c!==void 0?1:void 0}}e.parseLineAndColumnAware=B;const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function t(n,s,a=8){let c="";for(let v=0;v<a;v++)c+=f.charAt(Math.floor(Math.random()*f.length));let p;return s?p=`${s}-${c}`:p=c,n?(0,S.join)(n,p):p}e.randomPath=t}),define(ie[10],ne([0,1,11,3]),function(te,e,S,L){"use strict";var C,A,k;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=e.setToString=e.mapToString=e.getOrSet=void 0;function O(f,t,n){let s=f.get(t);return s===void 0&&(s=n,f.set(t,s)),s}e.getOrSet=O;function P(f){const t=[];return f.forEach((n,s)=>{t.push(`${s} => ${n}`)}),`Map(${f.size}) {${t.join(", ")}}`}e.mapToString=P;function E(f){const t=[];return f.forEach(n=>{t.push(n)}),`Set(${f.size}) {${t.join(", ")}}`}e.setToString=E;class D{constructor(){this._value="",this._pos=0}reset(t){return this._value=t,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(t){const n=t.charCodeAt(0),s=this._value.charCodeAt(this._pos);return n-s}value(){return this._value[this._pos]}}e.StringIterator=D;class M{constructor(t=!0){this._caseSensitive=t}reset(t){return this._value=t,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let t=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(t)this._from++;else break;else t=!1;return this}cmp(t){return this._caseSensitive?(0,L.compareSubstring)(t,this._value,0,t.length,this._from,this._to):(0,L.compareSubstringIgnoreCase)(t,this._value,0,t.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=M;class H{constructor(t=!0,n=!0){this._splitOnBackslash=t,this._caseSensitive=n}reset(t){this._from=0,this._to=0,this._value=t,this._valueLen=t.length;for(let n=t.length-1;n>=0;n--,this._valueLen--){const s=this._value.charCodeAt(n);if(!(s===47||this._splitOnBackslash&&s===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let t=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(t)this._from++;else break;else t=!1}return this}cmp(t){return this._caseSensitive?(0,L.compareSubstring)(t,this._value,0,t.length,this._from,this._to):(0,L.compareSubstringIgnoreCase)(t,this._value,0,t.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=H;var U;(function(f){f[f.Scheme=1]="Scheme",f[f.Authority=2]="Authority",f[f.Path=3]="Path",f[f.Query=4]="Query",f[f.Fragment=5]="Fragment"})(U||(U={}));class o{constructor(t,n){this._ignorePathCasing=t,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(t){return this._value=t,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new H(!1,!this._ignorePathCasing(t)),this._pathIterator.reset(t.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(t)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(t){if(this._states[this._stateIdx]===1)return(0,L.compareIgnoreCase)(t,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,L.compareIgnoreCase)(t,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(t);if(this._states[this._stateIdx]===4)return(0,L.compare)(t,this._value.query);if(this._states[this._stateIdx]===5)return(0,L.compare)(t,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=o;class m{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const t=this.right;return this.right=t.left,t.left=this,this.updateHeight(),t.updateHeight(),t}rotateRight(){const t=this.left;return this.left=t.right,t.right=this,this.updateHeight(),t.updateHeight(),t}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}var w;(function(f){f[f.Left=-1]="Left",f[f.Mid=0]="Mid",f[f.Right=1]="Right"})(w||(w={}));class q{constructor(t){this._iter=t}static forUris(t=()=>!1,n=()=>!1){return new q(new o(t,n))}static forPaths(t=!1){return new q(new H(void 0,!t))}static forStrings(){return new q(new D)}static forConfigKeys(){return new q(new M)}clear(){this._root=void 0}fill(t,n){if(n){const s=n.slice(0);(0,S.shuffle)(s);for(const a of s)this.set(a,t)}else{const s=t.slice(0);(0,S.shuffle)(s);for(const a of s)this.set(a[0],a[1])}}set(t,n){const s=this._iter.reset(t);let a;this._root||(this._root=new m,this._root.segment=s.value());const c=[];for(a=this._root;;){const v=s.cmp(a.segment);if(v>0)a.left||(a.left=new m,a.left.segment=s.value()),c.push([-1,a]),a=a.left;else if(v<0)a.right||(a.right=new m,a.right.segment=s.value()),c.push([1,a]),a=a.right;else if(s.hasNext())s.next(),a.mid||(a.mid=new m,a.mid.segment=s.value()),c.push([0,a]),a=a.mid;else break}const p=a.value;a.value=n,a.key=t;for(let v=c.length-1;v>=0;v--){const W=c[v][1];W.updateHeight();const X=W.balanceFactor();if(X<-1||X>1){const G=c[v][0],V=c[v+1][0];if(G===1&&V===1)c[v][1]=W.rotateLeft();else if(G===-1&&V===-1)c[v][1]=W.rotateRight();else if(G===1&&V===-1)W.right=c[v+1][1]=c[v+1][1].rotateRight(),c[v][1]=W.rotateLeft();else if(G===-1&&V===1)W.left=c[v+1][1]=c[v+1][1].rotateLeft(),c[v][1]=W.rotateRight();else throw new Error;if(v>0)switch(c[v-1][0]){case-1:c[v-1][1].left=c[v][1];break;case 1:c[v-1][1].right=c[v][1];break;case 0:c[v-1][1].mid=c[v][1];break}else this._root=c[0][1]}}return p}get(t){return this._getNode(t)?.value}_getNode(t){const n=this._iter.reset(t);let s=this._root;for(;s;){const a=n.cmp(s.segment);if(a>0)s=s.left;else if(a<0)s=s.right;else if(n.hasNext())n.next(),s=s.mid;else break}return s}has(t){const n=this._getNode(t);return!(n?.value===void 0&&n?.mid===void 0)}delete(t){return this._delete(t,!1)}deleteSuperstr(t){return this._delete(t,!0)}_delete(t,n){const s=this._iter.reset(t),a=[];let c=this._root;for(;c;){const p=s.cmp(c.segment);if(p>0)a.push([-1,c]),c=c.left;else if(p<0)a.push([1,c]),c=c.right;else if(s.hasNext())s.next(),a.push([0,c]),c=c.mid;else break}if(!!c){if(n?(c.left=void 0,c.mid=void 0,c.right=void 0,c.height=1):(c.key=void 0,c.value=void 0),!c.mid&&!c.value)if(c.left&&c.right){const p=this._min(c.right),{key:v,value:W,segment:X}=p;this._delete(p.key,!1),c.key=v,c.value=W,c.segment=X}else{const p=c.left??c.right;if(a.length>0){const[v,W]=a[a.length-1];switch(v){case-1:W.left=p;break;case 0:W.mid=p;break;case 1:W.right=p;break}}else this._root=p}for(let p=a.length-1;p>=0;p--){const v=a[p][1];v.updateHeight();const W=v.balanceFactor();if(W>1?(v.right.balanceFactor()>=0||(v.right=v.right.rotateRight()),a[p][1]=v.rotateLeft()):W<-1&&(v.left.balanceFactor()<=0||(v.left=v.left.rotateLeft()),a[p][1]=v.rotateRight()),p>0)switch(a[p-1][0]){case-1:a[p-1][1].left=a[p][1];break;case 1:a[p-1][1].right=a[p][1];break;case 0:a[p-1][1].mid=a[p][1];break}else this._root=a[0][1]}}}_min(t){for(;t.left;)t=t.left;return t}findSubstr(t){const n=this._iter.reset(t);let s=this._root,a;for(;s;){const c=n.cmp(s.segment);if(c>0)s=s.left;else if(c<0)s=s.right;else if(n.hasNext())n.next(),a=s.value||a,s=s.mid;else break}return s&&s.value||a}findSuperstr(t){const n=this._iter.reset(t);let s=this._root;for(;s;){const a=n.cmp(s.segment);if(a>0)s=s.left;else if(a<0)s=s.right;else if(n.hasNext())n.next(),s=s.mid;else return s.mid?this._entries(s.mid):void 0}}forEach(t){for(const[n,s]of this)t(s,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(t){const n=[];return this._dfsEntries(t,n),n[Symbol.iterator]()}_dfsEntries(t,n){!t||(t.left&&this._dfsEntries(t.left,n),t.value&&n.push([t.key,t.value]),t.mid&&this._dfsEntries(t.mid,n),t.right&&this._dfsEntries(t.right,n))}_isBalanced(){const t=n=>{if(!n)return!0;const s=n.balanceFactor();return s<-1||s>1?!1:t(n.left)&&t(n.right)};return t(this._root)}}e.TernarySearchTree=q;class ${constructor(t,n){this.uri=t,this.value=n}}class T{constructor(t,n){this[C]="ResourceMap",t instanceof T?(this.map=new Map(t.map),this.toKey=n??T.defaultToKey):(this.map=new Map,this.toKey=t??T.defaultToKey)}set(t,n){return this.map.set(this.toKey(t),new $(t,n)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,n){typeof n!="undefined"&&(t=t.bind(n));for(const[s,a]of this.map)t(a.value,a.uri,this)}*values(){for(const t of this.map.values())yield t.value}*keys(){for(const t of this.map.values())yield t.uri}*entries(){for(const t of this.map.values())yield[t.uri,t.value]}*[(C=Symbol.toStringTag,Symbol.iterator)](){for(const[,t]of this.map)yield[t.uri,t.value]}}e.ResourceMap=T,T.defaultToKey=f=>f.toString();class z{constructor(t,n){this[A]="ResourceSet",!t||typeof t=="function"?this._map=new T(t):(this._map=new T(n),t.forEach(this.add,this))}get size(){return this._map.size}add(t){return this._map.set(t,t),this}clear(){this._map.clear()}delete(t){return this._map.delete(t)}forEach(t,n){this._map.forEach((s,a)=>t.call(n,a,a,this))}has(t){return this._map.has(t)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(A=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=z;var J;(function(f){f[f.None=0]="None",f[f.AsOld=1]="AsOld",f[f.AsNew=2]="AsNew"})(J=e.Touch||(e.Touch={}));class R{constructor(){this[k]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=0){const s=this._map.get(t);if(!!s)return n!==0&&this.touch(s,n),s.value}set(t,n,s=0){let a=this._map.get(t);if(a)a.value=n,s!==0&&this.touch(a,s);else{switch(a={key:t,value:n,next:void 0,previous:void 0},s){case 0:this.addItemLast(a);break;case 1:this.addItemFirst(a);break;case 2:this.addItemLast(a);break;default:this.addItemLast(a);break}this._map.set(t,a),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(!!n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const s=this._state;let a=this._head;for(;a;){if(n?t.bind(n)(a.value,a.key,this):t(a.value,a.key,this),this._state!==s)throw new Error("LinkedMap got modified during iteration.");a=a.next}}keys(){const t=this,n=this._state;let s=this._head;const a={[Symbol.iterator](){return a},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(s){const c={value:s.key,done:!1};return s=s.next,c}else return{value:void 0,done:!0}}};return a}values(){const t=this,n=this._state;let s=this._head;const a={[Symbol.iterator](){return a},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(s){const c={value:s.value,done:!1};return s=s.next,c}else return{value:void 0,done:!0}}};return a}entries(){const t=this,n=this._state;let s=this._head;const a={[Symbol.iterator](){return a},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(s){const c={value:[s.key,s.value],done:!1};return s=s.next,c}else return{value:void 0,done:!0}}};return a}[(k=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,s=this.size;for(;n&&s>t;)this._map.delete(n.key),n=n.next,s--;this._head=n,this._size=s,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,s=t.previous;if(!n||!s)throw new Error("Invalid list");n.previous=s,s.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const s=t.next,a=t.previous;t===this._tail?(a.next=void 0,this._tail=a):(s.previous=a,a.next=s),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const s=t.next,a=t.previous;t===this._head?(s.previous=void 0,this._head=s):(s.previous=a,a.next=s),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,s)=>{t.push([s,n])}),t}fromJSON(t){this.clear();for(const[n,s]of t)this.set(n,s)}}e.LinkedMap=R;class B extends R{constructor(t,n=1){super();this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=B}),define(ie[12],ne([0,1,2,6]),function(te,e,S,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileAccess=e.RemoteAuthorities=e.getTokenFromCurrentHref=e.connectionTokenQueryName2=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var C;(function(P){P.inMemory="inmemory",P.vscode="vscode",P.internal="private",P.walkThrough="walkThrough",P.walkThroughSnippet="walkThroughSnippet",P.http="http",P.https="https",P.file="file",P.mailto="mailto",P.untitled="untitled",P.data="data",P.command="command",P.vscodeRemote="vscode-remote",P.vscodeRemoteResource="vscode-remote-resource",P.vscodeUserData="vscode-userdata",P.vscodeCustomEditor="vscode-custom-editor",P.vscodeNotebook="vscode-notebook",P.vscodeNotebookCell="vscode-notebook-cell",P.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",P.vscodeNotebookCellOutput="vscode-notebook-cell-output",P.vscodeInteractive="vscode-interactive",P.vscodeInteractiveInput="vscode-interactive-input",P.vscodeSettings="vscode-settings",P.vscodeWorkspaceTrust="vscode-workspace-trust",P.vscodeTerminal="vscode-terminal",P.webviewPanel="webview-panel",P.vscodeWebview="vscode-webview",P.extension="extension",P.vscodeFileResource="vscode-file",P.tmp="tmp",P.vsls="vsls",P.vscodeSourceControl="vscode-scm"})(C=e.Schemas||(e.Schemas={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn",e.connectionTokenQueryName2="token";function A(){const P=window.location.href;return new URL(P).searchParams.get("token")||""}e.getTokenFromCurrentHref=A;class k{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${C.vscodeRemoteResource}`}setPreferredWebSchema(E){this._preferredWebSchema=E}setDelegate(E){this._delegate=E}setServerRootPath(E){this._remoteResourcesPath=`/${C.vscodeRemoteResource}`}set(E,D,M){this._hosts[E]=D,this._ports[E]=M}setConnectionToken(E,D){this._connectionTokens[E]=D}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(E){if(this._delegate)return this._delegate(E);const D=E.authority;let M=this._hosts[D];M&&M.indexOf(":")!==-1&&(M=`[${M}]`);const H=this._ports[D],U=this._connectionTokens[D];let o=`path=${encodeURIComponent(E.path)}`;typeof U=="string"&&(o+=`&${e.connectionTokenQueryName}=${encodeURIComponent(U)}`);const m=A();m&&(o+=`&${e.connectionTokenQueryName2}=${encodeURIComponent(m)}`);const w=document.getElementById("vscode-workbench-web-configuration"),q=w?w.getAttribute("data-settings"):void 0;if(!w||!q)throw new Error("Missing web configuration element");const $=JSON.parse(q);return L.URI.from({scheme:S.isWeb?this._preferredWebSchema:C.vscodeRemoteResource,authority:`${M}:${H}`,path:`${$.remoteAuthority?window.location.pathname.replace(/\/+$/,""):""}${this._remoteResourcesPath}`,query:o})}}e.RemoteAuthorities=new k;class O{asBrowserUri(E,D){const M=this.toUri(E,D);return M.scheme===C.vscodeRemote?e.RemoteAuthorities.rewrite(M):M.scheme===C.file&&(S.isNative||S.isWebWorker&&S.globals.origin===`${C.vscodeFileResource}://${O.FALLBACK_AUTHORITY}`)?M.with({scheme:C.vscodeFileResource,authority:M.authority||O.FALLBACK_AUTHORITY,query:null,fragment:null}):M}asFileUri(E,D){const M=this.toUri(E,D);return M.scheme===C.vscodeFileResource?M.with({scheme:C.file,authority:M.authority!==O.FALLBACK_AUTHORITY?M.authority:null,query:null,fragment:null}):M}toUri(E,D){return L.URI.isUri(E)?E:L.URI.parse(D.toUrl(E))}}O.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new O}),define(ie[7],ne([0,1,5,12,4,2,3,6]),function(te,e,S,L,C,A,k,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalResource=e.DataUri=e.distinctParents=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function P(U){return(0,O.uriToFsPath)(U,!0)}e.originalFSPath=P;class E{constructor(o){this._ignorePathCasing=o}compare(o,m,w=!1){return o===m?0:(0,k.compare)(this.getComparisonKey(o,w),this.getComparisonKey(m,w))}isEqual(o,m,w=!1){return o===m?!0:!o||!m?!1:this.getComparisonKey(o,w)===this.getComparisonKey(m,w)}getComparisonKey(o,m=!1){return o.with({path:this._ignorePathCasing(o)?o.path.toLowerCase():void 0,fragment:m?null:void 0}).toString()}ignorePathCasing(o){return this._ignorePathCasing(o)}isEqualOrParent(o,m,w=!1){if(o.scheme===m.scheme){if(o.scheme===L.Schemas.file)return S.isEqualOrParent(P(o),P(m),this._ignorePathCasing(o))&&o.query===m.query&&(w||o.fragment===m.fragment);if((0,e.isEqualAuthority)(o.authority,m.authority))return S.isEqualOrParent(o.path,m.path,this._ignorePathCasing(o),"/")&&o.query===m.query&&(w||o.fragment===m.fragment)}return!1}joinPath(o,...m){return O.URI.joinPath(o,...m)}basenameOrAuthority(o){return(0,e.basename)(o)||o.authority}basename(o){return C.posix.basename(o.path)}extname(o){return C.posix.extname(o.path)}dirname(o){if(o.path.length===0)return o;let m;return o.scheme===L.Schemas.file?m=O.URI.file(C.dirname(P(o))).path:(m=C.posix.dirname(o.path),o.authority&&m.length&&m.charCodeAt(0)!==47&&(console.error(`dirname("${o.toString})) resulted in a relative path`),m="/")),o.with({path:m})}normalizePath(o){if(!o.path.length)return o;let m;return o.scheme===L.Schemas.file?m=O.URI.file(C.normalize(P(o))).path:m=C.posix.normalize(o.path),o.with({path:m})}relativePath(o,m){if(o.scheme!==m.scheme||!(0,e.isEqualAuthority)(o.authority,m.authority))return;if(o.scheme===L.Schemas.file){const $=C.relative(P(o),P(m));return A.isWindows?S.toSlashes($):$}let w=o.path||"/";const q=m.path||"/";if(this._ignorePathCasing(o)){let $=0;for(const T=Math.min(w.length,q.length);$<T&&!(w.charCodeAt($)!==q.charCodeAt($)&&w.charAt($).toLowerCase()!==q.charAt($).toLowerCase());$++);w=q.substr(0,$)+w.substr($)}return C.posix.relative(w,q)}resolvePath(o,m){if(o.scheme===L.Schemas.file){const w=O.URI.file(C.resolve(P(o),m));return o.with({authority:w.authority,path:w.path})}return m=S.toPosixPath(m),o.with({path:C.posix.resolve(o.path,m)})}isAbsolutePath(o){return!!o.path&&o.path[0]==="/"}isEqualAuthority(o,m){return o===m||o!==void 0&&m!==void 0&&(0,k.equalsIgnoreCase)(o,m)}hasTrailingPathSeparator(o,m=C.sep){if(o.scheme===L.Schemas.file){const w=P(o);return w.length>S.getRoot(w).length&&w[w.length-1]===m}else{const w=o.path;return w.length>1&&w.charCodeAt(w.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(o.fsPath)}}removeTrailingPathSeparator(o,m=C.sep){return(0,e.hasTrailingPathSeparator)(o,m)?o.with({path:o.path.substr(0,o.path.length-1)}):o}addTrailingPathSeparator(o,m=C.sep){let w=!1;if(o.scheme===L.Schemas.file){const q=P(o);w=q!==void 0&&q.length===S.getRoot(q).length&&q[q.length-1]===m}else{m="/";const q=o.path;w=q.length===1&&q.charCodeAt(q.length-1)===47}return!w&&!(0,e.hasTrailingPathSeparator)(o,m)?o.with({path:o.path+"/"}):o}}e.ExtUri=E,e.extUri=new E(()=>!1),e.extUriBiasedIgnorePathCase=new E(U=>U.scheme===L.Schemas.file?!A.isLinux:!0),e.extUriIgnorePathCase=new E(U=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);function D(U,o){const m=[];for(let w=0;w<U.length;w++){const q=o(U[w]);U.some(($,T)=>T===w?!1:(0,e.isEqualOrParent)(q,o($)))||m.push(U[w])}return m}e.distinctParents=D;var M;(function(U){U.META_DATA_LABEL="label",U.META_DATA_DESCRIPTION="description",U.META_DATA_SIZE="size",U.META_DATA_MIME="mime";function o(m){const w=new Map;m.path.substring(m.path.indexOf(";")+1,m.path.lastIndexOf(";")).split(";").forEach(T=>{const[z,J]=T.split(":");z&&J&&w.set(z,J)});const $=m.path.substring(0,m.path.indexOf(";"));return $&&w.set(U.META_DATA_MIME,$),w}U.parseMetaData=o})(M=e.DataUri||(e.DataUri={}));function H(U,o,m){if(o){let w=U.path;return w&&w[0]!==C.posix.sep&&(w=C.posix.sep+w),U.with({scheme:m,authority:o,path:w})}return U.with({scheme:m})}e.toLocalResource=H}),define(ie[8],ne([0,1,13,17,18,19,7,2]),function(te,e,S,L,C,A,k,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IntervalCounter=e.TaskSequentializer=e.retry=e.IdleValue=e.runWhenIdle=e.ThrottledWorker=e.RunOnceWorker=e.ProcessTimeRunOnceScheduler=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ResourceQueue=e.Queue=e.Limiter=e.firstParallel=e.first=e.sequence=e.disposableTimeout=e.timeout=e.AutoOpenBarrier=e.Barrier=e.ThrottledDelayer=e.Delayer=e.MicrotaskDelay=e.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellationError=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function P(u){return!!u&&typeof u.then=="function"}e.isThenable=P;function E(u){const i=new S.CancellationTokenSource,r=u(i.token),l=new Promise((h,b)=>{const N=i.token.onCancellationRequested(()=>{N.dispose(),i.dispose(),b(new L.CancellationError)});Promise.resolve(r).then(Q=>{N.dispose(),i.dispose(),h(Q)},Q=>{N.dispose(),i.dispose(),b(Q)})});return new class{cancel(){i.cancel()}then(h,b){return l.then(h,b)}catch(h){return this.then(void 0,h)}finally(h){return l.finally(h)}}}e.createCancelablePromise=E;function D(u,i,r){return new Promise((l,h)=>{const b=i.onCancellationRequested(()=>{b.dispose(),l(r)});u.then(l,h).finally(()=>b.dispose())})}e.raceCancellation=D;function M(u,i){return new Promise((r,l)=>{const h=i.onCancellationRequested(()=>{h.dispose(),l(new L.CancellationError)});u.then(r,l).finally(()=>h.dispose())})}e.raceCancellationError=M;async function H(u){let i=-1;const r=u.map((h,b)=>h.then(N=>(i=b,N))),l=await Promise.race(r);return u.forEach((h,b)=>{b!==i&&h.cancel()}),l}e.raceCancellablePromises=H;function U(u,i,r){let l;const h=setTimeout(()=>{l?.(void 0),r?.()},i);return Promise.race([u.finally(()=>clearTimeout(h)),new Promise(b=>l=b)])}e.raceTimeout=U;function o(u){return new Promise((i,r)=>{const l=u();P(l)?l.then(i,r):i(l)})}e.asPromise=o;class m{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(i){if(this.activePromise){if(this.queuedPromiseFactory=i,!this.queuedPromise){const r=()=>{this.queuedPromise=null;const l=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,l};this.queuedPromise=new Promise(l=>{this.activePromise.then(r,r).then(l)})}return new Promise((r,l)=>{this.queuedPromise.then(r,l)})}return this.activePromise=i(),new Promise((r,l)=>{this.activePromise.then(h=>{this.activePromise=null,r(h)},h=>{this.activePromise=null,l(h)})})}}e.Throttler=m;class w{constructor(){this.current=Promise.resolve(null)}queue(i){return this.current=this.current.then(()=>i(),()=>i())}}e.Sequencer=w;class q{constructor(){this.promiseMap=new Map}queue(i,r){const h=(this.promiseMap.get(i)??Promise.resolve()).catch(()=>{}).then(r).finally(()=>{this.promiseMap.get(i)===h&&this.promiseMap.delete(i)});return this.promiseMap.set(i,h),h}}e.SequencerByKey=q;const $=(u,i)=>{let r=!0;const l=setTimeout(()=>{r=!1,i()},u);return{isTriggered:()=>r,dispose:()=>{clearTimeout(l),r=!1}}},T=u=>{let i=!0;return queueMicrotask(()=>{i&&(i=!1,u())}),{isTriggered:()=>i,dispose:()=>{i=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class z{constructor(i){this.defaultDelay=i,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(i,r=this.defaultDelay){this.task=i,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((h,b)=>{this.doResolve=h,this.doReject=b}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const h=this.task;return this.task=null,h()}}));const l=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=r===e.MicrotaskDelay?T(l):$(r,l),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new L.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=z;class J{constructor(i){this.delayer=new z(i),this.throttler=new m}trigger(i,r){return this.delayer.trigger(()=>this.throttler.queue(i),r)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=J;class R{constructor(){this._isOpen=!1,this._promise=new Promise((i,r)=>{this._completePromise=i})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=R;class B extends R{constructor(i){super();this._timeout=setTimeout(()=>this.open(),i)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=B;function f(u,i){return i?new Promise((r,l)=>{const h=setTimeout(()=>{b.dispose(),r()},u),b=i.onCancellationRequested(()=>{clearTimeout(h),b.dispose(),l(new L.CancellationError)})}):E(r=>f(u,r))}e.timeout=f;function t(u,i=0){const r=setTimeout(u,i);return(0,A.toDisposable)(()=>clearTimeout(r))}e.disposableTimeout=t;function n(u){const i=[];let r=0;const l=u.length;function h(){return r<l?u[r++]():null}function b(N){N!=null&&i.push(N);const Q=h();return Q?Q.then(b):Promise.resolve(i)}return Promise.resolve(null).then(b)}e.sequence=n;function s(u,i=l=>!!l,r=null){let l=0;const h=u.length,b=()=>{if(l>=h)return Promise.resolve(r);const N=u[l++];return Promise.resolve(N()).then(Z=>i(Z)?Promise.resolve(Z):b())};return b()}e.first=s;function a(u,i=l=>!!l,r=null){if(u.length===0)return Promise.resolve(r);let l=u.length;const h=()=>{l=-1;for(const b of u)b.cancel?.()};return new Promise((b,N)=>{for(const Q of u)Q.then(Z=>{--l>=0&&i(Z)?(h(),b(Z)):l===0&&b(r)}).catch(Z=>{--l>=0&&(h(),N(Z))})})}e.firstParallel=a;class c{constructor(i){this._size=0,this.maxDegreeOfParalellism=i,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new C.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(i){return this._size++,new Promise((r,l)=>{this.outstandingPromises.push({factory:i,c:r,e:l}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const i=this.outstandingPromises.shift();this.runningPromises++;const r=i.factory();r.then(i.c,i.e),r.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=c;class p extends c{constructor(){super(1)}}e.Queue=p;class v{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const i=new g;return this.drainers.add(i),i.p}isDrained(){for(const[,i]of this.queues)if(i.size>0)return!1;return!0}queueFor(i,r=k.extUri){const l=r.getComparisonKey(i);let h=this.queues.get(l);return h||(h=new p,C.Event.once(h.onDrained)(()=>{h?.dispose(),this.queues.delete(l),this.onDidQueueDrain()}),this.queues.set(l,h)),h}onDidQueueDrain(){!this.isDrained()||this.releaseDrainers()}releaseDrainers(){for(const i of this.drainers)i.complete();this.drainers.clear()}dispose(){for(const[,i]of this.queues)i.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=v;class W{constructor(i,r){this._token=-1,typeof i=="function"&&typeof r=="number"&&this.setIfNotSet(i,r)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(i,r){this.cancel(),this._token=setTimeout(()=>{this._token=-1,i()},r)}setIfNotSet(i,r){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,i()},r))}}e.TimeoutTimer=W;class X{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(i,r){this.cancel(),this._token=setInterval(()=>{i()},r)}}e.IntervalTimer=X;class G{constructor(i,r){this.timeoutToken=-1,this.runner=i,this.timeout=r,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(i=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,i)}get delay(){return this.timeout}set delay(i){this.timeout=i}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=G;class V{constructor(i,r){r%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${r}ms is not a multiple of 1000ms.`),this.runner=i,this.timeout=r,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(i=this.timeout){i%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${i}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(i/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,!(this.counter>0)&&(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner?.())}}e.ProcessTimeRunOnceScheduler=V;class x extends G{constructor(i,r){super(i,r);this.units=[]}work(i){this.units.push(i),this.isScheduled()||this.schedule()}doRun(){const i=this.units;this.units=[],this.runner?.(i)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=x;class se extends A.Disposable{constructor(i,r){super();this.options=i,this.handler=r,this.pendingWork=[],this.throttler=this._register(new A.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(i){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+i.length>this.options.maxBufferedWork)return!1}else if(this.pending+i.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}return this.pendingWork.push(...i),this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new G(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=se,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=u=>{(0,O.setTimeout0)(()=>{if(i)return;const r=Date.now()+15;u(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,r-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:e.runWhenIdle=(u,i)=>{const r=requestIdleCallback(u,typeof i=="number"?{timeout:i}:void 0);let l=!1;return{dispose(){l||(l=!0,cancelIdleCallback(r))}}}}();class j{constructor(i){this._didRun=!1,this._executor=()=>{try{this._value=i()}catch(r){this._error=r}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=j;async function Y(u,i,r){let l;for(let h=0;h<r;h++)try{return await u()}catch(b){l=b,await f(i)}throw l}e.retry=Y;class K{hasPending(i){return this._pending?typeof i=="number"?this._pending.taskId===i:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){this._pending?.cancel()}setPending(i,r,l){return this._pending={taskId:i,cancel:()=>l?.(),promise:r},r.then(()=>this.donePending(i),()=>this.donePending(i)),r}donePending(i){this._pending&&i===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const i=this._next;this._next=void 0,i.run().then(i.promiseResolve,i.promiseReject)}}setNext(i){if(this._next)this._next.run=i;else{let r,l;const h=new Promise((b,N)=>{r=b,l=N});this._next={run:i,promise:h,promiseResolve:r,promiseReject:l}}return this._next.promise}}e.TaskSequentializer=K;class ee{constructor(i,r=()=>Date.now()){this.interval=i,this.nowFn=r,this.lastIncrementTime=0,this.value=0}increment(){const i=this.nowFn();return i-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=i,this.value=0),this.value++,this.value}}e.IntervalCounter=ee;class g{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((i,r)=>{this.completeCallback=i,this.errorCallback=r})}get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(i){return new Promise(r=>{this.completeCallback(i),this.resolved=!0,r()})}error(i){return new Promise(r=>{this.errorCallback(i),this.rejected=!0,r()})}cancel(){new Promise(i=>{this.errorCallback(new L.CancellationError),this.rejected=!0,i()})}}e.DeferredPromise=g;var _;(function(u){async function i(l){let h;const b=await Promise.all(l.map(N=>N.then(Q=>Q,Q=>{h||(h=Q)})));if(typeof h!="undefined")throw h;return b}u.settled=i;function r(l){return new Promise(async(h,b)=>{try{await l(h,b)}catch(N){b(N)}})}u.withAsyncBody=r})(_=e.Promises||(e.Promises={}));var d;(function(u){u[u.Initial=0]="Initial",u[u.DoneOK=1]="DoneOK",u[u.DoneError=2]="DoneError"})(d||(d={}));class y{constructor(i){this._state=0,this._results=[],this._error=null,this._onStateChanged=new C.Emitter,queueMicrotask(async()=>{const r={emitOne:l=>this.emitOne(l),emitMany:l=>this.emitMany(l),reject:l=>this.reject(l)};try{await Promise.resolve(i(r)),this.resolve()}catch(l){this.reject(l)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}static fromArray(i){return new y(r=>{r.emitMany(i)})}static fromPromise(i){return new y(async r=>{r.emitMany(await i)})}static fromPromises(i){return new y(async r=>{await Promise.all(i.map(async l=>r.emitOne(await l)))})}static merge(i){return new y(async r=>{await Promise.all(i.map(async l=>{for await(const h of l)r.emitOne(h)}))})}[Symbol.asyncIterator](){let i=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(i<this._results.length)return{done:!1,value:this._results[i++]};if(this._state===1)return{done:!0,value:void 0};await C.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(i,r){return new y(async l=>{for await(const h of i)l.emitOne(r(h))})}map(i){return y.map(this,i)}static filter(i,r){return new y(async l=>{for await(const h of i)r(h)&&l.emitOne(h)})}filter(i){return y.filter(this,i)}static coalesce(i){return y.filter(i,r=>!!r)}coalesce(){return y.coalesce(this)}static async toPromise(i){const r=[];for await(const l of i)r.push(l);return r}toPromise(){return y.toPromise(this)}emitOne(i){this._state===0&&(this._results.push(i),this._onStateChanged.fire())}emitMany(i){this._state===0&&(this._results=this._results.concat(i),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(i){this._state===0&&(this._state=2,this._error=i,this._onStateChanged.fire())}}e.AsyncIterableObject=y,y.EMPTY=y.fromArray([]);class I extends y{constructor(i,r){super(r);this._source=i}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=I;function F(u){const i=new S.CancellationTokenSource,r=u(i.token);return new I(i,async l=>{const h=i.token.onCancellationRequested(()=>{h.dispose(),i.dispose(),l.reject(new L.CancellationError)});try{for await(const b of r){if(i.token.isCancellationRequested)return;l.emitOne(b)}h.dispose(),i.dispose()}catch(b){h.dispose(),i.dispose(),l.reject(b)}})}e.createCancelableAsyncIterable=F}),define(ie[9],ne([0,1,11,8,5,10,4,2,3]),function(te,e,S,L,C,A,k,O,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.patternsEquals=e.getPathTerms=e.getBasenameTerms=e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=e.getEmptyExpression=void 0;function E(){return Object.create(null)}e.getEmptyExpression=E,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const D="[/\\\\]",M="[^/\\\\]",H=/\//g;function U(g,_){switch(g){case 0:return"";case 1:return`${M}*?`;default:return`(?:${D}|${M}+${D}${_?`|${D}${M}+`:""})*?`}}function o(g,_){if(!g)return[];const d=[];let y=!1,I=!1,F="";for(const u of g){switch(u){case _:if(!y&&!I){d.push(F),F="";continue}break;case"{":y=!0;break;case"}":y=!1;break;case"[":I=!0;break;case"]":I=!1;break}F+=u}return F&&d.push(F),d}e.splitGlobAware=o;function m(g){if(!g)return"";let _="";const d=o(g,e.GLOB_SPLIT);if(d.every(y=>y===e.GLOBSTAR))_=".*";else{let y=!1;d.forEach((I,F)=>{if(I===e.GLOBSTAR){if(y)return;_+=U(2,F===d.length-1)}else{let u=!1,i="",r=!1,l="";for(const h of I){if(h!=="}"&&u){i+=h;continue}if(r&&(h!=="]"||!l)){let b;h==="-"?b=h:(h==="^"||h==="!")&&!l?b="^":h===e.GLOB_SPLIT?b="":b=(0,P.escapeRegExpCharacters)(h),l+=b;continue}switch(h){case"{":u=!0;continue;case"[":r=!0;continue;case"}":{_+=`(?:${o(i,",").map(Q=>m(Q)).join("|")})`,u=!1,i="";break}case"]":{_+="["+l+"]",r=!1,l="";break}case"?":_+=M;continue;case"*":_+=U(1);continue;default:_+=(0,P.escapeRegExpCharacters)(h)}}F<d.length-1&&(d[F+1]!==e.GLOBSTAR||F+2<d.length)&&(_+=D)}y=I===e.GLOBSTAR})}return _}const w=/^\*\*\/\*\.[\w\.-]+$/,q=/^\*\*\/([\w\.-]+)\/?$/,$=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,T=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,z=/^\*\*((\/[\w\.-]+)+)\/?$/,J=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,R=new A.LRUCache(1e4),B=function(){return!1},f=function(){return null};function t(g,_){if(!g)return f;let d;typeof g!="string"?d=g.pattern:d=g,d=d.trim();const y=`${d}_${!!_.trimForExclusions}`;let I=R.get(y);if(I)return n(I,g);let F;return w.test(d)?I=a(d.substr(4),d):(F=q.exec(s(d,_)))?I=c(F[1],d):(_.trimForExclusions?T:$).test(d)?I=p(d,_):(F=z.exec(s(d,_)))?I=v(F[1].substr(1),d,!0):(F=J.exec(s(d,_)))?I=v(F[1],d,!1):I=W(d),R.set(y,I),n(I,g)}function n(g,_){if(typeof _=="string")return g;const d=function(y,I){return(0,C.isEqualOrParent)(y,_.base,!O.isLinux)?g(y.substr(_.base.length+1),I):null};return d.allBasenames=g.allBasenames,d.allPaths=g.allPaths,d.basenames=g.basenames,d.patterns=g.patterns,d}function s(g,_){return _.trimForExclusions&&g.endsWith("/**")?g.substr(0,g.length-2):g}function a(g,_){return function(d,y){return typeof d=="string"&&d.endsWith(g)?_:null}}function c(g,_){const d=`/${g}`,y=`\\${g}`,I=function(u,i){return typeof u!="string"?null:i?i===g?_:null:u===g||u.endsWith(d)||u.endsWith(y)?_:null},F=[g];return I.basenames=F,I.patterns=[_],I.allBasenames=F,I}function p(g,_){const d=K(g.slice(1,-1).split(",").map(i=>t(i,_)).filter(i=>i!==f),g),y=d.length;if(!y)return f;if(y===1)return d[0];const I=function(i,r){for(let l=0,h=d.length;l<h;l++)if(d[l](i,r))return g;return null},F=d.find(i=>!!i.allBasenames);F&&(I.allBasenames=F.allBasenames);const u=d.reduce((i,r)=>r.allPaths?i.concat(r.allPaths):i,[]);return u.length&&(I.allPaths=u),I}function v(g,_,d){const y=k.sep===k.posix.sep,I=y?g:g.replace(H,k.sep),F=k.sep+I,u=k.posix.sep+g;let i;return d?i=function(r,l){return typeof r=="string"&&(r===I||r.endsWith(F)||!y&&(r===g||r.endsWith(u)))?_:null}:i=function(r,l){return typeof r=="string"&&(r===I||!y&&r===g)?_:null},i.allPaths=[(d?"*/":"./")+g],i}function W(g){try{const _=new RegExp(`^${m(g)}$`);return function(d){return _.lastIndex=0,typeof d=="string"&&_.test(d)?g:null}}catch{return f}}function X(g,_,d){return!g||typeof _!="string"?!1:G(g)(_,void 0,d)}e.match=X;function G(g,_={}){if(!g)return B;if(typeof g=="string"||V(g)){const d=t(g,_);if(d===f)return B;const y=function(I,F){return!!d(I,F)};return d.allBasenames&&(y.allBasenames=d.allBasenames),d.allPaths&&(y.allPaths=d.allPaths),y}return j(g,_)}e.parse=G;function V(g){const _=g;return _?typeof _.base=="string"&&typeof _.pattern=="string":!1}e.isRelativePattern=V;function x(g){return g.allBasenames||[]}e.getBasenameTerms=x;function se(g){return g.allPaths||[]}e.getPathTerms=se;function j(g,_){const d=K(Object.getOwnPropertyNames(g).map(i=>Y(i,g[i],_)).filter(i=>i!==f)),y=d.length;if(!y)return f;if(!d.some(i=>!!i.requiresSiblings)){if(y===1)return d[0];const i=function(h,b){let N;for(let Q=0,Z=d.length;Q<Z;Q++){const re=d[Q](h,b);if(typeof re=="string")return re;(0,L.isThenable)(re)&&(N||(N=[]),N.push(re))}return N?(async()=>{for(const Q of N){const Z=await Q;if(typeof Z=="string")return Z}return null})():null},r=d.find(h=>!!h.allBasenames);r&&(i.allBasenames=r.allBasenames);const l=d.reduce((h,b)=>b.allPaths?h.concat(b.allPaths):h,[]);return l.length&&(i.allPaths=l),i}const I=function(i,r,l){let h,b;for(let N=0,Q=d.length;N<Q;N++){const Z=d[N];Z.requiresSiblings&&l&&(r||(r=(0,k.basename)(i)),h||(h=r.substr(0,r.length-(0,k.extname)(i).length)));const re=Z(i,r,h,l);if(typeof re=="string")return re;(0,L.isThenable)(re)&&(b||(b=[]),b.push(re))}return b?(async()=>{for(const N of b){const Q=await N;if(typeof Q=="string")return Q}return null})():null},F=d.find(i=>!!i.allBasenames);F&&(I.allBasenames=F.allBasenames);const u=d.reduce((i,r)=>r.allPaths?i.concat(r.allPaths):i,[]);return u.length&&(I.allPaths=u),I}function Y(g,_,d){if(_===!1)return f;const y=t(g,d);if(y===f)return f;if(typeof _=="boolean")return y;if(_){const I=_.when;if(typeof I=="string"){const F=(u,i,r,l)=>{if(!l||!y(u,i))return null;const h=I.replace("$(basename)",r),b=l(h);return(0,L.isThenable)(b)?b.then(N=>N?g:null):b?g:null};return F.requiresSiblings=!0,F}}return y}function K(g,_){const d=g.filter(i=>!!i.basenames);if(d.length<2)return g;const y=d.reduce((i,r)=>{const l=r.basenames;return l?i.concat(l):i},[]);let I;if(_){I=[];for(let i=0,r=y.length;i<r;i++)I.push(_)}else I=d.reduce((i,r)=>{const l=r.patterns;return l?i.concat(l):i},[]);const F=function(i,r){if(typeof i!="string")return null;if(!r){let h;for(h=i.length;h>0;h--){const b=i.charCodeAt(h-1);if(b===47||b===92)break}r=i.substr(h)}const l=y.indexOf(r);return l!==-1?I[l]:null};F.basenames=y,F.patterns=I,F.allBasenames=y;const u=g.filter(i=>!i.basenames);return u.push(F),u}function ee(g,_){return(0,S.equals)(g,_,(d,y)=>typeof d=="string"&&typeof y=="string"?d===y:typeof d!="string"&&typeof y!="string"?d.base===y.base&&d.pattern===y.pattern:!1)}e.patternsEquals=ee}),define(ie[14],ne([0,1,20]),function(te,e,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFileResults=void 0;const L=(C,A,k)=>{l