UNPKG

code-server

Version:

Run VS Code on a remote server.

3 lines • 54.3 kB
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var F=["require","exports","vs/base/common/platform","vs/base/common/path","vs/base/common/process","vs/base/common/event","vs/base/common/uri","vs/base/common/network","vs/base/common/decorators","vs/base/common/cancellation","vs/base/common/extpath","vs/base/common/strings","vs/base/common/types","vs/base/common/objects","vs/base/common/resources","vs/base/common/async","vs/base/common/errors","vs/base/common/lifecycle","vs/platform/extensions/node/extensionHostStarterWorker","child_process","string_decoder","vs/base/common/stopwatch"],K=function(j){for(var e=[],_=0,O=j.length;_<O;_++)e[_]=F[j[_]];return e};define(F[8],K([0,1]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function _(D){return($,P,y)=>{let b=null,I=null;if(typeof y.value=="function"?(b="value",I=y.value):typeof y.get=="function"&&(b="get",I=y.get),!I)throw new Error("not supported");y[b]=D(I,P)}}e.createDecorator=_;function O(D,$,P){let y=null,b=null;if(typeof P.value=="function"?(y="value",b=P.value,b.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof P.get=="function"&&(y="get",b=P.get),!b)throw new Error("not supported");const I=`$memoize$${$}`;P[y]=function(...W){return this.hasOwnProperty(I)||Object.defineProperty(this,I,{configurable:!1,enumerable:!1,writable:!1,value:b.apply(this,W)}),this[I]}}e.memoize=O;function q(D,$,P){return _((y,b)=>{const I=`$debounce$${b}`,W=`$debounce$result$${b}`;return function(...R){this[W]||(this[W]=P?P():void 0),clearTimeout(this[I]),$&&(this[W]=$(this[W],...R),R=[this[W]]),this[I]=setTimeout(()=>{y.apply(this,R),this[W]=P?P():void 0},D)}})}e.debounce=q;function U(D,$,P){return _((y,b)=>{const I=`$throttle$timer$${b}`,W=`$throttle$result$${b}`,R=`$throttle$lastRun$${b}`,l=`$throttle$pending$${b}`;return function(...a){if(this[W]||(this[W]=P?P():void 0),(this[R]===null||this[R]===void 0)&&(this[R]=-Number.MAX_VALUE),$&&(this[W]=$(this[W],...a)),this[l])return;const d=this[R]+D;d<=Date.now()?(this[R]=Date.now(),y.apply(this,[this[W]]),this[W]=P?P():void 0):(this[l]=!0,this[I]=setTimeout(()=>{this[l]=!1,this[R]=Date.now(),y.apply(this,[this[W]]),this[W]=P?P():void 0},d-Date.now()))}})}e.throttle=U}),define(F[4],K([0,1,2]),function(j,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let O;if(typeof _.globals.vscode!="undefined"&&typeof _.globals.vscode.process!="undefined"){const q=_.globals.vscode.process;O={get platform(){return q.platform},get arch(){return q.arch},get env(){return q.env},cwd(){return q.cwd()}}}else typeof process!="undefined"?O={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:O={get platform(){return _.isWindows?"win32":_.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=O.cwd,e.env=O.env,e.platform=O.platform,e.arch=O.arch}),define(F[3],K([0,1,4]),function(j,e,_){"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 O=65,q=97,U=90,D=122,$=46,P=47,y=92,b=58,I=63;class W extends Error{constructor(r,c,w){let h;typeof c=="string"&&c.indexOf("not ")===0?(h="must not be",c=c.replace(/^not /,"")):h="must be";const n=r.indexOf(".")!==-1?"property":"argument";let s=`The "${r}" ${n} ${h} of type ${c}`;s+=`. Received type ${typeof w}`,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function R(t,r){if(typeof t!="string")throw new W(r,"string",t)}function l(t){return t===P||t===y}function a(t){return t===P}function d(t){return t>=O&&t<=U||t>=q&&t<=D}function g(t,r,c,w){let h="",n=0,s=-1,i=0,u=0;for(let f=0;f<=t.length;++f){if(f<t.length)u=t.charCodeAt(f);else{if(w(u))break;u=P}if(w(u)){if(!(s===f-1||i===1))if(i===2){if(h.length<2||n!==2||h.charCodeAt(h.length-1)!==$||h.charCodeAt(h.length-2)!==$){if(h.length>2){const T=h.lastIndexOf(c);T===-1?(h="",n=0):(h=h.slice(0,T),n=h.length-1-h.lastIndexOf(c)),s=f,i=0;continue}else if(h.length!==0){h="",n=0,s=f,i=0;continue}}r&&(h+=h.length>0?`${c}..`:"..",n=2)}else h.length>0?h+=`${c}${t.slice(s+1,f)}`:h=t.slice(s+1,f),n=f-s-1;s=f,i=0}else u===$&&i!==-1?++i:i=-1}return h}function v(t,r){if(r===null||typeof r!="object")throw new W("pathObject","Object",r);const c=r.dir||r.root,w=r.base||`${r.name||""}${r.ext||""}`;return c?c===r.root?`${c}${w}`:`${c}${t}${w}`:w}e.win32={resolve(...t){let r="",c="",w=!1;for(let h=t.length-1;h>=-1;h--){let n;if(h>=0){if(n=t[h],R(n,"path"),n.length===0)continue}else r.length===0?n=_.cwd():(n=_.env[`=${r}`]||_.cwd(),(n===void 0||n.slice(0,2).toLowerCase()!==r.toLowerCase()&&n.charCodeAt(2)===y)&&(n=`${r}\\`));const s=n.length;let i=0,u="",f=!1;const T=n.charCodeAt(0);if(s===1)l(T)&&(i=1,f=!0);else if(l(T))if(f=!0,l(n.charCodeAt(1))){let C=2,k=C;for(;C<s&&!l(n.charCodeAt(C));)C++;if(C<s&&C!==k){const B=n.slice(k,C);for(k=C;C<s&&l(n.charCodeAt(C));)C++;if(C<s&&C!==k){for(k=C;C<s&&!l(n.charCodeAt(C));)C++;(C===s||C!==k)&&(u=`\\\\${B}\\${n.slice(k,C)}`,i=C)}}}else i=1;else d(T)&&n.charCodeAt(1)===b&&(u=n.slice(0,2),i=2,s>2&&l(n.charCodeAt(2))&&(f=!0,i=3));if(u.length>0)if(r.length>0){if(u.toLowerCase()!==r.toLowerCase())continue}else r=u;if(w){if(r.length>0)break}else if(c=`${n.slice(i)}\\${c}`,w=f,f&&r.length>0)break}return c=g(c,!w,"\\",l),w?`${r}\\${c}`:`${r}${c}`||"."},normalize(t){R(t,"path");const r=t.length;if(r===0)return".";let c=0,w,h=!1;const n=t.charCodeAt(0);if(r===1)return a(n)?"\\":t;if(l(n))if(h=!0,l(t.charCodeAt(1))){let i=2,u=i;for(;i<r&&!l(t.charCodeAt(i));)i++;if(i<r&&i!==u){const f=t.slice(u,i);for(u=i;i<r&&l(t.charCodeAt(i));)i++;if(i<r&&i!==u){for(u=i;i<r&&!l(t.charCodeAt(i));)i++;if(i===r)return`\\\\${f}\\${t.slice(u)}\\`;i!==u&&(w=`\\\\${f}\\${t.slice(u,i)}`,c=i)}}}else c=1;else d(n)&&t.charCodeAt(1)===b&&(w=t.slice(0,2),c=2,r>2&&l(t.charCodeAt(2))&&(h=!0,c=3));let s=c<r?g(t.slice(c),!h,"\\",l):"";return s.length===0&&!h&&(s="."),s.length>0&&l(t.charCodeAt(r-1))&&(s+="\\"),w===void 0?h?`\\${s}`:s:h?`${w}\\${s}`:`${w}${s}`},isAbsolute(t){R(t,"path");const r=t.length;if(r===0)return!1;const c=t.charCodeAt(0);return l(c)||r>2&&d(c)&&t.charCodeAt(1)===b&&l(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let r,c;for(let n=0;n<t.length;++n){const s=t[n];R(s,"path"),s.length>0&&(r===void 0?r=c=s:r+=`\\${s}`)}if(r===void 0)return".";let w=!0,h=0;if(typeof c=="string"&&l(c.charCodeAt(0))){++h;const n=c.length;n>1&&l(c.charCodeAt(1))&&(++h,n>2&&(l(c.charCodeAt(2))?++h:w=!1))}if(w){for(;h<r.length&&l(r.charCodeAt(h));)h++;h>=2&&(r=`\\${r.slice(h)}`)}return e.win32.normalize(r)},relative(t,r){if(R(t,"from"),R(r,"to"),t===r)return"";const c=e.win32.resolve(t),w=e.win32.resolve(r);if(c===w||(t=c.toLowerCase(),r=w.toLowerCase(),t===r))return"";let h=0;for(;h<t.length&&t.charCodeAt(h)===y;)h++;let n=t.length;for(;n-1>h&&t.charCodeAt(n-1)===y;)n--;const s=n-h;let i=0;for(;i<r.length&&r.charCodeAt(i)===y;)i++;let u=r.length;for(;u-1>i&&r.charCodeAt(u-1)===y;)u--;const f=u-i,T=s<f?s:f;let C=-1,k=0;for(;k<T;k++){const Q=t.charCodeAt(h+k);if(Q!==r.charCodeAt(i+k))break;Q===y&&(C=k)}if(k!==T){if(C===-1)return w}else{if(f>T){if(r.charCodeAt(i+k)===y)return w.slice(i+k+1);if(k===2)return w.slice(i+k)}s>T&&(t.charCodeAt(h+k)===y?C=k:k===2&&(C=3)),C===-1&&(C=0)}let B="";for(k=h+C+1;k<=n;++k)(k===n||t.charCodeAt(k)===y)&&(B+=B.length===0?"..":"\\..");return i+=C,B.length>0?`${B}${w.slice(i,u)}`:(w.charCodeAt(i)===y&&++i,w.slice(i,u))},toNamespacedPath(t){if(typeof t!="string")return t;if(t.length===0)return"";const r=e.win32.resolve(t);if(r.length<=2)return t;if(r.charCodeAt(0)===y){if(r.charCodeAt(1)===y){const c=r.charCodeAt(2);if(c!==I&&c!==$)return`\\\\?\\UNC\\${r.slice(2)}`}}else if(d(r.charCodeAt(0))&&r.charCodeAt(1)===b&&r.charCodeAt(2)===y)return`\\\\?\\${r}`;return t},dirname(t){R(t,"path");const r=t.length;if(r===0)return".";let c=-1,w=0;const h=t.charCodeAt(0);if(r===1)return l(h)?t:".";if(l(h)){if(c=w=1,l(t.charCodeAt(1))){let i=2,u=i;for(;i<r&&!l(t.charCodeAt(i));)i++;if(i<r&&i!==u){for(u=i;i<r&&l(t.charCodeAt(i));)i++;if(i<r&&i!==u){for(u=i;i<r&&!l(t.charCodeAt(i));)i++;if(i===r)return t;i!==u&&(c=w=i+1)}}}}else d(h)&&t.charCodeAt(1)===b&&(c=r>2&&l(t.charCodeAt(2))?3:2,w=c);let n=-1,s=!0;for(let i=r-1;i>=w;--i)if(l(t.charCodeAt(i))){if(!s){n=i;break}}else s=!1;if(n===-1){if(c===-1)return".";n=c}return t.slice(0,n)},basename(t,r){r!==void 0&&R(r,"ext"),R(t,"path");let c=0,w=-1,h=!0,n;if(t.length>=2&&d(t.charCodeAt(0))&&t.charCodeAt(1)===b&&(c=2),r!==void 0&&r.length>0&&r.length<=t.length){if(r===t)return"";let s=r.length-1,i=-1;for(n=t.length-1;n>=c;--n){const u=t.charCodeAt(n);if(l(u)){if(!h){c=n+1;break}}else i===-1&&(h=!1,i=n+1),s>=0&&(u===r.charCodeAt(s)?--s==-1&&(w=n):(s=-1,w=i))}return c===w?w=i:w===-1&&(w=t.length),t.slice(c,w)}for(n=t.length-1;n>=c;--n)if(l(t.charCodeAt(n))){if(!h){c=n+1;break}}else w===-1&&(h=!1,w=n+1);return w===-1?"":t.slice(c,w)},extname(t){R(t,"path");let r=0,c=-1,w=0,h=-1,n=!0,s=0;t.length>=2&&t.charCodeAt(1)===b&&d(t.charCodeAt(0))&&(r=w=2);for(let i=t.length-1;i>=r;--i){const u=t.charCodeAt(i);if(l(u)){if(!n){w=i+1;break}continue}h===-1&&(n=!1,h=i+1),u===$?c===-1?c=i:s!==1&&(s=1):c!==-1&&(s=-1)}return c===-1||h===-1||s===0||s===1&&c===h-1&&c===w+1?"":t.slice(c,h)},format:v.bind(null,"\\"),parse(t){R(t,"path");const r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;const c=t.length;let w=0,h=t.charCodeAt(0);if(c===1)return l(h)?(r.root=r.dir=t,r):(r.base=r.name=t,r);if(l(h)){if(w=1,l(t.charCodeAt(1))){let C=2,k=C;for(;C<c&&!l(t.charCodeAt(C));)C++;if(C<c&&C!==k){for(k=C;C<c&&l(t.charCodeAt(C));)C++;if(C<c&&C!==k){for(k=C;C<c&&!l(t.charCodeAt(C));)C++;C===c?w=C:C!==k&&(w=C+1)}}}}else if(d(h)&&t.charCodeAt(1)===b){if(c<=2)return r.root=r.dir=t,r;if(w=2,l(t.charCodeAt(2))){if(c===3)return r.root=r.dir=t,r;w=3}}w>0&&(r.root=t.slice(0,w));let n=-1,s=w,i=-1,u=!0,f=t.length-1,T=0;for(;f>=w;--f){if(h=t.charCodeAt(f),l(h)){if(!u){s=f+1;break}continue}i===-1&&(u=!1,i=f+1),h===$?n===-1?n=f:T!==1&&(T=1):n!==-1&&(T=-1)}return i!==-1&&(n===-1||T===0||T===1&&n===i-1&&n===s+1?r.base=r.name=t.slice(s,i):(r.name=t.slice(s,n),r.base=t.slice(s,i),r.ext=t.slice(n,i))),s>0&&s!==w?r.dir=t.slice(0,s-1):r.dir=r.root,r},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...t){let r="",c=!1;for(let w=t.length-1;w>=-1&&!c;w--){const h=w>=0?t[w]:_.cwd();R(h,"path"),h.length!==0&&(r=`${h}/${r}`,c=h.charCodeAt(0)===P)}return r=g(r,!c,"/",a),c?`/${r}`:r.length>0?r:"."},normalize(t){if(R(t,"path"),t.length===0)return".";const r=t.charCodeAt(0)===P,c=t.charCodeAt(t.length-1)===P;return t=g(t,!r,"/",a),t.length===0?r?"/":c?"./":".":(c&&(t+="/"),r?`/${t}`:t)},isAbsolute(t){return R(t,"path"),t.length>0&&t.charCodeAt(0)===P},join(...t){if(t.length===0)return".";let r;for(let c=0;c<t.length;++c){const w=t[c];R(w,"path"),w.length>0&&(r===void 0?r=w:r+=`/${w}`)}return r===void 0?".":e.posix.normalize(r)},relative(t,r){if(R(t,"from"),R(r,"to"),t===r||(t=e.posix.resolve(t),r=e.posix.resolve(r),t===r))return"";const c=1,w=t.length,h=w-c,n=1,s=r.length-n,i=h<s?h:s;let u=-1,f=0;for(;f<i;f++){const C=t.charCodeAt(c+f);if(C!==r.charCodeAt(n+f))break;C===P&&(u=f)}if(f===i)if(s>i){if(r.charCodeAt(n+f)===P)return r.slice(n+f+1);if(f===0)return r.slice(n+f)}else h>i&&(t.charCodeAt(c+f)===P?u=f:f===0&&(u=0));let T="";for(f=c+u+1;f<=w;++f)(f===w||t.charCodeAt(f)===P)&&(T+=T.length===0?"..":"/..");return`${T}${r.slice(n+u)}`},toNamespacedPath(t){return t},dirname(t){if(R(t,"path"),t.length===0)return".";const r=t.charCodeAt(0)===P;let c=-1,w=!0;for(let h=t.length-1;h>=1;--h)if(t.charCodeAt(h)===P){if(!w){c=h;break}}else w=!1;return c===-1?r?"/":".":r&&c===1?"//":t.slice(0,c)},basename(t,r){r!==void 0&&R(r,"ext"),R(t,"path");let c=0,w=-1,h=!0,n;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r===t)return"";let s=r.length-1,i=-1;for(n=t.length-1;n>=0;--n){const u=t.charCodeAt(n);if(u===P){if(!h){c=n+1;break}}else i===-1&&(h=!1,i=n+1),s>=0&&(u===r.charCodeAt(s)?--s==-1&&(w=n):(s=-1,w=i))}return c===w?w=i:w===-1&&(w=t.length),t.slice(c,w)}for(n=t.length-1;n>=0;--n)if(t.charCodeAt(n)===P){if(!h){c=n+1;break}}else w===-1&&(h=!1,w=n+1);return w===-1?"":t.slice(c,w)},extname(t){R(t,"path");let r=-1,c=0,w=-1,h=!0,n=0;for(let s=t.length-1;s>=0;--s){const i=t.charCodeAt(s);if(i===P){if(!h){c=s+1;break}continue}w===-1&&(h=!1,w=s+1),i===$?r===-1?r=s:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||w===-1||n===0||n===1&&r===w-1&&r===c+1?"":t.slice(r,w)},format:v.bind(null,"/"),parse(t){R(t,"path");const r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;const c=t.charCodeAt(0)===P;let w;c?(r.root="/",w=1):w=0;let h=-1,n=0,s=-1,i=!0,u=t.length-1,f=0;for(;u>=w;--u){const T=t.charCodeAt(u);if(T===P){if(!i){n=u+1;break}continue}s===-1&&(i=!1,s=u+1),T===$?h===-1?h=u:f!==1&&(f=1):h!==-1&&(f=-1)}if(s!==-1){const T=n===0&&c?1:n;h===-1||f===0||f===1&&h===s-1&&h===n+1?r.base=r.name=t.slice(T,s):(r.name=t.slice(T,h),r.base=t.slice(T,s),r.ext=t.slice(h,s))}return n>0?r.dir=t.slice(0,n-1):c&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=_.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=_.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=_.platform==="win32"?e.win32.join:e.posix.join,e.resolve=_.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=_.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=_.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=_.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=_.platform==="win32"?e.win32.extname:e.posix.extname,e.format=_.platform==="win32"?e.win32.format:e.posix.format,e.parse=_.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=_.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=_.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=_.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(F[9],K([0,1,5]),function(j,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const O=Object.freeze(function($,P){const y=setTimeout($.bind(P),0);return{dispose(){clearTimeout(y)}}});var q;(function($){function P(y){return y===$.None||y===$.Cancelled||y instanceof U?!0:!y||typeof y!="object"?!1:typeof y.isCancellationRequested=="boolean"&&typeof y.onCancellationRequested=="function"}$.isCancellationToken=P,$.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_.Event.None}),$.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:O})})(q=e.CancellationToken||(e.CancellationToken={}));class U{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?O:(this._emitter||(this._emitter=new _.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class D{constructor(P){this._token=void 0,this._parentListener=void 0,this._parentListener=P&&P.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new U),this._token}cancel(){this._token?this._token instanceof U&&this._token.cancel():this._token=q.Cancelled}dispose(P=!1){P&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof U&&this._token.dispose():this._token=q.None}}e.CancellationTokenSource=D}),define(F[10],K([0,1,3,2,11,12]),function(j,e,_,O,q,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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 D(n){return n===47||n===92}e.isPathSeparator=D;function $(n){return n.replace(/[\\/]/g,_.posix.sep)}e.toSlashes=$;function P(n){return n.indexOf("/")===-1&&(n=$(n)),/^[a-zA-Z]:(\/|$)/.test(n)&&(n="/"+n),n}e.toPosixPath=P;function y(n,s=_.posix.sep){if(!n)return"";const i=n.length,u=n.charCodeAt(0);if(D(u)){if(D(n.charCodeAt(1))&&!D(n.charCodeAt(2))){let T=3;const C=T;for(;T<i&&!D(n.charCodeAt(T));T++);if(C!==T&&!D(n.charCodeAt(T+1))){for(T+=1;T<i;T++)if(D(n.charCodeAt(T)))return n.slice(0,T+1).replace(/[\\/]/g,s)}}return s}else if(g(u)&&n.charCodeAt(1)===58)return D(n.charCodeAt(2))?n.slice(0,2)+s:n.slice(0,2);let f=n.indexOf("://");if(f!==-1){for(f+=3;f<i;f++)if(D(n.charCodeAt(f)))return n.slice(0,f+1)}return""}e.getRoot=y;function b(n){if(!O.isWindows||!n||n.length<5)return!1;let s=n.charCodeAt(0);if(s!==92||(s=n.charCodeAt(1),s!==92))return!1;let i=2;const u=i;for(;i<n.length&&(s=n.charCodeAt(i),s!==92);i++);return!(u===i||(s=n.charCodeAt(i+1),isNaN(s)||s===92))}e.isUNC=b;const I=/[\\/:\*\?"<>\|]/g,W=/[\\/]/g,R=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function l(n,s=O.isWindows){const i=s?I:W;return!(!n||n.length===0||/^\s+$/.test(n)||(i.lastIndex=0,i.test(n))||s&&R.test(n)||n==="."||n===".."||s&&n[n.length-1]==="."||s&&n.length!==n.trim().length||n.length>255)}e.isValidBasename=l;function a(n,s,i){const u=n===s;return!i||u?u:!n||!s?!1:(0,q.equalsIgnoreCase)(n,s)}e.isEqual=a;function d(n,s,i,u=_.sep){if(n===s)return!0;if(!n||!s||s.length>n.length)return!1;if(i){if(!(0,q.startsWithIgnoreCase)(n,s))return!1;if(s.length===n.length)return!0;let T=s.length;return s.charAt(s.length-1)===u&&T--,n.charAt(T)===u}return s.charAt(s.length-1)!==u&&(s+=u),n.indexOf(s)===0}e.isEqualOrParent=d;function g(n){return n>=65&&n<=90||n>=97&&n<=122}e.isWindowsDriveLetter=g;function v(n,s){return O.isWindows&&n.endsWith(":")&&(n+=_.sep),(0,_.isAbsolute)(n)||(n=(0,_.join)(s,n)),n=(0,_.normalize)(n),O.isWindows?(n=(0,q.rtrim)(n,_.sep),n.endsWith(":")&&(n+=_.sep)):(n=(0,q.rtrim)(n,_.sep),n||(n=_.sep)),n}e.sanitizeFilePath=v;function t(n){const s=(0,_.normalize)(n);return O.isWindows?n.length>3?!1:r(s)&&(n.length===2||s.charCodeAt(2)===92):s===_.posix.sep}e.isRootOrDriveLetter=t;function r(n,s){return(s!==void 0?s:O.isWindows)?g(n.charCodeAt(0))&&n.charCodeAt(1)===58:!1}e.hasDriveLetter=r;function c(n){return r(n)?n[0]:void 0}e.getDriveLetter=c;function w(n,s,i){return s.length>n.length?-1:n===s?0:(i&&(n=n.toLowerCase(),s=s.toLowerCase()),n.indexOf(s))}e.indexOfPath=w;function h(n){const s=n.split(":");let i,u,f;if(s.forEach(T=>{const C=Number(T);(0,U.isNumber)(C)?u===void 0?u=C:f===void 0&&(f=C):i=i?[i,T].join(":"):T}),!i)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:i,line:u!==void 0?u:void 0,column:f!==void 0?f:u!==void 0?1:void 0}}e.parseLineAndColumnAware=h}),define(F[13],K([0,1,12]),function(j,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=e.getCaseInsensitive=e.distinct=e.getOrDefault=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function O(a){if(!a||typeof a!="object"||a instanceof RegExp)return a;const d=Array.isArray(a)?[]:{};return Object.keys(a).forEach(g=>{a[g]&&typeof a[g]=="object"?d[g]=O(a[g]):d[g]=a[g]}),d}e.deepClone=O;function q(a){if(!a||typeof a!="object")return a;const d=[a];for(;d.length>0;){const g=d.shift();Object.freeze(g);for(const v in g)if(U.call(g,v)){const t=g[v];typeof t=="object"&&!Object.isFrozen(t)&&d.push(t)}}return a}e.deepFreeze=q;const U=Object.prototype.hasOwnProperty;function D(a,d){return $(a,d,new Set)}e.cloneAndChange=D;function $(a,d,g){if((0,_.isUndefinedOrNull)(a))return a;const v=d(a);if(typeof v!="undefined")return v;if((0,_.isArray)(a)){const t=[];for(const r of a)t.push($(r,d,g));return t}if((0,_.isObject)(a)){if(g.has(a))throw new Error("Cannot clone recursive data-structure");g.add(a);const t={};for(let r in a)U.call(a,r)&&(t[r]=$(a[r],d,g));return g.delete(a),t}return a}function P(a,d,g=!0){return(0,_.isObject)(a)?((0,_.isObject)(d)&&Object.keys(d).forEach(v=>{v in a?g&&((0,_.isObject)(a[v])&&(0,_.isObject)(d[v])?P(a[v],d[v],g):a[v]=d[v]):a[v]=d[v]}),a):d}e.mixin=P;function y(a,d){if(a===d)return!0;if(a==null||d===null||d===void 0||typeof a!=typeof d||typeof a!="object"||Array.isArray(a)!==Array.isArray(d))return!1;let g,v;if(Array.isArray(a)){if(a.length!==d.length)return!1;for(g=0;g<a.length;g++)if(!y(a[g],d[g]))return!1}else{const t=[];for(v in a)t.push(v);t.sort();const r=[];for(v in d)r.push(v);if(r.sort(),!y(t,r))return!1;for(g=0;g<t.length;g++)if(!y(a[t[g]],d[t[g]]))return!1}return!0}e.equals=y;function b(a){const d=new Set;return JSON.stringify(a,(g,v)=>{if((0,_.isObject)(v)||Array.isArray(v)){if(d.has(v))return"[Circular]";d.add(v)}return v})}e.safeStringify=b;function I(a,d,g){const v=d(a);return typeof v=="undefined"?g:v}e.getOrDefault=I;function W(a,d){const g=Object.create(null);return!a||!d||Object.keys(d).forEach(t=>{const r=a[t],c=d[t];y(r,c)||(g[t]=c)}),g}e.distinct=W;function R(a,d){const g=d.toLowerCase(),v=Object.keys(a).find(t=>t.toLowerCase()===g);return v?a[v]:a[d]}e.getCaseInsensitive=R;function l(a,d){const g=Object.create(null);for(const[v,t]of Object.entries(a))d(v,t)&&(g[v]=t);return g}e.filter=l}),define(F[6],K([0,1,3,2]),function(j,e,_,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodePath=e.uriToFsPath=e.URI=void 0;const q=/^\w[\w\d+.-]*$/,U=/^\//,D=/^\/\//;function $(s,i){if(!s.scheme&&i)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${s.authority}", path: "${s.path}", query: "${s.query}", fragment: "${s.fragment}"}`);if(s.scheme&&!q.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!U.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(D.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function P(s,i){return!s&&!i?"file":s}function y(s,i){switch(s){case"https":case"http":case"file":i?i[0]!==I&&(i=I+i):i=I;break}return i}const b="",I="/",W=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class R{constructor(i,u,f,T,C,k=!1){typeof i=="object"?(this.scheme=i.scheme||b,this.authority=i.authority||b,this.path=i.path||b,this.query=i.query||b,this.fragment=i.fragment||b):(this.scheme=P(i,k),this.authority=u||b,this.path=y(this.scheme,f||b),this.query=T||b,this.fragment=C||b,$(this,k))}static isUri(i){return i instanceof R?!0:i?typeof i.authority=="string"&&typeof i.fragment=="string"&&typeof i.path=="string"&&typeof i.query=="string"&&typeof i.scheme=="string"&&typeof i.fsPath=="string"&&typeof i.with=="function"&&typeof i.toString=="function":!1}get fsPath(){return t(this,!1)}with(i){if(!i)return this;let{scheme:u,authority:f,path:T,query:C,fragment:k}=i;return u===void 0?u=this.scheme:u===null&&(u=b),f===void 0?f=this.authority:f===null&&(f=b),T===void 0?T=this.path:T===null&&(T=b),C===void 0?C=this.query:C===null&&(C=b),k===void 0?k=this.fragment:k===null&&(k=b),u===this.scheme&&f===this.authority&&T===this.path&&C===this.query&&k===this.fragment?this:new a(u,f,T,C,k)}static parse(i,u=!1){const f=W.exec(i);return f?new a(f[2]||b,h(f[4]||b),h(f[5]||b),h(f[7]||b),h(f[9]||b),u):new a(b,b,b,b,b)}static file(i){let u=b;if(O.isWindows&&(i=i.replace(/\\/g,I)),i[0]===I&&i[1]===I){const f=i.indexOf(I,2);f===-1?(u=i.substring(2),i=I):(u=i.substring(2,f),i=i.substring(f)||I)}return new a("file",u,i,b,b)}static from(i){const u=new a(i.scheme,i.authority,i.path,i.query,i.fragment);return $(u,!0),u}static joinPath(i,...u){if(!i.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let f;return O.isWindows&&i.scheme==="file"?f=R.file(_.win32.join(t(i,!0),...u)).path:f=_.posix.join(i.path,...u),i.with({path:f})}toString(i=!1){return r(this,i)}toJSON(){return this}static revive(i){if(i){if(i instanceof R)return i;{const u=new a(i);return u._formatted=i.external,u._fsPath=i._sep===l?i.fsPath:null,u}}else return i}}e.URI=R;const l=O.isWindows?1:void 0;class a extends R{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=t(this,!1)),this._fsPath}toString(i=!1){return i?r(this,!0):(this._formatted||(this._formatted=r(this,!1)),this._formatted)}toJSON(){const i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=l),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i}}const d={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function g(s,i){let u,f=-1;for(let T=0;T<s.length;T++){const C=s.charCodeAt(T);if(C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===45||C===46||C===95||C===126||i&&C===47)f!==-1&&(u+=encodeURIComponent(s.substring(f,T)),f=-1),u!==void 0&&(u+=s.charAt(T));else{u===void 0&&(u=s.substr(0,T));const k=d[C];k!==void 0?(f!==-1&&(u+=encodeURIComponent(s.substring(f,T)),f=-1),u+=k):f===-1&&(f=T)}}return f!==-1&&(u+=encodeURIComponent(s.substring(f))),u!==void 0?u:s}function v(s){let i;for(let u=0;u<s.length;u++){const f=s.charCodeAt(u);f===35||f===63?(i===void 0&&(i=s.substr(0,u)),i+=d[f]):i!==void 0&&(i+=s[u])}return i!==void 0?i:s}function t(s,i){let u;return s.authority&&s.path.length>1&&s.scheme==="file"?u=`//${s.authority}${s.path}`:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?i?u=s.path.substr(1):u=s.path[1].toLowerCase()+s.path.substr(2):u=s.path,O.isWindows&&(u=u.replace(/\//g,"\\")),u}e.uriToFsPath=t;function r(s,i){const u=i?v:g;let f="",{scheme:T,authority:C,path:k,query:B,fragment:Q}=s;if(T&&(f+=T,f+=":"),(C||T==="file")&&(f+=I,f+=I),C){let M=C.indexOf("@");if(M!==-1){const Y=C.substr(0,M);C=C.substr(M+1),M=Y.indexOf(":"),M===-1?f+=u(Y,!1):(f+=u(Y.substr(0,M),!1),f+=":",f+=u(Y.substr(M+1),!1)),f+="@"}C=C.toLowerCase(),M=C.indexOf(":"),M===-1?f+=u(C,!1):(f+=u(C.substr(0,M),!1),f+=C.substr(M))}if(k){if(k.length>=3&&k.charCodeAt(0)===47&&k.charCodeAt(2)===58){const M=k.charCodeAt(1);M>=65&&M<=90&&(k=`/${String.fromCharCode(M+32)}:${k.substr(3)}`)}else if(k.length>=2&&k.charCodeAt(1)===58){const M=k.charCodeAt(0);M>=65&&M<=90&&(k=`${String.fromCharCode(M+32)}:${k.substr(2)}`)}f+=u(k,!0)}return B&&(f+="?",f+=u(B,!1)),Q&&(f+="#",f+=i?Q:g(Q,!1)),f}function c(s){try{return decodeURIComponent(s)}catch{return s.length>3?s.substr(0,3)+c(s.substr(3)):s}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function h(s){return s.match(w)?s.replace(w,i=>c(i)):s}const n=s=>s.split("/").map(i=>encodeURIComponent(i)).join("/");e.encodePath=n});var G=this&&this.__decorate||function(j,e,_,O){var q=arguments.length,U=q<3?e:O===null?O=Object.getOwnPropertyDescriptor(e,_):O,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(j,e,_,O);else for(var $=j.length-1;$>=0;$--)(D=j[$])&&(U=(q<3?D(U):q>3?D(e,_,U):D(e,_))||U);return q>3&&U&&Object.defineProperty(e,_,U),U};define(F[7],K([0,1,8,2,6]),function(j,e,_,O,q){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileAccess=e.RemoteAuthorities=e.Schemas=void 0;var U;(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.userData="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"})(U=e.Schemas||(e.Schemas={}));class D{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(y){this._preferredWebSchema=y}setDelegate(y){this._delegate=y}set(y,b,I){this._hosts[y]=b,this._ports[y]=I}setConnectionToken(y,b){this._connectionTokens[y]=b}get remoteResourcePath(){if(O.isWeb){const y=q.URI.parse(window.location.toString());return q.URI.joinPath(y,U.vscodeRemoteResource).path}return`/${U.vscodeRemoteResource}`}rewrite(y){if(this._delegate)return this._delegate(y);const b=y.authority;let I=this._hosts[b];I&&I.indexOf(":")!==-1&&(I=`[${I}]`);const W=this._ports[b],R=this._connectionTokens[b];let l=`path=${encodeURIComponent(y.path)}`;return typeof R=="string"&&(l+=`&tkn=${encodeURIComponent(R)}`),q.URI.from({scheme:O.isWeb?this._preferredWebSchema:U.vscodeRemoteResource,authority:`${I}:${W}`,path:this.remoteResourcePath,query:l})}}G([_.memoize],D.prototype,"remoteResourcePath",null),e.RemoteAuthorities=new D;class ${asBrowserUri(y,b){const I=this.toUri(y,b);return I.scheme===U.vscodeRemote?e.RemoteAuthorities.rewrite(I):I.scheme===U.file&&(O.isNative||typeof O.globals.importScripts=="function"&&O.globals.origin===`${U.vscodeFileResource}://${$.FALLBACK_AUTHORITY}`)?I.with({scheme:U.vscodeFileResource,authority:I.authority||$.FALLBACK_AUTHORITY,query:null,fragment:null}):I}asFileUri(y,b){const I=this.toUri(y,b);return I.scheme===U.vscodeFileResource?I.with({scheme:U.file,authority:I.authority!==$.FALLBACK_AUTHORITY?I.authority:null,query:null,fragment:null}):I}toUri(y,b){return q.URI.isUri(y)?y:q.URI.parse(b.toUrl(y))}}$.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new $}),define(F[14],K([0,1,10,7,3,2,11,6]),function(j,e,_,O,q,U,D,$){"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(R){return(0,$.uriToFsPath)(R,!0)}e.originalFSPath=P;class y{constructor(l){this._ignorePathCasing=l}compare(l,a,d=!1){return l===a?0:(0,D.compare)(this.getComparisonKey(l,d),this.getComparisonKey(a,d))}isEqual(l,a,d=!1){return l===a?!0:!l||!a?!1:this.getComparisonKey(l,d)===this.getComparisonKey(a,d)}getComparisonKey(l,a=!1){return l.with({path:this._ignorePathCasing(l)?l.path.toLowerCase():void 0,fragment:a?null:void 0}).toString()}ignorePathCasing(l){return this._ignorePathCasing(l)}isEqualOrParent(l,a,d=!1){if(l.scheme===a.scheme){if(l.scheme===O.Schemas.file)return _.isEqualOrParent(P(l),P(a),this._ignorePathCasing(l))&&l.query===a.query&&(d||l.fragment===a.fragment);if((0,e.isEqualAuthority)(l.authority,a.authority))return _.isEqualOrParent(l.path,a.path,this._ignorePathCasing(l),"/")&&l.query===a.query&&(d||l.fragment===a.fragment)}return!1}joinPath(l,...a){return $.URI.joinPath(l,...a)}basenameOrAuthority(l){return(0,e.basename)(l)||l.authority}basename(l){return q.posix.basename(l.path)}extname(l){return q.posix.extname(l.path)}dirname(l){if(l.path.length===0)return l;let a;return l.scheme===O.Schemas.file?a=$.URI.file(q.dirname(P(l))).path:(a=q.posix.dirname(l.path),l.authority&&a.length&&a.charCodeAt(0)!==47&&(console.error(`dirname("${l.toString})) resulted in a relative path`),a="/")),l.with({path:a})}normalizePath(l){if(!l.path.length)return l;let a;return l.scheme===O.Schemas.file?a=$.URI.file(q.normalize(P(l))).path:a=q.posix.normalize(l.path),l.with({path:a})}relativePath(l,a){if(l.scheme!==a.scheme||!(0,e.isEqualAuthority)(l.authority,a.authority))return;if(l.scheme===O.Schemas.file){const v=q.relative(P(l),P(a));return U.isWindows?_.toSlashes(v):v}let d=l.path||"/",g=a.path||"/";if(this._ignorePathCasing(l)){let v=0;for(const t=Math.min(d.length,g.length);v<t&&!(d.charCodeAt(v)!==g.charCodeAt(v)&&d.charAt(v).toLowerCase()!==g.charAt(v).toLowerCase());v++);d=g.substr(0,v)+d.substr(v)}return q.posix.relative(d,g)}resolvePath(l,a){if(l.scheme===O.Schemas.file){const d=$.URI.file(q.resolve(P(l),a));return l.with({authority:d.authority,path:d.path})}return a=_.toPosixPath(a),l.with({path:q.posix.resolve(l.path,a)})}isAbsolutePath(l){return!!l.path&&l.path[0]==="/"}isEqualAuthority(l,a){return l===a||l!==void 0&&a!==void 0&&(0,D.equalsIgnoreCase)(l,a)}hasTrailingPathSeparator(l,a=q.sep){if(l.scheme===O.Schemas.file){const d=P(l);return d.length>_.getRoot(d).length&&d[d.length-1]===a}else{const d=l.path;return d.length>1&&d.charCodeAt(d.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(l.fsPath)}}removeTrailingPathSeparator(l,a=q.sep){return(0,e.hasTrailingPathSeparator)(l,a)?l.with({path:l.path.substr(0,l.path.length-1)}):l}addTrailingPathSeparator(l,a=q.sep){let d=!1;if(l.scheme===O.Schemas.file){const g=P(l);d=g!==void 0&&g.length===_.getRoot(g).length&&g[g.length-1]===a}else{a="/";const g=l.path;d=g.length===1&&g.charCodeAt(g.length-1)===47}return!d&&!(0,e.hasTrailingPathSeparator)(l,a)?l.with({path:l.path+"/"}):l}}e.ExtUri=y,e.extUri=new y(()=>!1),e.extUriBiasedIgnorePathCase=new y(R=>R.scheme===O.Schemas.file?!U.isLinux:!0),e.extUriIgnorePathCase=new y(R=>!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 b(R,l){const a=[];for(let d=0;d<R.length;d++){const g=l(R[d]);R.some((v,t)=>t===d?!1:(0,e.isEqualOrParent)(g,l(v)))||a.push(R[d])}return a}e.distinctParents=b;var I;(function(R){R.META_DATA_LABEL="label",R.META_DATA_DESCRIPTION="description",R.META_DATA_SIZE="size",R.META_DATA_MIME="mime";function l(a){const d=new Map;a.path.substring(a.path.indexOf(";")+1,a.path.lastIndexOf(";")).split(";").forEach(t=>{const[r,c]=t.split(":");r&&c&&d.set(r,c)});const v=a.path.substring(0,a.path.indexOf(";"));return v&&d.set(R.META_DATA_MIME,v),d}R.parseMetaData=l})(I=e.DataUri||(e.DataUri={}));function W(R,l,a){if(l){let d=R.path;return d&&d[0]!==q.posix.sep&&(d=q.posix.sep+d),R.with({scheme:a,authority:l,path:d})}return R.with({scheme:a})}e.toLocalResource=W}),define(F[15],K([0,1,9,16,5,17,14,2]),function(j,e,_,O,q,U,D,$){"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.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function P(E){return!!E&&typeof E.then=="function"}e.isThenable=P;function y(E){const o=new _.CancellationTokenSource,m=E(o.token),A=new Promise((S,L)=>{const z=o.token.onCancellationRequested(()=>{z.dispose(),o.dispose(),L((0,O.canceled)())});Promise.resolve(m).then(H=>{z.dispose(),o.dispose(),S(H)},H=>{z.dispose(),o.dispose(),L(H)})});return new class{cancel(){o.cancel()}then(S,L){return A.then(S,L)}catch(S){return this.then(void 0,S)}finally(S){return A.finally(S)}}}e.createCancelablePromise=y;function b(E,o,m){return Promise.race([E,new Promise(A=>o.onCancellationRequested(()=>A(m)))])}e.raceCancellation=b;async function I(E){let o=-1;const m=E.map((S,L)=>S.then(z=>(o=L,z))),A=await Promise.race(m);return E.forEach((S,L)=>{L!==o&&S.cancel()}),A}e.raceCancellablePromises=I;function W(E,o,m){let A;const S=setTimeout(()=>{A?.(void 0),m?.()},o);return Promise.race([E.finally(()=>clearTimeout(S)),new Promise(L=>A=L)])}e.raceTimeout=W;function R(E){return new Promise((o,m)=>{const A=E();P(A)?A.then(o,m):o(A)})}e.asPromise=R;class l{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(o){if(this.activePromise){if(this.queuedPromiseFactory=o,!this.queuedPromise){const m=()=>{this.queuedPromise=null;const A=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,A};this.queuedPromise=new Promise(A=>{this.activePromise.then(m,m).then(A)})}return new Promise((m,A)=>{this.queuedPromise.then(m,A)})}return this.activePromise=o(),new Promise((m,A)=>{this.activePromise.then(S=>{this.activePromise=null,m(S)},S=>{this.activePromise=null,A(S)})})}}e.Throttler=l;class a{constructor(){this.current=Promise.resolve(null)}queue(o){return this.current=this.current.then(()=>o(),()=>o())}}e.Sequencer=a;class d{constructor(){this.promiseMap=new Map}queue(o,m){const S=(this.promiseMap.get(o)??Promise.resolve()).catch(()=>{}).then(m).finally(()=>{this.promiseMap.get(o)===S&&this.promiseMap.delete(o)});return this.promiseMap.set(o,S),S}}e.SequencerByKey=d;class g{constructor(o){this.defaultDelay=o,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(o,m=this.defaultDelay){return this.task=o,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((A,S)=>{this.doResolve=A,this.doReject=S}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const A=this.task;return this.task=null,A()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},m),this.completionPromise}isTriggered(){return this.timeout!==null}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject((0,O.canceled)()),this.completionPromise=null)}cancelTimeout(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}e.Delayer=g;class v{constructor(o){this.delayer=new g(o),this.throttler=new l}trigger(o,m){return this.delayer.trigger(()=>this.throttler.queue(o),m)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=v;class t{constructor(){this._isOpen=!1,this._promise=new Promise((o,m)=>{this._completePromise=o})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=t;class r extends t{constructor(o){super();this._timeout=setTimeout(()=>this.open(),o)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=r;function c(E,o){return o?new Promise((m,A)=>{const S=setTimeout(()=>{L.dispose(),m()},E),L=o.onCancellationRequested(()=>{clearTimeout(S),L.dispose(),A((0,O.canceled)())})}):y(m=>c(E,m))}e.timeout=c;function w(E,o=0){const m=setTimeout(E,o);return(0,U.toDisposable)(()=>clearTimeout(m))}e.disposableTimeout=w;function h(E){const o=[];let m=0;const A=E.length;function S(){return m<A?E[m++]():null}function L(z){z!=null&&o.push(z);const H=S();return H?H.then(L):Promise.resolve(o)}return Promise.resolve(null).then(L)}e.sequence=h;function n(E,o=A=>!!A,m=null){let A=0;const S=E.length,L=()=>{if(A>=S)return Promise.resolve(m);const z=E[A++];return Promise.resolve(z()).then(Z=>o(Z)?Promise.resolve(Z):L())};return L()}e.first=n;function s(E,o=A=>!!A,m=null){if(E.length===0)return Promise.resolve(m);let A=E.length;const S=()=>{A=-1;for(const L of E)L.cancel?.()};return new Promise((L,z)=>{for(const H of E)H.then(Z=>{--A>=0&&o(Z)?(S(),L(Z)):A===0&&L(m)}).catch(Z=>{--A>=0&&(S(),z(Z))})})}e.firstParallel=s;class i{constructor(o){this._size=0,this.maxDegreeOfParalellism=o,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new q.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(o){return this._size++,new Promise((m,A)=>{this.outstandingPromises.push({factory:o,c:m,e:A}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const o=this.outstandingPromises.shift();this.runningPromises++;const m=o.factory();m.then(o.c,o.e),m.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}e.Limiter=i;class u extends i{constructor(){super(1)}}e.Queue=u;class f{constructor(){this.queues=new Map}queueFor(o,m=D.extUri){const A=m.getComparisonKey(o);let S=this.queues.get(A);return S||(S=new u,q.Event.once(S.onFinished)(()=>{S?.dispose(),this.queues.delete(A)}),this.queues.set(A,S)),S}dispose(){this.queues.forEach(o=>o.dispose()),this.queues.clear()}}e.ResourceQueue=f;class T{constructor(o,m){this._token=-1,typeof o=="function"&&typeof m=="number"&&this.setIfNotSet(o,m)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(o,m){this.cancel(),this._token=setTimeout(()=>{this._token=-1,o()},m)}setIfNotSet(o,m){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,o()},m))}}e.TimeoutTimer=T;class C{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(o,m){this.cancel(),this._token=setInterval(()=>{o()},m)}}e.IntervalTimer=C;class k{constructor(o,m){this.timeoutToken=-1,this.runner=o,this.timeout=m,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(o=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,o)}get delay(){return this.timeout}set delay(o){this.timeout=o}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}e.RunOnceScheduler=k;class B{constructor(o,m){m%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${m}ms is not a multiple of 1000ms.`),this.runner=o,this.timeout=m,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(o=this.timeout){o%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${o}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(o/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&&this.runner())}}e.ProcessTimeRunOnceScheduler=B;class Q extends k{constructor(o,m){super(o,m);this.units=[]}work(o){this.units.push(o),this.isScheduled()||this.schedule()}doRun(){const o=this.units;this.units=[],this.runner&&this.runner(o)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=Q;class M extends U.Disposable{constructor(o,m,A,S){super();this.maxWorkChunkSize=o,this.maxPendingWork=m,this.throttleDelay=A,this.handler=S,this.pendingWork=[],this.throttler=this._register(new U.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(o){if(this.disposed)return!1;if(typeof this.maxPendingWork=="number"){if(this.throttler.value){if(this.pending+o.length>this.maxPendingWork)return!1}else if(this.pending+o.length-this.maxWorkChunkSize>this.maxPendingWork)return!1}return this.pendingWork.push(...o),this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new k(()=>{this.throttler.clear(),this.doWork()},this.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=M,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=E=>{(0,$.setTimeout0)(()=>{if(o)return;const m=Date.now()+3;E(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,m-Date.now())}}))});let o=!1;return{dispose(){o||(o=!0)}}}:e.runWhenIdle=(E,o)=>{const m=requestIdleCallback(E,typeof o=="number"?{timeout:o}:void 0);let A=!1;return{dispose(){A||(A=!0,cancelIdleCallback(m))}}}}();class Y{constructor(o){this._didRun=!1,this._executor=()=>{try{this._value=o()}catch(m){this._error=m}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=Y;async function J(E,o,m){let A;for(let S=0;S<m;S++)try{return await E()}catch(L){A=L,await c(o)}throw A}e.retry=J;class X{hasPending(o){return this._pending?typeof o=="number"?this._pending.taskId===o:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){this._pending?.cancel()}setPending(o,m,A){return this._pending={taskId:o,cancel:()=>A?.(),promise:m},m.then(()=>this.donePending(o),()=>this.donePending(o)),m}donePending(o){this._pending&&o===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const o=this._next;this._next=void 0,o.run().then(o.promiseResolve,o.promiseReject)}}setNext(o){if(this._next)this._next.run=o;else{let m,A;const S=new Promise((L,z)=>{m=L,A=z});this._next={run:o,promise:S,promiseResolve:m,promiseReject:A}}return this._next.promise}}e.TaskSequentializer=X;class x{constructor(o,m=()=>Date.now()){this.interval=o,this.nowFn=m,this.lastIncrementTime=0,this.value=0}increment(){const o=this.nowFn();return o-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=o,this.value=0),this.value++,this.value}}e.IntervalCounter=x;class ee{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((o,m)=>{this.completeCallback=o,this.errorCallback=m})}get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(o){return new Promise(m=>{this.completeCallback(o),this.resolved=!0,m()})}error(o){return new Promise(m=>{this.errorCallback(o),this.rejected=!0,m()})}cancel(){new Promise(o=>{this.errorCallback((0,O.canceled)()),this.rejected=!0,o()})}}e.DeferredPromise=ee;var te;(function(E){async function o(A){let S;const L=await Promise.all(A.map(z=>z.then(H=>H,H=>{S||(S=H)})));if(typeof S!="undefined")throw S;return L}E.settled=o;function m(A){return new Promise(async(S,L)=>{try{await A(S,L)}catch(z){L(z)}})}E.withAsyncBody=m})(te=e.Promises||(e.Promises={}));var p;(function(E){E[E.Initial=0]="Initial",E[E.DoneOK=1]="DoneOK",E[E.DoneError=2]="DoneError"})(p||(p={}));class N{constructor(o){this._state=0,this._results=[],this._error=null,this._onStateChanged=new q.Emitter,queueMicrotask(async()=>{const m={emitOne:A=>this.emitOne(A),emitMany:A=>this.emitMany(A),reject:A=>this.reject(A)};try{await Promise.resolve(o(m)),this.resolve()}catch(A){this.reject(A)}finally{m.emitOne=void 0,m.emitMany=void 0,m.reject=void 0}})}static fromArray(o){return new N(m=>{m.emitMany(o)})}static fromPromise(o){return new N(async m=>{m.emitMany(await o)})}static fromPromises(o){return new N(async m=>{await Promise.all(o.map(async A=>m.emitOne(await A)))})}static merge(o){return new N(async m=>{await Promise.all(o.map(async A=>{for await(const S of A)m.emitOne(S)}))})}[Symbol.asyncIterator](){let o=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(o<this._results.length)return{done:!1,value:this._results[o++]};if(this._state===1)return{done:!0,value:void 0};await q.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(o,m){return new N(async A=>{for await(const S of o)A.emitOne(m(S))})}map(o){return N.map(this,o)}static filter(o,m){return new N(async A=>{for await(const S of o)m(S)&&A.emitOne(S)})}filter(o){return N.filter(this,o)}static coalesce(o){return N.filter(o,m=>!!m)}coalesce(){return N.coalesce(this)}static async toPromise(o){const m=[];for await(const A of o)m.push(A);return m}toPromise(){return N.toPromise(this)}emitOne(o){this._state===0&&(this._results.push(o),this._onStateChanged.fire())}emitMany(o){this._state===0&&(this._results=this._result