UNPKG

code-server

Version:

Run VS Code on a remote server.

16 lines • 191 kB
"use strict";var Xu=Object.create;var Ut=Object.defineProperty;var Zu=Object.getOwnPropertyDescriptor;var ec=Object.getOwnPropertyNames;var tc=Object.getPrototypeOf,nc=Object.prototype.hasOwnProperty;var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rc=(e,t)=>{for(var n in t)Ut(e,n,{get:t[n],enumerable:!0})},Dr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ec(t))!nc.call(e,i)&&i!==n&&Ut(e,i,{get:()=>t[i],enumerable:!(r=Zu(t,i))||r.enumerable});return e};var me=(e,t,n)=>(n=e!=null?Xu(tc(e)):{},Dr(t||!e||!e.__esModule?Ut(n,"default",{value:e,enumerable:!0}):n,e)),ic=e=>Dr(Ut({},"__esModule",{value:!0}),e);var jr=M(Hr=>{(()=>{var e={46:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a,u,{signal:l}={}){return new Promise(((c,p)=>{function f(){l?.removeEventListener("abort",f),a.removeListener(u,m),a.removeListener("error",h)}function m(...y){f(),c(y)}function h(y){f(),p(y)}l?.addEventListener("abort",f),a.on(u,m),a.on("error",h)}))}},54:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};let l=a(361),c=u(a(374)),p=u(a(304)),f=c.default("agent-base");function m(){let{stack:y}=new Error;return typeof y=="string"&&y.split(` `).some((k=>k.indexOf("(https.js:")!==-1||k.indexOf("node:https:")!==-1))}function h(y,k){return new h.Agent(y,k)}(function(y){class k extends l.EventEmitter{constructor(R,E){super();let _=E;typeof R=="function"?this.callback=R:R&&(_=R),this.timeout=null,_&&typeof _.timeout=="number"&&(this.timeout=_.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:m()?443:80}set defaultPort(R){this.explicitDefaultPort=R}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:m()?"https:":"http:"}set protocol(R){this.explicitProtocol=R}callback(R,E,_){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(R,E){let _=Object.assign({},E);typeof _.secureEndpoint!="boolean"&&(_.secureEndpoint=m()),_.host==null&&(_.host="localhost"),_.port==null&&(_.port=_.secureEndpoint?443:80),_.protocol==null&&(_.protocol=_.secureEndpoint?"https:":"http:"),_.host&&_.path&&delete _.path,delete _.agent,delete _.hostname,delete _._defaultAgent,delete _.defaultPort,delete _.createConnection,R._last=!0,R.shouldKeepAlive=!1;let P=!1,L=null,S=_.timeout||this.timeout,v=g=>{R._hadError||(R.emit("error",g),R._hadError=!0)},b=()=>{L=null,P=!0;let g=new Error(`A "socket" was not created for HTTP request before ${S}ms`);g.code="ETIMEOUT",v(g)},O=g=>{P||(L!==null&&(clearTimeout(L),L=null),v(g))},d=g=>{if(P)return;if(L!=null&&(clearTimeout(L),L=null),A=g,!!A&&typeof A.addRequest=="function")return f("Callback returned another Agent instance %o",g.constructor.name),void g.addRequest(R,_);var A;if(g)return g.once("free",(()=>{this.freeSocket(g,_)})),void R.onSocket(g);let T=new Error(`no Duplex stream was returned to agent-base for \`${R.method} ${R.path}\``);v(T)};if(typeof this.callback=="function"){this.promisifiedCallback||(this.callback.length>=3?(f("Converting legacy callback function to promise"),this.promisifiedCallback=p.default(this.callback)):this.promisifiedCallback=this.callback),typeof S=="number"&&S>0&&(L=setTimeout(b,S)),"port"in _&&typeof _.port!="number"&&(_.port=Number(_.port));try{f("Resolving socket for %o request: %o",_.protocol,`${R.method} ${R.path}`),Promise.resolve(this.promisifiedCallback(R,_)).then(d,O)}catch(g){Promise.reject(g).catch(O)}}else v(new Error("`callback` is not defined"))}freeSocket(R,E){f("Freeing socket %o %o",R.constructor.name,E),R.destroy()}destroy(){f("Destroying agent %o",this.constructor.name)}}y.Agent=k,y.prototype=y.Agent.prototype})(h||(h={})),o.exports=h},304:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a){return function(u,l){return new Promise(((c,p)=>{a.call(this,u,l,((f,m)=>{f?p(f):c(m)}))}))}}},370:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(R,E,_,P){return new(_||(_=Promise))((function(L,S){function v(d){try{O(P.next(d))}catch(g){S(g)}}function b(d){try{O(P.throw(d))}catch(g){S(g)}}function O(d){var g;d.done?L(d.value):(g=d.value,g instanceof _?g:new _((function(A){A(g)}))).then(v,b)}O((P=P.apply(R,E||[])).next())}))},l=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(s,"__esModule",{value:!0});let c=l(a(808)),p=l(a(404)),f=l(a(310)),m=l(a(374)),h=l(a(46)),y=a(54),k=(0,m.default)("http-proxy-agent");class C extends y.Agent{constructor(E){let _;if(_=typeof E=="string"?f.default.parse(E):E,!_)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");k("Creating new HttpProxyAgent instance: %o",_),super(_);let P=Object.assign({},_);var L;this.secureProxy=_.secureProxy||typeof(L=P.protocol)=="string"&&/^https:?$/i.test(L),P.host=P.hostname||P.host,typeof P.port=="string"&&(P.port=parseInt(P.port,10)),!P.port&&P.host&&(P.port=this.secureProxy?443:80),P.host&&P.path&&(delete P.path,delete P.pathname),this.proxy=P}callback(E,_){return u(this,void 0,void 0,(function*(){let{proxy:P,secureProxy:L}=this,S=f.default.parse(E.path),v;if(S.protocol||(S.protocol="http:"),S.hostname||(S.hostname=_.hostname||_.host||null),S.port==null&&(_.port,1)&&(S.port=String(_.port)),S.port==="80"&&(S.port=""),E.path=f.default.format(S),P.auth&&E.setHeader("Proxy-Authorization",`Basic ${Buffer.from(P.auth).toString("base64")}`),L?(k("Creating `tls.Socket`: %o",P),v=p.default.connect(P)):(k("Creating `net.Socket`: %o",P),v=c.default.connect(P)),E._header){let b,O;k("Regenerating stored HTTP header string for request"),E._header=null,E._implicitHeader(),E.output&&E.output.length>0?(k("Patching connection write() output buffer with updated header"),b=E.output[0],O=b.indexOf(`\r \r `)+4,E.output[0]=E._header+b.substring(O),k("Output buffer: %o",E.output)):E.outputData&&E.outputData.length>0&&(k("Patching connection write() output buffer with updated header"),b=E.outputData[0].data,O=b.indexOf(`\r \r `)+4,E.outputData[0].data=E._header+b.substring(O),k("Output buffer: %o",E.outputData[0].data))}return yield(0,h.default)(v,"connect"),v}))}}s.default=C},201:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}})(a(370));function l(c){return new u.default(c)}(function(c){c.HttpProxyAgent=u.default,c.prototype=u.default.prototype})(l||(l={})),o.exports=l},146:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(_,P,L,S){return new(L||(L=Promise))((function(v,b){function O(A){try{g(S.next(A))}catch(T){b(T)}}function d(A){try{g(S.throw(A))}catch(T){b(T)}}function g(A){var T;A.done?v(A.value):(T=A.value,T instanceof L?T:new L((function(x){x(T)}))).then(O,d)}g((S=S.apply(_,P||[])).next())}))},l=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(s,"__esModule",{value:!0});let c=l(a(808)),p=l(a(404)),f=l(a(310)),m=l(a(491)),h=l(a(374)),y=a(54),k=l(a(829)),C=h.default("https-proxy-agent:agent");class R extends y.Agent{constructor(P){let L;if(L=typeof P=="string"?f.default.parse(P):P,!L)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");C("creating new HttpsProxyAgent instance: %o",L),super(L);let S=Object.assign({},L);var v;this.secureProxy=L.secureProxy||typeof(v=S.protocol)=="string"&&/^https:?$/i.test(v),S.host=S.hostname||S.host,typeof S.port=="string"&&(S.port=parseInt(S.port,10)),!S.port&&S.host&&(S.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in S)&&(S.ALPNProtocols=["http 1.1"]),S.host&&S.path&&(delete S.path,delete S.pathname),this.proxy=S}callback(P,L){return u(this,void 0,void 0,(function*(){let{proxy:S,secureProxy:v}=this,b;v?(C("Creating `tls.Socket`: %o",S),b=p.default.connect(S)):(C("Creating `net.Socket`: %o",S),b=c.default.connect(S));let O=Object.assign({},S.headers),d=`CONNECT ${L.host}:${L.port} HTTP/1.1\r `;S.auth&&(O["Proxy-Authorization"]=`Basic ${Buffer.from(S.auth).toString("base64")}`);let{host:g,port:A,secureEndpoint:T}=L;(function(H,j){return!!(!j&&H===80||j&&H===443)})(A,T)||(g+=`:${A}`),O.Host=g,O.Connection="close";for(let H of Object.keys(O))d+=`${H}: ${O[H]}\r `;let x=k.default(b);b.write(`${d}\r `);let{statusCode:w,buffered:F}=yield x;if(w===200){if(P.once("socket",E),L.secureEndpoint){C("Upgrading socket connection to TLS");let H=L.servername||L.host;return p.default.connect(Object.assign(Object.assign({},(function(j,...B){let K={},ie;for(ie in j)B.includes(ie)||(K[ie]=j[ie]);return K})(L,"host","hostname","path","port")),{socket:b,servername:H}))}return b}b.destroy();let D=new c.default.Socket({writable:!1});return D.readable=!0,P.once("socket",(H=>{C("replaying proxy buffer for failed request"),m.default(H.listenerCount("data")>0),H.push(F),H.push(null)})),D}))}}function E(_){_.resume()}s.default=R},18:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}})(a(146));function l(c){return new u.default(c)}(function(c){c.HttpsProxyAgent=u.default,c.prototype=u.default.prototype})(l||(l={})),o.exports=l},829:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(s,"__esModule",{value:!0});let l=u(a(374)).default("https-proxy-agent:parse-proxy-response");s.default=function(c){return new Promise(((p,f)=>{let m=0,h=[];function y(){let R=c.read();R?(function(E){h.push(E),m+=E.length;let _=Buffer.concat(h,m);if(_.indexOf(`\r \r `)===-1)return l("have not received end of HTTP headers yet..."),void y();let P=_.toString("ascii",0,_.indexOf(`\r `)),L=+P.split(" ")[1];l("got proxy server response: %o",P),p({statusCode:L,buffered:_})})(R):c.once("readable",y)}function k(R){l("onclose had error %o",R)}function C(){l("onend")}c.on("error",(function R(E){c.removeListener("end",C),c.removeListener("error",R),c.removeListener("close",k),c.removeListener("readable",y),l("onerror %o",E),f(E)})),c.on("close",k),c.on("end",C),y()}))}},539:function(o,s,a){"use strict";var u,l=this&&this.__extends||(u=function(v,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,d){O.__proto__=d}||function(O,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(O[g]=d[g])},u(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=v}u(v,b),v.prototype=b===null?Object.create(b):(O.prototype=b.prototype,new O)}),c=this&&this.__assign||function(){return c=Object.assign||function(v){for(var b,O=1,d=arguments.length;O<d;O++)for(var g in b=arguments[O])Object.prototype.hasOwnProperty.call(b,g)&&(v[g]=b[g]);return v},c.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0}),s.getErrorStatusDescription=s.xhr=s.configure=void 0;var p=a(685),f=a(687),m=a(310),h=a(472),y=a(796),k=a(201),C=a(18);if(process.env.VSCODE_NLS_CONFIG){var R=process.env.VSCODE_NLS_CONFIG;h.config(JSON.parse(R))}var E=h.loadMessageBundle(),_=void 0,P=!0;function L(v){var b;return new Promise((function(O,d){var g=(0,m.parse)(v.url),A={hostname:g.hostname,agent:!!v.agent&&v.agent,port:g.port?parseInt(g.port):g.protocol==="https:"?443:80,path:g.path,method:v.type||"GET",headers:v.headers,rejectUnauthorized:typeof v.strictSSL!="boolean"||v.strictSSL};v.user&&v.password&&(A.auth=v.user+":"+v.password);var T=function(x){if(x.statusCode>=300&&x.statusCode<400&&v.followRedirects&&v.followRedirects>0&&x.headers.location){var w=x.headers.location;w.startsWith("/")&&(w=(0,m.format)({protocol:g.protocol,hostname:g.hostname,port:g.port,pathname:w})),O(L((function(F){for(var D=[],H=1;H<arguments.length;H++)D[H-1]=arguments[H];return D.forEach((function(j){return Object.keys(j).forEach((function(B){return F[B]=j[B]}))})),F})({},v,{url:w,followRedirects:v.followRedirects-1})))}else O({req:b,res:x})};(b=g.protocol==="https:"?f.request(A,T):p.request(A,T)).on("error",d),v.timeout&&b.setTimeout(v.timeout),v.data&&b.write(v.data),b.end(),v.token&&(v.token.isCancellationRequested&&b.destroy(new S),v.token.onCancellationRequested((function(){b.destroy(new S)})))}))}s.configure=function(v,b){_=v,P=b},s.xhr=function(v){return typeof(v=c({},v)).strictSSL!="boolean"&&(v.strictSSL=P),v.agent||(v.agent=(function(b,O){O===void 0&&(O={});var d=(0,m.parse)(b),g=O.proxyUrl||(function(x){return x.protocol==="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:x.protocol==="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy)||null})(d);if(!g)return null;var A=(0,m.parse)(g);if(!/^https?:$/.test(A.protocol))return null;var T={host:A.hostname,port:Number(A.port),auth:A.auth,rejectUnauthorized:typeof O.strictSSL!="boolean"||O.strictSSL,protocol:A.protocol};return d.protocol==="http:"?k(T):C(T)})(v.url,{proxyUrl:_,strictSSL:P})),typeof v.followRedirects!="number"&&(v.followRedirects=5),L(v).then((function(b){return new Promise((function(O,d){var g,A,T=b.res,x=T,w=!1,F=T.headers&&T.headers["content-encoding"];if(F&&(g=v.type,A=b.res.statusCode,!(g==="HEAD"||A>=100&&A<200||A===204||A===304))){var D={flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH};if(F==="gzip"){var H=y.createGunzip(D);T.pipe(H),x=H}else if(F==="deflate"){var j=y.createInflate(D);T.pipe(j),x=j}}var B=[];x.on("data",(function(K){return B.push(K)})),x.on("end",(function(){if(!w){if(w=!0,v.followRedirects>0&&(T.statusCode>=300&&T.statusCode<=303||T.statusCode===307)){var K=T.headers.location;if(K.startsWith("/")){var ie=(0,m.parse)(v.url);K=(0,m.format)({protocol:ie.protocol,hostname:ie.hostname,port:ie.port,pathname:K})}if(K){var Le={type:v.type,url:K,user:v.user,password:v.password,headers:v.headers,timeout:v.timeout,followRedirects:v.followRedirects-1,data:v.data,token:v.token};return void(0,s.xhr)(Le).then(O,d)}}var he=Buffer.concat(B),W={responseText:he.toString(),body:he,status:T.statusCode,headers:T.headers||{}};T.statusCode>=200&&T.statusCode<300||T.statusCode===1223?O(W):d(W)}})),x.on("error",(function(K){var ie;ie=S.is(K)?K:{responseText:E("error","Unable to access {0}. Error: {1}",v.url,K.message),body:Buffer.concat(B),status:500,headers:{}},w=!0,d(ie)})),v.token&&(v.token.isCancellationRequested&&x.destroy(new S),v.token.onCancellationRequested((function(){x.destroy(new S)})))}))}),(function(b){var O;return O=S.is(b)?b:{responseText:v.agent?E("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",v.url,b.message):E("error.cannot.connect","Unable to connect to {0}. Error: {1}",v.url,b.message),body:Buffer.concat([]),status:404,headers:{}},Promise.reject(O)}))},s.getErrorStatusDescription=function(v){if(!(v<400))switch(v){case 400:return E("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return E("status.401","Unauthorized. The server is refusing to respond.");case 403:return E("status.403","Forbidden. The server is refusing to respond.");case 404:return E("status.404","Not Found. The requested location could not be found.");case 405:return E("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return E("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return E("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return E("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return E("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return E("status.410","Gone. The requested page is no longer available.");case 411:return E("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return E("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return E("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return E("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return E("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return E("status.500","Internal Server Error.");case 501:return E("status.501","Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.");case 502:return E("status.502","Bad Gateway. The upstream server did not respond.");case 503:return E("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return E("status.416","HTTP status code {0}",v)}};var S=(function(v){function b(){var O=v.call(this,"The user aborted a request")||this;return O.name="AbortError",Object.setPrototypeOf(O,b.prototype),O}return l(b,v),b.is=function(O){return O instanceof b},b})(Error)},800:(o,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.config=s.loadMessageBundle=s.localize=s.format=s.setPseudo=s.isPseudo=s.isDefined=s.BundleFormat=s.MessageFormat=void 0;var u,l,c,p=a(926);function f(h){return h!==void 0}function m(h,y){return s.isPseudo&&(h="\uFF3B"+h.replace(/[aouei]/g,"$&$&")+"\uFF3D"),y.length===0?h:h.replace(/\{(\d+)\}/g,(function(k,C){var R=C[0],E=y[R],_=k;return typeof E=="string"?_=E:typeof E!="number"&&typeof E!="boolean"&&E!=null||(_=String(E)),_}))}(c=s.MessageFormat||(s.MessageFormat={})).file="file",c.bundle="bundle",c.both="both",(l=s.BundleFormat||(s.BundleFormat={})).standalone="standalone",l.languagePack="languagePack",(function(h){h.is=function(y){var k=y;return k&&f(k.key)&&f(k.comment)}})(u||(u={})),s.isDefined=f,s.isPseudo=!1,s.setPseudo=function(h){s.isPseudo=h},s.format=m,s.localize=function(h,y){for(var k=[],C=2;C<arguments.length;C++)k[C-2]=arguments[C];return m(y,k)},s.loadMessageBundle=function(h){return(0,p.default)().loadMessageBundle(h)},s.config=function(h){return(0,p.default)().config(h)}},926:(o,s)=>{"use strict";var a;function u(){if(a===void 0)throw new Error("No runtime abstraction layer installed");return a}Object.defineProperty(s,"__esModule",{value:!0}),(function(l){l.install=function(c){if(c===void 0)throw new Error("No runtime abstraction layer provided");a=c}})(u||(u={})),s.default=u},472:(o,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.config=s.loadMessageBundle=s.BundleFormat=s.MessageFormat=void 0;var u=a(17),l=a(147),c=a(926),p=a(800),f=a(800);Object.defineProperty(s,"MessageFormat",{enumerable:!0,get:function(){return f.MessageFormat}}),Object.defineProperty(s,"BundleFormat",{enumerable:!0,get:function(){return f.BundleFormat}});var m,h,y=Object.prototype.toString;function k(b){return y.call(b)==="[object Number]"}function C(b){return y.call(b)==="[object String]"}function R(b){return JSON.parse(l.readFileSync(b,"utf8"))}function E(b){return function(O,d){for(var g=[],A=2;A<arguments.length;A++)g[A-2]=arguments[A];return k(O)?O>=b.length?void console.error(`Broken localize call found. Index out of bounds. Stacktrace is : `.concat(new Error("").stack)):(0,p.format)(b[O],g):C(d)?(console.warn("Message ".concat(d," didn't get externalized correctly.")),(0,p.format)(d,g)):void console.error(`Broken localize call found. Stacktrace is : `.concat(new Error("").stack))}}function _(b,O){return m[b]=O,O}function P(b){try{return(function(O){var d=R(u.join(O,"nls.metadata.json")),g=Object.create(null);for(var A in d){var T=d[A];g[A]=T.messages}return g})(b)}catch(O){return void console.log("Generating default bundle from meta data failed.",O)}}function L(b,O){var d;if(h.languagePackSupport===!0&&h.cacheRoot!==void 0&&h.languagePackId!==void 0&&h.translationsConfigFile!==void 0&&h.translationsConfig!==void 0)try{d=(function(A,T){var x,w,F,D=u.join(h.cacheRoot,"".concat(A.id,"-").concat(A.hash,".json")),H=!1,j=!1;try{return x=JSON.parse(l.readFileSync(D,{encoding:"utf8",flag:"r"})),w=D,F=new Date,l.utimes(w,F,F,(function(){})),x}catch(B){if(B.code==="ENOENT")j=!0;else{if(!(B instanceof SyntaxError))throw B;console.log("Syntax error parsing message bundle: ".concat(B.message,".")),l.unlink(D,(function(K){K&&console.error("Deleting corrupted bundle ".concat(D," failed."))})),H=!0}}if(x=(function(B,K){var ie=h.translationsConfig[B.id];if(ie){var Le=R(ie).contents,he=R(u.join(K,"nls.metadata.json")),W=Object.create(null);for(var Te in he){var tt=he[Te],N=Le["".concat(B.outDir,"/").concat(Te)];if(N){for(var Q=[],I=0;I<tt.keys.length;I++){var Y=tt.keys[I],J=N[C(Y)?Y:Y.key];J===void 0&&(J=tt.messages[I]),Q.push(J)}W[Te]=Q}else W[Te]=tt.messages}return W}})(A,T),!x||H)return x;if(j)try{l.writeFileSync(D,JSON.stringify(x),{encoding:"utf8",flag:"wx"})}catch(B){if(B.code==="EEXIST")return x;throw B}return x})(b,O)}catch(A){console.log("Load or create bundle failed ",A)}if(!d){if(h.languagePackSupport)return P(O);var g=(function(A){for(var T=h.language;T;){var x=u.join(A,"nls.bundle.".concat(T,".json"));if(l.existsSync(x))return x;var w=T.lastIndexOf("-");T=w>0?T.substring(0,w):void 0}if(T===void 0&&(x=u.join(A,"nls.bundle.json"),l.existsSync(x)))return x})(O);if(g)try{return R(g)}catch(A){console.log("Loading in the box message bundle failed.",A)}d=P(O)}return d}function S(b){if(!b)return p.localize;var O=u.extname(b);if(O&&(b=b.substr(0,b.length-O.length)),h.messageFormat===p.MessageFormat.both||h.messageFormat===p.MessageFormat.bundle){var d=(function(H){for(var j,B=u.dirname(H);j=u.join(B,"nls.metadata.header.json"),!l.existsSync(j);){var K=u.dirname(B);if(K===B){j=void 0;break}B=K}return j})(b);if(d){var g=u.dirname(d),A=m[g];if(A===void 0)try{var T=JSON.parse(l.readFileSync(d,"utf8"));try{var x=L(T,g);A=_(g,x?{header:T,nlsBundle:x}:null)}catch(H){console.error("Failed to load nls bundle",H),A=_(g,null)}}catch(H){console.error("Failed to read header file",H),A=_(g,null)}if(A){var w=b.substr(g.length+1).replace(/\\/g,"/"),F=A.nlsBundle[w];return F===void 0?(console.error("Messages for file ".concat(b," not found. See console for details.")),function(){return"Messages not found."}):E(F)}}}if(h.messageFormat===p.MessageFormat.both||h.messageFormat===p.MessageFormat.file)try{var D=R((function(H){var j;if(!(h.cacheLanguageResolution&&j)){if(p.isPseudo||!h.language)j=".nls.json";else for(var B=h.language;B;){var K=".nls."+B+".json";if(l.existsSync(H+K)){j=K;break}var ie=B.lastIndexOf("-");ie>0?B=B.substring(0,ie):(j=".nls.json",B=null)}h.cacheLanguageResolution}return H+j})(b));return Array.isArray(D)?E(D):(0,p.isDefined)(D.messages)&&(0,p.isDefined)(D.keys)?E(D.messages):(console.error("String bundle '".concat(b,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(H){H.code!=="ENOENT"&&console.error("Failed to load single file bundle",H)}return console.error("Failed to load message bundle for file ".concat(b)),function(){return"Failed to load message bundle. See console for details."}}function v(b){return b&&(C(b.locale)&&(h.locale=b.locale.toLowerCase(),h.language=h.locale,m=Object.create(null)),b.messageFormat!==void 0&&(h.messageFormat=b.messageFormat),b.bundleFormat===p.BundleFormat.standalone&&h.languagePackSupport===!0&&(h.languagePackSupport=!1)),(0,p.setPseudo)(h.locale==="pseudo"),S}(function(){if(h={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:p.MessageFormat.bundle},C(process.env.VSCODE_NLS_CONFIG))try{var b=JSON.parse(process.env.VSCODE_NLS_CONFIG),O=void 0;if(b.availableLanguages){var d=b.availableLanguages["*"];C(d)&&(O=d)}if(C(b.locale)&&(h.locale=b.locale.toLowerCase()),O===void 0?h.language=h.locale:O!=="en"&&(h.language=O),(function(A){return A===!0||A===!1})(b._languagePackSupport)&&(h.languagePackSupport=b._languagePackSupport),C(b._cacheRoot)&&(h.cacheRoot=b._cacheRoot),C(b._languagePackId)&&(h.languagePackId=b._languagePackId),C(b._translationsConfigFile)){h.translationsConfigFile=b._translationsConfigFile;try{h.translationsConfig=R(h.translationsConfigFile)}catch{if(b._corruptedFile){var g=u.dirname(b._corruptedFile);l.exists(g,(function(T){T&&l.writeFile(b._corruptedFile,"corrupted","utf8",(function(x){console.error(x)}))}))}}}}catch{}(0,p.setPseudo)(h.locale==="pseudo"),m=Object.create(null)})(),s.loadMessageBundle=S,s.config=v,c.default.install(Object.freeze({loadMessageBundle:S,config:v}))},374:(o,s)=>{function a(){}Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(u){return a}},491:o=>{"use strict";o.exports=require("assert")},361:o=>{"use strict";o.exports=require("events")},147:o=>{"use strict";o.exports=require("fs")},685:o=>{"use strict";o.exports=require("http")},687:o=>{"use strict";o.exports=require("https")},808:o=>{"use strict";o.exports=require("net")},17:o=>{"use strict";o.exports=require("path")},404:o=>{"use strict";o.exports=require("tls")},310:o=>{"use strict";o.exports=require("url")},796:o=>{"use strict";o.exports=require("zlib")}},t={},n=(function o(s){var a=t[s];if(a!==void 0)return a.exports;var u=t[s]={exports:{}};return e[s].call(u.exports,u,u.exports,o),u.exports})(539),r=Hr;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()});var Qr=M((Og,zr)=>{var dc=typeof process=="object"&&process&&process.platform==="win32";zr.exports=dc?{sep:"\\"}:{sep:"/"}});var ni=M((Cg,ti)=>{"use strict";ti.exports=Zr;function Zr(e,t,n){e instanceof RegExp&&(e=Xr(e,n)),t instanceof RegExp&&(t=Xr(t,n));var r=ei(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Xr(e,t){var n=t.match(e);return n?n[0]:null}Zr.range=ei;function ei(e,t,n){var r,i,o,s,a,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!a;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?a=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,s=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(a=[o,s])}return a}});var li=M((Pg,ci)=>{var ri=ni();ci.exports=yc;var ii="\0SLASH"+Math.random()+"\0",oi="\0OPEN"+Math.random()+"\0",jn="\0CLOSE"+Math.random()+"\0",si="\0COMMA"+Math.random()+"\0",ai="\0PERIOD"+Math.random()+"\0";function Hn(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function gc(e){return e.split("\\\\").join(ii).split("\\{").join(oi).split("\\}").join(jn).split("\\,").join(si).split("\\.").join(ai)}function mc(e){return e.split(ii).join("\\").split(oi).join("{").split(jn).join("}").split(si).join(",").split(ai).join(".")}function ui(e){if(!e)return[""];var t=[],n=ri("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,o=n.post,s=r.split(",");s[s.length-1]+="{"+i+"}";var a=ui(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),t.push.apply(t,s),t}function yc(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),St(gc(e),!0).map(mc)):[]}function xc(e){return"{"+e+"}"}function vc(e){return/^-?0\d/.test(e)}function bc(e,t){return e<=t}function wc(e,t){return e>=t}function St(e,t){var n=[],r=ri("{","}",e);if(!r)return[e];var i=r.pre,o=r.post.length?St(r.post,!1):[""];if(/\$$/.test(r.pre))for(var s=0;s<o.length;s++){var a=i+"{"+r.body+"}"+o[s];n.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=u||l,p=r.body.indexOf(",")>=0;if(!c&&!p)return r.post.match(/,(?!,).*\}/)?(e=r.pre+"{"+r.body+jn+r.post,St(e)):[e];var f;if(c)f=r.body.split(/\.\./);else if(f=ui(r.body),f.length===1&&(f=St(f[0],!1).map(xc),f.length===1))return o.map(function(O){return r.pre+f[0]+O});var m;if(c){var h=Hn(f[0]),y=Hn(f[1]),k=Math.max(f[0].length,f[1].length),C=f.length==3?Math.max(Math.abs(Hn(f[2])),1):1,R=bc,E=y<h;E&&(C*=-1,R=wc);var _=f.some(vc);m=[];for(var P=h;R(P,y);P+=C){var L;if(l)L=String.fromCharCode(P),L==="\\"&&(L="");else if(L=String(P),_){var S=k-L.length;if(S>0){var v=new Array(S+1).join("0");P<0?L="-"+v+L.slice(1):L=v+L}}m.push(L)}}else{m=[];for(var b=0;b<f.length;b++)m.push.apply(m,St(f[b],!1))}for(var b=0;b<m.length;b++)for(var s=0;s<o.length;s++){var a=i+m[b]+o[s];(!t||c||a)&&n.push(a)}}return n}});var mi=M((Ig,Gn)=>{var ye=Gn.exports=(e,t,n={})=>(Wt(t),!n.nocomment&&t.charAt(0)==="#"?!1:new rt(t,n).match(e));Gn.exports=ye;var Un=Qr();ye.sep=Un.sep;var fe=Symbol("globstar **");ye.GLOBSTAR=fe;var Ac=li(),fi={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Bn="[^/]",$n=Bn+"*?",Sc="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Ec="(?:(?!(?:\\/|^)\\.).)*?",di=e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),pi=di("().*{}+?[]^$\\!"),kc=di("[.("),hi=/\/+/;ye.filter=(e,t={})=>(n,r,i)=>ye(n,e,t);var Ie=(e,t={})=>{let n={};return Object.keys(e).forEach(r=>n[r]=e[r]),Object.keys(t).forEach(r=>n[r]=t[r]),n};ye.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ye;let t=ye,n=(r,i,o)=>t(r,i,Ie(e,o));return n.Minimatch=class extends t.Minimatch{constructor(i,o){super(i,Ie(e,o))}},n.Minimatch.defaults=r=>t.defaults(Ie(e,r)).Minimatch,n.filter=(r,i)=>t.filter(r,Ie(e,i)),n.defaults=r=>t.defaults(Ie(e,r)),n.makeRe=(r,i)=>t.makeRe(r,Ie(e,i)),n.braceExpand=(r,i)=>t.braceExpand(r,Ie(e,i)),n.match=(r,i,o)=>t.match(r,i,Ie(e,o)),n};ye.braceExpand=(e,t)=>gi(e,t);var gi=(e,t={})=>(Wt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Ac(e)),_c=1024*64,Wt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>_c)throw new TypeError("pattern is too long")},qn=Symbol("subparse");ye.makeRe=(e,t)=>new rt(e,t||{}).makeRe();ye.match=(e,t,n={})=>{let r=new rt(t,n);return e=e.filter(i=>r.match(i)),r.options.nonull&&!e.length&&e.push(t),e};var Tc=e=>e.replace(/\\(.)/g,"$1"),Rc=e=>e.replace(/\\([^-\]])/g,"$1"),Oc=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Cc=e=>e.replace(/[[\]\\]/g,"\\$&"),rt=class{constructor(t,n){Wt(t),n||(n={}),this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion!==void 0?n.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,r),r=this.globParts=r.map(i=>i.split(hi)),this.debug(this.pattern,r),r=r.map((i,o,s)=>i.map(this.parse,this)),this.debug(this.pattern,r),r=r.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;let t=this.pattern,n=!1,r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=t.slice(r)),this.negate=n}matchOne(t,n,r){return n.indexOf(fe)!==-1?this._matchGlobstar(t,n,r,0,0):this._matchOne(t,n,r,0,0)}_matchGlobstar(t,n,r,i,o){let s=-1;for(let R=o;R<n.length;R++)if(n[R]===fe){s=R;break}let a=-1;for(let R=n.length-1;R>=0;R--)if(n[R]===fe){a=R;break}let u=n.slice(o,s),l=n.slice(s+1,a),c=n.slice(a+1);if(u.length){let R=t.slice(i,i+u.length);if(!this._matchOne(R,u,r,0,0))return!1;i+=u.length}let p=0;if(c.length){if(c.length+i>t.length)return!1;let R=t.length-c.length;if(this._matchOne(t,c,r,R,0))p=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||!this._matchOne(t,c,r,R-1,0))return!1;p=c.length+1}}if(!l.length){let R=!!p;for(let E=i;E<t.length-p;E++){let _=String(t[E]);if(R=!0,_==="."||_===".."||!this.options.dot&&_.charAt(0)===".")return!1}return R}let f=[[[],0]],m=f[0],h=0,y=[0];for(let R of l)R===fe?(y.push(h),m=[[],0],f.push(m)):(m[0].push(R),h++);let k=f.length-1,C=t.length-p;for(let R of f)R[1]=C-(y[k--]+R[0].length);return!!this._matchGlobStarBodySections(t,f,i,0,r,0,!!p)}_matchGlobStarBodySections(t,n,r,i,o,s,a){let u=n[i];if(!u){for(let p=r;p<t.length;p++){a=!0;let f=t[p];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)===".")return!1}return a}let[l,c]=u;for(;r<=c;){if(this._matchOne(t.slice(0,r+l.length),l,o,r,0)&&s<this.maxGlobstarRecursion){let m=this._matchGlobStarBodySections(t,n,r+l.length,i+1,o,s+1,a);if(m!==!1)return m}let f=t[r];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)===".")return!1;r++}return null}_matchOne(t,n,r,i,o){let s,a,u,l;for(s=i,a=o,u=t.length,l=n.length;s<u&&a<l;s++,a++){this.debug("matchOne loop");let c=n[a],p=t[s];if(this.debug(n,c,p),c===!1||c===fe)return!1;let f;if(typeof c=="string"?(f=p===c,this.debug("string match",c,p,f)):(f=p.match(c),this.debug("pattern match",c,p,f)),!f)return!1}if(s===u&&a===l)return!0;if(s===u)return r;if(a===l)return s===u-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return gi(this.pattern,this.options)}parse(t,n){Wt(t);let r=this.options;if(t==="**")if(r.noglobstar)t="*";else return fe;if(t==="")return"";let i="",o=!1,s=!1,a=[],u=[],l,c=!1,p=-1,f=-1,m,h,y,k=t.charAt(0)===".",C=r.dot||k,R=()=>k?"":C?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=S=>S.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=()=>{if(l){switch(l){case"*":i+=$n,o=!0;break;case"?":i+=Bn,o=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1}};for(let S=0,v;S<t.length&&(v=t.charAt(S));S++){if(this.debug("%s %s %s %j",t,S,i,v),s){if(v==="/")return!1;pi[v]&&(i+="\\"),i+=v,s=!1;continue}switch(v){case"/":return!1;case"\\":if(c&&t.charAt(S+1)==="-"){i+=v;continue}_(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,S,i,v),c){this.debug(" in class"),v==="!"&&S===f+1&&(v="^"),i+=v;continue}if(v==="*"&&l==="*")continue;this.debug("call clearStateChar %j",l),_(),l=v,r.noext&&_();continue;case"(":{if(c){i+="(";continue}if(!l){i+="\\(";continue}let b={type:l,start:S-1,reStart:i.length,open:fi[l].open,close:fi[l].close};this.debug(this.pattern," ",b),a.push(b),i+=b.open,b.start===0&&b.type!=="!"&&(k=!0,i+=E(t.slice(S+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{let b=a[a.length-1];if(c||!b){i+="\\)";continue}a.pop(),_(),o=!0,h=b,i+=h.close,h.type==="!"&&u.push(Object.assign(h,{reEnd:i.length}));continue}case"|":{let b=a[a.length-1];if(c||!b){i+="\\|";continue}_(),i+="|",b.start===0&&b.type!=="!"&&(k=!0,i+=E(t.slice(S+1)));continue}case"[":if(_(),c){i+="\\"+v;continue}c=!0,f=S,p=i.length,i+=v;continue;case"]":if(S===f+1||!c){i+="\\"+v;continue}m=t.substring(f+1,S);try{RegExp("["+Cc(Rc(m))+"]"),i+=v}catch{i=i.substring(0,p)+"(?:$.)"}o=!0,c=!1;continue;default:_(),pi[v]&&!(v==="^"&&c)&&(i+="\\"),i+=v;break}}for(c&&(m=t.slice(f+1),y=this.parse(m,qn),i=i.substring(0,p)+"\\["+y[0],o=o||y[1]),h=a.pop();h;h=a.pop()){let S;S=i.slice(h.reStart+h.open.length),this.debug("setting tail",i,h),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,(b,O,d)=>(d||(d="\\"),O+O+d+"|")),this.debug(`tail=%j %s`,S,S,h,i);let v=h.type==="*"?$n:h.type==="?"?Bn:"\\"+h.type;o=!0,i=i.slice(0,h.reStart)+v+"\\("+S}_(),s&&(i+="\\\\");let P=kc[i.charAt(0)];for(let S=u.length-1;S>-1;S--){let v=u[S],b=i.slice(0,v.reStart),O=i.slice(v.reStart,v.reEnd-8),d=i.slice(v.reEnd),g=i.slice(v.reEnd-8,v.reEnd)+d,A=b.split(")").length,T=b.split("(").length-A,x=d;for(let F=0;F<T;F++)x=x.replace(/\)[+*?]?/,"");d=x;let w=d===""&&n!==qn?"(?:$|\\/)":"";i=b+O+d+w+g}if(i!==""&&o&&(i="(?=.)"+i),P&&(i=R()+i),n===qn)return[i,o];if(r.nocase&&!o&&(o=t.toUpperCase()!==t.toLowerCase()),!o)return Tc(t);let L=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",L),{_glob:t,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?$n:n.dot?Sc:Ec,i=n.nocase?"i":"",o=t.map(s=>(s=s.map(a=>typeof a=="string"?Oc(a):a===fe?fe:a._src).reduce((a,u)=>(a[a.length-1]===fe&&u===fe||a.push(u),a),[]),s.forEach((a,u)=>{a!==fe||s[u-1]===fe||(u===0?s.length>1?s[u+1]="(?:\\/|"+r+"\\/)?"+s[u+1]:s[u]=r:u===s.length-1?s[u-1]+="(?:\\/|"+r+")?":(s[u-1]+="(?:\\/|\\/"+r+"\\/)"+s[u+1],s[u+1]=fe))}),s.filter(a=>a!==fe).join("/"))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,i)}catch{this.regexp=!1}return this.regexp}match(t,n=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;let r=this.options;Un.sep!=="/"&&(t=t.split(Un.sep).join("/")),t=t.split(hi),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let o;for(let s=t.length-1;s>=0&&(o=t[s],!o);s--);for(let s=0;s<i.length;s++){let a=i[s],u=t;if(r.matchBase&&a.length===1&&(u=[o]),this.matchOne(u,a,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(t){return ye.defaults(t).Minimatch}};ye.Minimatch=rt});var vi=M((Mg,xi)=>{var Yn=class{constructor(t){this.value=t,this.next=void 0}},Vn=class{constructor(){this.clear()}enqueue(t){let n=new Yn(t);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};xi.exports=Vn});var wi=M((Dg,bi)=>{"use strict";var Pc=vi(),Lc=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Pc,n=0,r=()=>{n--,t.size>0&&t.dequeue()()},i=async(a,u,...l)=>{n++;let c=(async()=>a(...l))();u(c);try{await c}catch{}r()},o=(a,u,...l)=>{t.enqueue(i.bind(null,a,u,...l)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},s=(a,...u)=>new Promise(l=>{o(a,l,...u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};bi.exports=Lc});var Ei=M((Hg,Si)=>{"use strict";var Ai=wi(),Yt=class extends Error{constructor(t){super(),this.value=t}},Ic=async(e,t)=>t(await e),Nc=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Yt(t[0]);return!1},Fc=async(e,t,n)=>{n={concurrency:1/0,preserveOrder:!0,...n};let r=Ai(n.concurrency),i=[...e].map(s=>[s,r(Ic,s,t)]),o=Ai(n.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Nc,s)))}catch(s){if(s instanceof Yt)return s.value;throw s}};Si.exports=Fc});var Ci=M((jg,Kn)=>{"use strict";var ki=require("path"),Vt=require("fs"),{promisify:_i}=require("util"),Mc=Ei(),Dc=_i(Vt.stat),Hc=_i(Vt.lstat),Ti={directory:"isDirectory",file:"isFile"};function Ri({type:e}){if(!(e in Ti))throw new Error(`Invalid type specified: ${e}`)}var Oi=(e,t)=>e===void 0||t[Ti[e]]();Kn.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Ri(t);let n=t.allowSymlinks?Dc:Hc;return Mc(e,async r=>{try{let i=await n(ki.resolve(t.cwd,r));return Oi(t.type,i)}catch{return!1}},t)};Kn.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Ri(t);let n=t.allowSymlinks?Vt.statSync:Vt.lstatSync;for(let r of e)try{let i=n(ki.resolve(t.cwd,r));if(Oi(t.type,i))return r}catch{}}});var zn=M(($g,Jn)=>{"use strict";var Pi=require("fs"),{promisify:jc}=require("util"),$c=jc(Pi.access);Jn.exports=async e=>{try{return await $c(e),!0}catch{return!1}};Jn.exports.sync=e=>{try{return Pi.accessSync(e),!0}catch{return!1}}});var Ii=M((qg,it)=>{"use strict";var Ne=require("path"),Kt=Ci(),Li=zn(),Qn=Symbol("findUp.stop");it.exports=async(e,t={})=>{let n=Ne.resolve(t.cwd||""),{root:r}=Ne.parse(n),i=[].concat(e),o=async s=>{if(typeof e!="function")return Kt(i,s);let a=await e(s.cwd);return typeof a=="string"?Kt([a],s):a};for(;;){let s=await o({...t,cwd:n});if(s===Qn)return;if(s)return Ne.resolve(n,s);if(n===r)return;n=Ne.dirname(n)}};it.exports.sync=(e,t={})=>{let n=Ne.resolve(t.cwd||""),{root:r}=Ne.parse(n),i=[].concat(e),o=s=>{if(typeof e!="function")return Kt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Kt.sync([a],s):a};for(;;){let s=o({...t,cwd:n});if(s===Qn)return;if(s)return Ne.resolve(n,s);if(n===r)return;n=Ne.dirname(n)}};it.exports.exists=Li;it.exports.sync.exists=Li.sync;it.exports.stop=Qn});var Fi=M((Ug,Ni)=>{var Fe=require("constants"),qc=process.cwd,Jt=null,Uc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jt||(Jt=qc.call(process)),Jt};try{process.cwd()}catch{}var Bc=process.chdir;process.chdir=function(e){Jt=null,Bc.call(process,e)};Ni.exports=Gc;function Gc(e){Fe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.lchmod||(e.lchmod=function(c,p,f){f&&process.nextTick(f)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(c,p,f,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Uc==="win32"&&(e.rename=(function(c){return function(p,f,m){var h=Date.now(),y=0;c(p,f,function k(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-h<6e4){setTimeout(function(){e.stat(f,function(R,E){R&&R.code==="ENOENT"?c(p,f,k):m(C)})},y),y<100&&(y+=10);return}m&&m(C)})}})(e.rename)),e.read=(function(c){function p(f,m,h,y,k,C){var R;if(C&&typeof C=="function"){var E=0;R=function(_,P,L){if(_&&_.code==="EAGAIN"&&E<10)return E++,c.call(e,f,m,h,y,k,R);C.apply(this,arguments)}}return c.call(e,f,m,h,y,k,R)}return p.__proto__=c,p})(e.read),e.readSync=(function(c){return function(p,f,m,h,y){for(var k=0;;)try{return c.call(e,p,f,m,h,y)}catch(C){if(C.code==="EAGAIN"&&k<10){k++;continue}throw C}}})(e.readSync);function t(c){c.lchmod=function(p,f,m){c.open(p,Fe.O_WRONLY|Fe.O_SYMLINK,f,function(h,y){if(h){m&&m(h);return}c.fchmod(y,f,function(k){c.close(y,function(C){m&&m(k||C)})})})},c.lchmodSync=function(p,f){var m=c.openSync(p,Fe.O_WRONLY|Fe.O_SYMLINK,f),h=!0,y;try{y=c.fchmodSync(m,f),h=!1}finally{if(h)try{c.closeSync(m)}catch{}else c.closeSync(m)}return y}}function n(c){Fe.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(p,f,m,h){c.open(p,Fe.O_SYMLINK,function(y,k){if(y){h&&h(y);return}c.futimes(k,f,m,function(C){c.close(k,function(R){h&&h(C||R)})})})},c.lutimesSync=function(p,f,m){var h=c.openSync(p,Fe.O_SYMLINK),y,k=!0;try{y=c.futimesSync(h,f,m),k=!1}finally{if(k)try{c.closeSync(h)}catch{}else c.closeSync(h)}return y}):(c.lutimes=function(p,f,m,h){h&&process.nextTick(h)},c.lutimesSync=function(){})}function r(c){return c&&function(p,f,m){return c.call(e,p,f,function(h){l(h)&&(h=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,f){try{return c.call(e,p,f)}catch(m){if(!l(m))throw m}}}function o(c){return c&&function(p,f,m,h){return c.call(e,p,f,m,function(y){l(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(c){return c&&function(p,f,m){try{return c.call(e,p,f,m)}catch(h){if(!l(h))throw h}}}function a(c){return c&&function(p,f,m){typeof f=="function"&&(m=f,f=null);function h(y,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),m&&m.apply(this,arguments)}return f?c.call(e,p,f,h):c.call(e,p,h)}}function u(c){return c&&function(p,f){var m=f?c.call(e,p,f):c.call(e,p);return m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296),m}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Hi=M((Bg,Di)=>{var Mi=require("stream").Stream;Di.exports=Wc;function Wc(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);Mi.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,u=s.length;a<u;a++){var l=s[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,p){if(c){o.emit("error",c),o.readable=!1;return}o.fd=p,o.emit("open",p),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);Mi.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var u=o[s];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var $i=M((Gg,ji)=>{"use strict";ji.exports=Yc;function Yc(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var Bi=M((Wg,Zn)=>{var ue=require("fs"),Vc=Fi(),Kc=Hi(),Jc=$i(),zt=require("util"),we,Qt;typeof Symbol=="function"&&typeof Symbol.for=="function"?(we=Symbol.for("graceful-fs.queue"),Qt=Symbol.for("graceful-fs.previous")):(we="___graceful-fs.queue",Qt="___graceful-fs.previous");function zc(){}function Ui(e,t){Object.defineProperty(e,we,{get:function(){return t}})}var kt=zc;zt.debuglog?kt=zt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(kt=function(){var e=zt.format.apply(zt,arguments);e="GFS4: "+e.split(/\n/).join(` GFS4: `),console.error(e)});ue[we]||(qi=global[we]||[],Ui(ue,qi),ue.close=(function(e){function t(n,r){return e.call(ue,n,function(i){i||je(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,Qt,{value:e}),t})(ue.close),ue.closeSync=(function(e){function t(n){e.apply(ue,arguments),je()}return Object.defineProperty(t,Qt,{value:e}),t})(ue.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kt(ue[we]),require("assert").equal(ue[we].length,0)}));var qi;global[we]||Ui(global,ue[we]);Zn.exports=Xn(Jc(ue));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ue.__patched&&(Zn.exports=Xn(ue),ue.__patched=!0);function Xn(e){Vc(e),e.gracefulify=Xn,e.createReadStream=E,e.createWriteStream=_;var t=e.readFile;e.readFile=n;function n(S,v,b){return typeof v=="function"&&(b=v,v=null),O(S,v,b);function O(d,g,A){return t(d,g,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Et([O,[d,g,A]]):(typeof A=="function"&&A.apply(this,arguments),je())})}}var r=e.writeFile;e.writeFile=i;function i(S,v,b,O){return typeof b=="function"&&(O=b,b=null),d(S,v,b,O);function d(g,A,T,x){return r(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Et([d,[g,A,T,x]]):(typeof x=="function"&&x.apply(this,arguments),je())})}}var o=e.appendFile;o&&(e.appendFile=s);function s(S,v,b,O){return typeof b=="function"&&(O=b,b=null),d(S,v,b,O);function d(g,A,T,x){return o(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Et([d,[g,A,T,x]]):(typeof x=="function"&&x.apply(this,arguments),je())})}}var a=e.readdir;e.readdir=u;function u(S,v,b){var O=[S];return typeof v!="function"?O.push(v):b=v,O.push(d),l(O);function d(g,A){A&&A.sort&&A.sort(),g&&(g.code==="EMFILE"||g.code==="ENFILE")?Et([l,[O]]):(typeof b=="function"&&b.apply(this,arguments),je())}}function l(S){return a.apply(e,S)}if(process.version.substr(0,4)==="v0.8"){var c=Kc(e);y=c.ReadStream,C=c.WriteStream}var p=e.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=k);var f=e.WriteStream;f&&(C.prototype=Object.create(f.prototype),C.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return y},set:function(S){y=S},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(S){C=S},enumerable:!0,configurable:!0});var m=y;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(S){m=S},enumerable:!0,configurable:!0});var h=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(S){h=S},enumerable:!0,configurable:!0});function y(S,v){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function k(){var S=this;L(S.path,S.flags,S.mode,function(v,b){v?(S.autoClose&&S.destroy(),S.emit("error",v)):(S.fd=b,S.emit("open",b),S.read())})}function C(S,v){return this instanceof C?(f.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function R(){var S=this;L(S.path,S.flags,S.mode,function(v,b){v?(S.destroy(),S.emit("error",v)):(S.fd=b,S.emit("open",b))})}function E(S,v){return new e.ReadStream(S,v)}function _(S,v){return new e.WriteStream(S,v)}var P=e.open;e.open=L;function L(S,v,b,O){return typeof b=="function"&&(O=b,b=null),d(S,v,b,O);function d(g,A,T,x){return P(g,A,T,function(w,F){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Et([d,[g,A,T,x]]):(typeof x=="function"&&x.apply(this,arguments),je())})}}return e}function Et(e){kt("ENQUEUE",e[0].name,e[1]),ue[we].push(e)}function je(){var e=ue[we].shift();e&&(kt("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Yi=M((Yg,Wi)=>{"use strict";var Gi=