create-turbo 2.2.4-canary.8 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -27,7 +27,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}
27
27
  `).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
28
28
  `).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
29
29
  `)}${u.reverse().join(`
30
- `)}`}}};ke.RequestError=Ue;var Nl=class extends Ue{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};ke.MaxRedirectsError=Nl;var Ml=class extends Ue{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};ke.HTTPError=Ml;var jl=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};ke.CacheError=jl;var ql=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};ke.UploadError=ql;var Ul=class extends Ue{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};ke.TimeoutError=Ul;var Sa=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};ke.ReadError=Sa;var Hl=class extends Ue{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};ke.UnsupportedProtocolError=Hl;var qq=["socket","connect","continue","information","upgrade","timeout"],$l=class extends _R.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Js]=0,this[Qs]=0,this.requestInitialized=!1,this[Il]=new Set,this.redirects=[],this[eo]=!1,this[Ll]=!1,this[xa]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof yy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),ke.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof bq.ReadStream&&await Nq(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[nt])===null||c===void 0||c.destroy();return}for(let h of this[xa])h();this[xa].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Ue){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Bn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([SR.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=Aq({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Bn.URLSearchParams)d=new Bn.URLSearchParams(r.searchParams);else{Lq(r.searchParams),d=new Bn.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=xR.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=xR.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Bn.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Bn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Hl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=gR.promisify(d.bind(r.cookieJar)),m=gR.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(by.has(h)||by.set(h,new vR((d,m)=>{let y=d[nt](d,m);return Y.default.promise(y)&&(y.once=(p,E)=>{if(p==="error")y.catch(E);else if(p==="abort")(async()=>{try{(await y).once("abort",E)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)gy||(gy=new wq.default),r.dnsCache=gy;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let d of ke.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(n&&!f)for(let d of ke.knownHookEvents)n.hooks[d].length>0&&(r.hooks[d]=[...n.hooks[d],...r.hooks[d]]);if("family"in r&&Nn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&Nn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Nn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Nn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Nn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Nn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Nn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Nn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,ke.setNonEnumerableProperties([n,c],r),Fq.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!Y.default.undefined(e.form),i=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=n||i||s,a=ke.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof _R.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!ER.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(ER.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Mn]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Mn]=new Bn.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Mn]=e.stringifyJson(e.json));let c=await Dq.default(this[Mn],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Xs]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[RR]=e,r.decompress&&(e=xq(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:bR.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[DR]=s.isFromCache,this[Zs]=Number(e.headers["content-length"])||void 0,this[Bl]=e,e.once("end",()=>{this[Zs]=this[Js],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Sa(a,this))}),e.once("aborted",()=>{this._beforeError(new Sa({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&Mq.has(i)){if(e.resume(),this[nt]&&(this[_y](),delete this[nt],this[AR]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Mn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Nl(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Bn.URL(u,n),l=c.toString();if(decodeURI(l),!h(n)&&h(c)){this._beforeError(new Ue("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!Oq.isResponseOk(s)){this._beforeError(new Ml(s));return}e.on("readable",()=>{this[Ll]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Il])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;Eq.default(e),this[_y]=wR.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof wR.TimeoutError?new Ul(u,this.timings,this):new Ue(u.message,u,this),this._beforeError(u)}),this[AR]=Cq.default(e,this,qq),this[nt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Mn],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new ql(u,this))})):(this._unlockWrite(),Y.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,Rq.default(e)),delete r.url;let s,o=by.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let E in a)if(Y.default.undefined(a[E]))delete a[E];else if(Y.default.null_(a[E]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${E}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=Iq?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let E=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(E)&&(o.headers.cookie=E)}for(let E of o.hooks.beforeRequest){let R=await E(o);if(!Y.default.undefined(R)){o.request=()=>R;break}}o.body&&this[Mn]!==o.body&&(this[Mn]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let E=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(E!=null&&E.groups){let{socketPath:R,path:T}=E.groups;Object.assign(o,{socketPath:R,path:T,host:""})}}let f=h.protocol==="https:",d;o.http2?d=Sq.auto:d=f?vq.request:bR.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[nt]=m,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,p.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=SR.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let E=await y(h,p);Y.default.undefined(E)&&(E=d(h,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),Bq(E)?this._onRequest(E):this.writable?(this.once("finish",()=>{this._onResponse(E)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(E)}catch(E){throw E instanceof vR.CacheError?new jl(E,this):new Ue(E.message,E,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Ue(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[eo])return;let{options:r}=this,n=this.retryCount+1;this[eo]=!0,e instanceof Ue||(e=new Ue(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await Tq.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:Pq.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Ue(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new Ue(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[kR]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Ll]=!0;let e=this[Bl];if(e&&!this[eo]){e.readableLength&&(this[Ll]=!1);let r;for(;(r=e.read())!==null;){this[Js]+=r.length,this[CR]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[xa].push(i)}_writeRequest(e,r,n){this[nt].destroyed||(this._progressCallbacks.push(()=>{this[Qs]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[nt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(nt in this)){e();return}if(this[nt].destroyed){e();return}this[nt].end(n=>{n||(this[Xs]=this[Qs],this.emit("uploadProgress",this.uploadProgress),this[nt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[xa].push(r)}_destroy(e,r){var n;this[eo]=!0,clearTimeout(this[kR]),nt in this&&(this[_y](),!((n=this[Bl])===null||n===void 0)&&n.complete||this[nt].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof Ue)&&(e=new Ue(e.message,e,this)),r(e)}get _isAboutToError(){return this[eo]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[nt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[RR])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[nt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Zs]?e=this[Js]/this[Zs]:this[Zs]===this[Js]?e=1:e=0,{percent:e,transferred:this[Js],total:this[Zs]}}get uploadProgress(){let e;return this[Xs]?e=this[Qs]/this[Xs]:this[Xs]===this[Qs]?e=1:e=0,{percent:e,transferred:this[Qs],total:this[Xs]}}get timings(){var e;return(e=this[nt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[DR]}pipe(e,r){if(this[CR])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof yy.ServerResponse&&this[Il].add(e),super.pipe(e,r)}unpipe(e){return e instanceof yy.ServerResponse&&this[Il].delete(e),super.unpipe(e),this}};ke.default=$l});var Da=A(cr=>{"use strict";var Uq=cr&&cr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hq=cr&&cr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Uq(e,t,r)};Object.defineProperty(cr,"__esModule",{value:!0});cr.CancelError=cr.ParseError=void 0;var TR=Aa(),vy=class extends TR.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};cr.ParseError=vy;var Ey=class extends TR.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};cr.CancelError=Ey;Hq(Aa(),cr)});var FR=A(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var OR=Da(),$q=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new OR.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new OR.ParseError(s,t)}};wy.default=$q});var xy=A(jn=>{"use strict";var Gq=jn&&jn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),zq=jn&&jn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gq(e,t,r)};Object.defineProperty(jn,"__esModule",{value:!0});var Vq=require("events"),Wq=nn(),Yq=TC(),Gl=Da(),PR=FR(),IR=Aa(),Kq=sy(),Zq=fy(),LR=dy(),Jq=["request","response","redirect","uploadProgress","downloadProgress"];function BR(t){let e,r,n=new Vq.EventEmitter,i=new Yq((o,a,u)=>{let c=l=>{let h=new IR.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new Gl.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Zq.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let E=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),R=["gzip","deflate","br"].includes(E),{options:T}=h;if(R&&!T.decompress)m.body=p;else try{m.body=PR.default(m,T.responseType,T.parseJson,T.encoding)}catch(P){if(m.body=p.toString(),LR.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,F]of T.hooks.afterResponse.entries())m=await F(m,async M=>{let x=IR.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},T);x.hooks.afterResponse=x.hooks.afterResponse.slice(0,P);for(let j of x.hooks.beforeRetry)await j(x);let D=BR(x);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new Gl.RequestError(P.message,P,h));return}if(r=m,!LR.isResponseOk(m)){h._beforeError(new Gl.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(i.isCanceled)return;let{options:y}=h;if(m instanceof Gl.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,E;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Wq.default.nodeStream((E=y.request)===null||E===void 0?void 0:E.options.body)){f(y);return}c(m)}),Kq.default(h,n,Jq)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return PR.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}jn.default=BR;zq(Da(),jn)});var NR=A(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var Xq=Da();function Qq(t,...e){let r=(async()=>{if(t instanceof Xq.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Sy.default=Qq});var qR=A(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var MR=nn();function jR(t){for(let e of Object.values(t))(MR.default.plainObject(e)||MR.default.array(e))&&jR(e);return Object.freeze(t)}Ay.default=jR});var HR=A(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0})});var Dy=A(Qt=>{"use strict";var eU=Qt&&Qt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),tU=Qt&&Qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&eU(e,t,r)};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.defaultHandler=void 0;var $R=nn(),Xt=xy(),rU=NR(),Vl=Aa(),nU=qR(),iU={RequestError:Xt.RequestError,CacheError:Xt.CacheError,ReadError:Xt.ReadError,HTTPError:Xt.HTTPError,MaxRedirectsError:Xt.MaxRedirectsError,TimeoutError:Xt.TimeoutError,ParseError:Xt.ParseError,CancelError:Xt.CancelError,UnsupportedProtocolError:Xt.UnsupportedProtocolError,UploadError:Xt.UploadError},sU=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:zl}=Vl.default,GR=(...t)=>{let e;for(let r of t)e=zl(void 0,r,e);return e},oU=t=>t.isStream?new Vl.default(void 0,t):Xt.default(t),aU=t=>"defaults"in t&&"options"in t.defaults,uU=["get","post","put","patch","head","delete"];Qt.defaultHandler=(t,e)=>e(t);var zR=(t,e)=>{if(t)for(let r of t)r(e)},VR=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(n,i={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?oU:c);if($R.default.plainObject(n)){let l={...n,...i};Vl.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{zR(t.options.hooks.init,i),zR((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(f){l=f}let h=zl(n,i,s!=null?s:t.options);if(h[Vl.kIsNormalizedAlready]=!0,l)throw new Xt.RequestError(l.message,l,h);return c(h)}catch(l){if(i.isStream)throw l;return rU.default(l,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)aU(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Qt.defaultHandler),s.length===0&&s.push(Qt.defaultHandler),VR({options:GR(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=zl(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!$R.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await sU(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=zl(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of uU)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,iU),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:nU.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=GR,e};Qt.default=VR;tU(HR(),Qt)});var Ry=A((sn,Wl)=>{"use strict";var cU=sn&&sn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),WR=sn&&sn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cU(e,t,r)};Object.defineProperty(sn,"__esModule",{value:!0});var lU=require("url"),YR=Dy(),hU={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new lU.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[YR.defaultHandler],mutableDefaults:!1},Cy=YR.default(hU);sn.default=Cy;Wl.exports=Cy;Wl.exports.default=Cy;Wl.exports.__esModule=!0;WR(Dy(),sn);WR(xy(),sn)});var tk=A((wK,ek)=>{function er(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}ek.exports=er;er.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};er.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};er.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};er.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};er.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};er.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};er.prototype.start=er.prototype.try;er.prototype.errors=function(){return this._errors};er.prototype.attempts=function(){return this._attempts};er.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var rk=A(Ei=>{var dU=tk();Ei.operation=function(t){var e=Ei.timeouts(t);return new dU(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Ei.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Ei.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Ei.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=Ei.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var ik=A((SK,nk)=>{nk.exports=rk()});var ok=A((AK,sk)=>{var pU=ik();function mU(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=pU.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):i(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(n).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}sk.exports=mU});var wk=A(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});function m7(t){return t&&t.__esModule?t:{default:t}}var _k=Object.defineProperty,yk=Object.getOwnPropertySymbols,y7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,gk=(t,e,r)=>e in t?_k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_7=(t,e)=>{for(var r in e||(e={}))y7.call(e,r)&&gk(t,r,e[r]);if(yk)for(var r of yk(e))g7.call(e,r)&&gk(t,r,e[r]);return t},b7=(t,e)=>{for(var r in e)_k(t,r,{get:e[r],enumerable:!0})},v7=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),bk={};b7(bk,{configDir:()=>Ek,darwinConfig:()=>Gy,getPathForPlatform:()=>Vy,getPlatform:()=>$y,linuxConfig:()=>rh,winConfig:()=>zy});var E7=require("fs/promises"),w7=require("path"),vk=m7(w7);function $y(){return process.platform}function rh(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return vk.default.join(process.env.HOME,".config")}function Gy(){if(process.env.HOME!==void 0)return vk.default.join(process.env.HOME,"/Library/Application Support")}function zy(){return process.env.APPDATA}function Vy({platform:t}){switch(t){case"linux":return rh();case"darwin":return Gy();case"win32":return zy();default:return rh()}}function Ek(){return v7(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:$y(),n=Vy({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield E7.stat.call(void 0,n),n}catch{return}}})}Or.__spreadValues=_7;Or.getPlatform=$y;Or.linuxConfig=rh;Or.darwinConfig=Gy;Or.winConfig=zy;Or.getPathForPlatform=Vy;Or.configDir=Ek;Or.config_dir_exports=bk});var xk=A(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var x7=wk();Wy.configDir=x7.configDir});var kk=A((uZ,I7)=>{I7.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Fk=A(qt=>{"use strict";var Ok=kk(),Ke=process.env;Object.defineProperty(qt,"_vendors",{value:Ok.map(function(t){return t.constant})});qt.name=null;qt.isPR=null;Ok.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return Tk(n)});if(qt[t.constant]=r,!!r)switch(qt.name=t.name,typeof t.pr){case"string":qt.isPR=!!Ke[t.pr];break;case"object":"env"in t.pr?qt.isPR=t.pr.env in Ke&&Ke[t.pr.env]!==t.pr.ne:"any"in t.pr?qt.isPR=t.pr.any.some(function(n){return!!Ke[n]}):qt.isPR=Tk(t.pr);break;default:qt.isPR=null}});qt.isCI=!!(Ke.CI!=="false"&&(Ke.BUILD_ID||Ke.BUILD_NUMBER||Ke.CI||Ke.CI_APP_ID||Ke.CI_BUILD_ID||Ke.CI_BUILD_NUMBER||Ke.CI_NAME||Ke.CONTINUOUS_INTEGRATION||Ke.RUN_ID||qt.name));function Tk(t){return typeof t=="string"?!!Ke[t]:"env"in t?Ke[t.env]&&Ke[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ke[e]}):Object.keys(t).every(function(e){return Ke[e]===t[e]})}});var nh=A((AZ,U7)=>{U7.exports={name:"create-turbo",version:"2.2.4-canary.8",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{commander:"^11.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0",picocolors:"1.0.1","proxy-agent":"^6.2.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@jest/globals":"^29.7.0","@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/node":"^18.17.2","@types/semver":"^7.3.9",jest:"^29.7.0","ts-jest":"^29.2.5",tsup:"^6.7.0",typescript:"5.5.4"},files:["dist"]}});var KT=pe(require("http")),ZT=pe(require("https")),wg=require("picocolors"),$a=require("commander");var pO=pe(Tg());function wh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function So(t){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(t)}function xh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sh(t,e){if(e&&(So(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xh(t)}function Zn(t){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(t)}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nr(t,e)}function Ah(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nr(t,e)}function Dh(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ch(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mi(t,e,r){return Ch()?Mi=Reflect.construct.bind():Mi=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Nr(c,o.prototype),c},Mi.apply(null,arguments)}function Ao(t){var e=typeof Map=="function"?new Map:void 0;return Ao=function(n){if(n===null||!Dh(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mi(n,arguments,Zn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Nr(i,n)},Ao(t)}var Yg=pe(Wg());var mO=pe(require("fs-extra")),gG=function(t){Ah(e,t);function e(r){var n;return wh(this,e),n=Sh(this,Zn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Ao(Error));var yO=pe(require("fs")),gO=pe(require("path"));var P3=pe(require("fs")),I3=pe(require("path"));function l_(t){return typeof t=="undefined"||t===null}function vO(t){return typeof t=="object"&&t!==null}function EO(t){return Array.isArray(t)?t:l_(t)?[]:[t]}function wO(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function xO(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function SO(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var AO=l_,DO=vO,CO=EO,RO=xO,kO=SO,TO=wO,We={isNothing:AO,isObject:DO,toArray:CO,repeat:RO,isNegativeZero:kO,extend:TO};function h_(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
30
+ `)}`}}};ke.RequestError=Ue;var Nl=class extends Ue{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};ke.MaxRedirectsError=Nl;var Ml=class extends Ue{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};ke.HTTPError=Ml;var jl=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};ke.CacheError=jl;var ql=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};ke.UploadError=ql;var Ul=class extends Ue{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};ke.TimeoutError=Ul;var Sa=class extends Ue{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};ke.ReadError=Sa;var Hl=class extends Ue{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};ke.UnsupportedProtocolError=Hl;var qq=["socket","connect","continue","information","upgrade","timeout"],$l=class extends _R.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Js]=0,this[Qs]=0,this.requestInitialized=!1,this[Il]=new Set,this.redirects=[],this[eo]=!1,this[Ll]=!1,this[xa]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof yy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),ke.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof bq.ReadStream&&await Nq(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[nt])===null||c===void 0||c.destroy();return}for(let h of this[xa])h();this[xa].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Ue){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Bn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([SR.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=Aq({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Bn.URLSearchParams)d=new Bn.URLSearchParams(r.searchParams);else{Lq(r.searchParams),d=new Bn.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=xR.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=xR.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Bn.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Bn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Hl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=gR.promisify(d.bind(r.cookieJar)),m=gR.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(by.has(h)||by.set(h,new vR((d,m)=>{let y=d[nt](d,m);return Y.default.promise(y)&&(y.once=(p,E)=>{if(p==="error")y.catch(E);else if(p==="abort")(async()=>{try{(await y).once("abort",E)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)gy||(gy=new wq.default),r.dnsCache=gy;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let d of ke.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(n&&!f)for(let d of ke.knownHookEvents)n.hooks[d].length>0&&(r.hooks[d]=[...n.hooks[d],...r.hooks[d]]);if("family"in r&&Nn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&Nn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Nn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Nn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Nn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Nn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Nn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Nn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,ke.setNonEnumerableProperties([n,c],r),Fq.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!Y.default.undefined(e.form),i=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=n||i||s,a=ke.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof _R.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!ER.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(ER.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Mn]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Mn]=new Bn.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Mn]=e.stringifyJson(e.json));let c=await Dq.default(this[Mn],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Xs]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[RR]=e,r.decompress&&(e=xq(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:bR.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[DR]=s.isFromCache,this[Zs]=Number(e.headers["content-length"])||void 0,this[Bl]=e,e.once("end",()=>{this[Zs]=this[Js],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Sa(a,this))}),e.once("aborted",()=>{this._beforeError(new Sa({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&Mq.has(i)){if(e.resume(),this[nt]&&(this[_y](),delete this[nt],this[AR]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Mn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Nl(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Bn.URL(u,n),l=c.toString();if(decodeURI(l),!h(n)&&h(c)){this._beforeError(new Ue("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!Oq.isResponseOk(s)){this._beforeError(new Ml(s));return}e.on("readable",()=>{this[Ll]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Il])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;Eq.default(e),this[_y]=wR.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof wR.TimeoutError?new Ul(u,this.timings,this):new Ue(u.message,u,this),this._beforeError(u)}),this[AR]=Cq.default(e,this,qq),this[nt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Mn],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new ql(u,this))})):(this._unlockWrite(),Y.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,Rq.default(e)),delete r.url;let s,o=by.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let E in a)if(Y.default.undefined(a[E]))delete a[E];else if(Y.default.null_(a[E]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${E}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=Iq?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let E=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(E)&&(o.headers.cookie=E)}for(let E of o.hooks.beforeRequest){let R=await E(o);if(!Y.default.undefined(R)){o.request=()=>R;break}}o.body&&this[Mn]!==o.body&&(this[Mn]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let E=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(E!=null&&E.groups){let{socketPath:R,path:T}=E.groups;Object.assign(o,{socketPath:R,path:T,host:""})}}let f=h.protocol==="https:",d;o.http2?d=Sq.auto:d=f?vq.request:bR.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[nt]=m,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,p.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=SR.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let E=await y(h,p);Y.default.undefined(E)&&(E=d(h,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),Bq(E)?this._onRequest(E):this.writable?(this.once("finish",()=>{this._onResponse(E)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(E)}catch(E){throw E instanceof vR.CacheError?new jl(E,this):new Ue(E.message,E,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Ue(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[eo])return;let{options:r}=this,n=this.retryCount+1;this[eo]=!0,e instanceof Ue||(e=new Ue(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await Tq.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:Pq.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Ue(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new Ue(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[kR]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Ll]=!0;let e=this[Bl];if(e&&!this[eo]){e.readableLength&&(this[Ll]=!1);let r;for(;(r=e.read())!==null;){this[Js]+=r.length,this[CR]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[xa].push(i)}_writeRequest(e,r,n){this[nt].destroyed||(this._progressCallbacks.push(()=>{this[Qs]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[nt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(nt in this)){e();return}if(this[nt].destroyed){e();return}this[nt].end(n=>{n||(this[Xs]=this[Qs],this.emit("uploadProgress",this.uploadProgress),this[nt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[xa].push(r)}_destroy(e,r){var n;this[eo]=!0,clearTimeout(this[kR]),nt in this&&(this[_y](),!((n=this[Bl])===null||n===void 0)&&n.complete||this[nt].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof Ue)&&(e=new Ue(e.message,e,this)),r(e)}get _isAboutToError(){return this[eo]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[nt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[RR])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[nt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Zs]?e=this[Js]/this[Zs]:this[Zs]===this[Js]?e=1:e=0,{percent:e,transferred:this[Js],total:this[Zs]}}get uploadProgress(){let e;return this[Xs]?e=this[Qs]/this[Xs]:this[Xs]===this[Qs]?e=1:e=0,{percent:e,transferred:this[Qs],total:this[Xs]}}get timings(){var e;return(e=this[nt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[DR]}pipe(e,r){if(this[CR])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof yy.ServerResponse&&this[Il].add(e),super.pipe(e,r)}unpipe(e){return e instanceof yy.ServerResponse&&this[Il].delete(e),super.unpipe(e),this}};ke.default=$l});var Da=A(cr=>{"use strict";var Uq=cr&&cr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hq=cr&&cr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Uq(e,t,r)};Object.defineProperty(cr,"__esModule",{value:!0});cr.CancelError=cr.ParseError=void 0;var TR=Aa(),vy=class extends TR.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};cr.ParseError=vy;var Ey=class extends TR.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};cr.CancelError=Ey;Hq(Aa(),cr)});var FR=A(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var OR=Da(),$q=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new OR.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new OR.ParseError(s,t)}};wy.default=$q});var xy=A(jn=>{"use strict";var Gq=jn&&jn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),zq=jn&&jn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gq(e,t,r)};Object.defineProperty(jn,"__esModule",{value:!0});var Vq=require("events"),Wq=nn(),Yq=TC(),Gl=Da(),PR=FR(),IR=Aa(),Kq=sy(),Zq=fy(),LR=dy(),Jq=["request","response","redirect","uploadProgress","downloadProgress"];function BR(t){let e,r,n=new Vq.EventEmitter,i=new Yq((o,a,u)=>{let c=l=>{let h=new IR.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new Gl.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Zq.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let E=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),R=["gzip","deflate","br"].includes(E),{options:T}=h;if(R&&!T.decompress)m.body=p;else try{m.body=PR.default(m,T.responseType,T.parseJson,T.encoding)}catch(P){if(m.body=p.toString(),LR.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,F]of T.hooks.afterResponse.entries())m=await F(m,async M=>{let x=IR.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},T);x.hooks.afterResponse=x.hooks.afterResponse.slice(0,P);for(let j of x.hooks.beforeRetry)await j(x);let D=BR(x);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new Gl.RequestError(P.message,P,h));return}if(r=m,!LR.isResponseOk(m)){h._beforeError(new Gl.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(i.isCanceled)return;let{options:y}=h;if(m instanceof Gl.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,E;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Wq.default.nodeStream((E=y.request)===null||E===void 0?void 0:E.options.body)){f(y);return}c(m)}),Kq.default(h,n,Jq)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return PR.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}jn.default=BR;zq(Da(),jn)});var NR=A(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var Xq=Da();function Qq(t,...e){let r=(async()=>{if(t instanceof Xq.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Sy.default=Qq});var qR=A(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var MR=nn();function jR(t){for(let e of Object.values(t))(MR.default.plainObject(e)||MR.default.array(e))&&jR(e);return Object.freeze(t)}Ay.default=jR});var HR=A(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0})});var Dy=A(Qt=>{"use strict";var eU=Qt&&Qt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),tU=Qt&&Qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&eU(e,t,r)};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.defaultHandler=void 0;var $R=nn(),Xt=xy(),rU=NR(),Vl=Aa(),nU=qR(),iU={RequestError:Xt.RequestError,CacheError:Xt.CacheError,ReadError:Xt.ReadError,HTTPError:Xt.HTTPError,MaxRedirectsError:Xt.MaxRedirectsError,TimeoutError:Xt.TimeoutError,ParseError:Xt.ParseError,CancelError:Xt.CancelError,UnsupportedProtocolError:Xt.UnsupportedProtocolError,UploadError:Xt.UploadError},sU=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:zl}=Vl.default,GR=(...t)=>{let e;for(let r of t)e=zl(void 0,r,e);return e},oU=t=>t.isStream?new Vl.default(void 0,t):Xt.default(t),aU=t=>"defaults"in t&&"options"in t.defaults,uU=["get","post","put","patch","head","delete"];Qt.defaultHandler=(t,e)=>e(t);var zR=(t,e)=>{if(t)for(let r of t)r(e)},VR=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(n,i={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?oU:c);if($R.default.plainObject(n)){let l={...n,...i};Vl.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{zR(t.options.hooks.init,i),zR((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(f){l=f}let h=zl(n,i,s!=null?s:t.options);if(h[Vl.kIsNormalizedAlready]=!0,l)throw new Xt.RequestError(l.message,l,h);return c(h)}catch(l){if(i.isStream)throw l;return rU.default(l,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)aU(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Qt.defaultHandler),s.length===0&&s.push(Qt.defaultHandler),VR({options:GR(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=zl(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!$R.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await sU(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=zl(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of uU)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,iU),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:nU.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=GR,e};Qt.default=VR;tU(HR(),Qt)});var Ry=A((sn,Wl)=>{"use strict";var cU=sn&&sn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),WR=sn&&sn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cU(e,t,r)};Object.defineProperty(sn,"__esModule",{value:!0});var lU=require("url"),YR=Dy(),hU={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new lU.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[YR.defaultHandler],mutableDefaults:!1},Cy=YR.default(hU);sn.default=Cy;Wl.exports=Cy;Wl.exports.default=Cy;Wl.exports.__esModule=!0;WR(Dy(),sn);WR(xy(),sn)});var tk=A((wK,ek)=>{function er(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}ek.exports=er;er.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};er.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};er.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};er.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};er.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};er.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};er.prototype.start=er.prototype.try;er.prototype.errors=function(){return this._errors};er.prototype.attempts=function(){return this._attempts};er.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var rk=A(Ei=>{var dU=tk();Ei.operation=function(t){var e=Ei.timeouts(t);return new dU(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Ei.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Ei.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Ei.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=Ei.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var ik=A((SK,nk)=>{nk.exports=rk()});var ok=A((AK,sk)=>{var pU=ik();function mU(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=pU.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):i(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(n).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}sk.exports=mU});var wk=A(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});function m7(t){return t&&t.__esModule?t:{default:t}}var _k=Object.defineProperty,yk=Object.getOwnPropertySymbols,y7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,gk=(t,e,r)=>e in t?_k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_7=(t,e)=>{for(var r in e||(e={}))y7.call(e,r)&&gk(t,r,e[r]);if(yk)for(var r of yk(e))g7.call(e,r)&&gk(t,r,e[r]);return t},b7=(t,e)=>{for(var r in e)_k(t,r,{get:e[r],enumerable:!0})},v7=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),bk={};b7(bk,{configDir:()=>Ek,darwinConfig:()=>Gy,getPathForPlatform:()=>Vy,getPlatform:()=>$y,linuxConfig:()=>rh,winConfig:()=>zy});var E7=require("fs/promises"),w7=require("path"),vk=m7(w7);function $y(){return process.platform}function rh(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return vk.default.join(process.env.HOME,".config")}function Gy(){if(process.env.HOME!==void 0)return vk.default.join(process.env.HOME,"/Library/Application Support")}function zy(){return process.env.APPDATA}function Vy({platform:t}){switch(t){case"linux":return rh();case"darwin":return Gy();case"win32":return zy();default:return rh()}}function Ek(){return v7(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:$y(),n=Vy({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield E7.stat.call(void 0,n),n}catch{return}}})}Or.__spreadValues=_7;Or.getPlatform=$y;Or.linuxConfig=rh;Or.darwinConfig=Gy;Or.winConfig=zy;Or.getPathForPlatform=Vy;Or.configDir=Ek;Or.config_dir_exports=bk});var xk=A(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var x7=wk();Wy.configDir=x7.configDir});var kk=A((uZ,I7)=>{I7.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Fk=A(qt=>{"use strict";var Ok=kk(),Ke=process.env;Object.defineProperty(qt,"_vendors",{value:Ok.map(function(t){return t.constant})});qt.name=null;qt.isPR=null;Ok.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return Tk(n)});if(qt[t.constant]=r,!!r)switch(qt.name=t.name,typeof t.pr){case"string":qt.isPR=!!Ke[t.pr];break;case"object":"env"in t.pr?qt.isPR=t.pr.env in Ke&&Ke[t.pr.env]!==t.pr.ne:"any"in t.pr?qt.isPR=t.pr.any.some(function(n){return!!Ke[n]}):qt.isPR=Tk(t.pr);break;default:qt.isPR=null}});qt.isCI=!!(Ke.CI!=="false"&&(Ke.BUILD_ID||Ke.BUILD_NUMBER||Ke.CI||Ke.CI_APP_ID||Ke.CI_BUILD_ID||Ke.CI_BUILD_NUMBER||Ke.CI_NAME||Ke.CONTINUOUS_INTEGRATION||Ke.RUN_ID||qt.name));function Tk(t){return typeof t=="string"?!!Ke[t]:"env"in t?Ke[t.env]&&Ke[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ke[e]}):Object.keys(t).every(function(e){return Ke[e]===t[e]})}});var nh=A((AZ,U7)=>{U7.exports={name:"create-turbo",version:"2.3.0",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{commander:"^11.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0",picocolors:"1.0.1","proxy-agent":"^6.2.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@jest/globals":"^29.7.0","@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/node":"^18.17.2","@types/semver":"^7.3.9",jest:"^29.7.0","ts-jest":"^29.2.5",tsup:"^6.7.0",typescript:"5.5.4"},files:["dist"]}});var KT=pe(require("http")),ZT=pe(require("https")),wg=require("picocolors"),$a=require("commander");var pO=pe(Tg());function wh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function So(t){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(t)}function xh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sh(t,e){if(e&&(So(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xh(t)}function Zn(t){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(t)}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nr(t,e)}function Ah(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nr(t,e)}function Dh(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ch(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mi(t,e,r){return Ch()?Mi=Reflect.construct.bind():Mi=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Nr(c,o.prototype),c},Mi.apply(null,arguments)}function Ao(t){var e=typeof Map=="function"?new Map:void 0;return Ao=function(n){if(n===null||!Dh(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mi(n,arguments,Zn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Nr(i,n)},Ao(t)}var Yg=pe(Wg());var mO=pe(require("fs-extra")),gG=function(t){Ah(e,t);function e(r){var n;return wh(this,e),n=Sh(this,Zn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Ao(Error));var yO=pe(require("fs")),gO=pe(require("path"));var P3=pe(require("fs")),I3=pe(require("path"));function l_(t){return typeof t=="undefined"||t===null}function vO(t){return typeof t=="object"&&t!==null}function EO(t){return Array.isArray(t)?t:l_(t)?[]:[t]}function wO(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function xO(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function SO(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var AO=l_,DO=vO,CO=EO,RO=xO,kO=SO,TO=wO,We={isNothing:AO,isObject:DO,toArray:CO,repeat:RO,isNegativeZero:kO,extend:TO};function h_(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
31
31
 
32
32
  `+t.mark.snippet),n+" "+r):n}function Co(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=h_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Co.prototype=Object.create(Error.prototype);Co.prototype.constructor=Co;Co.prototype.toString=function(e){return this.name+": "+h_(this,e)};var mt=Co;function Ih(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function Lh(t,e){return We.repeat(" ",e-t.length)+t}function OO(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Ih(t.buffer,n[o-u],i[o-u],t.position-(n[o]-n[o-u]),h),a=We.repeat(" ",e.indent)+Lh((t.line-u+1).toString(),l)+" | "+c.str+`
33
33
  `+a;for(c=Ih(t.buffer,n[o],i[o],t.position,h),a+=We.repeat(" ",e.indent)+Lh((t.line+1).toString(),l)+" | "+c.str+`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "2.2.4-canary.8",
3
+ "version": "2.3.0",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "license": "MIT",
@@ -34,12 +34,12 @@
34
34
  "ts-jest": "^29.2.5",
35
35
  "tsup": "^6.7.0",
36
36
  "typescript": "5.5.4",
37
- "@turbo/telemetry": "0.0.0",
38
- "@turbo/eslint-config": "0.0.0",
37
+ "@turbo/test-utils": "0.0.0",
39
38
  "@turbo/tsconfig": "0.0.0",
39
+ "@turbo/eslint-config": "0.0.0",
40
+ "@turbo/telemetry": "0.0.0",
40
41
  "@turbo/utils": "0.0.0",
41
- "@turbo/workspaces": "2.2.4-canary.8",
42
- "@turbo/test-utils": "0.0.0"
42
+ "@turbo/workspaces": "2.3.0"
43
43
  },
44
44
  "files": [
45
45
  "dist"