UNPKG

cloudstudio

Version:

Run VS Code on a remote server.

3 lines 140 kB
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var ne=["require","exports","vs/base/common/platform","vs/base/common/strings","vs/base/common/path","vs/base/common/buffer","vs/base/common/lifecycle","vs/base/common/extpath","vs/base/common/network","vs/base/common/uri","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/editor/common/core/range","vs/base/common/stream","vs/base/common/errors","vs/editor/common/core/eolCounter","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/base/common/mime","vs/base/common/map","vs/base/common/arrays","vs/base/common/resources","vs/base/common/async","vs/base/common/event","vs/base/common/glob","vs/editor/common/core/stringBuilder","vs/editor/common/core/textChange","vs/editor/common/model","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/platform/instantiation/common/instantiation","vs/platform/contextkey/common/contextkey","vs/workbench/contrib/notebook/common/notebookCommon","vs/base/common/types","vs/base/common/cancellation","vs/editor/common/core/position","vs/editor/common/model/textModelSearch","vs/base/common/iterator","vs/workbench/contrib/notebook/common/services/notebookSimpleWorker","vs/base/common/diff/diff","vs/base/common/hash"],ie=function(te){for(var e=[],B=0,F=te.length;B<F;B++)e[B]=ne[te[B]];return e};define(ne[12],ie([0,1,13,6]),function(te,e,B,F){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=e.isReadable=void 0;function D(h){const c=h;return c?typeof c.read=="function":!1}e.isReadable=D;function S(h){const c=h;return c?[c.on,c.pause,c.resume,c.destroy].every(m=>typeof m=="function"):!1}e.isReadableStream=S;function R(h){const c=h;return c?S(c.stream)&&Array.isArray(c.buffer)&&typeof c.ended=="boolean":!1}e.isReadableBufferedStream=R;function V(h,c){return new T(h,c)}e.newWriteableStream=V;class T{constructor(c,m){this.reducer=c,this.options=m,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(c){if(!this.state.destroyed){if(this.state.flowing)this.emitData(c);else if(this.buffer.data.push(c),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(m=>this.pendingWritePromises.push(m))}}error(c){this.state.destroyed||(this.state.flowing?this.emitError(c):this.buffer.error.push(c))}end(c){this.state.destroyed||(typeof c!="undefined"&&this.write(c),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(c){this.listeners.data.slice(0).forEach(m=>m(c))}emitError(c){this.listeners.error.length===0?(0,B.onUnexpectedError)(c):this.listeners.error.slice(0).forEach(m=>m(c))}emitEnd(){this.listeners.end.slice(0).forEach(c=>c())}on(c,m){if(!this.state.destroyed)switch(c){case"data":this.listeners.data.push(m),this.resume();break;case"end":this.listeners.end.push(m),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(m),this.state.flowing&&this.flowErrors();break}}removeListener(c,m){if(this.state.destroyed)return;let I;switch(c){case"data":I=this.listeners.data;break;case"end":I=this.listeners.end;break;case"error":I=this.listeners.error;break}if(I){const b=I.indexOf(m);b>=0&&I.splice(b,1)}}flowData(){if(this.buffer.data.length>0){const c=this.reducer(this.buffer.data);this.emitData(c),this.buffer.data.length=0;const m=[...this.pendingWritePromises];this.pendingWritePromises.length=0,m.forEach(I=>I())}}flowErrors(){if(this.listeners.error.length>0){for(const c of this.buffer.error)this.emitError(c);this.buffer.error.length=0}}flowEnd(){return this.state.ended?(this.emitEnd(),this.listeners.end.length>0):!1}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0,this.pendingWritePromises.length=0)}}function w(h,c){const m=[];let I;for(;(I=h.read())!==null;)m.push(I);return c(m)}e.consumeReadable=w;function N(h,c,m){const I=[];let b;for(;(b=h.read())!==null&&I.length<m;)I.push(b);return b===null&&I.length>0?c(I):{read:()=>{if(I.length>0)return I.shift();if(typeof b!="undefined"){const a=b;return b=void 0,a}return h.read()}}}e.peekReadable=N;function P(h,c){return new Promise((m,I)=>{const b=[];L(h,{onData:a=>{c&&b.push(a)},onError:a=>{c?I(a):m(void 0)},onEnd:()=>{m(c?c(b):void 0)}})})}e.consumeStream=P;function L(h,c){let m=!1;return h.on("error",I=>{m||c.onError(I)}),h.on("end",()=>{m||c.onEnd()}),h.on("data",I=>{m||c.onData(I)}),(0,F.toDisposable)(()=>m=!0)}e.listenStream=L;function k(h,c){return new Promise((m,I)=>{const b=new F.DisposableStore,a=[],o=f=>{if(a.push(f),a.length>c)return b.dispose(),h.pause(),m({stream:h,buffer:a,ended:!1})},r=f=>I(f),u=()=>m({stream:h,buffer:a,ended:!0});b.add((0,F.toDisposable)(()=>h.removeListener("error",r))),h.on("error",r),b.add((0,F.toDisposable)(()=>h.removeListener("end",u))),h.on("end",u),b.add((0,F.toDisposable)(()=>h.removeListener("data",o))),h.on("data",o)})}e.peekStream=k;function _(h,c){const m=V(c);return m.end(h),m}e.toStream=_;function d(){const h=V(()=>{throw new Error("not supported")});return h.end(),h}e.emptyStream=d;function l(h){let c=!1;return{read:()=>c?null:(c=!0,h)}}e.toReadable=l;function t(h,c,m){const I=V(m);return L(h,{onData:b=>I.write(c.data(b)),onError:b=>I.error(c.error?c.error(b):b),onEnd:()=>I.end()}),I}e.transform=t;function s(h,c,m){let I=!1;return{read:()=>{const b=c.read();return I?b:(I=!0,b!==null?m([h,b]):h)}}}e.prefixedReadable=s;function i(h,c,m){let I=!1;const b=V(m);return L(c,{onData:a=>I?b.write(a):(I=!0,b.write(m([h,a]))),onError:a=>b.error(a),onEnd:()=>{I||(I=!0,b.write(h)),b.end()}}),b}e.prefixedStream=i}),define(ne[5],ie([0,1,12]),function(te,e,B){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=e.prefixedBufferStream=e.prefixedBufferReadable=e.newWriteableBufferStream=e.streamToBufferReadableStream=e.bufferToStream=e.bufferedStreamToBuffer=e.streamToBuffer=e.bufferToReadable=e.readableToBuffer=e.writeUInt8=e.readUInt8=e.writeUInt32LE=e.readUInt32LE=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.VSBuffer=void 0;const F=typeof Buffer!="undefined";let D,S;class R{constructor(f){this.buffer=f,this.byteLength=this.buffer.byteLength}static alloc(f){return F?new R(Buffer.allocUnsafe(f)):new R(new Uint8Array(f))}static wrap(f){return F&&!Buffer.isBuffer(f)&&(f=Buffer.from(f.buffer,f.byteOffset,f.byteLength)),new R(f)}static fromString(f,C){return!(C?.dontUseNodeBuffer||!1)&&F?new R(Buffer.from(f)):(D||(D=new TextEncoder),new R(D.encode(f)))}static fromByteArray(f){const C=R.alloc(f.length);for(let y=0,z=f.length;y<z;y++)C.buffer[y]=f[y];return C}static concat(f,C){if(typeof C=="undefined"){C=0;for(let j=0,A=f.length;j<A;j++)C+=f[j].byteLength}const y=R.alloc(C);let z=0;for(let j=0,A=f.length;j<A;j++){const n=f[j];y.set(n,z),z+=n.byteLength}return y}clone(){const f=R.alloc(this.byteLength);return f.set(this),f}toString(){return F?this.buffer.toString():(S||(S=new TextDecoder),S.decode(this.buffer))}slice(f,C){return new R(this.buffer.subarray(f,C))}set(f,C){if(f instanceof R)this.buffer.set(f.buffer,C);else if(f instanceof Uint8Array)this.buffer.set(f,C);else if(f instanceof ArrayBuffer)this.buffer.set(new Uint8Array(f),C);else if(ArrayBuffer.isView(f))this.buffer.set(new Uint8Array(f.buffer,f.byteOffset,f.byteLength),C);else throw new Error("Unknown argument 'array'")}readUInt32BE(f){return w(this.buffer,f)}writeUInt32BE(f,C){N(this.buffer,f,C)}readUInt32LE(f){return P(this.buffer,f)}writeUInt32LE(f,C){L(this.buffer,f,C)}readUInt8(f){return k(this.buffer,f)}writeUInt8(f,C){_(this.buffer,f,C)}}e.VSBuffer=R;function V(u,f){return u[f+0]<<0>>>0|u[f+1]<<8>>>0}e.readUInt16LE=V;function T(u,f,C){u[C+0]=f&255,f=f>>>8,u[C+1]=f&255}e.writeUInt16LE=T;function w(u,f){return u[f]*2**24+u[f+1]*2**16+u[f+2]*2**8+u[f+3]}e.readUInt32BE=w;function N(u,f,C){u[C+3]=f,f=f>>>8,u[C+2]=f,f=f>>>8,u[C+1]=f,f=f>>>8,u[C]=f}e.writeUInt32BE=N;function P(u,f){return u[f+0]<<0>>>0|u[f+1]<<8>>>0|u[f+2]<<16>>>0|u[f+3]<<24>>>0}e.readUInt32LE=P;function L(u,f,C){u[C+0]=f&255,f=f>>>8,u[C+1]=f&255,f=f>>>8,u[C+2]=f&255,f=f>>>8,u[C+3]=f&255}e.writeUInt32LE=L;function k(u,f){return u[f]}e.readUInt8=k;function _(u,f,C){u[C]=f}e.writeUInt8=_;function d(u){return B.consumeReadable(u,f=>R.concat(f))}e.readableToBuffer=d;function l(u){return B.toReadable(u)}e.bufferToReadable=l;function t(u){return B.consumeStream(u,f=>R.concat(f))}e.streamToBuffer=t;async function s(u){return u.ended?R.concat(u.buffer):R.concat([...u.buffer,await t(u.stream)])}e.bufferedStreamToBuffer=s;function i(u){return B.toStream(u,f=>R.concat(f))}e.bufferToStream=i;function h(u){return B.transform(u,{data:f=>typeof f=="string"?R.fromString(f):R.wrap(f)},f=>R.concat(f))}e.streamToBufferReadableStream=h;function c(u){return B.newWriteableStream(f=>R.concat(f),u)}e.newWriteableBufferStream=c;function m(u,f){return B.prefixedReadable(u,f,C=>R.concat(C))}e.prefixedBufferReadable=m;function I(u,f){return B.prefixedStream(u,f,C=>R.concat(C))}e.prefixedBufferStream=I;function b(u){let f=0,C=0,y=0;const z=new Uint8Array(Math.floor(u.length/4*3)),j=n=>{switch(C){case 3:z[y++]=f|n,C=0;break;case 2:z[y++]=f|n>>>2,f=n<<6,C=3;break;case 1:z[y++]=f|n>>>4,f=n<<4,C=2;break;default:f=n<<2,C=1}};for(let n=0;n<u.length;n++){const p=u.charCodeAt(n);if(p>=65&&p<=90)j(p-65);else if(p>=97&&p<=122)j(p-97+26);else if(p>=48&&p<=57)j(p-48+52);else if(p===43||p===45)j(62);else if(p===47||p===95)j(63);else{if(p===61)break;throw new SyntaxError(`Unexpected base64 character ${u[n]}`)}}const A=y;for(;C>0;)j(0);return R.wrap(z).slice(0,A)}e.decodeBase64=b;const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function r({buffer:u},f=!0,C=!1){const y=C?o:a;let z="";const j=u.byteLength%3;let A=0;for(;A<u.byteLength-j;A+=3){const n=u[A+0],p=u[A+1],E=u[A+2];z+=y[n>>>2],z+=y[(n<<4|p>>>4)&63],z+=y[(p<<2|E>>>6)&63],z+=y[E&63]}if(j===1){const n=u[A+0];z+=y[n>>>2],z+=y[n<<4&63],f&&(z+="==")}else if(j===2){const n=u[A+0],p=u[A+1];z+=y[n>>>2],z+=y[(n<<4|p>>>4)&63],z+=y[p<<2&63],f&&(z+="=")}return z}e.encodeBase64=r}),define(ne[14],ie([0,1]),function(te,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.countEOL=e.StringEOL=void 0;var B;(function(D){D[D.Unknown=0]="Unknown",D[D.Invalid=3]="Invalid",D[D.LF=1]="LF",D[D.CRLF=2]="CRLF"})(B=e.StringEOL||(e.StringEOL={}));function F(D){let S=0,R=0,V=0,T=0;for(let w=0,N=D.length;w<N;w++){const P=D.charCodeAt(w);P===13?(S===0&&(R=w),S++,w+1<N&&D.charCodeAt(w+1)===10?(T|=2,w++):T|=3,V=w+1):P===10&&(T|=1,S===0&&(R=w),S++,V=w+1)}return S===0&&(R=D.length),[S,R,D.length-V,T]}e.countEOL=F}),define(ne[15],ie([0,1]),function(te,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recomputeTreeMetadata=e.updateTreeMetadata=e.fixInsert=e.rbDelete=e.rightRotate=e.leftRotate=e.resetSentinel=e.calculateLF=e.calculateSize=e.righttest=e.leftest=e.SENTINEL=e.NodeColor=e.TreeNode=void 0;class B{constructor(l,t){this.piece=l,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==e.SENTINEL)return D(this.right);let l=this;for(;l.parent!==e.SENTINEL&&l.parent.left!==l;)l=l.parent;return l.parent===e.SENTINEL?e.SENTINEL:l.parent}prev(){if(this.left!==e.SENTINEL)return S(this.left);let l=this;for(;l.parent!==e.SENTINEL&&l.parent.right!==l;)l=l.parent;return l.parent===e.SENTINEL?e.SENTINEL:l.parent}detach(){this.parent=null,this.left=null,this.right=null}}e.TreeNode=B;var F;(function(d){d[d.Black=0]="Black",d[d.Red=1]="Red"})(F=e.NodeColor||(e.NodeColor={})),e.SENTINEL=new B(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0;function D(d){for(;d.left!==e.SENTINEL;)d=d.left;return d}e.leftest=D;function S(d){for(;d.right!==e.SENTINEL;)d=d.right;return d}e.righttest=S;function R(d){return d===e.SENTINEL?0:d.size_left+d.piece.length+R(d.right)}e.calculateSize=R;function V(d){return d===e.SENTINEL?0:d.lf_left+d.piece.lineFeedCnt+V(d.right)}e.calculateLF=V;function T(){e.SENTINEL.parent=e.SENTINEL}e.resetSentinel=T;function w(d,l){const t=l.right;t.size_left+=l.size_left+(l.piece?l.piece.length:0),t.lf_left+=l.lf_left+(l.piece?l.piece.lineFeedCnt:0),l.right=t.left,t.left!==e.SENTINEL&&(t.left.parent=l),t.parent=l.parent,l.parent===e.SENTINEL?d.root=t:l.parent.left===l?l.parent.left=t:l.parent.right=t,t.left=l,l.parent=t}e.leftRotate=w;function N(d,l){const t=l.left;l.left=t.right,t.right!==e.SENTINEL&&(t.right.parent=l),t.parent=l.parent,l.size_left-=t.size_left+(t.piece?t.piece.length:0),l.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),l.parent===e.SENTINEL?d.root=t:l===l.parent.right?l.parent.right=t:l.parent.left=t,t.right=l,l.parent=t}e.rightRotate=N;function P(d,l){let t,s;if(l.left===e.SENTINEL?(s=l,t=s.right):l.right===e.SENTINEL?(s=l,t=s.left):(s=D(l.right),t=s.right),s===d.root){d.root=t,t.color=0,l.detach(),T(),d.root.parent=e.SENTINEL;return}const i=s.color===1;if(s===s.parent.left?s.parent.left=t:s.parent.right=t,s===l?(t.parent=s.parent,_(d,t)):(s.parent===l?t.parent=s:t.parent=s.parent,_(d,t),s.left=l.left,s.right=l.right,s.parent=l.parent,s.color=l.color,l===d.root?d.root=s:l===l.parent.left?l.parent.left=s:l.parent.right=s,s.left!==e.SENTINEL&&(s.left.parent=s),s.right!==e.SENTINEL&&(s.right.parent=s),s.size_left=l.size_left,s.lf_left=l.lf_left,_(d,s)),l.detach(),t.parent.left===t){const c=R(t),m=V(t);if(c!==t.parent.size_left||m!==t.parent.lf_left){const I=c-t.parent.size_left,b=m-t.parent.lf_left;t.parent.size_left=c,t.parent.lf_left=m,k(d,t.parent,I,b)}}if(_(d,t.parent),i){T();return}let h;for(;t!==d.root&&t.color===0;)t===t.parent.left?(h=t.parent.right,h.color===1&&(h.color=0,t.parent.color=1,w(d,t.parent),h=t.parent.right),h.left.color===0&&h.right.color===0?(h.color=1,t=t.parent):(h.right.color===0&&(h.left.color=0,h.color=1,N(d,h),h=t.parent.right),h.color=t.parent.color,t.parent.color=0,h.right.color=0,w(d,t.parent),t=d.root)):(h=t.parent.left,h.color===1&&(h.color=0,t.parent.color=1,N(d,t.parent),h=t.parent.left),h.left.color===0&&h.right.color===0?(h.color=1,t=t.parent):(h.left.color===0&&(h.right.color=0,h.color=1,w(d,h),h=t.parent.left),h.color=t.parent.color,t.parent.color=0,h.left.color=0,N(d,t.parent),t=d.root));t.color=0,T()}e.rbDelete=P;function L(d,l){for(_(d,l);l!==d.root&&l.parent.color===1;)if(l.parent===l.parent.parent.left){const t=l.parent.parent.right;t.color===1?(l.parent.color=0,t.color=0,l.parent.parent.color=1,l=l.parent.parent):(l===l.parent.right&&(l=l.parent,w(d,l)),l.parent.color=0,l.parent.parent.color=1,N(d,l.parent.parent))}else{const t=l.parent.parent.left;t.color===1?(l.parent.color=0,t.color=0,l.parent.parent.color=1,l=l.parent.parent):(l===l.parent.left&&(l=l.parent,N(d,l)),l.parent.color=0,l.parent.parent.color=1,w(d,l.parent.parent))}d.root.color=0}e.fixInsert=L;function k(d,l,t,s){for(;l!==d.root&&l!==e.SENTINEL;)l.parent.left===l&&(l.parent.size_left+=t,l.parent.lf_left+=s),l=l.parent}e.updateTreeMetadata=k;function _(d,l){let t=0,s=0;if(l!==d.root){for(;l!==d.root&&l===l.parent.right;)l=l.parent;if(l!==d.root)for(l=l.parent,t=R(l.left)-l.size_left,s=V(l.left)-l.lf_left,l.size_left+=t,l.lf_left+=s;l!==d.root&&(t!==0||s!==0);)l.parent.left===l&&(l.parent.size_left+=t,l.parent.lf_left+=s),l=l.parent}}e.recomputeTreeMetadata=_}),define(ne[16],ie([0,1,4]),function(te,e,B){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeMimeType=e.getExtensionForMimeType=e.getMediaMime=e.getMediaOrTextMime=e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"});const F={".css":"text/css",".csv":"text/csv",".htm":"text/html",".html":"text/html",".ics":"text/calendar",".js":"text/javascript",".mjs":"text/javascript",".txt":"text/plain",".xml":"text/xml"},D={".aac":"audio/x-aac",".avi":"video/x-msvideo",".bmp":"image/bmp",".flv":"video/x-flv",".gif":"image/gif",".ico":"image/x-icon",".jpe":"image/jpg",".jpeg":"image/jpg",".jpg":"image/jpg",".m1v":"video/mpeg",".m2a":"audio/mpeg",".m2v":"video/mpeg",".m3a":"audio/mpeg",".mid":"audio/midi",".midi":"audio/midi",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".mkv":"video/x-matroska",".mov":"video/quicktime",".movie":"video/x-sgi-movie",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".mp4":"video/mp4",".mp4a":"audio/mp4",".mp4v":"video/mp4",".mpe":"video/mpeg",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpg4":"video/mp4",".mpga":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".opus":"audio/opus",".ogv":"video/ogg",".png":"image/png",".psd":"image/vnd.adobe.photoshop",".qt":"video/quicktime",".spx":"audio/ogg",".svg":"image/svg+xml",".tga":"image/x-tga",".tif":"image/tiff",".tiff":"image/tiff",".wav":"audio/x-wav",".webm":"video/webm",".webp":"image/webp",".wma":"audio/x-ms-wma",".wmv":"video/x-ms-wmv",".woff":"application/font-woff"};function S(N){const P=(0,B.extname)(N),L=F[P.toLowerCase()];return L!==void 0?L:R(N)}e.getMediaOrTextMime=S;function R(N){const P=(0,B.extname)(N);return D[P.toLowerCase()]}e.getMediaMime=R;function V(N){for(const P in D)if(D[P]===N)return P}e.getExtensionForMimeType=V;const T=/^(.+)\/(.+?)(;.+)?$/;function w(N,P){const L=T.exec(N);return L?`${L[1].toLowerCase()}/${L[2].toLowerCase()}${L[3]??""}`:P?void 0:N}e.normalizeMimeType=w}),define(ne[7],ie([0,1,4,2,3,31]),function(te,e,B,F,D,S){"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 R(o){return o===47||o===92}e.isPathSeparator=R;function V(o){return o.replace(/[\\/]/g,B.posix.sep)}e.toSlashes=V;function T(o){return o.indexOf("/")===-1&&(o=V(o)),/^[a-zA-Z]:(\/|$)/.test(o)&&(o="/"+o),o}e.toPosixPath=T;function w(o,r=B.posix.sep){if(!o)return"";const u=o.length,f=o.charCodeAt(0);if(R(f)){if(R(o.charCodeAt(1))&&!R(o.charCodeAt(2))){let y=3;const z=y;for(;y<u&&!R(o.charCodeAt(y));y++);if(z!==y&&!R(o.charCodeAt(y+1))){for(y+=1;y<u;y++)if(R(o.charCodeAt(y)))return o.slice(0,y+1).replace(/[\\/]/g,r)}}return r}else if(t(f)&&o.charCodeAt(1)===58)return R(o.charCodeAt(2))?o.slice(0,2)+r:o.slice(0,2);let C=o.indexOf("://");if(C!==-1){for(C+=3;C<u;C++)if(R(o.charCodeAt(C)))return o.slice(0,C+1)}return""}e.getRoot=w;function N(o){if(!F.isWindows||!o||o.length<5)return!1;let r=o.charCodeAt(0);if(r!==92||(r=o.charCodeAt(1),r!==92))return!1;let u=2;const f=u;for(;u<o.length&&(r=o.charCodeAt(u),r!==92);u++);return!(f===u||(r=o.charCodeAt(u+1),isNaN(r)||r===92))}e.isUNC=N;const P=/[\\/:\*\?"<>\|]/g,L=/[\\/]/g,k=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function _(o,r=F.isWindows){const u=r?P:L;return!(!o||o.length===0||/^\s+$/.test(o)||(u.lastIndex=0,u.test(o))||r&&k.test(o)||o==="."||o===".."||r&&o[o.length-1]==="."||r&&o.length!==o.trim().length||o.length>255)}e.isValidBasename=_;function d(o,r,u){const f=o===r;return!u||f?f:!o||!r?!1:(0,D.equalsIgnoreCase)(o,r)}e.isEqual=d;function l(o,r,u,f=B.sep){if(o===r)return!0;if(!o||!r||r.length>o.length)return!1;if(u){if(!(0,D.startsWithIgnoreCase)(o,r))return!1;if(r.length===o.length)return!0;let y=r.length;return r.charAt(r.length-1)===f&&y--,o.charAt(y)===f}return r.charAt(r.length-1)!==f&&(r+=f),o.indexOf(r)===0}e.isEqualOrParent=l;function t(o){return o>=65&&o<=90||o>=97&&o<=122}e.isWindowsDriveLetter=t;function s(o,r){return F.isWindows&&o.endsWith(":")&&(o+=B.sep),(0,B.isAbsolute)(o)||(o=(0,B.join)(r,o)),o=(0,B.normalize)(o),F.isWindows?(o=(0,D.rtrim)(o,B.sep),o.endsWith(":")&&(o+=B.sep)):(o=(0,D.rtrim)(o,B.sep),o||(o=B.sep)),o}e.sanitizeFilePath=s;function i(o){const r=(0,B.normalize)(o);return F.isWindows?o.length>3?!1:h(r)&&(o.length===2||r.charCodeAt(2)===92):r===B.posix.sep}e.isRootOrDriveLetter=i;function h(o,r=F.isWindows){return r?t(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}e.hasDriveLetter=h;function c(o){return h(o)?o[0]:void 0}e.getDriveLetter=c;function m(o,r,u){return r.length>o.length?-1:o===r?0:(u&&(o=o.toLowerCase(),r=r.toLowerCase()),o.indexOf(r))}e.indexOfPath=m;function I(o){const r=o.split(":");let u,f,C;for(const y of r){const z=Number(y);(0,S.isNumber)(z)?f===void 0?f=z:C===void 0&&(C=z):u=u?[u,y].join(":"):y}if(!u)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:u,line:f!==void 0?f:void 0,column:C!==void 0?C:f!==void 0?1:void 0}}e.parseLineAndColumnAware=I;const b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function a(o,r,u=8){let f="";for(let y=0;y<u;y++)f+=b.charAt(Math.floor(Math.random()*b.length));let C;return r?C=`${r}-${f}`:C=f,o?(0,B.join)(o,C):C}e.randomPath=a}),define(ne[17],ie([0,1,18,3]),function(te,e,B,F){"use strict";var D,S,R;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 V(b,a,o){let r=b.get(a);return r===void 0&&(r=o,b.set(a,r)),r}e.getOrSet=V;function T(b){const a=[];return b.forEach((o,r)=>{a.push(`${r} => ${o}`)}),`Map(${b.size}) {${a.join(", ")}}`}e.mapToString=T;function w(b){const a=[];return b.forEach(o=>{a.push(o)}),`Set(${b.size}) {${a.join(", ")}}`}e.setToString=w;class N{constructor(){this._value="",this._pos=0}reset(a){return this._value=a,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(a){const o=a.charCodeAt(0),r=this._value.charCodeAt(this._pos);return o-r}value(){return this._value[this._pos]}}e.StringIterator=N;class P{constructor(a=!0){this._caseSensitive=a}reset(a){return this._value=a,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let a=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(a)this._from++;else break;else a=!1;return this}cmp(a){return this._caseSensitive?(0,F.compareSubstring)(a,this._value,0,a.length,this._from,this._to):(0,F.compareSubstringIgnoreCase)(a,this._value,0,a.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=P;class L{constructor(a=!0,o=!0){this._splitOnBackslash=a,this._caseSensitive=o}reset(a){this._from=0,this._to=0,this._value=a,this._valueLen=a.length;for(let o=a.length-1;o>=0;o--,this._valueLen--){const r=this._value.charCodeAt(o);if(!(r===47||this._splitOnBackslash&&r===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let a=!0;for(;this._to<this._valueLen;this._to++){const o=this._value.charCodeAt(this._to);if(o===47||this._splitOnBackslash&&o===92)if(a)this._from++;else break;else a=!1}return this}cmp(a){return this._caseSensitive?(0,F.compareSubstring)(a,this._value,0,a.length,this._from,this._to):(0,F.compareSubstringIgnoreCase)(a,this._value,0,a.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=L;var k;(function(b){b[b.Scheme=1]="Scheme",b[b.Authority=2]="Authority",b[b.Path=3]="Path",b[b.Query=4]="Query",b[b.Fragment=5]="Fragment"})(k||(k={}));class _{constructor(a,o){this._ignorePathCasing=a,this._ignoreQueryAndFragment=o,this._states=[],this._stateIdx=0}reset(a){return this._value=a,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new L(!1,!this._ignorePathCasing(a)),this._pathIterator.reset(a.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(a)||(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(a){if(this._states[this._stateIdx]===1)return(0,F.compareIgnoreCase)(a,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,F.compareIgnoreCase)(a,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(a);if(this._states[this._stateIdx]===4)return(0,F.compare)(a,this._value.query);if(this._states[this._stateIdx]===5)return(0,F.compare)(a,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=_;class d{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const a=this.right;return this.right=a.left,a.left=this,this.updateHeight(),a.updateHeight(),a}rotateRight(){const a=this.left;return this.left=a.right,a.right=this,this.updateHeight(),a.updateHeight(),a}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 l;(function(b){b[b.Left=-1]="Left",b[b.Mid=0]="Mid",b[b.Right=1]="Right"})(l||(l={}));class t{constructor(a){this._iter=a}static forUris(a=()=>!1,o=()=>!1){return new t(new _(a,o))}static forPaths(a=!1){return new t(new L(void 0,!a))}static forStrings(){return new t(new N)}static forConfigKeys(){return new t(new P)}clear(){this._root=void 0}fill(a,o){if(o){const r=o.slice(0);(0,B.shuffle)(r);for(const u of r)this.set(u,a)}else{const r=a.slice(0);(0,B.shuffle)(r);for(const u of r)this.set(u[0],u[1])}}set(a,o){const r=this._iter.reset(a);let u;this._root||(this._root=new d,this._root.segment=r.value());const f=[];for(u=this._root;;){const y=r.cmp(u.segment);if(y>0)u.left||(u.left=new d,u.left.segment=r.value()),f.push([-1,u]),u=u.left;else if(y<0)u.right||(u.right=new d,u.right.segment=r.value()),f.push([1,u]),u=u.right;else if(r.hasNext())r.next(),u.mid||(u.mid=new d,u.mid.segment=r.value()),f.push([0,u]),u=u.mid;else break}const C=u.value;u.value=o,u.key=a;for(let y=f.length-1;y>=0;y--){const z=f[y][1];z.updateHeight();const j=z.balanceFactor();if(j<-1||j>1){const A=f[y][0],n=f[y+1][0];if(A===1&&n===1)f[y][1]=z.rotateLeft();else if(A===-1&&n===-1)f[y][1]=z.rotateRight();else if(A===1&&n===-1)z.right=f[y+1][1]=f[y+1][1].rotateRight(),f[y][1]=z.rotateLeft();else if(A===-1&&n===1)z.left=f[y+1][1]=f[y+1][1].rotateLeft(),f[y][1]=z.rotateRight();else throw new Error;if(y>0)switch(f[y-1][0]){case-1:f[y-1][1].left=f[y][1];break;case 1:f[y-1][1].right=f[y][1];break;case 0:f[y-1][1].mid=f[y][1];break}else this._root=f[0][1]}}return C}get(a){return this._getNode(a)?.value}_getNode(a){const o=this._iter.reset(a);let r=this._root;for(;r;){const u=o.cmp(r.segment);if(u>0)r=r.left;else if(u<0)r=r.right;else if(o.hasNext())o.next(),r=r.mid;else break}return r}has(a){const o=this._getNode(a);return!(o?.value===void 0&&o?.mid===void 0)}delete(a){return this._delete(a,!1)}deleteSuperstr(a){return this._delete(a,!0)}_delete(a,o){const r=this._iter.reset(a),u=[];let f=this._root;for(;f;){const C=r.cmp(f.segment);if(C>0)u.push([-1,f]),f=f.left;else if(C<0)u.push([1,f]),f=f.right;else if(r.hasNext())r.next(),u.push([0,f]),f=f.mid;else break}if(!!f){if(o?(f.left=void 0,f.mid=void 0,f.right=void 0,f.height=1):(f.key=void 0,f.value=void 0),!f.mid&&!f.value)if(f.left&&f.right){const C=this._min(f.right),{key:y,value:z,segment:j}=C;this._delete(C.key,!1),f.key=y,f.value=z,f.segment=j}else{const C=f.left??f.right;if(u.length>0){const[y,z]=u[u.length-1];switch(y){case-1:z.left=C;break;case 0:z.mid=C;break;case 1:z.right=C;break}}else this._root=C}for(let C=u.length-1;C>=0;C--){const y=u[C][1];y.updateHeight();const z=y.balanceFactor();if(z>1?(y.right.balanceFactor()>=0||(y.right=y.right.rotateRight()),u[C][1]=y.rotateLeft()):z<-1&&(y.left.balanceFactor()<=0||(y.left=y.left.rotateLeft()),u[C][1]=y.rotateRight()),C>0)switch(u[C-1][0]){case-1:u[C-1][1].left=u[C][1];break;case 1:u[C-1][1].right=u[C][1];break;case 0:u[C-1][1].mid=u[C][1];break}else this._root=u[0][1]}}}_min(a){for(;a.left;)a=a.left;return a}findSubstr(a){const o=this._iter.reset(a);let r=this._root,u;for(;r;){const f=o.cmp(r.segment);if(f>0)r=r.left;else if(f<0)r=r.right;else if(o.hasNext())o.next(),u=r.value||u,r=r.mid;else break}return r&&r.value||u}findSuperstr(a){const o=this._iter.reset(a);let r=this._root;for(;r;){const u=o.cmp(r.segment);if(u>0)r=r.left;else if(u<0)r=r.right;else if(o.hasNext())o.next(),r=r.mid;else return r.mid?this._entries(r.mid):void 0}}forEach(a){for(const[o,r]of this)a(r,o)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(a){const o=[];return this._dfsEntries(a,o),o[Symbol.iterator]()}_dfsEntries(a,o){!a||(a.left&&this._dfsEntries(a.left,o),a.value&&o.push([a.key,a.value]),a.mid&&this._dfsEntries(a.mid,o),a.right&&this._dfsEntries(a.right,o))}_isBalanced(){const a=o=>{if(!o)return!0;const r=o.balanceFactor();return r<-1||r>1?!1:a(o.left)&&a(o.right)};return a(this._root)}}e.TernarySearchTree=t;class s{constructor(a,o){this.uri=a,this.value=o}}class i{constructor(a,o){this[D]="ResourceMap",a instanceof i?(this.map=new Map(a.map),this.toKey=o??i.defaultToKey):(this.map=new Map,this.toKey=a??i.defaultToKey)}set(a,o){return this.map.set(this.toKey(a),new s(a,o)),this}get(a){return this.map.get(this.toKey(a))?.value}has(a){return this.map.has(this.toKey(a))}get size(){return this.map.size}clear(){this.map.clear()}delete(a){return this.map.delete(this.toKey(a))}forEach(a,o){typeof o!="undefined"&&(a=a.bind(o));for(const[r,u]of this.map)a(u.value,u.uri,this)}*values(){for(const a of this.map.values())yield a.value}*keys(){for(const a of this.map.values())yield a.uri}*entries(){for(const a of this.map.values())yield[a.uri,a.value]}*[(D=Symbol.toStringTag,Symbol.iterator)](){for(const[,a]of this.map)yield[a.uri,a.value]}}e.ResourceMap=i,i.defaultToKey=b=>b.toString();class h{constructor(a,o){this[S]="ResourceSet",!a||typeof a=="function"?this._map=new i(a):(this._map=new i(o),a.forEach(this.add,this))}get size(){return this._map.size}add(a){return this._map.set(a,a),this}clear(){this._map.clear()}delete(a){return this._map.delete(a)}forEach(a,o){this._map.forEach((r,u)=>a.call(o,u,u,this))}has(a){return this._map.has(a)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(S=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=h;var c;(function(b){b[b.None=0]="None",b[b.AsOld=1]="AsOld",b[b.AsNew=2]="AsNew"})(c=e.Touch||(e.Touch={}));class m{constructor(){this[R]="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(a){return this._map.has(a)}get(a,o=0){const r=this._map.get(a);if(!!r)return o!==0&&this.touch(r,o),r.value}set(a,o,r=0){let u=this._map.get(a);if(u)u.value=o,r!==0&&this.touch(u,r);else{switch(u={key:a,value:o,next:void 0,previous:void 0},r){case 0:this.addItemLast(u);break;case 1:this.addItemFirst(u);break;case 2:this.addItemLast(u);break;default:this.addItemLast(u);break}this._map.set(a,u),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){const o=this._map.get(a);if(!!o)return this._map.delete(a),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,o){const r=this._state;let u=this._head;for(;u;){if(o?a.bind(o)(u.value,u.key,this):a(u.value,u.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");u=u.next}}keys(){const a=this,o=this._state;let r=this._head;const u={[Symbol.iterator](){return u},next(){if(a._state!==o)throw new Error("LinkedMap got modified during iteration.");if(r){const f={value:r.key,done:!1};return r=r.next,f}else return{value:void 0,done:!0}}};return u}values(){const a=this,o=this._state;let r=this._head;const u={[Symbol.iterator](){return u},next(){if(a._state!==o)throw new Error("LinkedMap got modified during iteration.");if(r){const f={value:r.value,done:!1};return r=r.next,f}else return{value:void 0,done:!0}}};return u}entries(){const a=this,o=this._state;let r=this._head;const u={[Symbol.iterator](){return u},next(){if(a._state!==o)throw new Error("LinkedMap got modified during iteration.");if(r){const f={value:[r.key,r.value],done:!1};return r=r.next,f}else return{value:void 0,done:!0}}};return u}[(R=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let o=this._head,r=this.size;for(;o&&r>a;)this._map.delete(o.key),o=o.next,r--;this._head=o,this._size=r,o&&(o.previous=void 0),this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(this._head)a.next=this._head,this._head.previous=a;else throw new Error("Invalid list");this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(this._tail)a.previous=this._tail,this._tail.next=a;else throw new Error("Invalid list");this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw new Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw new Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{const o=a.next,r=a.previous;if(!o||!r)throw new Error("Invalid list");o.previous=r,r.next=o}a.next=void 0,a.previous=void 0,this._state++}touch(a,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==1&&o!==2)){if(o===1){if(a===this._head)return;const r=a.next,u=a.previous;a===this._tail?(u.next=void 0,this._tail=u):(r.previous=u,u.next=r),a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(o===2){if(a===this._tail)return;const r=a.next,u=a.previous;a===this._head?(r.previous=void 0,this._head=r):(r.previous=u,u.next=r),a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}}toJSON(){const a=[];return this.forEach((o,r)=>{a.push([r,o])}),a}fromJSON(a){this.clear();for(const[o,r]of a)this.set(o,r)}}e.LinkedMap=m;class I extends m{constructor(a,o=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,o=2){return super.get(a,o)}peek(a){return super.get(a,0)}set(a,o){return super.set(a,o,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=I}),define(ne[8],ie([0,1,2,9]),function(te,e,B,F){"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 D;(function(T){T.inMemory="inmemory",T.vscode="vscode",T.internal="private",T.walkThrough="walkThrough",T.walkThroughSnippet="walkThroughSnippet",T.http="http",T.https="https",T.file="file",T.mailto="mailto",T.untitled="untitled",T.data="data",T.command="command",T.vscodeRemote="vscode-remote",T.vscodeRemoteResource="vscode-remote-resource",T.vscodeUserData="vscode-userdata",T.vscodeCustomEditor="vscode-custom-editor",T.vscodeNotebook="vscode-notebook",T.vscodeNotebookCell="vscode-notebook-cell",T.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",T.vscodeNotebookCellOutput="vscode-notebook-cell-output",T.vscodeInteractive="vscode-interactive",T.vscodeInteractiveInput="vscode-interactive-input",T.vscodeSettings="vscode-settings",T.vscodeWorkspaceTrust="vscode-workspace-trust",T.vscodeTerminal="vscode-terminal",T.webviewPanel="webview-panel",T.vscodeWebview="vscode-webview",T.extension="extension",T.vscodeFileResource="vscode-file",T.tmp="tmp",T.vsls="vsls",T.vscodeSourceControl="vscode-scm"})(D=e.Schemas||(e.Schemas={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn",e.connectionTokenQueryName2="token";function S(){const T=window.location.href;return new URL(T).searchParams.get("token")||""}e.getTokenFromCurrentHref=S;class R{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${D.vscodeRemoteResource}`}setPreferredWebSchema(w){this._preferredWebSchema=w}setDelegate(w){this._delegate=w}setServerRootPath(w){this._remoteResourcesPath=`/${D.vscodeRemoteResource}`}set(w,N,P){this._hosts[w]=N,this._ports[w]=P}setConnectionToken(w,N){this._connectionTokens[w]=N}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(w){if(this._delegate)return this._delegate(w);const N=w.authority;let P=this._hosts[N];P&&P.indexOf(":")!==-1&&(P=`[${P}]`);const L=this._ports[N],k=this._connectionTokens[N];let _=`path=${encodeURIComponent(w.path)}`;typeof k=="string"&&(_+=`&${e.connectionTokenQueryName}=${encodeURIComponent(k)}`);const d=S();d&&(_+=`&${e.connectionTokenQueryName2}=${encodeURIComponent(d)}`);const l=document.getElementById("vscode-workbench-web-configuration"),t=l?l.getAttribute("data-settings"):void 0;if(!l||!t)throw new Error("Missing web configuration element");const s=JSON.parse(t);return F.URI.from({scheme:B.isWeb?this._preferredWebSchema:D.vscodeRemoteResource,authority:`${P}:${L}`,path:`${s.remoteAuthority?window.location.pathname.replace(/\/+$/,""):""}${this._remoteResourcesPath}`,query:_})}}e.RemoteAuthorities=new R;class V{asBrowserUri(w,N){const P=this.toUri(w,N);return P.scheme===D.vscodeRemote?e.RemoteAuthorities.rewrite(P):P.scheme===D.file&&(B.isNative||B.isWebWorker&&B.globals.origin===`${D.vscodeFileResource}://${V.FALLBACK_AUTHORITY}`)?P.with({scheme:D.vscodeFileResource,authority:P.authority||V.FALLBACK_AUTHORITY,query:null,fragment:null}):P}asFileUri(w,N){const P=this.toUri(w,N);return P.scheme===D.vscodeFileResource?P.with({scheme:D.file,authority:P.authority!==V.FALLBACK_AUTHORITY?P.authority:null,query:null,fragment:null}):P}toUri(w,N){return F.URI.isUri(w)?w:F.URI.parse(N.toUrl(w))}}V.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new V}),define(ne[19],ie([0,1,7,8,4,2,3,9]),function(te,e,B,F,D,S,R,V){"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 T(k){return(0,V.uriToFsPath)(k,!0)}e.originalFSPath=T;class w{constructor(_){this._ignorePathCasing=_}compare(_,d,l=!1){return _===d?0:(0,R.compare)(this.getComparisonKey(_,l),this.getComparisonKey(d,l))}isEqual(_,d,l=!1){return _===d?!0:!_||!d?!1:this.getComparisonKey(_,l)===this.getComparisonKey(d,l)}getComparisonKey(_,d=!1){return _.with({path:this._ignorePathCasing(_)?_.path.toLowerCase():void 0,fragment:d?null:void 0}).toString()}ignorePathCasing(_){return this._ignorePathCasing(_)}isEqualOrParent(_,d,l=!1){if(_.scheme===d.scheme){if(_.scheme===F.Schemas.file)return B.isEqualOrParent(T(_),T(d),this._ignorePathCasing(_))&&_.query===d.query&&(l||_.fragment===d.fragment);if((0,e.isEqualAuthority)(_.authority,d.authority))return B.isEqualOrParent(_.path,d.path,this._ignorePathCasing(_),"/")&&_.query===d.query&&(l||_.fragment===d.fragment)}return!1}joinPath(_,...d){return V.URI.joinPath(_,...d)}basenameOrAuthority(_){return(0,e.basename)(_)||_.authority}basename(_){return D.posix.basename(_.path)}extname(_){return D.posix.extname(_.path)}dirname(_){if(_.path.length===0)return _;let d;return _.scheme===F.Schemas.file?d=V.URI.file(D.dirname(T(_))).path:(d=D.posix.dirname(_.path),_.authority&&d.length&&d.charCodeAt(0)!==47&&(console.error(`dirname("${_.toString})) resulted in a relative path`),d="/")),_.with({path:d})}normalizePath(_){if(!_.path.length)return _;let d;return _.scheme===F.Schemas.file?d=V.URI.file(D.normalize(T(_))).path:d=D.posix.normalize(_.path),_.with({path:d})}relativePath(_,d){if(_.scheme!==d.scheme||!(0,e.isEqualAuthority)(_.authority,d.authority))return;if(_.scheme===F.Schemas.file){const s=D.relative(T(_),T(d));return S.isWindows?B.toSlashes(s):s}let l=_.path||"/";const t=d.path||"/";if(this._ignorePathCasing(_)){let s=0;for(const i=Math.min(l.length,t.length);s<i&&!(l.charCodeAt(s)!==t.charCodeAt(s)&&l.charAt(s).toLowerCase()!==t.charAt(s).toLowerCase());s++);l=t.substr(0,s)+l.substr(s)}return D.posix.relative(l,t)}resolvePath(_,d){if(_.scheme===F.Schemas.file){const l=V.URI.file(D.resolve(T(_),d));return _.with({authority:l.authority,path:l.path})}return d=B.toPosixPath(d),_.with({path:D.posix.resolve(_.path,d)})}isAbsolutePath(_){return!!_.path&&_.path[0]==="/"}isEqualAuthority(_,d){return _===d||_!==void 0&&d!==void 0&&(0,R.equalsIgnoreCase)(_,d)}hasTrailingPathSeparator(_,d=D.sep){if(_.scheme===F.Schemas.file){const l=T(_);return l.length>B.getRoot(l).length&&l[l.length-1]===d}else{const l=_.path;return l.length>1&&l.charCodeAt(l.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(_.fsPath)}}removeTrailingPathSeparator(_,d=D.sep){return(0,e.hasTrailingPathSeparator)(_,d)?_.with({path:_.path.substr(0,_.path.length-1)}):_}addTrailingPathSeparator(_,d=D.sep){let l=!1;if(_.scheme===F.Schemas.file){const t=T(_);l=t!==void 0&&t.length===B.getRoot(t).length&&t[t.length-1]===d}else{d="/";const t=_.path;l=t.length===1&&t.charCodeAt(t.length-1)===47}return!l&&!(0,e.hasTrailingPathSeparator)(_,d)?_.with({path:_.path+"/"}):_}}e.ExtUri=w,e.extUri=new w(()=>!1),e.extUriBiasedIgnorePathCase=new w(k=>k.scheme===F.Schemas.file?!S.isLinux:!0),e.extUriIgnorePathCase=new w(k=>!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 N(k,_){const d=[];for(let l=0;l<k.length;l++){const t=_(k[l]);k.some((s,i)=>i===l?!1:(0,e.isEqualOrParent)(t,_(s)))||d.push(k[l])}return d}e.distinctParents=N;var P;(function(k){k.META_DATA_LABEL="label",k.META_DATA_DESCRIPTION="description",k.META_DATA_SIZE="size",k.META_DATA_MIME="mime";function _(d){const l=new Map;d.path.substring(d.path.indexOf(";")+1,d.path.lastIndexOf(";")).split(";").forEach(i=>{const[h,c]=i.split(":");h&&c&&l.set(h,c)});const s=d.path.substring(0,d.path.indexOf(";"));return s&&l.set(k.META_DATA_MIME,s),l}k.parseMetaData=_})(P=e.DataUri||(e.DataUri={}));function L(k,_,d){if(_){let l=k.path;return l&&l[0]!==D.posix.sep&&(l=D.posix.sep+l),k.with({scheme:d,authority:_,path:l})}return k.with({scheme:d})}e.toLocalResource=L}),define(ne[20],ie([0,1,32,13,21,6,19,2]),function(te,e,B,F,D,S,R,V){"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 T(U){return!!U&&typeof U.then=="function"}e.isThenable=T;function w(U){const g=new B.CancellationTokenSource,v=U(g.token),O=new Promise((q,x)=>{const Z=g.token.onCancellationRequested(()=>{Z.dispose(),g.dispose(),x(new F.CancellationError)});Promise.resolve(v).then(ee=>{Z.dispose(),g.dispose(),q(ee)},ee=>{Z.dispose(),g.dispose(),x(ee)})});return new class{cancel(){g.cancel()}then(q,x){return O.then(q,x)}catch(q){return this.then(void 0,q)}finally(q){return O.finally(q)}}}e.createCancelablePromise=w;function N(U,g,v){return new Promise((O,q)=>{const x=g.onCancellationRequested(()=>{x.dispose(),O(v)});U.then(O,q).finally(()=>x.dispose())})}e.raceCancellation=N;function P(U,g){return new Promise((v,O)=>{const q=g.onCancellationRequested(()=>{q.dispose(),O(new F.CancellationError)});U.then(v,O).finally(()=>q.dispose())})}e.raceCancellationError=P;async function L(U){let g=-1;const v=U.map((q,x)=>q.then(Z=>(g=x,Z))),O=await Promise.race(v);return U.forEach((q,x)=>{x!==g&&q.cancel()}),O}e.raceCancellablePromises=L;function k(U,g,v){let O;const q=setTimeout(()=>{O?.(void 0),v?.()},g);return Promise.race([U.finally(()=>clearTimeout(q)),new Promise(x=>O=x)])}e.raceTimeout=k;function _(U){return new Promise((g,v)=>{const O=U();T(O)?O.then(g,v):g(O)})}e.asPromise=_;class d{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(g){if(this.activePromise){if(this.queuedPromiseFactory=g,!this.queuedPromise){const v=()=>{this.queuedPromise=null;const O=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,O};this.queuedPromise=new Promise(O=>{this.activePromise.then(v,v).then(O)})}return new Promise((v,O)=>{this.queuedPromise.then(v,O)})}return this.activePromise=g(),new Promise((v,O)=>{this.activePromise.then(q=>{this.activePromise=null,v(q)},q=>{this.activePromise=null,O(q)})})}}e.Throttler=d;class l{constructor(){this.current=Promise.resolve(null)}queue(g){return this.current=this.current.then(()=>g(),()=>g())}}e.Sequencer=l;class t{constructor(){this.promiseMap=new Map}queue(g,v){const q=(this.promiseMap.get(g)??Promise.resolve()).catch(()=>{}).then(v).finally(()=>{this.promiseMap.get(g)===q&&this.promiseMap.delete(g)});return this.promiseMap.set(g,q),q}}e.SequencerByKey=t;const s=(U,g)=>{let v=!0;const O=setTimeout(()=>{v=!1,g()},U);return{isTriggered:()=>v,dispose:()=>{clearTimeout(O),v=!1}}},i=U=>{let g=!0;return queueMicrotask(()=>{g&&(g=!1,U())}),{isTriggered:()=>g,dispose:()=>{g=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class h{constructor(g){this.defaultDelay=g,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(g,v=this.defaultDelay){this.task=g,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((q,x)=>{this.doResolve=q,this.doReject=x}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const q=this.task;return this.task=null,q()}}));const O=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=v===e.MicrotaskDelay?i(O):s(v,O),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new F.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=h;class c{constructor(g){this.delayer=new h(g),this.throttler=new d}trigger(g,v){return this.delayer.trigger(()=>this.throttler.queue(g),v)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=c;class m{constructor(){this._isOpen=!1,this._promise=new Promise((g,v)=>{this._completePromise=g})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=m;class I extends m{constructor(g){super();this._timeout=setTimeout(()=>this.open(),g)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=I;function b(U,g){return g?new Promise((v,O)=>{const q=setTimeout(()=>{x.d